webpackJsonp([13],{284:function(e,t){e.exports="/fonts/pages/main/components/MDEditor/assets/font/iconfont.eot?5cb756e5"},365:function(e,t,n){var r=n(270);(e.exports=n(0)(!1)).push([e.i,"@font-face{font-family:iconfont;src:url("+r(n(284))+");src:url("+r(n(284))+'#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABBoAAsAAAAAH4gAABAXAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCHNAqrGKENATYCJAOBAAtCAAQgBYRtB4I0G3MZM6M2lLTSTfZfJ3BzyOqYZkDBRZ2HprCitPZ3M8J36RIFoV+G+/sYnCYldv0I8xP3uCYjaM7/PYldjAhiEUzzMA2QIPZTSUVTap7SplSDVS1QFajwRBw61IQgv72KhZq8zPfO2kzlgJkk7T4iPTP9Ao/snqj1ZwI+AR+pnFgdsb1FKrikLeIB0AABBLNBwG3sJrh0YieT5piEFlvapTXhESZVxn7z1XMwlGSPvV8g5XsAQOD//62ldqfIqjJ5W5yyMH0RqkLWyJ0JDl3vH2ZCvMHdEpDKq5AV6vZCeyUCDyhMhanQFUJUSF+D5awMrAmEpUSMBqL+u96FgQDAQCUGYXgvHww+aDBOYL4ZcfI48GNh0DlDCfADXM0JaRCbioNPrl47gI3q6xMPkBAfIMGhwC7KNMk4AXqWejiMsp9gM2WP1KcBvJwIoADEAGiA1GkriShQPotRgtEV0vgv/nw0aIhYmpWyISIlSpGpmC1lR7A2toZtsMlp11jXnb47j+64Hg5zn6UsUfjoZBmKutd1v9rr4fphDQRixHGUMDpJirTuWd1zkP6/4AFKBLx5ISGFJwr+FLjwIISKCGIwCCRHgwMJBOCBjwA+fPmRUQPBBeYVAQDRQBvVwFICgxJYGgMBsFIM3sCGYPACNhwDCbARHF8yEhg8gU3EQAFsMgZ/YFMwKIDNwMAF2EwMHsAWAYSQxQCoIEsBEEGOAEAMaQOAgawBIBCyDgA5ZD0ANGQDABzITQBIIE8DIIC8CgAP8hoAfEgXMATAnT6Aj5IPAfCFfASAH6QLGGTwcNgSUAMAjTyBHsAsgPtJgC8GU++pILhNgQSfWmA0EEeRuu4EY14UN4/qGZcT5UhhGA+RzF1SKhUR4hBC68GmUDSfJxZ70tpH5uMJtAFv8k3IHkwQsbghCBGyO1rAEch8KV/ADNGEcnmltkOGKDqMSyXPTB0/f1gqqQ2GOhqiJgftys1wX+tg4SHhrzbqdj3PXQi/2m47jteF30zc/s3hA4btyn6r4/K6TDjNfkX8BZ51Du7ZDf/91en8caT7+06wdx/477cLWrE5JJ5vTUwUGoNjmfpWYWpMj3EjIa2djJquyNcCw/FkoZLVDe/crk7HlF2v3TZYaEO48Z1w1PX2/IHu2BudBRCCYtWvBRVSHgdpaN+n+n7rv7jBDQ41V3FSplXfmsIQFb4MONEnSxwYa4X9U0G67cNIpow0Wh0SzdewKnxLu1VOxbIVnAhqMHornbxVT0WyjfE9pdbQaK7Z+5oiSasw6tdwT1ABCOUhgLAB18k2I80+hAGCwnOPrbkI9MCNCKLYKXcZ/TjoQr+DKJrnBcZTsnHIVYM2IKHdls8KKdCbGp/gempUeVCNKPsiarRXiao7c1VaTpGsEWMZkK0EtaF+zozL/C5XUN1mc6qluTG8qp3ZRtDym7Tu9lABY77EyYCDOGGbSaX751iDcb86IXmrDLwE0OIqWKdHSLsjDVHThTg6e4hoZ0W1836P0nv3Sb9K9d17BS0TY89uRiqBtW8PD2r+uXx1QRH6ltVfNulEDoj+Tjm1OVOZHyxye8FtRMNx4u4SAx8MTWuMkQ4+KV/0Fm8XcxAikH13HgPEKC3sOv3jJfQPSis/NF8bGI8jOIpL/ZXB2cGcB5Z1ZUiOX1iO6uuYrghzg0A0c+naMI6D9DpkvdhphTJ9kdKwGkirDAkBUR5wsCOzDBCmo0JKjNunC1wOIoTbEZD+VCiMAURVWa4nDe1Uln4k54baR4hyhhCcUo33BZUwOqTO9uGIEu3sckJb9ZOAtBpUQIyUJ2wTFL+KLQjgHRCBXRiiowDDHW0vkLDrou0JF3AhCp2uQNv7oSZ/Zq8HJE+5VVSctLt8fbKj7qvd2K24Qljenm39DVKnTb/V54W3JQ4A16ajoC9ROEBhrRiupOO7TmnIt97OMqPbDs+Wd9Bq3vJckauVDIeTrXR126kpctY2WSpk9c2MHRO6XQ9XNLsrPWmuiIwVEqcdeCff1qG2zYzl3PJa3eWNcJmju/52k6wPlzQPrZSiQcZqLufWSkeANGW5t5zLe9SIPBNL1x4h9GWuIMQC46ZamifvFawQbH8TO9I0rWsNNjFoVxBYXmmJLzzjwApSTHhfP6YHrnT8ys8LlM0drRhLRqdJw6g4b54gcvmn+YmBX04ilmmEBR3wyJmoOKTz/7x2u72tOTTFq0y9YyvkJUtybl4LBb35iRHt5/TO+DOA/KGyNL40uZIiKaYvcjlOuvqIwScG1qSjFgfIfbLP6jMG8vOVPAijNL4AiM50bvAUmVSewIpmDqY1Wgcx0sAJqIgdRzrDwEEq9Ju9VwQ9uMGVQNYXahAuP79e5t78jSnVz8fdegMM8RyCb4a6viUlDgoko9Oi2TvWJofjwsQrQLviVhXtZw2YRlAB6J0fh8Wmho2cPr1dBSM3lCjc80GaD03EtTI11wPiQgXYsgRhNYuWASCFtPZOvTBqoNYTaO53H3b2Pdh5VsbHPrh06uYJD41afQ2dV1Ox53dGN6P3433qG3c4d93jvbLy4orHh6+df55b8kmvfHzFxbpnQKQHfUt5p1ImhA00zzRHfBFBLeQs4K1jFm7S5kVGDh0dNpRzCknDOjKzMjPPMVSR8n9r2tpnHEdHqOcoUjLUuUxWntVRyE92lLRftK3NINwmNLSpJfx/lbqsLqlV/p6q99SoaurrHSJ5YM2MGS5Xdr9M5CiwMO5fmMVsaY6LExZNNJvZtleQvnnPbCGYI7YnO58kSaS3nyzqAk6aunXdMQiaQJ1VPXNKS318EJljpwvbcyZxP/Jv0Rr4FOrVA/O4TJenp8KY3yDiW32/CpT5O37iS7orQBHVrJikbKa+wc0qr6jUKoH+W04U/Z3n357tnitXIiN/Q7Fdxj/Ml9kdl+An30RfEVVTAFNdmYZL2bHO9hmKfVZc6tf3L+8P6r/8ImBfnft2F7nL3MMDLo7qH32ueDL2GHUa2aRRJQNKhxQP9ZPJkM8xKUeYiysMlfqBkp/ph/pRy+0jRhoGjTQpq4hZ44bO3F69flKagSubojZwoN20wblhcHB18Kvjzg3O5OP+L1ofcTviOriSK1+8/OKK5PV60MpWzqjxrNn016KlnTs6ly66lb7Gc1H5VCYxhbvP1I/ireJ9J7JVB8mtyhbdKF2L8jvnaeBIyan0U7fDY5/dzB9VUTl8YMkgS7JbT8fei73VnWtfPndj2ewwaomyxJhzU08hxVQZzxpbVENU33jDJqlaRrSqJj73b1RmFWSnihoHU1Kaigw2kCrfQvKZP1fmGnSnqNpStG3+MwkvOlFHaH2N5LNonqTPzClC0rjV69oe+zxuk2/q2SlVKRGdwivDr3Dzfq+V8Hz69UaykNT1+vA8TprylNt/P/DHqs5x6uHq2Z2r/9z0W6NyK5NXfyAjtTChQd7W0NNW9lPPvJ95TH31jq3zhTSytHavdq9QIWKQFL4XuFKmXeAhtqmUIfXmZL/edJN5/RrdFH4tSuZ9R9n+mKud+WZTu1KKTiubkaps4mydXiG1JEXyOlVO0X5Ml/XXwZpCaadNLBW0byIxTWj2HK+/3it87M0vACmTm4KDSdEzLM2vOmLmOKzRu0UszatqHbUZmmB+rbZF49C2uhjVCfXewBMqZ5bT4VTCcdOhgH9lkX9v79pevmM6JoNaQMMIQ7dyq3Obc3vqX45upCDy6GZ6Ig6QXdu6nm4zu6+YP1OZpvzv0pMnhkC7bN+BIGXS8OHruLxgRZz36JKSRB5x+zYIbLuvd5dwO1jXu4upURy4O30Gb6IUC0Nsiij5ypBVMmWUxvY7RBPlgVYWKmyh2oShK6FuFq50tq/yW/XndFgI3qo/vuDzruKSn3DFJK3mERZHrt9KSxVnwOHtZU/GZQ5b2Jh580+7h2x2UMG86mNW6sZZyrra909Ktg0qqJ6Xk38qJy8/91Re7qsjKfk6kZ/zFM2pzvnEaoeVevADZa2pNg0GzvXCfX1xersSyI88TkzTtyh0ZkrRQtcnPt6wYfDgdqPxbppzrA0bHifW04oWyqxrUejT9K2NRrrCguZml9wbQmq8Ipbt59QVdG1Y/9w3wlRmpPl9twpTRNIjA95esJ+z4Ai04c61zLT1XQV1nHhDFHZWtFTogXRTxQzRtz9NkFyLzs4Jcpt8hkLklSit2CNK5Yv3iPV3tOSnbxMrsnu+XPfVLZvS1v7/Jcd7cjzyCrsH7zeXFzWdQq3gW4x6p7Y447os0tkV5/QyqL0jYac3CGhaWPL+FbdW+v1UNdnsTZHB30c2xBy6utz/Q6tU2Lt/LhtWJgr2rFt2FvvztIxn2/dvIgyhg7T1yrkBOiZtGZgJq0S8pdbfOwN++vWKmnF69YmCJU1Nk7Z8+pM9TuLtsds8fq75P44PWfCzq2O9XYHU8d6P/BL9a/wT/eS5zzoJcbqYlJyRkOJdOd8CRj3aLGcwZNgq3yCfJvmvYqIN0l/NTT6xu9/cX3TiWOjg1cd3nwvkBJsCxf8s0EocXp/zRWrfvk+k8cLJy5t9muvr5swGGRmYkrza/kabNJrZ83aYVu3eNZW/CvhooMuPeEn4WRK5kdxES5RK/TZtmU02Xx4lny97/pdilUIpDMXD00iX8hJNuZZE3lKpZpXikimatkqsFcGXSCuWIuFwdW7uyK1D4kODLl38t+n8gn+x3M0Wcb9U2FOkX2cdhXVfPtNzzxCNB1AXqLQZesgNc7j/U+QZFxm29kHKSY0h6KmQYPiI4auhc4ePG14spLhlhu8c8Qt/JT7rQyHFEG0efoOGNz6kBLRwLbka/jP5YHgXeX64HXHwwuHrvtp9dghG+i2fSCj+nE/bqJ+5y+Q8rGwPN2zq51+V9cLh/2m2uu6bRVW4D9IYRzX4IB9MSDyIFHSrG9HfOSyi2ecGFjuAKIMwBzTWItJAAmDCWW6Uyjn7rDytsx7ZKs/QJMFDoEmBjxBE94wxORAiyeSCj1yTQbSikwuhYAUFghYAiNLomAQ8nDFJSPAjo3Q9OxiNnl0mB14e5XExMIr+Y6cUOEMhwjbXv3wR6AKr2qeKhpNzY2Xpzf8JX0kLyXnq7BeSIyd13B1+mz+QIHWkyDd/KsUpJ9ypd8cHRKx64QtM2QU09ef93r1dxc5w1yybF4EusEr7lNNGw8kdvixTX/4TvpKWnNV+TfsLyfHolaOdgwX6EMlqtX1ZNN/8SSHaKbGscKe8Ew3iDaz0+rYuMGUnlLD7sz3ZnLMVu/ZVd2QUNuIa2EerSSBRaAwWhycQSWRKKmoaWjp6BkYmZhZWNnYOTi5unmLY2bHA8rgmyzMTYK6wG3WXt05TxqwX3CLuQ04jdm5u+Z6ItR23THbihWs/ip1flj53yJZiwsQQZ0xj0RTNnG8QzRTLwBL/OSWalIAOk7/KRVYU3ZK5J7QMK40NW4zfPK9LV4myESBZoZjMapY6ZFrWvnG2bXGOcdY3LPo627blR9MAAAAA") format("woff2"),url('+r(n(366))+') format("woff"),url('+r(n(367))+') format("truetype"),url('+r(n(368))+'#iconfont) format("svg")}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-md:before{content:"\\E604"}.icon-redo:before{content:"\\E627"}.icon-undo:before{content:"\\E633"}.icon-checked:before{content:"\\E683"}.icon-checked-false:before{content:"\\E684"}.icon-preview:before{content:"\\E63A"}.icon-on:before{content:"\\E6D8"}.icon-off:before{content:"\\E6D9"}.icon-download:before{content:"\\E6AE"}.icon-bold:before{content:"\\E677"}.icon-group:before{content:"\\E647"}.icon-img:before{content:"\\E64A"}.icon-under-line:before{content:"\\E65A"}.icon-close:before{content:"\\E690"}.icon-italic:before{content:"\\E628"}.icon-overline:before{content:"\\E63B"}.icon-horizontal:before{content:"\\E7F0"}.icon-theme:before{content:"\\E682"}.icon-quote:before{content:"\\E636"}.icon-table:before{content:"\\E603"}.icon-clear:before{content:"\\E629"}.icon-ul:before{content:"\\E624"}.icon-code:before{content:"\\E60F"}.icon-link:before{content:"\\E7E2"}.icon-fullscreen:before{content:"\\E7EC"}.icon-quite:before{content:"\\E7ED"}.icon-daoru:before{content:"\\E635"}.icon-ol:before{content:"\\E6F0"}.icon-upload-img:before{content:"\\E679"}.icon-save:before{content:"\\E648"}.icon-check-box:before{content:"\\EC58"}',""])},366:function(e,t){e.exports="/fonts/pages/main/components/MDEditor/assets/font/iconfont.woff?70e0362d"},367:function(e,t){e.exports="/fonts/pages/main/components/MDEditor/assets/font/iconfont.ttf?b5f4d512"},368:function(e,t){e.exports="/fonts/pages/main/components/MDEditor/assets/font/iconfont.svg?3a9bde8a"},369:function(e,t,n){"use strict";var r,i={},o=[],a=Object.keys,l={},s={},c=/^(no-?highlight|plain|text)$/i,d=/\blang(?:uage)?-([\w-]+)\b/i,u=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,f="",h={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function p(e){return e.replace(/&/g,"&").replace(//g,">")}function m(e){return e.nodeName.toLowerCase()}function g(e,t){var n=e&&e.exec(t);return n&&0===n.index}function v(e){return c.test(e)}function b(e){var t,n={},r=Array.prototype.slice.call(arguments,1);for(t in e)n[t]=e[t];return r.forEach(function(e){for(t in e)n[t]=e[t]}),n}function y(e){var t=[];return function e(n,r){for(var i=n.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(t.push({event:"start",offset:r,node:i}),r=e(i,r),m(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:i}));return r}(e,0),t}function w(e){if(r&&!e.langApiRestored){for(var t in e.langApiRestored=!0,r)e[t]&&(e[r[t]]=e[t]);(e.contains||[]).concat(e.variants||[]).forEach(w)}}function k(e){function t(e){return e&&e.source||e}function n(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}!function r(i,o){if(!i.compiled){if(i.compiled=!0,i.keywords=i.keywords||i.beginKeywords,i.keywords){var l={},s=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");l[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"==typeof i.keywords?s("keyword",i.keywords):a(i.keywords).forEach(function(e){s(e,i.keywords[e])}),i.keywords=l}i.lexemesRe=n(i.lexemes||/\w+/,!0),o&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")\\b"),i.begin||(i.begin=/\B|\b/),i.beginRe=n(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(i.endRe=n(i.end)),i.terminator_end=t(i.end)||"",i.endsWithParent&&o.terminator_end&&(i.terminator_end+=(i.end?"|":"")+o.terminator_end)),i.illegal&&(i.illegalRe=n(i.illegal)),null==i.relevance&&(i.relevance=1),i.contains||(i.contains=[]),i.contains=Array.prototype.concat.apply([],i.contains.map(function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map(function(t){return b(e,{variants:null},t)})),e.cached_variants||e.endsWithParent&&[b(e)]||[e]}("self"===e?i:e)})),i.contains.forEach(function(e){r(e,i)}),i.starts&&r(i.starts,o);var c=i.contains.map(function(e){return e.beginKeywords?"\\.?(?:"+e.begin+")\\.?":e.begin}).concat([i.terminator_end,i.illegal]).map(t).filter(Boolean);i.terminators=c.length?n(function(e,n){for(var r=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,i=0,o="",a=0;a0&&(o+=n);s.length>0;){var c=r.exec(s);if(null==c){o+=s;break}o+=s.substring(0,c.index),s=s.substring(c.index+c[0].length),"\\"==c[0][0]&&c[1]?o+="\\"+String(Number(c[1])+l):(o+=c[0],"("==c[0]&&i++)}}return o}(c,"|"),!0):{exec:function(){return null}}}}(e)}function x(e,t,n,r){function i(e){return new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function o(e,t){var n=u.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function a(e,t,n,r){var i='')+t+(n?"":f):t}function s(){y+=null!=v.subLanguage?function(){var e="string"==typeof v.subLanguage;if(e&&!l[v.subLanguage])return p(w);var t=e?x(v.subLanguage,w,!0,b[v.subLanguage]):C(w,v.subLanguage.length?v.subLanguage:void 0);return v.relevance>0&&(S+=t.relevance),e&&(b[v.subLanguage]=t.top),a(t.language,t.value,!1,!0)}():function(){var e,t,n,r;if(!v.keywords)return p(w);for(r="",t=0,v.lexemesRe.lastIndex=0,n=v.lexemesRe.exec(w);n;)r+=p(w.substring(t,n.index)),(e=o(v,n))?(S+=e[1],r+=a(e[0],p(n[0]))):r+=p(n[0]),t=v.lexemesRe.lastIndex,n=v.lexemesRe.exec(w);return r+p(w.substr(t))}(),w=""}function c(e){y+=e.className?a(e.className,"",!0):"",v=Object.create(e,{parent:{value:v}})}function d(e,t){if(w+=e,null==t)return s(),0;var r=function(e,t){var n,r;for(n=0,r=t.contains.length;n")+'"');return w+=t,t.length||1}var u=T(e);if(!u)throw new Error('Unknown language: "'+e+'"');k(u);var m,v=r||u,b={},y="";for(m=v;m!==u;m=m.parent)m.className&&(y=a(m.className,"",!0)+y);var w="",S=0;try{for(var M,E,A=0;v.terminators.lastIndex=A,M=v.terminators.exec(t);)E=d(t.substring(A,M.index),M[0]),A=M.index+E;for(d(t.substr(A)),m=v;m.parent;m=m.parent)m.className&&(y+=f);return{relevance:S,value:y,language:e,top:v}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:p(t)};throw e}}function C(e,t){t=t||h.languages||a(l);var n={relevance:0,value:p(e)},r=n;return t.filter(T).filter(A).forEach(function(t){var i=x(t,e,!1);i.language=t,i.relevance>r.relevance&&(r=i),i.relevance>n.relevance&&(r=n,n=i)}),r.language&&(n.second_best=r),n}function S(e){return h.tabReplace||h.useBR?e.replace(u,function(e,t){return h.useBR&&"\n"===e?"
":h.tabReplace?t.replace(/\t/g,h.tabReplace):""}):e}function M(e){var t,n,r,i,a,l=function(e){var t,n,r,i,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",n=d.exec(o))return T(n[1])?n[1]:"no-highlight";for(t=0,r=(o=o.split(/\s+/)).length;t/g,"\n"):t=e,a=t.textContent,r=l?x(l,a,!0):C(a),(n=y(t)).length&&((i=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=r.value,r.value=function(e,t,n){var r=0,i="",a=[];function l(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function c(e){i+=""}function d(e){("start"===e.event?s:c)(e.node)}for(;e.length||t.length;){var u=l();if(i+=p(n.substring(r,u[0].offset)),r=u[0].offset,u===e){a.reverse().forEach(c);do{d(u.splice(0,1)[0]),u=l()}while(u===e&&u.length&&u[0].offset===r);a.reverse().forEach(s)}else"start"===u[0].event?a.push(u[0].node):a.pop(),d(u.splice(0,1)[0])}return i+p(n.substr(r))}(n,y(i),a)),r.value=S(r.value),e.innerHTML=r.value,e.className=function(e,t,n){var r=t?s[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),-1===e.indexOf(r)&&i.push(r),i.join(" ").trim()}(e.className,l,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function E(){if(!E.called){E.called=!0;var e=document.querySelectorAll("pre code");o.forEach.call(e,M)}}function T(e){return e=(e||"").toLowerCase(),l[e]||l[s[e]]}function A(e){var t=T(e);return t&&!t.disableAutodetect}i.highlight=x,i.highlightAuto=C,i.fixMarkup=S,i.highlightBlock=M,i.configure=function(e){h=b(h,e)},i.initHighlighting=E,i.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",E,!1),addEventListener("load",E,!1)},i.registerLanguage=function(e,t){var n=l[e]=t(i);w(n),n.aliases&&n.aliases.forEach(function(t){s[t]=e})},i.listLanguages=function(){return a(l)},i.getLanguage=T,i.autoDetection=A,i.inherit=b,i.IDENT_RE="[a-zA-Z]\\w*",i.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",i.NUMBER_RE="\\b\\d+(\\.\\d+)?",i.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",i.BINARY_NUMBER_RE="\\b(0b[01]+)",i.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",i.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},i.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},i.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},i.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},i.COMMENT=function(e,t,n){var r=i.inherit({className:"comment",begin:e,end:t,contains:[]},n||{});return r.contains.push(i.PHRASAL_WORDS_MODE),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),r},i.C_LINE_COMMENT_MODE=i.COMMENT("//","$"),i.C_BLOCK_COMMENT_MODE=i.COMMENT("/\\*","\\*/"),i.HASH_COMMENT_MODE=i.COMMENT("#","$"),i.NUMBER_MODE={className:"number",begin:i.NUMBER_RE,relevance:0},i.C_NUMBER_MODE={className:"number",begin:i.C_NUMBER_RE,relevance:0},i.BINARY_NUMBER_MODE={className:"number",begin:i.BINARY_NUMBER_RE,relevance:0},i.CSS_NUMBER_MODE={className:"number",begin:i.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},i.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[i.BACKSLASH_ESCAPE]}]},i.TITLE_MODE={className:"title",begin:i.IDENT_RE,relevance:0},i.UNDERSCORE_TITLE_MODE={className:"title",begin:i.UNDERSCORE_IDENT_RE,relevance:0},i.METHOD_GUARD={begin:"\\.\\s*"+i.UNDERSCORE_IDENT_RE,relevance:0};var N=i,D=n(370),L=n.n(D),_=n(371),O=n.n(_),I=n(372),z=n.n(I),F=n(373),R=n.n(F),B=n(374),P=n.n(B),H=n(375),j=n.n(H),W=n(376),U=n.n(W),G=n(377),K=n.n(G),q=n(378),$=n.n(q),V=n(379),Z=n.n(V),X=n(380),Y=n.n(X),Q=n(381),J=n.n(Q),ee={javascript:L.a,java:O.a,css:z.a,less:R.a,markdown:j.a,go:P.a,php:U.a,python:K.a,typescript:$.a,xml:Z.a,autohotkey:Y.a,auto:J.a};Object.keys(ee).forEach(function(e){N.registerLanguage(e,ee[e])});var te=N,ne={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ge,table:ge,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function re(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||xe.defaults,this.rules=ne.normal,this.options.pedantic?this.rules=ne.pedantic:this.options.gfm&&(this.rules=ne.gfm)}ne._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ne._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ne.def=fe(ne.def).replace("label",ne._label).replace("title",ne._title).getRegex(),ne.bullet=/(?:[*+-]|\d{1,9}\.)/,ne.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ne.item=fe(ne.item,"gm").replace(/bull/g,ne.bullet).getRegex(),ne.list=fe(ne.list).replace(/bull/g,ne.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ne.def.source+")").getRegex(),ne._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",ne._comment=//,ne.html=fe(ne.html,"i").replace("comment",ne._comment).replace("tag",ne._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ne.paragraph=fe(ne._paragraph).replace("hr",ne.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",ne._tag).getRegex(),ne.blockquote=fe(ne.blockquote).replace("paragraph",ne.paragraph).getRegex(),ne.normal=ve({},ne),ne.gfm=ve({},ne.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),ne.pedantic=ve({},ne.normal,{html:fe("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ne._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ge,paragraph:fe(ne.normal._paragraph).replace("hr",ne.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ne.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),re.rules=ne,re.lex=function(e,t){return new re(t).lex(e)},re.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},re.prototype.token=function(e,t){var n,r,i,o,a,l,s,c,d,u,f,h,p,m,g,v;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var b=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),b&&"paragraph"===b.type?b.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:ye(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(l={type:"table",header:be(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(i[0].length),f=0;f ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),s={type:"list_start",ordered:m=(o=i[2]).length>1,start:m?+o:"",loose:!1},this.tokens.push(s),c=[],n=!1,p=(i=i[0].match(this.rules.item)).length,f=0;f1?1===a.length:a.length>1||this.options.smartLists&&a!==o)&&(e=i.slice(f+1).join("\n")+e,f=p-1)),r=n||/\n\n(?!\s*$)/.test(l),f!==p-1&&(n="\n"===l.charAt(l.length-1),r||(r=n)),r&&(s.loose=!0),v=void 0,(g=/^\[[ xX]\] /.test(l))&&(v=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:g,checked:v,loose:r},c.push(d),this.tokens.push(d),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(s.loose)for(p=c.length,f=0;f?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ge,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ge,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",ie.em=fe(ie.em).replace(/punctuation/g,ie._punctuation).getRegex(),ie._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ie._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ie._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])?)+(?![-_])/,ie.autolink=fe(ie.autolink).replace("scheme",ie._scheme).replace("email",ie._email).getRegex(),ie._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ie.tag=fe(ie.tag).replace("comment",ne._comment).replace("attribute",ie._attribute).getRegex(),ie._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ie._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ie._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ie.link=fe(ie.link).replace("label",ie._label).replace("href",ie._href).replace("title",ie._title).getRegex(),ie.reflink=fe(ie.reflink).replace("label",ie._label).getRegex(),ie.normal=ve({},ie),ie.pedantic=ve({},ie.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",ie._label).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ie._label).getRegex()}),ie.gfm=ve({},ie.normal,{escape:fe(ie.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)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(o[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.inRawBlock=!1),e=e.substring(o[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):de(o[0]):o[0];else if(o=this.rules.link.exec(e)){var s=we(o[2],"()");if(s>-1){var c=4+o[1].length+s;o[2]=o[2].substring(0,s),o[0]=o[0].substring(0,c).trim(),o[3]=""}e=e.substring(o[0].length),this.inLink=!0,r=o[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],i=t[3]):i="":i=o[3]?o[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(o,{href:oe.escapes(r),title:oe.escapes(i)}),this.inLink=!1}else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),l+=this.renderer.strong(this.output(o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),l+=this.renderer.em(this.output(o[6]||o[5]||o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),l+=this.renderer.codespan(de(o[2].trim(),!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),l+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),l+=this.renderer.del(this.output(o[1]));else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),r="@"===o[2]?"mailto:"+(n=de(this.mangle(o[1]))):n=de(o[1]),l+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.inRawBlock?l+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):de(o[0]):o[0]):l+=this.renderer.text(de(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===o[2])r="mailto:"+(n=de(o[0]));else{do{a=o[0],o[0]=this.rules._backpedal.exec(o[0])[0]}while(a!==o[0]);n=de(o[0]),r="www."===o[1]?"http://"+n:n}e=e.substring(o[0].length),l+=this.renderer.link(r,null,n)}return l},oe.escapes=function(e){return e?e.replace(oe.rules._escapes,"$1"):e},oe.prototype.outputLink=function(e,t){var n=t.href,r=t.title?de(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,de(e[1]))},oe.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},oe.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},ae.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return r?'
'+(n?e:de(e,!0))+"
\n":"
"+(n?e:de(e,!0))+"
"},ae.prototype.blockquote=function(e){return"
\n"+e+"
\n"},ae.prototype.html=function(e){return e},ae.prototype.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},ae.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},ae.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},ae.prototype.listitem=function(e){var t="";return/\/.test(e)&&(t="list-item-checkbox",/checked/.test(e)&&(t+=" list-item-checkbox-checked")),'
  • '+e+"
  • \n"},ae.prototype.checkbox=function(e){return" "},ae.prototype.paragraph=function(e){return"

    "+e+"

    \n"},ae.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},ae.prototype.tablerow=function(e){return"\n"+e+"\n"},ae.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},ae.prototype.strong=function(e){return""+e+""},ae.prototype.em=function(e){return""+e+""},ae.prototype.codespan=function(e){return""+e+""},ae.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},ae.prototype.del=function(e){return""+e+""},ae.prototype.link=function(e,t,n){if(null===(e=he(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},ae.prototype.image=function(e,t,n){if(null===(e=he(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},ae.prototype.text=function(e){return e},le.prototype.strong=le.prototype.em=le.prototype.codespan=le.prototype.del=le.prototype.text=function(e){return e},le.prototype.link=le.prototype.image=function(e,t,n){return""+n},le.prototype.br=function(){return""},se.parse=function(e,t){return new se(t).parse(e)},se.prototype.parse=function(e){this.inline=new oe(e.links,this.options),this.inlineText=new oe(e.links,ve({},this.options,{renderer:new le})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},se.prototype.next=function(){return this.token=this.tokens.pop(),this.token},se.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},se.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},se.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,ue(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},de.escapeTest=/[&<>"']/,de.escapeReplace=/[&<>"']/g,de.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},de.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,de.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var pe={},me=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ge(){}function ve(e){for(var t,n,r=1;r=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+de(e.message+"",!0)+"
    ";throw e}}ge.exec=ge,xe.options=xe.setOptions=function(e){return ve(xe.defaults,e),xe},xe.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new ae,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},xe.defaults=xe.getDefaults(),xe.Parser=se,xe.parser=se.parse,xe.Renderer=ae,xe.TextRenderer=le,xe.Lexer=re,xe.lexer=re.lex,xe.InlineLexer=oe,xe.inlineLexer=oe.output,xe.Slugger=ce,xe.parse=xe;var Ce=xe;te.initHighlightingOnLoad();var Se=new Ce.Renderer;t.a=Ce.setOptions({renderer:Se,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,highlight:function(e){return te.highlightAuto(e).value}})},370:function(e,t){e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},o={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,i],subLanguage:"xml"}},a={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,i],subLanguage:"css"}},l={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,i]};i.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,a,l,r,e.REGEXP_MODE];var s=i.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,a,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:s}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin://,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:s}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},371:function(e,t){e.exports=function(e){var t="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",n={className:"number",begin:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0};return{aliases:["jsp"],keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},n,{className:"meta",begin:"@[A-Za-z]+"}]}}},372:function(e,t){e.exports=function(e){var t={begin:/(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,t]}]}}},373:function(e,t){e.exports=function(e){var t="([\\w-]+|@{[\\w-]+})",n=[],r=[],i=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},o=function(e,t,n){return{className:e,begin:t,relevance:n}},a={begin:"\\(",end:"\\)",contains:r,relevance:0};r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i("'"),i('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},o("number","#[0-9A-Fa-f]+\\b"),a,o("variable","@@?[\\w-]+",10),o("variable","@{[\\w-]+}"),o("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var l=r.concat({begin:"{",end:"}",contains:n}),s={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(r)},c={begin:t+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:t,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:r}}]},d={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:r,relevance:0}},u={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:l}},f={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:t,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o("keyword","all\\b"),o("variable","@{[\\w-]+}"),o("selector-tag",t+"%?",0),o("selector-id","#"+t),o("selector-class","\\."+t,0),o("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:l},{begin:"!important"}]};return n.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,d,u,c,f),{case_insensitive:!0,illegal:"[=>'/<($\"]",contains:n}}},374:function(e,t){e.exports=function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],keywords:t,illegal:"",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^\\s*([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```w*s*$",end:"^```s*$"},{begin:"`.+?`"},{begin:"^( {4}|\t)",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}},376:function(e,t){e.exports=function(e){var t={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},n={className:"meta",begin:/<\?(php)?|\?>/},r={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["php","php3","php4","php5","php6","php7"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",t,e.C_BLOCK_COMMENT_MODE,r,i]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},r,i]}}},377:function(e,t){e.exports=function(e){var t={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10",built_in:"Ellipsis NotImplemented",literal:"False None True"},n={className:"meta",begin:/^(>>>|\.\.\.) /},r={className:"subst",begin:/\{/,end:/\}/,keywords:t,illegal:/#/},i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/(fr|rf|f)'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n,r]},{begin:/(fr|rf|f)"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n,r]},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},{begin:/(fr|rf|f)'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,r]},{begin:/(fr|rf|f)"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},o={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},a={className:"params",begin:/\(/,end:/\)/,contains:["self",n,o,i]};return r.contains=[i,o,n],{aliases:["py","gyp","ipython"],keywords:t,illegal:/(<\/|->|\?)|=>/,contains:[n,o,i,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,a,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}},378:function(e,t){e.exports=function(e){var t={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"},n={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},r={begin:"\\(",end:/\)/,keywords:t,contains:["self",e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.NUMBER_MODE]},i={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,r]},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},a={className:"subst",begin:"\\$\\{",end:"\\}",keywords:t,contains:[]},l={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,a],subLanguage:"xml"}},s={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,a],subLanguage:"css"}},c={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,a]};return a.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,s,c,o,e.REGEXP_MODE],{aliases:["ts"],keywords:t,contains:[{className:"meta",begin:/^\s*['"]use strict['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,s,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+e.IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.IDENT_RE},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}]}],relevance:0},{className:"function",begin:"function",end:/[\{;]/,excludeEnd:!0,keywords:t,contains:["self",e.inherit(e.TITLE_MODE,{begin:"[A-Za-z$_][0-9A-Za-z$_]*"}),i],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0,contains:["self",i]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+e.IDENT_RE,relevance:0},n,r]}}},379:function(e,t){e.exports=function(e){var t={endsWithParent:!0,illegal:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]},{className:"tag",begin:"|$)",end:">",keywords:{name:"style"},contains:[t],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"|$)",end:">",keywords:{name:"script"},contains:[t],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml","vbscript"]}},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},t]}]}}},380:function(e,t){e.exports=function(e){var t={begin:"`[\\s\\S]"};return{case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}},381:function(e,t){e.exports=function(e){var t={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},n={begin:"\\$[A-z0-9_]+"},r={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Default Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait",literal:"True False And Null Not Or"},contains:[t,n,r,i,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[r,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},r,t]},{className:"symbol",begin:"@[A-z0-9_]+"},{className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[n,r,i]}]}]}}},805:function(e,t,n){var r=n(2)(n(810),n(818),!1,function(e){n(806),n(808)},"data-v-105a4b78",null);e.exports=r.exports},806:function(e,t,n){var r=n(807);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("458f5042",r,!0,{})},807:function(e,t,n){(e.exports=n(0)(!1)).push([e.i,".mdeditor-transfer{background-color:#fff}.mdeditor-transfer .ivu-modal-header{display:none}.mdeditor-transfer .ivu-modal-close{top:7px}.mdeditor-transfer .mdeditor-transfer-body{position:absolute;top:0;left:0;width:100%;height:100%;padding:0;margin:0}",""])},808:function(e,t,n){var r=n(809);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(1)("b20002d8",r,!0,{})},809:function(e,t,n){(e.exports=n(0)(!1)).push([e.i,".mdeditor-box[data-v-105a4b78]{position:relative}.upload-control[data-v-105a4b78]{display:none;width:0;height:0;overflow:hidden}",""])},810:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(811),i=n.n(r).a,o=n(17),a=n.n(o),l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default={name:"MDEditor",components:{ImgUpload:a.a,MarkdownPro:i},props:{value:{default:""},height:{default:380},toolbars:{type:Object,default:function(){return{strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!1,h5:!1,h6:!1,hr:!0,quote:!0,ul:!0,ol:!0,code:!0,link:!0,image:!1,uploadImage:!1,table:!0,checked:!0,notChecked:!0,split:!0,preview:!0,fullscreen:!1,theme:!1,exportmd:!1,importmd:!1,save:!1,clear:!1,custom_image:!0,custom_uploadImage:!0,custom_uploadFile:!0,custom_fullscreen:!0}}}},data:function(){return{content:"",transfer:!1,html2md:!1,htmlValue:"",uploadIng:0,uploadFormat:["jpg","jpeg","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"],actionUrl:$A.apiUrl("system/fileupload"),params:{token:$A.getToken()},maxSize:204800}},mounted:function(){this.content=this.value},activated:function(){this.content=this.value},watch:{value:function(e){null==e&&(e=""),this.content=e},content:function(e){this.$emit("input",e)}},methods:{editorImage:function(e){for(var t=0;tli[data-v-1f0d3028]{position:relative;cursor:pointer;margin:0;line-height:normal;min-height:auto}.markdown .markdown-toolbars>li[data-v-1f0d3028]:after{display:block;content:attr(name);position:absolute;z-index:999999999999;top:32px;left:20px;background:#000;color:#fff;white-space:nowrap;font-size:12px;line-height:28px;padding:0 6px;-webkit-transition:all .3s .1s;transition:all .3s .1s;-webkit-transform:scale(0);transform:scale(0);opacity:0;-webkit-transform-origin:top;transform-origin:top;border-radius:2px}.markdown .markdown-toolbars>li[data-v-1f0d3028]:hover:after{-webkit-transform:scale(1);transform:scale(1);opacity:1}.markdown .markdown-toolbars>li[data-v-1f0d3028]:last-child:after{right:20%;left:auto}.markdown .markdown-toolbars>li .title[data-v-1f0d3028]{font-size:16px!important}.markdown .markdown-toolbars>li .icon-svg[data-v-1f0d3028]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.markdown .markdown-toolbars .empty[data-v-1f0d3028]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:12px}.markdown .markdown-toolbars span[data-v-1f0d3028]{font-size:18px;color:#999;cursor:pointer;display:block;width:30px;height:30px;border-radius:3px;line-height:30px;text-align:center}.markdown .markdown-toolbars span[data-v-1f0d3028]:hover{background:#f7f7f7;color:#1890ff}.markdown .markdown-toolbars .title[data-v-1f0d3028]{padding-left:4px;padding-right:10px}.markdown .markdown-toolbars li:last-child span[data-v-1f0d3028]{font-size:20px!important;margin-right:4px}.markdown .markdown-toolbars .export-file[data-v-1f0d3028],.markdown .markdown-toolbars .shift-theme[data-v-1f0d3028]{height:46px;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.markdown .markdown-toolbars .export-file span[data-v-1f0d3028],.markdown .markdown-toolbars .shift-theme span[data-v-1f0d3028]{padding:0 8px;-webkit-transition:all .3s;transition:all .3s;font-size:18px;display:inline-block;line-height:32px}.markdown .markdown-toolbars .export-file span[data-v-1f0d3028]:hover,.markdown .markdown-toolbars .shift-theme span[data-v-1f0d3028]:hover{color:#0084ff;background:#f7f7f7;border-radius:3px}.markdown .markdown-toolbars .export-file ul[data-v-1f0d3028],.markdown .markdown-toolbars .shift-theme ul[data-v-1f0d3028]{-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all .3s;transition:all .3s;left:-50%;top:40px;width:160px;-webkit-transform-origin:top center;transform-origin:top center;list-style:none;margin:0;padding:6px 0;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #d9d9d9;background:#fff;border-radius:4px;position:absolute;z-index:9999999;-webkit-box-shadow:0 2px 8px 0 rgba(0,0,0,.1);box-shadow:0 2px 8px 0 rgba(0,0,0,.1)}.markdown .markdown-toolbars .export-file ul.active[data-v-1f0d3028],.markdown .markdown-toolbars .shift-theme ul.active[data-v-1f0d3028]{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}.markdown .markdown-toolbars .export-file ul li[data-v-1f0d3028],.markdown .markdown-toolbars .shift-theme ul li[data-v-1f0d3028]{line-height:30px;padding:0 12px;padding-left:12px;font-size:13px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#262626}.markdown .markdown-toolbars .export-file ul li .iconfont[data-v-1f0d3028],.markdown .markdown-toolbars .shift-theme ul li .iconfont[data-v-1f0d3028]{font-size:14px;display:block;height:30px;width:30px;line-height:30px;overflow:hidden}.markdown .markdown-toolbars .export-file ul li .iconfont[data-v-1f0d3028]:hover,.markdown .markdown-toolbars .shift-theme ul li .iconfont[data-v-1f0d3028]:hover{color:#262626}.markdown .markdown-toolbars .export-file ul li i[data-v-1f0d3028],.markdown .markdown-toolbars .shift-theme ul li i[data-v-1f0d3028]{font-size:13px;display:block;font-style:normal;-webkit-box-flex:1;-ms-flex:1;flex:1;white-space:normal}.markdown .markdown-toolbars .export-file ul li[data-v-1f0d3028]:last-child,.markdown .markdown-toolbars .shift-theme ul li[data-v-1f0d3028]:last-child{border-bottom:0}.markdown .markdown-toolbars .export-file ul li:last-child .iconfont[data-v-1f0d3028],.markdown .markdown-toolbars .shift-theme ul li:last-child .iconfont[data-v-1f0d3028]{font-size:14px!important;margin:0!important}.markdown .markdown-toolbars .export-file ul li[data-v-1f0d3028]:hover,.markdown .markdown-toolbars .shift-theme ul li[data-v-1f0d3028]:hover{background:#f7f7f7}.markdown .markdown-toolbars .export-file ul li.disabled[data-v-1f0d3028],.markdown .markdown-toolbars .shift-theme ul li.disabled[data-v-1f0d3028]{cursor:not-allowed;color:#bbbec4}.markdown .markdown-toolbars .export-file ul li.disabled[data-v-1f0d3028]:hover,.markdown .markdown-toolbars .shift-theme ul li.disabled[data-v-1f0d3028]:hover{background:transparent}.markdown .markdown-toolbars .import-file[data-v-1f0d3028]{position:relative}.markdown .markdown-toolbars .import-file input[data-v-1f0d3028]{position:absolute;z-index:9999;left:0;top:0;display:block;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}.markdown .markdown-toolbars .import-file:hover span[data-v-1f0d3028]{background:#f7f7f7;color:#1890ff}.markdown .markdown-toolbars .import-file[data-v-1f0d3028]:hover:after{-webkit-transform:scale(1);transform:scale(1);opacity:1}.markdown .close-preview[data-v-1f0d3028]{position:absolute;z-index:999;right:0;top:0;height:40px;width:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;color:#262626}.markdown .close-preview span[data-v-1f0d3028]{font-size:22px}.markdown .close-preview span[data-v-1f0d3028]:hover{color:#262626}.markdown .markdown-content[data-v-1f0d3028]{width:100%;padding-bottom:0}.markdown .markdown-content .markdown-editor[data-v-1f0d3028],.markdown .markdown-content[data-v-1f0d3028]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;position:relative;overflow:hidden}.markdown .markdown-content .markdown-editor[data-v-1f0d3028]{height:100%;margin:0!important;overflow-y:scroll;background:#2d2d2d}.markdown .markdown-content .markdown-editor[data-v-1f0d3028]::-webkit-scrollbar{display:none}.markdown .markdown-content .markdown-editor .index[data-v-1f0d3028]{background:#272727;min-height:100%;width:36px;line-height:22px;padding:12px 0}.markdown .markdown-content .markdown-editor .index li[data-v-1f0d3028]{background:#272727;color:#ccc;font-size:14px;text-align:center;font-family:Consolas}.markdown .markdown-content .markdown-editor textarea[data-v-1f0d3028]{width:100%;min-height:100%;outline:none;border:0;background:#2d2d2d;line-height:22px;caret-color:#ccc;color:#669acc;font-size:14px;font-family:Consolas;resize:none;padding:12px 8px;overflow:hidden;white-space:nowrap;overflow-x:auto}.markdown .markdown-content .markdown-editor textarea[data-v-1f0d3028]::-moz-selection{background:#999;color:#0084ff}.markdown .markdown-content .markdown-editor textarea[data-v-1f0d3028]::selection{background:#999;color:#0084ff}.markdown .markdown-content .codemirror[data-v-1f0d3028]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:0;height:100%;overflow:auto}.markdown .markdown-content .markdown-preview[data-v-1f0d3028]{-webkit-box-flex:1;-ms-flex:1;flex:1;width:0;height:100%}.insert-img-model[data-v-1f0d3028]{position:fixed;left:0;top:0;right:0;bottom:0;z-index:99999;background:rgba(0,0,0,.3);padding-top:12%;-webkit-transition:all .3s;transition:all .3s;opacity:0;display:none}.insert-img-model .model-container[data-v-1f0d3028]{background:#fff;width:480px;margin:0 auto;border-radius:4px;-webkit-transition:all .3s;transition:all .3s;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:center;transform-origin:center}.insert-img-model .model-container .model-head[data-v-1f0d3028]{line-height:32px;padding:0 12px;background:#f7f7f7;border-radius:4px 4px 0 0;-webkit-box-shadow:0 1px 2px #d9d9d9;box-shadow:0 1px 2px #d9d9d9;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.insert-img-model .model-container .model-head span[data-v-1f0d3028]:nth-of-type(2){font-size:14px;padding-left:12px;cursor:pointer}.insert-img-model .model-container .model-head span[data-v-1f0d3028]:nth-of-type(2):hover{color:#ed3f14}.insert-img-model .model-container .model-content[data-v-1f0d3028]{padding:20px 12px;padding-top:0;min-height:180px}.insert-img-model .model-container .model-content .insert-url[data-v-1f0d3028]{padding:42px 0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.insert-img-model .model-container .model-content .insert-url input[data-v-1f0d3028]{display:block;border:1px solid #ccc;font-size:14px;padding:4px 8px;line-height:24px;color:#333;background:#fff;border-radius:4px;-webkit-writing-mode:horizontal-tb;-ms-writing-mode:lr-tb;writing-mode:horizontal-tb;text-rendering:auto;-webkit-transition:-webkit-box-shadow 2s;transition:-webkit-box-shadow 2s;transition:box-shadow 2s;transition:box-shadow 2s,-webkit-box-shadow 2s;-webkit-box-flex:1;-ms-flex:1;flex:1}.insert-img-model .model-container .model-content .insert-url input[data-v-1f0d3028]:focus{border-color:#1890ff}.insert-img-model .model-container .model-content .insert-url input[data-v-1f0d3028]::-webkit-input-placeholder{color:#c1c1c1}.insert-img-model .model-container .model-content .insert-url input[data-v-1f0d3028]::-moz-placeholder{color:#c1c1c1}.insert-img-model .model-container .model-content .insert-url input[data-v-1f0d3028]::-ms-input-placeholder{color:#c1c1c1}.insert-img-model .model-container .model-content .insert-url input[data-v-1f0d3028]::placeholder{color:#c1c1c1}.insert-img-model .model-container .model-content .insert-url a[data-v-1f0d3028]{display:block;background:#1890ff;color:#fff;line-height:32px;height:32px;font-size:13px;padding:0 12px;border-radius:3px;margin-left:20px;border:1px solid #d9d9d9;-webkit-transition:all .3s;transition:all .3s}.insert-img-model .model-container .model-content .insert-url a[data-v-1f0d3028]:hover{background:#0169af}.insert-img-model .model-container .model-content .insert-local[data-v-1f0d3028]{height:120px;border:1px dashed #d9d9d9;border-radius:4px;-webkit-transition:all .3s;transition:all .3s;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;cursor:pointer}.insert-img-model .model-container .model-content .insert-local span[data-v-1f0d3028]{font-size:40px;color:#d9d9d9;line-height:50px;-webkit-transition:all .3s;transition:all .3s}.insert-img-model .model-container .model-content .insert-local p[data-v-1f0d3028]{font-size:14px;color:#262626;-webkit-transition:all .3s;transition:all .3s}.insert-img-model .model-container .model-content .insert-local[data-v-1f0d3028]:hover{border-color:#1890ff}.insert-img-model .model-container .model-content .insert-local:hover p[data-v-1f0d3028],.insert-img-model .model-container .model-content .insert-local:hover span[data-v-1f0d3028]{color:#1890ff}.insert-img-model .model-container .model-content .insert-local input[data-v-1f0d3028]{display:block;position:absolute;width:100%;height:100%;opacity:0}.insert-img-model .model-container .model-foot[data-v-1f0d3028]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:10px 12px;display:none}.insert-img-model .model-container .model-foot a[data-v-1f0d3028]{display:block;background:#f7f7f7;color:#262626;line-height:26px;height:26px;font-size:13px;padding:0 12px;border-radius:3px;margin-left:12px;border:1px solid #d9d9d9;-webkit-transition:all .3s;transition:all .3s}.insert-img-model .model-container .model-foot a[data-v-1f0d3028]:hover{background:#d9d9d9}.insert-img-model .model-container .model-foot a.ok[data-v-1f0d3028]{background:#1890ff;color:#fff;border-color:#1890ff}.insert-img-model .model-container .model-foot a.ok[data-v-1f0d3028]:hover{background:#0169af}.insert-img-model.active[data-v-1f0d3028]{opacity:1;display:block}.insert-img-model.active .model-container[data-v-1f0d3028]{-webkit-transform:scale(1);transform:scale(1)}ul.shift[data-v-1f0d3028]{padding:6px 12px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}ul.shift span[data-v-1f0d3028]{font-size:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ul.shift span.iconfont[data-v-1f0d3028]{font-size:14px}ul.shift label[data-v-1f0d3028]{font-size:12px;padding-right:10px;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ul.shift input[type=radio][data-v-1f0d3028],ul.shift label[data-v-1f0d3028]{-webkit-transition:all .6s ease;transition:all .6s ease;-webkit-box-sizing:border-box;box-sizing:border-box}ul.shift input[type=radio]+label[data-v-1f0d3028]:before{content:"\\A0";display:inline-block;vertical-align:middle;margin-right:4px;width:8px;height:8px;border-radius:50%;border:1px solid #292d35;padding:2px}ul.shift input[type=radio]:checked+label[data-v-1f0d3028]:before{background-color:#292d35;background-clip:content-box;padding:2px}ul.shift input[type=radio][data-v-1f0d3028]{position:absolute;clip:rect(0,0,0,0)}ul.shift input[type=radio]:checked+label[data-v-1f0d3028]{color:#292d35}[data-v-1f0d3028] .markdown-preview{-webkit-box-flex:1;-ms-flex:1;flex:1;overflow:hidden;overflow-y:scroll;background:#fff;padding:20px 12px!important;font-family:Tahoma For Number,Chinese Quote,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif}[data-v-1f0d3028] .markdown-preview *{margin:0;padding:0;-webkit-box-sizing:border-box;box-sizing:border-box}[data-v-1f0d3028] .markdown-preview>div{padding:10px 12px!important;background:#fff}[data-v-1f0d3028] .markdown-preview::-webkit-scrollbar,[data-v-1f0d3028] .markdown-preview>div::-webkit-scrollbar{display:none}[data-v-1f0d3028] .markdown-preview em{font-style:oblique}[data-v-1f0d3028] .markdown-preview ul{list-style:none;padding:0 20px}[data-v-1f0d3028] .markdown-preview ul li{position:relative}[data-v-1f0d3028] .markdown-preview ul li:after{display:block;content:"";width:8px;height:8px;border-radius:50%;position:absolute;z-index:99;top:12px;left:-16px;background:#262626}[data-v-1f0d3028] .markdown-preview ol,[data-v-1f0d3028] .markdown-preview ul{margin:10px 0}[data-v-1f0d3028] .markdown-preview ol li,[data-v-1f0d3028] .markdown-preview ul li{font-size:14px!important;color:#262626;line-height:22px!important;padding:4px 0;padding-left:6px;min-height:28px}[data-v-1f0d3028] .markdown-preview ol li input[type=checkbox],[data-v-1f0d3028] .markdown-preview ul li input[type=checkbox]{position:relative;cursor:pointer;overflow:visible;position:absolute;left:-14px;top:5px}[data-v-1f0d3028] .markdown-preview ol li input[type=checkbox]:before,[data-v-1f0d3028] .markdown-preview ul li input[type=checkbox]:before{font-family:iconfont!important;color:#999;display:block;width:18px;height:18px;position:absolute;content:"\\E684";top:0;left:-4px;z-index:999999;background-position:50%;background:#fff;font-size:18px;text-align:center;line-height:18px}[data-v-1f0d3028] .markdown-preview ol li input[type=checkbox]:checked:before,[data-v-1f0d3028] .markdown-preview ul li input[type=checkbox]:checked:before{content:"\\E683"}[data-v-1f0d3028] .markdown-preview ol{list-style-type:decimal;padding-left:20px}[data-v-1f0d3028] .markdown-preview ol li{list-style:decimal}[data-v-1f0d3028] .markdown-preview hr{color:#d9d9d9;height:1px;border:0;border-top:1px solid #d9d9d9;margin:20px 0;padding:0}[data-v-1f0d3028] .markdown-preview del,[data-v-1f0d3028] .markdown-preview em,[data-v-1f0d3028] .markdown-preview strong{display:inline-block}[data-v-1f0d3028] .markdown-preview blockquote{position:relative;background:#f7f7f7;padding:6px 12px;border-left:5px solid #d9d9d9;border-radius:2px;margin:8px 0}[data-v-1f0d3028] .markdown-preview h1,[data-v-1f0d3028] .markdown-preview h2,[data-v-1f0d3028] .markdown-preview h3,[data-v-1f0d3028] .markdown-preview h4,[data-v-1f0d3028] .markdown-preview h5,[data-v-1f0d3028] .markdown-preview h6{color:#262626}[data-v-1f0d3028] .markdown-preview h1{font-size:28px;border-bottom:1px solid #d9d9d9}[data-v-1f0d3028] .markdown-preview h2{font-size:24px}[data-v-1f0d3028] .markdown-preview h3{font-size:18px}[data-v-1f0d3028] .markdown-preview h4{font-size:16px}[data-v-1f0d3028] .markdown-preview h5{font-size:14px}[data-v-1f0d3028] .markdown-preview h6{font-size:12px}[data-v-1f0d3028] .markdown-preview h1,[data-v-1f0d3028] .markdown-preview h2,[data-v-1f0d3028] .markdown-preview h3,[data-v-1f0d3028] .markdown-preview h4,[data-v-1f0d3028] .markdown-preview h5,[data-v-1f0d3028] .markdown-preview h6{padding:8px 0;font-weight:600}[data-v-1f0d3028] .markdown-preview p{font-size:14px!important;color:#262626;margin-bottom:8px;line-height:22px}[data-v-1f0d3028] .markdown-preview img{display:block;max-width:100%;margin:20px 0;cursor:pointer}[data-v-1f0d3028] .markdown-preview table{width:100%;border:1px solid #d9d9d9;border-bottom:0;background:#fff;border-spacing:0;border-collapse:collapse;margin:20px 0}[data-v-1f0d3028] .markdown-preview table tr{-webkit-transition:background .1s;transition:background .1s}[data-v-1f0d3028] .markdown-preview table tr td,[data-v-1f0d3028] .markdown-preview table tr th{padding:4px 8px;font-size:14px;line-height:24px;color:#333;border-bottom:1px solid #d9d9d9;cursor:pointer}[data-v-1f0d3028] .markdown-preview table th{background:#f8f8f9;text-align:left;font-weight:700}[data-v-1f0d3028] .markdown-preview table tr:nth-of-type(2n) td{background:#fafafa}[data-v-1f0d3028] .markdown-preview table tr:hover td{background:#f5f5f5}[data-v-1f0d3028] .markdown-preview table td,[data-v-1f0d3028] .markdown-preview table th{border:1px solid #d9d9d9;word-break:break-all}[data-v-1f0d3028] .markdown-preview input[type=checkbox]{display:inline-block;border-radius:0;margin-right:8px}[data-v-1f0d3028] .markdown-preview a{text-decoration:none;color:#1890ff;font-size:14px;line-height:22px}[data-v-1f0d3028] .markdown-preview .code-block{position:relative;padding:0!important}[data-v-1f0d3028] .markdown-preview .code-block .copy-code{position:absolute;z-index:999;top:5px;right:10px;font-size:12px;color:#d9d9d9;line-height:20px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:all .3s;transition:all .3s;opacity:0}[data-v-1f0d3028] .markdown-preview .code-block .copy-code:hover{color:#1890ff}[data-v-1f0d3028] .markdown-preview .code-block:hover .copy-code{opacity:1}.preview-img[data-v-1f0d3028]{position:fixed;width:100vw;height:100vh;z-index:99999999;left:0;top:0;background:rgba(0,0,0,.5);display:none;opacity:0;-webkit-transition:opacity .3s .1s;transition:opacity .3s .1s;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.preview-img .close[data-v-1f0d3028]{position:absolute;right:0;top:0;color:#fff;padding:10px;font-size:20px;cursor:pointer}.preview-img img[data-v-1f0d3028]{display:block}.preview-img img.vertical[data-v-1f0d3028]{height:80%;width:auto}.preview-img img.horizontal[data-v-1f0d3028]{width:80%;height:auto}.preview-img.active[data-v-1f0d3028]{display:-webkit-box;display:-ms-flexbox;display:flex;opacity:1}',""])},814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=navigator.userAgent,o=navigator.platform,a=/gecko\/\d/i.test(i),l=/MSIE \d/.test(i),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),c=/Edge\/(\d+)/.exec(i),d=l||s||c,u=d&&(l?document.documentMode||6:+(c||s)[1]),f=!c&&/WebKit\//.test(i),h=f&&/Qt\/\d+\.\d+/.test(i),p=!c&&/Chrome\//.test(i),m=/Opera\//.test(i),g=/Apple Computer/.test(navigator.vendor),v=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),b=/PhantomJS/.test(i),y=!c&&/AppleWebKit/.test(i)&&/Mobile\/\w+/.test(i),w=/Android/.test(i),k=y||w||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),x=y||/Mac/.test(o),C=/\bCrOS\b/.test(i),S=/win/i.test(o),M=m&&i.match(/Version\/(\d*\.\d*)/);M&&(M=Number(M[1])),M&&M>=15&&(m=!1,f=!0);var E=x&&(h||m&&(null==M||M<12.11)),T=a||d&&u>=9;function A(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var N,D=function(e,t){var n=e.className,r=A(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function _(e,t){return L(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}y?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:d&&(P=function(e){try{e.select()}catch(e){}});var U=function(){this.id=null,this.f=null,this.time=0,this.handler=H(this.onTimeout,this)};function G(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var Y=[""];function Q(e){for(;Y.length<=e;)Y.push(J(Y)+" ");return Y[e]}function J(e){return e[e.length-1]}function ee(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var le=/[\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 se(e){return e.charCodeAt(0)>=768&&le.test(e)}function ce(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ue=null;function fe(e,t,n){var r;ue=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ue=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ue=i)}return null!=r?r:ue}var he=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var c="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var d=e.length,u=[],f=0;f-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function ye(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Ce(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){be(this,e,t)}}function Se(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Me(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ee(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Te(e){Se(e),Me(e)}function Ae(e){return e.target||e.srcElement}function Ne(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),x&&e.ctrlKey&&1==t&&(t=3),t}var De,Le,_e=function(){if(d&&u<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function Oe(e){if(null==De){var t=O("span","​");_(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(De=t.offsetWidth<=1&&t.offsetHeight>2&&!(d&&u<8))}var n=De?O("span","​"):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ie(e){if(null!=Le)return Le;var t=_(e,document.createTextNode("AخA")),n=N(t,0,1).getBoundingClientRect(),r=N(t,1,2).getBoundingClientRect();return L(e),!(!n||n.left==n.right)&&(Le=r.right-n.right<3)}var ze=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re=function(){var e=O("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Be=null;var Pe={},He={};function je(e){if("string"==typeof e&&He.hasOwnProperty(e))e=He[e];else if(e&&"string"==typeof e.name&&He.hasOwnProperty(e.name)){var t=He[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return je("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return je("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function We(e,t){t=je(t);var n=Pe[t.name];if(!n)return We(e,"text/plain");var r=n(e,t);if(Ue.hasOwnProperty(t.name)){var i=Ue[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ue={};function Ge(e,t){j(t,Ue.hasOwnProperty(e)?Ue[e]:Ue[e]={})}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function qe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function $e(e,t,n){return!e.startState||e.startState(t,n)}var Ve=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ze(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?rt(n,Ze(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?rt(e.line,t):n<0?rt(e.line,0):e}(t,Ze(e,t.line).text.length)}function ut(e,t){for(var n=[],r=0;r=this.string.length},Ve.prototype.sol=function(){return this.pos==this.lineStart},Ve.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ve.prototype.next=function(){if(this.post},Ve.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ve.prototype.skipToEnd=function(){this.pos=this.string.length},Ve.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ve.prototype.backUp=function(e){this.pos-=e},Ve.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ve.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ve.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ve.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ve.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ft=function(e,t){this.state=e,this.lookAhead=t},ht=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function pt(e,t,n,r){var i=[e.state.modeGen],o={};Ct(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,l=function(r){n.baseTokens=i;var l=e.state.overlays[r],s=1,c=0;n.state=!0,Ct(e,t.text,l.mode,n,function(e,t){for(var n=s;ce&&i.splice(s,1,e,i[s+1],r),s+=2,c=Math.min(e,r)}if(t)if(l.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&Ke(e.doc.mode,r.state),o=pt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function gt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ht(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=Ze(o,l-1),c=s.stateAfter;if(c&&(!n||l+(c instanceof ft?c.lookAhead:0)<=o.modeFrontier))return l;var d=W(s.text,null,e.options.tabSize);(null==i||r>d)&&(i=l-1,r=d)}return i}(e,t,n),a=o>r.first&&Ze(r,o-1).stateAfter,l=a?ht.fromSaved(r,a,o):new ht(r,$e(r.mode),o);return r.iter(o,t,function(n){vt(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ht.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}},ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ht.fromSaved=function(e,t,n){return t instanceof ft?new ht(e,Ke(e.mode,t.state),n,t.lookAhead):new ht(e,Ke(e.mode,t),n)},ht.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ft(t,this.maxLookAhead):t};var wt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function kt(e,t,n,r){var i,o,a=e.doc,l=a.mode,s=Ze(a,(t=dt(a,t)).line),c=gt(e,t.line,n),d=new Ve(s.text,e.options.tabSize,c);for(r&&(o=[]);(r||d.pose.options.maxHighlightLength?(l=!1,a&&vt(e,t,r,u.pos),u.pos=t.length,s=null):s=xt(yt(n,u,r.state,f),o),f){var h=f[0].name;h&&(s="m-"+(s?h+" "+s:h))}if(!l||d!=s){for(;c=t:o.to>t);(r||(r=[])).push(new Et(a,o.from,l?null:o.to))}}return r}(n,i,a),s=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&l)for(var y=0;yt)&&(!n||zt(n,o.marker)<0)&&(n=o.marker)}return n}function Ht(e,t,n,r,i){var o=Ze(e,t),a=Mt&&o.markedSpans;if(a)for(var l=0;l=0&&u<=0||d<=0&&u>=0)&&(d<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?it(c.to,n)>=0:it(c.to,n)>0)||d>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?it(c.from,r)<=0:it(c.from,r)<0)))return!0}}}function jt(e){for(var t;t=Rt(e);)e=t.find(-1,!0).line;return e}function Wt(e,t){var n=Ze(e,t),r=jt(n);return n==r?t:Je(r)}function Ut(e,t){if(t>e.lastLine())return t;var n,r=Ze(e,t);if(!Gt(e,r))return t;for(;n=Bt(r);)r=n.find(1,!0).line;return Je(r)+1}function Gt(e,t){var n=Mt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Zt=function(e,t,n){this.text=e,_t(this,t),this.height=n?n(this):1};function Xt(e){e.parent=null,Lt(e)}Zt.prototype.lineNo=function(){return Je(this)},Ce(Zt);var Yt={},Qt={};function Jt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Qt:Yt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function en(e,t){var n=I("span",null,null,f?"padding-right: .1px":null),r={pre:I("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=nn,Ie(e.display.measure)&&(a=pe(o,e.doc.direction))&&(r.addToken=rn(r.addToken,a)),r.map=[],an(o,r,mt(e,o,t!=e.display.externalMeasured&&Je(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=B(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=B(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Oe(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(f){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=B(r.pre.className,r.textClass||"")),r}function tn(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function nn(e,t,n,r,i,o,a){if(t){var l,s=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;ic&&u.from<=c);f++);if(u.to>=d)return e(n,r,i,o,a,l,s);e(n,r.slice(0,u.to-c),i,o,null,l,s),o=null,r=r.slice(u.to-c),c=u.to}}}function on(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function an(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,l,s,c,d,u,f,h=i.length,p=0,m=1,g="",v=0;;){if(v==p){s=c=d=l="",f=null,u=null,v=1/0;for(var b=[],y=void 0,w=0;wp||x.collapsed&&k.to==p&&k.from==p)){if(null!=k.to&&k.to!=p&&v>k.to&&(v=k.to,c=""),x.className&&(s+=" "+x.className),x.css&&(l=(l?l+";":"")+x.css),x.startStyle&&k.from==p&&(d+=" "+x.startStyle),x.endStyle&&k.to==v&&(y||(y=[])).push(x.endStyle,k.to),x.title&&((f||(f={})).title=x.title),x.attributes)for(var C in x.attributes)(f||(f={}))[C]=x.attributes[C];x.collapsed&&(!u||zt(u.marker,x)<0)&&(u=k)}else k.from>p&&v>k.from&&(v=k.from)}if(y)for(var S=0;S=h)break;for(var E=Math.min(h,v);;){if(g){var T=p+g.length;if(!u){var A=T>E?g.slice(0,E-p):g;t.addToken(t,A,a?a+s:s,d,p+A.length==v?c:"",l,f)}if(T>=E){g=g.slice(E-p),p=E;break}p=T,d=""}g=i.slice(o,o=n[m++]),a=Jt(n[m++],t.cm.options)}}else for(var N=1;Nn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function On(e,t,n,r){return Fn(e,zn(e,t),n,r)}function In(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((s.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Pn(t.map,n,r),a=o.node,l=o.start,s=o.end,c=o.collapse;if(3==a.nodeType){for(var f=0;f<4;f++){for(;l&&se(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+s1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var h;l>0&&(c=r="right"),i=e.options.lineWrapping&&(h=a.getClientRects()).length>1?h["right"==r?h.length-1:0]:a.getBoundingClientRect()}if(d&&u<9&&!l&&(!i||!i.left&&!i.right)){var p=a.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+or(e.display),top:p.top,bottom:p.bottom}:Bn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,b=t.view.measure.heights,y=0;yt)&&(i=(o=s-l)-1,t>=s&&(a="right")),null!=i){if(r=e[c+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==s-l)for(;c=0&&(n=e[i]).left==n.right;i--);return n}function jn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!l)return a("before"==c?s-1:s,"before"==c);function d(e,t,n){var r=1==l[t].level;return a(n?e-1:e,r!=n)}var u=fe(l,s,c),f=ue,h=d(s,u,"before"==c);return null!=f&&(h.other=d(s,f,"before"!=c)),h}function Yn(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=or(e.display)*t.ch);var r=Ze(e.doc,t.line),i=qt(r)+En(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Qn(e,t,n,r,i){var o=rt(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Jn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Qn(r.first,0,null,-1,-1);var i=et(r,n),o=r.first+r.size-1;if(i>o)return Qn(r.first+r.size-1,Ze(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Ze(r,i);;){var l=rr(e,a,i,t,n),s=Pt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var c=s.find(1);if(c.line==i)return c;a=Ze(r,i=c.line)}}function er(e,t,n,r){r-=qn(t);var i=t.text.length,o=de(function(t){return Fn(e,n,t-1).bottom<=r},i,0);return{begin:o,end:i=de(function(t){return Fn(e,n,t).top>r},o,i)}}function tr(e,t,n,r){return n||(n=zn(e,t)),er(e,t,n,$n(e,t,Fn(e,n,r),"line").top)}function nr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function rr(e,t,n,r,i){i-=qt(t);var o=zn(e,t),a=qn(t),l=0,s=t.text.length,c=!0,d=pe(t,e.doc.direction);if(d){var u=(e.options.lineWrapping?function(e,t,n,r,i,o,a){var l=er(e,t,r,a),s=l.begin,c=l.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var d=null,u=null,f=0;f=c||h.to<=s)){var p=1!=h.level,m=Fn(e,r,p?Math.min(c,h.to)-1:Math.max(s,h.from)).right,g=mg)&&(d=h,u=g)}}d||(d=i[i.length-1]);d.fromc&&(d={from:d.from,to:c,level:d.level});return d}:function(e,t,n,r,i,o,a){var l=de(function(l){var s=i[l],c=1!=s.level;return nr(Xn(e,rt(n,c?s.to:s.from,c?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var c=1!=s.level,d=Xn(e,rt(n,c?s.from:s.to,c?"after":"before"),"line",t,r);nr(d,o,a,!0)&&d.top>a&&(s=i[l-1])}return s})(e,t,n,o,d,r,i);l=(c=1!=u.level)?u.from:u.to-1,s=c?u.to:u.from-1}var f,h,p=null,m=null,g=de(function(t){var n=Fn(e,o,t);return n.top+=a,n.bottom+=a,!!nr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,m=n),!0)},l,s),v=!1;if(m){var b=r-m.left=w.bottom?1:0}return Qn(n,g=ce(t.text,g,1),h,v,r-f)}function ir(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(O("br"));Rn.appendChild(document.createTextNode("x"))}_(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),L(e.measure),n||1}function or(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t],"CodeMirror-line-like");_(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ar(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+i,r[l]=o.clientWidth}return{fixedPos:lr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function lr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=ir(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/or(e.display)-3);return function(i){if(Gt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Mt&&Wt(e.doc,t)i.viewFrom?pr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)pr(e);else if(t<=i.viewFrom){var o=mr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):pr(e)}else if(n>=i.viewTo){var a=mr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):pr(e)}else{var l=mr(e,t,t,-1),s=mr(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat(sn(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):pr(e)}var c=i.externalMeasured;c&&(n=i.lineN&&t=r.viewTo)){var o=r.view[ur(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==G(a,n)&&a.push(n)}}}function pr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function mr(e,t,n,r){var i,o=ur(e,t),a=e.display.view;if(!Mt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,s=0;s0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;Wt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function gr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().linet||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,function(e,t,i,u){var g="ltr"==i,v=h(e,g?"left":"right"),b=h(t-1,g?"right":"left"),y=null==n&&0==e,w=null==r&&t==f,k=0==u,x=!m||u==m.length-1;if(b.top-v.top<=3){var C=(c?w:y)&&x,S=(c?y:w)&&k?l:(g?v:b).left,M=C?s:(g?b:v).right;d(S,v.top,M-S,v.bottom)}else{var E,T,A,N;g?(E=c&&y&&k?l:v.left,T=c?s:p(e,i,"before"),A=c?l:p(t,i,"after"),N=c&&w&&x?s:b.right):(E=c?p(e,i,"before"):l,T=!c&&y&&k?s:v.right,A=!c&&w&&x?l:b.left,N=c?p(t,i,"after"):s),d(E,v.top,T-E,v.bottom),v.bottom0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Cr(e){e.state.focused||(e.display.input.focus(),Mr(e))}function Sr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Er(e))},100)}function Mr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),f&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),xr(e))}function Er(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,D(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Tr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||f<-.005)&&(Qe(i.line,a),Ar(i.line),i.rest))for(var h=0;he.display.sizerWidth){var p=Math.ceil(l/or(e.display));p>e.display.maxLineLength&&(e.display.maxLineLength=p,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Ar(e){if(e.widgets)for(var t=0;t=a&&(o=et(t,qt(Ze(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function Dr(e,t){var n=e.display,r=ir(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Ln(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Tn(n),s=t.topl-r;if(t.topi+o){var d=Math.min(t.top,(c?l:t.bottom)-o);d!=i&&(a.scrollTop=d)}var u=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,f=Dn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),h=t.right-t.left>f;return h&&(t.right=t.left+f),t.left<10?a.scrollLeft=0:t.leftf+u-3&&(a.scrollLeft=t.right+(h?0:10)-f),a}function Lr(e,t){null!=t&&(Ir(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function _r(e){Ir(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Or(e,t,n){null==t&&null==n||Ir(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ir(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,zr(e,Yn(e,t.from),Yn(e,t.to),t.margin))}function zr(e,t,n,r){var i=Dr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Or(e,i.scrollLeft,i.scrollTop)}function Fr(e,t){Math.abs(e.doc.scrollTop-t)<2||(a||ci(e,{top:t}),Rr(e,t,!0),a&&ci(e),ii(e,100))}function Rr(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Br(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,fi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Pr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Tn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Nn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Hr=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ge(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),ge(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Hr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Hr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Hr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Hr.prototype.zeroWidthHack=function(){var e=x&&!v?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new U,this.disableVert=new U},Hr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)})},Hr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var jr=function(){};function Wr(e,t){t||(t=Pr(e));var n=e.display.barWidth,r=e.display.barHeight;Ur(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Tr(e),Ur(e,Pr(e)),n=e.display.barWidth,r=e.display.barHeight}function Ur(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}jr.prototype.update=function(){return{bottom:0,right:0}},jr.prototype.setScrollLeft=function(){},jr.prototype.setScrollTop=function(){},jr.prototype.clear=function(){};var Gr={native:Hr,null:jr};function Kr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Gr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Br(e,t):Fr(e,t)},e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var qr=0;function $r(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:++qr},function(e){cn?cn.ops.push(e):e.ownsGroup=cn={ops:[e],delayedCallbacks:[]}}(e.curOp)}function Vr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ai(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Xr(e){e.updatedDisplay=e.mustUpdate&&li(e.cm,e.update)}function Yr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Tr(t),e.barMeasure=Pr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=On(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Nn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Dn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Qr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!b){var o=O("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-En(e.display))+"px;\n height: "+(t.bottom-t.top+Nn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?rt(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?rt(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=Xn(e,t),s=n&&n!=t?Xn(e,n):l,c=Dr(e,i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r}),d=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=c.scrollTop&&(Fr(e,c.scrollTop),Math.abs(e.doc.scrollTop-d)>1&&(a=!0)),null!=c.scrollLeft&&(Br(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(a=!0)),!a)break}return i}(t,dt(r,e.scrollToPos.from),dt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=gt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Ke(t.mode,r.state):null,s=pt(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var c=o.styleClasses,d=s.classes;d?o.styleClasses=d:c&&(o.styleClasses=null);for(var u=!a||a.length!=o.styles.length||c!=d&&(!c||!d||c.bgClass!=d.bgClass||c.textClass!=d.textClass),f=0;!u&&fn)return ii(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ei(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==gr(e))return!1;hi(e)&&(pr(e),t.dims=ar(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Mt&&(o=Wt(e.doc,o),a=Ut(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=sn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=sn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=qt(Ze(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=gr(e);if(!l&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=F();if(!t||!z(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&z(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return s>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function l(t){var n=t.nextSibling;return f&&x&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var s=r.view,c=r.viewFrom,d=0;d-1&&(h=!1),hn(e,u,c,n)),h&&(L(u.lineNumber),u.lineNumber.appendChild(document.createTextNode(nt(e.options,c)))),a=u.node.nextSibling}else{var p=wn(e,u,c,n);o.insertBefore(p,a)}c+=u.size}for(;a;)a=l(a)}(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=F()&&(e.activeElt.focus(),e.anchorNode&&z(document.body,e.anchorNode)&&z(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ii(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Dn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Tn(e.display)-Ln(e),n.top)}),t.visible=Nr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&li(e,t);r=!1){Tr(e);var i=Pr(e);vr(e),Wr(e,i),ui(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 ci(e,t){var n=new ai(e,t);if(li(e,n)){Tr(e),si(e,n);var r=Pr(e);vr(e),Wr(e,r),ui(e,r),n.finish()}}function di(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function ui(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+Nn(e)+"px"}function fi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=lr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;al.clientWidth,c=l.scrollHeight>l.clientHeight;if(r&&s||i&&c){if(i&&x&&f)e:for(var d=t.target,u=o.view;d!=l;d=d.parentNode)for(var h=0;h=0&&it(e,r.to())<=0)return n}return-1};var Ci=function(e,t){this.anchor=e,this.head=t};function Si(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return it(e.from(),t.from())}),n=G(t,i);for(var o=1;o0:s>=0){var c=st(l.from(),a.from()),d=lt(l.to(),a.to()),u=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new Ci(u?d:c,u?c:d))}}return new xi(t,n)}function Mi(e,t){return new xi([new Ci(e,t||e)],0)}function Ei(e){return e.text?rt(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ti(e,t){if(it(e,t.from)<0)return e;if(it(e,t.to)<=0)return Ei(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ei(t).ch-t.to.ch),rt(n,r)}function Ai(e,t){for(var n=[],r=0;r1&&e.remove(l.line+1,p-1),e.insert(l.line+1,v)}un(e,"change",e,t)}function Ii(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;al-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Pi(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}(i,i.lastOp==r)))a=J(o.changes),0==it(t.from,t.to)&&0==it(t.from,a.to)?a.to=Ei(t):o.changes.push(Bi(e,t));else{var s=J(i.done);for(s&&s.ranges||Wi(e.sel,i.done),o={changes:[Bi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||ye(e,"historyAdded")}function ji(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,J(i.done),t))?i.done[i.done.length-1]=t:Wi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Pi(i.undone)}function Wi(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ui(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Gi(e){if(!e)return null;for(var t,n=0;n-1&&(J(l)[u]=c[u],delete c[u])}}}return r}function $i(e,t,n,r){if(r){var i=e.anchor;if(n){var o=it(t,i)<0;o!=it(n,i)<0?(i=t,t=n):o!=it(t,n)<0&&(t=n)}return new Ci(i,t)}return new Ci(n||t,t)}function Vi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Ji(e,new xi([$i(e.sel.primary(),t,n,i)],0),r)}function Zi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:l.to>t.ch))){if(i&&(ye(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),f=void 0;if((r<0?d:c)&&(u=ao(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(f=it(u,n))&&(r<0?f<0:f>0))return io(e,u,t,r,i)}var h=s.find(r<0?-1:1);return(r<0?c:d)&&(h=ao(e,h,r,h.line==t.line?o:null)),h?io(e,h,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1,a=io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0);return a||(e.cantEdit=!0,rt(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?dt(e,rt(t.line-1)):null:n>0&&t.ch==(r||Ze(e,t.line)).text.length?t.line0)){var d=[s,1],u=it(c.from,l.from),f=it(c.to,l.to);(u<0||!a.inclusiveLeft&&!u)&&d.push({from:c.from,to:l.from}),(f>0||!a.inclusiveRight&&!f)&&d.push({from:l.to,to:c.to}),i.splice.apply(i,d),s+=d.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)uo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else uo(e,t)}}function uo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=it(t.from,t.to)){var n=Ai(e,t);Hi(e,t,n,e.cm?e.cm.curOp.id:NaN),po(e,t,n,Nt(e,t));var r=[];Ii(e,function(e,n){n||-1!=G(r,e.history)||(bo(e.history,t),r.push(e.history)),po(e,t,null,Nt(e,t))})}}function fo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,c=0;c=0;--h){var p=f(h);if(p)return p.v}}}}function ho(e,t){if(0!=t&&(e.first+=t,e.sel=new xi(ee(e.sel.ranges,function(e){return new Ci(rt(e.anchor.line+t,e.anchor.ch),rt(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:rt(o,Ze(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=Ai(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=Je(jt(Ze(r,o.line))),r.iter(s,a.line+1,function(e){if(e==i.maxLine)return l=!0,!0}));r.sel.contains(t.from,t.to)>-1&&ke(e);Oi(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(e){var t=$t(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Ze(e,r).stateAfter;if(i&&(!(i instanceof ft)||r+i.lookAhead1||!(this.children[0]instanceof wo))){var l=[];this.collapse(l),this.children=[new wo(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,l=a;l10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=I("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ht(e,t.line,t,n,o)||t.line!=n.line&&Ht(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");!function(){Mt=!0}()}o.addToHistory&&Hi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,s=t.line,c=e.cm;if(e.iter(s,n.line+1,function(e){c&&o.collapsed&&!c.options.lineWrapping&&jt(e)==c.display.maxLine&&(l=!0),o.collapsed&&s!=t.line&&Qe(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Et(o,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Gt(e,t)&&Qe(t,0)}),o.clearOnEnter&&ge(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(!function(){St=!0}(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++So,o.atomic=!0),c){if(l&&(c.curOp.updateMaxLine=!0),o.collapsed)fr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var d=t.line;d<=n.line;d++)hr(c,d,"text");o.atomic&&no(c.doc),un(c,"markerAdded",c,o)}return o}Mo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&$r(e),xe(this,"clear")){var n=this.find();n&&un(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=d,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&un(e,"markerCleared",e,this,r,i),t&&Vr(e),this.parent&&this.parent.clear()}},Mo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;s--)co(this,r[s]);l?Qi(this,l):this.cm&&_r(this.cm)}),undo:ri(function(){fo(this,"undo")}),redo:ri(function(){fo(this,"redo")}),undoSelection:ri(function(){fo(this,"undo",!0)}),redoSelection:ri(function(){fo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),dt(this,rt(n,t))},indexFromPos:function(e){var t=(e=dt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var c=e.dataTransfer.getData("Text");if(c){var u;if(t.state.draggingText&&!t.state.draggingText.copy&&(u=t.listSelections()),eo(t.doc,Mi(n,n)),u)for(var f=0;f=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");_r(e)})}function Qo(e,t,n){var r=ce(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Jo(e,t,n){var r=Qo(e,t.ch,n);return null==r?null:new rt(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){var o=pe(n,t.doc.direction);if(o){var a,l=i<0?J(o):o[0],s=i<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=zn(t,n);a=i<0?n.text.length-1:0;var d=Fn(t,c,a).top;a=de(function(e){return Fn(t,c,e).top==d},i<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=Qo(n,a,1))}else a=i<0?l.to:l.from;return new rt(r,a,s)}}return new rt(r,i<0?n.text.length:0,i<0?"before":"after")}Uo.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"},Uo.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"},Uo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Uo.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"]},Uo.default=x?Uo.macDefault:Uo.pcDefault;var ta={selectAll:lo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return Yo(e,function(t){if(t.empty()){var n=Ze(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new rt(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),rt(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Ze(e.doc,i.line-1).text;a&&(i=new rt(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),rt(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ci(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return ei(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(it((i=a.ranges[i]).from(),t)<0||t.xRel>0)&&(it(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,a=ti(e,function(t){f&&(i.scroller.draggable=!1),e.state.draggingText=!1,be(i.wrapper.ownerDocument,"mouseup",a),be(i.wrapper.ownerDocument,"mousemove",l),be(i.scroller,"dragstart",s),be(i.scroller,"drop",a),o||(Se(t),r.addNew||Vi(e.doc,n,null,null,r.extend),f||d&&9==u?setTimeout(function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()},20):i.input.focus())}),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},s=function(){return o=!0};f&&(i.scroller.draggable=!0);e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop();ge(i.wrapper.ownerDocument,"mouseup",a),ge(i.wrapper.ownerDocument,"mousemove",l),ge(i.scroller,"dragstart",s),ge(i.scroller,"drop",a),Sr(e),setTimeout(function(){return i.input.focus()},20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;Se(t);var a,l,s=o.sel,c=s.ranges;r.addNew&&!r.extend?(l=o.sel.contains(n),a=l>-1?c[l]:new Ci(n,n)):(a=o.sel.primary(),l=o.sel.primIndex);if("rectangle"==r.unit)r.addNew||(a=new Ci(n,n)),n=dr(e,t,!0,!0),l=-1;else{var d=va(e,n,r.unit);a=r.extend?$i(a,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,Ji(o,Si(e,c.concat([a]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(Ji(o,Si(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Xi(o,l,a,V):(l=0,Ji(o,new xi([a],0),V),s=o.sel);var u=n;function f(t){if(0!=it(u,t))if(u=t,"rectangle"==r.unit){for(var i=[],c=e.options.tabSize,d=W(Ze(o,n.line).text,n.ch,c),f=W(Ze(o,t.line).text,t.ch,c),h=Math.min(d,f),p=Math.max(d,f),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Ze(o,m).text,b=X(v,h,c);h==p?i.push(new Ci(rt(m,b),rt(m,b))):v.length>b&&i.push(new Ci(rt(m,b),rt(m,X(v,p,c))))}i.length||i.push(new Ci(n,n)),Ji(o,Si(e,s.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,w=a,k=va(e,t,r.unit),x=w.anchor;it(k.anchor,x)>0?(y=k.head,x=st(w.from(),k.anchor)):(y=k.anchor,x=lt(w.to(),k.head));var C=s.ranges.slice(0);C[l]=function(e,t){var n=t.anchor,r=t.head,i=Ze(e.doc,n.line);if(0==it(n,r)&&n.sticky==r.sticky)return t;var o=pe(i);if(!o)return t;var a=fe(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,c=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var d=fe(o,r.ch,r.sticky),u=d-a||(r.ch-n.ch)*(1==l.level?-1:1);s=d==c-1||d==c?u<0:u>0}var f=o[c+(s?-1:0)],h=s==(1==f.level),p=h?f.from:f.to,m=h?"after":"before";return n.ch==p&&n.sticky==m?t:new Ci(new rt(n.line,p,m),r)}(e,new Ci(dt(o,x),y)),Ji(o,Si(e,C,l),V)}}var h=i.wrapper.getBoundingClientRect(),p=0;function m(t){e.state.selectingText=!1,p=1/0,t&&(Se(t),i.input.focus()),be(i.wrapper.ownerDocument,"mousemove",g),be(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var g=ti(e,function(t){0!==t.buttons&&Ne(t)?function t(n){var a=++p;var l=dr(e,n,!0,"rectangle"==r.unit);if(!l)return;if(0!=it(l,u)){e.curOp.focus=F(),f(l);var s=Nr(i,o);(l.line>=s.to||l.lineh.bottom?20:0;c&&setTimeout(ti(e,function(){p==a&&(i.scroller.scrollTop+=c,t(n))}),50)}}(t):m(t)}),v=ti(e,m);e.state.selectingText=v,ge(i.wrapper.ownerDocument,"mousemove",g),ge(i.wrapper.ownerDocument,"mouseup",v)}(e,r,t,o)}(t,r,o,e):Ae(e)==n.scroller&&Se(e):2==i?(r&&Vi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(T?t.display.input.onContextMenu(e):Sr(t)))}}function va(e,t,n){if("char"==n)return new Ci(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ci(rt(t.line,0),dt(e.doc,rt(t.line+1,0)));var r=n(e,t);return new Ci(r.from,r.to)}function ba(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Se(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!xe(e,n))return Ee(t);o-=l.top-a.viewOffset;for(var s=0;s=i)return ye(e,n,e,et(e.doc,o),e.display.gutterSpecs[s].className,t),Ee(t)}}function ya(e,t){return ba(e,t,"gutterClick",!0)}function wa(e,t){Mn(e.display,t)||function(e,t){if(!xe(e,"gutterContextMenu"))return!1;return ba(e,t,"gutterContextMenu",!1)}(e,t)||we(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function ka(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==it(t,this.pos)&&n==this.button};var xa={toString:function(){return"CodeMirror.Init"}},Ca={},Sa={};function Ma(e,t,n){if(!t!=!(n&&n!=xa)){var r=e.display.dragFunctions,i=t?ge:be;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Ea(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(D(e.display.wrapper,"CodeMirror-wrap"),Vt(e)),cr(e),fr(e),Un(e),setTimeout(function(){return Wr(e)},100)}function Ta(e,t){var n=this;if(!(this instanceof Ta))return new Ta(e,t);this.options=t=t?j(t):{},j(Ca,t,!1);var r=t.value;"string"==typeof r?r=new Lo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ta.inputStyles[t.inputStyle](this),o=this.display=new function(e,t,n,r){var i=this;this.input=n,i.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=I("div",null,"CodeMirror-code"),i.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=O("div",null,"CodeMirror-cursors"),i.measure=O("div",null,"CodeMirror-measure"),i.lineMeasure=O("div",null,"CodeMirror-measure"),i.lineSpace=I("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=I("div",[i.lineSpace],"CodeMirror-lines");i.mover=O("div",[o],null,"position: relative"),i.sizer=O("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=O("div",null,null,"position: absolute; height: "+K+"px; width: 1px;"),i.gutters=O("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=O("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=O("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),d&&u<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),f||a&&k||(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=pi(r.gutters,r.lineNumbers),mi(i),n.init(i)}(e,r,i,t);for(var l in o.wrapper.CodeMirror=this,ka(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(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 U,keySeq:null,specialChars:null},t.autofocus&&!k&&o.input.focus(),d&&u<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;ge(t.scroller,"mousedown",ti(e,ga)),ge(t.scroller,"dblclick",d&&u<11?ti(e,function(t){if(!we(e,t)){var n=dr(e,t);if(n&&!ya(e,t)&&!Mn(e.display,t)){Se(t);var r=e.findWordAt(n);Vi(e.doc,r.anchor,r.head)}}}):function(t){return we(e,t)||Se(t)});ge(t.scroller,"contextmenu",function(t){return wa(e,t)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ge(t.scroller,"touchstart",function(i){if(!we(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ya(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),ge(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ge(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Mn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,l=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new Ci(l,l):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(l):new Ci(rt(l.line,0),dt(e.doc,rt(l.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Se(n)}i()}),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Fr(e,t.scroller.scrollTop),Br(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))}),ge(t.scroller,"mousewheel",function(t){return ki(e,t)}),ge(t.scroller,"DOMMouseScroll",function(t){return ki(e,t)}),ge(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){we(e,t)||Te(t)},over:function(t){we(e,t)||(!function(e,t){var n=dr(e,t);if(n){var r=document.createDocumentFragment();yr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),_(e.display.dragCursor,r)}}(e,t),Te(t))},start:function(t){return function(e,t){if(d&&(!e.state.draggingText||+new Date-_o<100))Te(t);else if(!we(e,t)&&!Mn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!g)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",m&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),m&&n.parentNode.removeChild(n)}}(e,t)},drop:ti(e,Oo),leave:function(t){we(e,t)||Io(e)}};var a=t.input.getField();ge(a,"keyup",function(t){return ua.call(e,t)}),ge(a,"keydown",ti(e,da)),ge(a,"keypress",ti(e,fa)),ge(a,"focus",function(t){return Mr(e,t)}),ge(a,"blur",function(t){return Er(e,t)})}(this),Ro(),$r(this),this.curOp.forceUpdate=!0,zi(this,r),t.autofocus&&!k||this.hasFocus()?setTimeout(H(Mr,this),20):Er(this),Sa)Sa.hasOwnProperty(l)&&Sa[l](n,t[l],xa);hi(this),t.finishInit&&t.finishInit(this);for(var s=0;s150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?W(Ze(o,t-1).text,null,a):0:"add"==n?c=s+e.options.indentUnit:"subtract"==n?c=s-e.options.indentUnit:"number"==typeof n&&(c=s+n),c=Math.max(0,c);var u="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(c/a);h;--h)f+=a,u+="\t";if(fa,s=ze(t),c=null;if(l&&r.ranges.length>1)if(Da&&Da.text.join("\n")==t){if(r.ranges.length%Da.text.length==0){c=[];for(var d=0;d=0;f--){var h=r.ranges[f],p=h.from(),m=h.to();h.empty()&&(n&&n>0?p=rt(p.line,p.ch-n):e.state.overwrite&&!l?m=rt(m.line,Math.min(Ze(o,m.line).text.length,m.ch+J(s).length)):l&&Da&&Da.lineWise&&Da.text.join("\n")==t&&(p=m=rt(p.line,0)));var g={from:p,to:m,text:c?c[f%c.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};co(e.doc,g),un(e,"inputRead",e,g)}t&&!l&&Ia(e,t),_r(e),e.curOp.updateInput<2&&(e.curOp.updateInput=u),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Oa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||ei(t,function(){return _a(t,n,0,null,"paste")}),!0}function Ia(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l-1){a=Na(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Ze(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Na(e,i.head.line,"smart"));a&&un(e,"electricInput",e,i.head.line)}}}function za(e){for(var t=[],n=[],r=0;r=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=fe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&f>=d.begin)){var h=u?"before":"after";return new rt(n.line,f,h)}}var p=function(e,t,r){for(var o=function(e,t){return t?new rt(n.line,s(e,1),"before"):new rt(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=l?r.begin:s(r.end,-1);if(a.from<=c&&c0?d.end:s(d.begin,-1);return null==g||r>0&&g==t.text.length||!(m=p(r>0?0:i.length-1,r,c(g)))?null:m}(e.cm,l,t,n):Jo(l,t,n))){if(r||!function(){var r=t.line+n;return!(r=e.first+e.size)&&(t=new rt(r,t.ch,t.sticky),l=Ze(e,r))}())return!1;t=ea(i,e.cm,l,t.line,n)}else t=o;return!0}if("char"==r)s();else if("column"==r)s(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,u=e.cm&&e.cm.getHelper(t,"wordChars"),f=!0;!(n<0)||s(!f);f=!1){var h=l.text.charAt(t.ch)||"\n",p=oe(h,u)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||f||p||(p="s"),c&&c!=p){n<0&&(n=1,s(),t.sticky="after");break}if(p&&(c=p),n>0&&!s(!f))break}var m=oo(e,t,o,a,!0);return ot(o,m)&&(m.hitSide=!0),m}function Pa(e,t,n,r){var i,o,a=e.doc,l=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(s-.5*ir(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Jn(e,l,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ha=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new U,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function ja(e,t){var n=In(e,t.line);if(!n||n.hidden)return null;var r=Ze(e.doc,t.line),i=_n(n,r,t.line),o=pe(r,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var l=Pn(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Wa(e,t){return t&&(e.bad=!0),e}function Ua(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Wa(e.clipPos(rt(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||i.line=t.display.viewFrom&&ja(t,r)||{node:s[0].measure.map[2],offset:0},d=i.liner.firstLine()&&(a=rt(a.line-1,Ze(r.doc,a.line-1).length)),l.ch==Ze(r.doc,l.line).text.length&&l.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=ur(r,a.line))?(t=Je(i.view[0].line),n=i.view[0].node):(t=Je(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,c,d=ur(r,l.line);if(d==i.view.length-1?(s=i.viewTo-1,c=i.lineDiv.lastChild):(s=Je(i.view[d+1].line)-1,c=i.view[d+1].node.previousSibling),!n)return!1;for(var u=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function c(){a&&(o+=l,s&&(o+=l),a=s=!1)}function d(e){e&&(c(),o+=e)}function u(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,f=t.getAttribute("cm-marker");if(f){var h=e.findMarks(rt(r,0),rt(i+1,0),function(e){return function(t){return t.id==e}}(+f));return void(h.length&&(o=h[0].find(0))&&d(Xe(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;p&&c();for(var m=0;m1&&f.length>1;)if(J(u)==J(f))u.pop(),f.pop(),s--;else{if(u[0]!=f[0])break;u.shift(),f.shift(),t++}for(var h=0,p=0,m=u[0],g=f[0],v=Math.min(m.length,g.length);ha.ch&&b.charCodeAt(b.length-p-1)==y.charCodeAt(y.length-p-1);)h--,p++;u[u.length-1]=b.slice(0,b.length-p).replace(/^\u200b+/,""),u[0]=u[0].slice(h).replace(/\u200b+$/,"");var k=rt(t,h),x=rt(s,f.length?J(f).length-p:0);return u.length>1||u[0]||it(k,x)?(mo(r.doc,u,k,x,"+input"),!0):void 0},Ha.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ha.prototype.reset=function(){this.forceCompositionEnd()},Ha.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ha.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ha.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ei(this.cm,function(){return fr(e.cm)})},Ha.prototype.setUneditable=function(e){e.contentEditable="false"},Ha.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ti(this.cm,_a)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ha.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ha.prototype.onContextMenu=function(){},Ha.prototype.resetPosition=function(){},Ha.prototype.needsContentAttribute=!0;var Ka=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new U,this.hasSelection=!1,this.composing=null};Ka.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!we(r,e)){if(r.somethingSelected())La({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=za(r);La({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),y&&(i.style.width="0px"),ge(i,"input",function(){d&&u>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),ge(i,"paste",function(e){we(r,e)||Oa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),ge(i,"cut",o),ge(i,"copy",o),ge(e.scroller,"paste",function(t){if(!Mn(e,t)&&!we(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),ge(e.lineSpace,"selectstart",function(t){Mn(e,t)||Se(t)}),ge(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ge(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Ka.prototype.createField=function(e){this.wrapper=Ra(),this.textarea=this.wrapper.firstChild},Ka.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=br(e);if(e.options.moveInputWithCursor){var i=Xn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ka.prototype.showSelection=function(e){var t=this.cm.display;_(t.cursorDiv,e.cursors),_(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ka.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),d&&u>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",d&&u>=9&&(this.hasSelection=null))}},Ka.prototype.getField=function(){return this.textarea},Ka.prototype.supportsTouch=function(){return!1},Ka.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!k||F()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ka.prototype.blur=function(){this.textarea.blur()},Ka.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ka.prototype.receivedFocus=function(){this.slowPoll()},Ka.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ka.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Ka.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Fe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(d&&u>=9&&this.hasSelection===i||x&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,i.length);a1e3||i.indexOf("\n")>-1?n.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},Ka.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ka.prototype.onKeyPress=function(){d&&u>=9&&(this.hasSelection=null),this.fastPoll()},Ka.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=dr(n,e),a=r.scroller.scrollTop;if(o&&!m){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ti(n,Ji)(n.doc,Mi(o),$);var l,s=i.style.cssText,c=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(d?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",f&&(l=window.scrollY),r.input.focus(),f&&window.scrollTo(null,l),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),d&&u>=9&&p(),T){Te(e);ge(window,"mouseup",function e(){be(window,"mouseup",e),setTimeout(g,20)})}else setTimeout(g,50)}function p(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=c,i.style.cssText=s,d&&u<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=a),null!=i.selectionStart)){(!d||d&&u<9)&&p();var e=0;r.detectingSelectAll=setTimeout(function o(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ti(n,lo)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())},200)}}},Ka.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Ka.prototype.setUneditable=function(){},Ka.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=xa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=xa,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Di(e)},!0),n("indentUnit",2,Di,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Li(e),Un(e),fr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(rt(r,o))}r++});for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],rt(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=xa&&e.refresh()}),n("specialCharPlaceholder",tn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",k?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running src")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!S),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ka(e),gi(e)},!0),n("keyMap","default",function(e,t,n){var r=Xo(t),i=n!=xa&&Xo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Ea,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=pi(t,e.options.lineNumbers),gi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?lr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Wr(e)},!0),n("scrollbarStyle","native",function(e){Kr(e),Wr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=pi(e.options.gutters,t),gi(e)},!0),n("firstLineNumber",1,gi,!0),n("lineNumberFormatter",function(e){return e},gi,!0),n("showCursorWhenSelecting",!1,vr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Er(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,Ma),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,vr,!0),n("singleCursorHeightPerLine",!0,vr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Li,!0),n("addModeClass",!1,Li,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Li,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(Ta),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ti(this,t[e])(this,n,i),ye(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Xo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Na(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&_r(this));else{var o=i.from(),a=i.to(),l=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var s=l;s0&&Xi(this.doc,r,new Ci(o,c[r].to()),$)}}}),getTokenAt:function(e,t){return kt(this,e,t)},getLineTokens:function(e,t){return kt(this,rt(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=mt(this,Ze(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Ze(this.doc,e)}else r=e;return $n(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-qt(r):0)},defaultTextHeight:function(){return ir(this.display)},defaultCharWidth:function(){return or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display,a=(e=Xn(this,dt(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var s=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(a=e.bottom),l+t.offsetWidth>c&&(l=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(l=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&function(e,t){var n=Dr(e,t);null!=n.scrollTop&&Fr(e,n.scrollTop),null!=n.scrollLeft&&Br(e,n.scrollLeft)}(this,{left:l,top:a,right:l+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:ni(da),triggerOnKeyPress:ni(fa),triggerOnKeyUp:ua,triggerOnMouseDown:ni(ga),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ni(function(e){Ia(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5)&&cr(this),ye(this,"refresh",this)}),swapDoc:ni(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),zi(this,e),Un(this),this.display.input.reset(),Or(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,un(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},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}},Ce(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ta);var qa="iter insert remove copy getEditor constructor".split(" ");for(var $a in Lo.prototype)Lo.prototype.hasOwnProperty($a)&&G(qa,$a)<0&&(Ta.prototype[$a]=function(e){return function(){return e.apply(this.doc,arguments)}}(Lo.prototype[$a]));Ce(Lo),Ta.inputStyles={textarea:Ka,contenteditable:Ha},Ta.defineMode=function(e){Ta.defaults.mode||"null"==e||(Ta.defaults.mode=e),function(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Pe[e]=t}.apply(this,arguments)},Ta.defineMIME=function(e,t){He[e]=t},Ta.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ta.defineMIME("text/plain","null"),Ta.defineExtension=function(e,t){Ta.prototype[e]=t},Ta.defineDocExtension=function(e,t){Lo.prototype[e]=t},Ta.fromTextArea=function(e,t){if((t=t?j(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=F();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var i;if(e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(be(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var l=Ta(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return l},function(e){e.off=be,e.on=ge,e.wheelEventPixels=wi,e.Doc=Lo,e.splitLines=ze,e.countColumn=W,e.findColumn=X,e.isWordChar=ie,e.Pass=q,e.signal=ye,e.Line=Zt,e.changeEnd=Ei,e.scrollbarModel=Gr,e.Pos=rt,e.cmpPos=it,e.modes=Pe,e.mimeModes=He,e.resolveMode=je,e.getMode=We,e.modeExtensions=Ue,e.extendMode=Ge,e.copyState=Ke,e.startState=$e,e.innerMode=qe,e.commands=ta,e.keyMap=Uo,e.keyName=Zo,e.isModifierKey=$o,e.lookupKey=qo,e.normalizeKeyMap=Ko,e.StringStream=Ve,e.SharedTextMarker=To,e.TextMarker=Mo,e.LineWidget=xo,e.e_preventDefault=Se,e.e_stopPropagation=Me,e.e_stop=Te,e.addClass=R,e.contains=z,e.rmClass=D}(Ta),Ta.version="5.49.2",window.CodeMirror=Ta;var Va=Ta,Za={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},Xa={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Va.defineMode("xml",function(e,t){var n,r,i=e.indentUnit,o={},a=t.htmlMode?Za:Xa;for(var l in a)o[l]=a[l];for(var l in t)o[l]=t[l];function s(e,t){function r(n){return t.tokenize=n,n(e,t)}var i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?r(d("atom","]]>")):null:e.match("--")?r(d("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(function e(t){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=e(t+1),r.tokenize(n,r);if(">"==i){if(1==t){r.tokenize=s;break}return r.tokenize=e(t-1),r.tokenize(n,r)}}return"meta"}}(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(n=e.eat("/")?"closeTag":"openTag",t.tokenize=c,"tag bracket"):"&"==i?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function c(e,t){var r=e.next();if(">"==r||"/"==r&&e.eat(">"))return t.tokenize=s,n=">"==r?"endTag":"selfcloseTag","tag bracket";if("="==r)return n="equals",null;if("<"==r){t.tokenize=s,t.state=h,t.tagName=t.tagStart=null;var i=t.tokenize(e,t);return i?i+" tag error":"tag error"}return/[\'\"]/.test(r)?(t.tokenize=function(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=c;break}return"string"};return t.isInAttribute=!0,t}(r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=s;break}n.next()}return e}}function u(e){e.context&&(e.context=e.context.prev)}function f(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!o.contextGrabbers.hasOwnProperty(n)||!o.contextGrabbers[n].hasOwnProperty(t))return;u(e)}}function h(e,t,n){return"openTag"==e?(n.tagStart=t.column(),p):"closeTag"==e?m:h}function p(e,t,n){return"word"==e?(n.tagName=t.current(),r="tag",b):o.allowMissingTagName&&"endTag"==e?(r="tag bracket",b(e,t,n)):(r="error",p)}function m(e,t,n){if("word"==e){var i=t.current();return n.context&&n.context.tagName!=i&&o.implicitlyClosed.hasOwnProperty(n.context.tagName)&&u(n),n.context&&n.context.tagName==i||!1===o.matchClosing?(r="tag",g):(r="tag error",v)}return o.allowMissingTagName&&"endTag"==e?(r="tag bracket",g(e,t,n)):(r="error",v)}function g(e,t,n){return"endTag"!=e?(r="error",g):(u(n),h)}function v(e,t,n){return r="error",g(e,t,n)}function b(e,t,n){if("word"==e)return r="attribute",y;if("endTag"==e||"selfcloseTag"==e){var i=n.tagName,a=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||o.autoSelfClosers.hasOwnProperty(i)?f(n,i):(f(n,i),n.context=new function(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(o.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}(n,i,a==n.indented)),h}return r="error",b}function y(e,t,n){return"equals"==e?w:(o.allowMissing||(r="error"),b(e,t,n))}function w(e,t,n){return"string"==e?k:"word"==e&&o.allowUnquoted?(r="string",b):(r="error",b(e,t,n))}function k(e,t,n){return"string"==e?k:b(e,t,n)}return s.isInText=!0,{startState:function(e){var t={tokenize:s,state:h,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;n=null;var i=t.tokenize(e,t);return(i||n)&&"comment"!=i&&(r=null,t.state=t.state(n||i,e,t),r&&(i="error"==r?i+" error":r)),i},indent:function(e,t,n){var r=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+i;if(r&&r.noIndent)return Va.Pass;if(e.tokenize!=c&&e.tokenize!=s)return n?n.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==o.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+i*(o.multilineTagIndentFactor||1);if(o.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:o.htmlMode?"html":"xml",helperType:o.htmlMode?"html":"xml",skipAttribute:function(e){e.state==w&&(e.state=b)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}}),Va.defineMIME("text/xml","xml"),Va.defineMIME("php","xml"),Va.defineMIME("vue","xml"),Va.defineMIME("html","xml"),Va.defineMIME("application/xml","xml"),Va.mimeModes.hasOwnProperty("text/html")||Va.defineMIME("text/html",{name:"xml",htmlMode:!0});var Ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function Qa(e){for(var t={},n=0;n0;i--)n.context=n.context.prev;return E(e,t,n)}function A(e){var t=e.current().toLowerCase();i=g.hasOwnProperty(t)?"atom":m.hasOwnProperty(t)?"keyword":"variable"}var N={top:function(e,t,n){if("{"==e)return S(n,t,"block");if("}"==e&&n.context.prev)return M(n);if(y&&/@component/i.test(e))return S(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return S(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return S(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return S(n,t,"at");if("hash"==e)i="builtin";else if("word"==e)i="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return S(n,t,"interpolation");if(":"==e)return"pseudo";if(v&&"("==e)return S(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return u.hasOwnProperty(r)?(i="property","maybeprop"):f.hasOwnProperty(r)?(i="string-2","maybeprop"):v?(i=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(i+=" error","maybeprop")}return"meta"==e?"block":v||"hash"!=e&&"qualifier"!=e?N.top(e,t,n):(i="error","block")},maybeprop:function(e,t,n){return":"==e?S(n,t,"prop"):E(e,t,n)},prop:function(e,t,n){if(";"==e)return M(n);if("{"==e&&v)return S(n,t,"propBlock");if("}"==e||"{"==e)return T(e,t,n);if("("==e)return S(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)A(t);else if("interpolation"==e)return S(n,t,"interpolation")}else i+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?M(n):"word"==e?(i="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?T(e,t,n):")"==e?M(n):"("==e?S(n,t,"parens"):"interpolation"==e?S(n,t,"interpolation"):("word"==e&&A(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(i="variable-3",n.context.type):E(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(i="tag",n.context.type):N.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return S(n,t,"atBlock_parens");if("}"==e||";"==e)return T(e,t,n);if("{"==e)return M(n)&&S(n,t,v?"block":"top");if("interpolation"==e)return S(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();i="only"==r||"not"==r||"and"==r||"or"==r?"keyword":s.hasOwnProperty(r)?"attribute":c.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"keyword":u.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?"string-2":g.hasOwnProperty(r)?"atom":m.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?T(e,t,n):"{"==e?M(n)&&S(n,t,v?"block":"top",!1):("word"==e&&(i="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?M(n):"{"==e||"}"==e?T(e,t,n,2):N.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?S(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(i="variable","restricted_atBlock_before"):E(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,M(n)):"word"==e?(i="@font-face"==n.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!p.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(i="variable","keyframes"):"{"==e?S(n,t,"top"):E(e,t,n)},at:function(e,t,n){return";"==e?M(n):"{"==e||"}"==e?T(e,t,n):("word"==e?i="tag":"hash"==e&&(i="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?M(n):"{"==e||";"==e?T(e,t,n):("word"==e?i="variable":"variable"!=e&&"("!=e&&")"!=e&&(i="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:n?"block":"top",stateArg:null,context:new C(n?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||function(e,t){var n=e.next();if(a[n]){var r=a[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),w("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?w(null,"compare"):'"'==n||"'"==n?(t.tokenize=k(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),w("atom","hash")):"!"==n?(e.match(/^\s*\w*/),w("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),w("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?w(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?w("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?w(null,n):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=x),w("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),w("property","word")):w(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),w("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?w("variable-2","variable-definition"):w("variable-2","variable")):e.match(/^\w+-/)?w("meta","meta"):void 0})(e,t);return n&&"object"===(void 0===n?"undefined":Ya(n))&&(r=n[1],n=n[0]),i=n,"comment"!=r&&(t.state=N[t.state](r,e,t)),i},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-o)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}});var Ja=["domain","regexp","url","url-prefix"],el=Qa(Ja),tl=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],nl=Qa(tl),rl=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],il=Qa(rl),ol=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],al=Qa(ol),ll=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],sl=Qa(ll),cl=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],dl=Qa(cl),ul=Qa(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),fl=Qa(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),hl=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],pl=Qa(hl),ml=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],gl=Qa(ml),vl=Ja.concat(tl).concat(rl).concat(ol).concat(ll).concat(cl).concat(hl).concat(ml);function bl(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}Va.registerHelper("hintWords","css",vl),Va.defineMIME("text/css",{documentTypes:el,mediaTypes:nl,mediaFeatures:il,mediaValueKeywords:al,propertyKeywords:sl,nonStandardPropertyKeywords:dl,fontProperties:ul,counterDescriptors:fl,colorKeywords:pl,valueKeywords:gl,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=bl,bl(e,t))}},name:"css"}),Va.defineMIME("text/x-scss",{mediaTypes:nl,mediaFeatures:il,mediaValueKeywords:al,propertyKeywords:sl,nonStandardPropertyKeywords:dl,colorKeywords:pl,valueKeywords:gl,fontProperties:ul,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=bl,bl(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),Va.defineMIME("text/x-less",{mediaTypes:nl,mediaFeatures:il,mediaValueKeywords:al,propertyKeywords:sl,nonStandardPropertyKeywords:dl,colorKeywords:pl,valueKeywords:gl,fontProperties:ul,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=bl,bl(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),Va.defineMIME("text/x-gss",{documentTypes:el,mediaTypes:nl,mediaFeatures:il,propertyKeywords:sl,nonStandardPropertyKeywords:dl,fontProperties:ul,counterDescriptors:fl,colorKeywords:pl,valueKeywords:gl,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=bl,bl(e,t))}},name:"css",helperType:"gss"}),Va.defineMIME("less","css"),Va.defineMIME("scss","css"),Va.defineMIME("sass","css"),Va.defineMIME("style","css");var yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function wl(e,t){var n,r,i=e.indentUnit,o=t.statementIndent,a=t.jsonld,l=t.json||a,s=t.typescript,c=t.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),u=/[+\-*&%=<>!?|~^@]/,f=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function h(e,t,i){return n=e,r=i,t}function p(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=function(e){return function(t,n){var r,i=!1;if(a&&"@"==t.peek()&&t.match(f))return n.tokenize=p,h("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=e||i);)i=!i&&"\\"==r;return i||(n.tokenize=p),h("string","string")}}(n),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return h("number","number");if("."==n&&e.match(".."))return h("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return h(n);if("="==n&&e.eat(">"))return h("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return h("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),h("number","number");if("/"==n)return e.eat("*")?(t.tokenize=m,m(e,t)):e.eat("/")?(e.skipToEnd(),h("comment","comment")):$e(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),h("regexp","string-2")):(e.eat("="),h("operator","operator",e.current()));if("`"==n)return t.tokenize=g,g(e,t);if("#"==n)return e.skipToEnd(),h("error","error");if("<"==n&&e.match("!--")||"-"==n&&e.match("->"))return e.skipToEnd(),h("comment","comment");if(u.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),h("operator","operator",e.current());if(c.test(n)){e.eatWhile(c);var r=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(r)){var i=d[r];return h(i.type,i.style,r)}if("async"==r&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return h("async","keyword",r)}return h("variable","variable",r)}}function m(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=p;break}r="*"==n}return h("comment","comment")}function g(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=p;break}r=!r&&"\\"==n}return h("quasi","string-2",e.current())}var v="([{}])";function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(s){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var l=e.string.charAt(a),d=v.indexOf(l);if(d>=0&&d<3){if(!i){++a;break}if(0==--i){"("==l&&(o=!0);break}}else if(d>=3&&d<6)++i;else if(c.test(l))o=!0;else if(/["'\/`]/.test(l))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==l&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function k(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var x={state:null,column:null,marked:null,cc:null};function C(){for(var e=arguments.length-1;e>=0;e--)x.cc.push(arguments[e])}function S(){return C.apply(null,arguments),!0}function M(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function E(e){var n=x.state;if(x.marked="def",n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=function e(t,n){if(n){if(n.block){var r=e(t,n.prev);return r?r==n.prev?n:new A(r,n.vars,!0):null}return M(t,n.vars)?n:new A(n.prev,new N(t,n.vars),!1)}return null}(e,n.context);if(null!=r)return void(n.context=r)}else if(!M(e,n.localVars))return void(n.localVars=new N(e,n.localVars));t.globalVars&&!M(e,n.globalVars)&&(n.globalVars=new N(e,n.globalVars))}function T(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function A(e,t,n){this.prev=e,this.vars=t,this.block=n}function N(e,t){this.name=e,this.next=t}var D=new N("this",new N("arguments",null));function L(){x.state.context=new A(x.state.context,x.state.localVars,!1),x.state.localVars=D}function _(){x.state.context=new A(x.state.context,x.state.localVars,!0),x.state.localVars=null}function O(){x.state.localVars=x.state.context.vars,x.state.context=x.state.context.prev}function I(e,t){var n=function(){var n=x.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,x.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function z(){var e=x.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function F(e){return function t(n){return n==e?S():";"==e||"}"==n||")"==n||"]"==n?C():S(t)}}function R(e,t){return"var"==e?S(I("vardef",t),be,F(";"),z):"keyword a"==e?S(I("form"),j,R,z):"keyword b"==e?S(I("form"),R,z):"keyword d"==e?x.stream.match(/^\s*$/,!1)?S():S(I("stat"),U,F(";"),z):"debugger"==e?S(F(";")):"{"==e?S(I("}"),_,oe,z,O):";"==e?S():"if"==e?("else"==x.state.lexical.info&&x.state.cc[x.state.cc.length-1]==z&&x.state.cc.pop()(),S(I("form"),j,R,z,Se)):"function"==e?S(Ae):"for"==e?S(I("form"),Me,R,z):"class"==e||s&&"interface"==t?(x.marked="keyword",S(I("form","class"==e?e:t),Oe,z)):"variable"==e?s&&"declare"==t?(x.marked="keyword",S(R)):s&&("module"==t||"enum"==t||"type"==t)&&x.stream.match(/^\s*\w/,!1)?(x.marked="keyword","enum"==t?S(Ke):"type"==t?S(De,F("operator"),de,F(";")):S(I("form"),ye,F("{"),I("}"),oe,z,z)):s&&"namespace"==t?(x.marked="keyword",S(I("form"),P,R,z)):s&&"abstract"==t?(x.marked="keyword",S(R)):S(I("stat"),Q):"switch"==e?S(I("form"),j,F("{"),I("}","switch"),_,oe,z,z,O):"case"==e?S(P,F(":")):"default"==e?S(F(":")):"catch"==e?S(I("form"),L,B,R,z,O):"export"==e?S(I("stat"),Re,z):"import"==e?S(I("stat"),Pe,z):"async"==e?S(R):"@"==t?S(P,R):C(I("stat"),P,F(";"),z)}function B(e){if("("==e)return S(Le,F(")"))}function P(e,t){return W(e,t,!1)}function H(e,t){return W(e,t,!0)}function j(e){return"("!=e?C():S(I(")"),P,F(")"),z)}function W(e,t,n){if(x.state.fatArrowAt==x.stream.start){var r=n?Z:V;if("("==e)return S(L,I(")"),re(Le,")"),z,F("=>"),r,O);if("variable"==e)return C(L,ye,F("=>"),r,O)}var i=n?K:G;return y.hasOwnProperty(e)?S(i):"function"==e?S(Ae,i):"class"==e||s&&"interface"==t?(x.marked="keyword",S(I("form"),_e,z)):"keyword c"==e||"async"==e?S(n?H:P):"("==e?S(I(")"),U,F(")"),z,i):"operator"==e||"spread"==e?S(n?H:P):"["==e?S(I("]"),Ge,z,i):"{"==e?ie(ee,"}",null,i):"quasi"==e?C(q,i):"new"==e?S(function(e){return function(t){return"."==t?S(e?Y:X):"variable"==t&&s?S(me,e?K:G):C(e?H:P)}}(n)):"import"==e?S(P):S()}function U(e){return e.match(/[;\}\)\],]/)?C():C(P)}function G(e,t){return","==e?S(P):K(e,t,!1)}function K(e,t,n){var r=0==n?G:K,i=0==n?P:H;return"=>"==e?S(L,n?Z:V,O):"operator"==e?/\+\+|--/.test(t)||s&&"!"==t?S(r):s&&"<"==t&&x.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?S(I(">"),re(de,">"),z,r):"?"==t?S(P,F(":"),i):S(i):"quasi"==e?C(q,r):";"!=e?"("==e?ie(H,")","call",r):"."==e?S(J,r):"["==e?S(I("]"),U,F("]"),z,r):s&&"as"==t?(x.marked="keyword",S(de,r)):"regexp"==e?(x.state.lastType=x.marked="operator",x.stream.backUp(x.stream.pos-x.stream.start-1),S(i)):void 0:void 0}function q(e,t){return"quasi"!=e?C():"${"!=t.slice(t.length-2)?S(q):S(P,$)}function $(e){if("}"==e)return x.marked="string-2",x.state.tokenize=g,S(q)}function V(e){return b(x.stream,x.state),C("{"==e?R:P)}function Z(e){return b(x.stream,x.state),C("{"==e?R:H)}function X(e,t){if("target"==t)return x.marked="keyword",S(G)}function Y(e,t){if("target"==t)return x.marked="keyword",S(K)}function Q(e){return":"==e?S(z,R):C(G,F(";"),z)}function J(e){if("variable"==e)return x.marked="property",S()}function ee(e,t){if("async"==e)return x.marked="property",S(ee);if("variable"==e||"keyword"==x.style){return x.marked="property","get"==t||"set"==t?S(te):(s&&x.state.fatArrowAt==x.stream.start&&(n=x.stream.match(/^\s*:\s*/,!1))&&(x.state.fatArrowAt=x.stream.pos+n[0].length),S(ne));var n}else{if("number"==e||"string"==e)return x.marked=a?"property":x.style+" property",S(ne);if("jsonld-keyword"==e)return S(ne);if(s&&T(t))return x.marked="keyword",S(ee);if("["==e)return S(P,ae,F("]"),ne);if("spread"==e)return S(H,ne);if("*"==t)return x.marked="keyword",S(ee);if(":"==e)return C(ne)}}function te(e){return"variable"!=e?C(ne):(x.marked="property",S(Ae))}function ne(e){return":"==e?S(H):"("==e?C(Ae):void 0}function re(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=x.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),S(function(n,r){return n==t||r==t?C():C(e)},r)}return i==t||o==t?S():n&&n.indexOf(";")>-1?C(e):S(F(t))}return function(n,i){return n==t||i==t?S():C(e,r)}}function ie(e,t,n){for(var r=3;r"),de):void 0}function ue(e){if("=>"==e)return S(de)}function fe(e,t){return"variable"==e||"keyword"==x.style?(x.marked="property",S(fe)):"?"==t||"number"==e||"string"==e?S(fe):":"==e?S(de):"["==e?S(F("variable"),le,F("]"),fe):"("==e?C(Ne,fe):void 0}function he(e,t){return"variable"==e&&x.stream.match(/^\s*[?:]/,!1)||"?"==t?S(he):":"==e?S(de):"spread"==e?S(he):C(de)}function pe(e,t){return"<"==t?S(I(">"),re(de,">"),z,pe):"|"==t||"."==e||"&"==t?S(de):"["==e?S(de,F("]"),pe):"extends"==t||"implements"==t?(x.marked="keyword",S(de)):"?"==t?S(de,F(":"),de):void 0}function me(e,t){if("<"==t)return S(I(">"),re(de,">"),z,pe)}function ge(){return C(de,ve)}function ve(e,t){if("="==t)return S(de)}function be(e,t){return"enum"==t?(x.marked="keyword",S(Ke)):C(ye,ae,xe,Ce)}function ye(e,t){return s&&T(t)?(x.marked="keyword",S(ye)):"variable"==e?(E(t),S()):"spread"==e?S(ye):"["==e?ie(ke,"]"):"{"==e?ie(we,"}"):void 0}function we(e,t){return"variable"!=e||x.stream.match(/^\s*:/,!1)?("variable"==e&&(x.marked="property"),"spread"==e?S(ye):"}"==e?C():"["==e?S(P,F("]"),F(":"),we):S(F(":"),ye,xe)):(E(t),S(xe))}function ke(){return C(ye,xe)}function xe(e,t){if("="==t)return S(H)}function Ce(e){if(","==e)return S(be)}function Se(e,t){if("keyword b"==e&&"else"==t)return S(I("form","else"),R,z)}function Me(e,t){return"await"==t?S(Me):"("==e?S(I(")"),Ee,z):void 0}function Ee(e){return"var"==e?S(be,Te):"variable"==e?S(Te):C(Te)}function Te(e,t){return")"==e?S():";"==e?S(Te):"in"==t||"of"==t?(x.marked="keyword",S(P,Te)):C(P,Te)}function Ae(e,t){return"*"==t?(x.marked="keyword",S(Ae)):"variable"==e?(E(t),S(Ae)):"("==e?S(L,I(")"),re(Le,")"),z,se,R,O):s&&"<"==t?S(I(">"),re(ge,">"),z,Ae):void 0}function Ne(e,t){return"*"==t?(x.marked="keyword",S(Ne)):"variable"==e?(E(t),S(Ne)):"("==e?S(L,I(")"),re(Le,")"),z,se,O):s&&"<"==t?S(I(">"),re(ge,">"),z,Ne):void 0}function De(e,t){return"keyword"==e||"variable"==e?(x.marked="type",S(De)):"<"==t?S(I(">"),re(ge,">"),z):void 0}function Le(e,t){return"@"==t&&S(P,Le),"spread"==e?S(Le):s&&T(t)?(x.marked="keyword",S(Le)):s&&"this"==e?S(ae,xe):C(ye,ae,xe)}function _e(e,t){return"variable"==e?Oe(e,t):Ie(e,t)}function Oe(e,t){if("variable"==e)return E(t),S(Ie)}function Ie(e,t){return"<"==t?S(I(">"),re(ge,">"),z,Ie):"extends"==t||"implements"==t||s&&","==e?("implements"==t&&(x.marked="keyword"),S(s?de:P,Ie)):"{"==e?S(I("}"),ze,z):void 0}function ze(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||s&&T(t))&&x.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(x.marked="keyword",S(ze)):"variable"==e||"keyword"==x.style?(x.marked="property",S(s?Fe:Ae,ze)):"number"==e||"string"==e?S(s?Fe:Ae,ze):"["==e?S(P,ae,F("]"),s?Fe:Ae,ze):"*"==t?(x.marked="keyword",S(ze)):s&&"("==e?C(Ne,ze):";"==e||","==e?S(ze):"}"==e?S():"@"==t?S(P,ze):void 0}function Fe(e,t){if("?"==t)return S(Fe);if(":"==e)return S(de,xe);if("="==t)return S(H);var n=x.state.lexical.prev;return C(n&&"interface"==n.info?Ne:Ae)}function Re(e,t){return"*"==t?(x.marked="keyword",S(Ue,F(";"))):"default"==t?(x.marked="keyword",S(P,F(";"))):"{"==e?S(re(Be,"}"),Ue,F(";")):C(R)}function Be(e,t){return"as"==t?(x.marked="keyword",S(F("variable"))):"variable"==e?C(H,Be):void 0}function Pe(e){return"string"==e?S():"("==e?C(P):C(He,je,Ue)}function He(e,t){return"{"==e?ie(He,"}"):("variable"==e&&E(t),"*"==t&&(x.marked="keyword"),S(We))}function je(e){if(","==e)return S(He,je)}function We(e,t){if("as"==t)return x.marked="keyword",S(He)}function Ue(e,t){if("from"==t)return x.marked="keyword",S(P)}function Ge(e){return"]"==e?S():C(re(H,"]"))}function Ke(){return C(I("form"),ye,F("{"),I("}"),re(qe,"}"),z,z)}function qe(){return C(ye,xe)}function $e(e,t,n){return t.tokenize==p&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return O.lex=!0,z.lex=!0,{startState:function(e){var n={tokenize:p,lastType:"sof",cc:[],lexical:new w((e||0)-i,0,"block",!1),localVars:t.localVars,context:t.localVars&&new A(null,null,!1),indented:e||0};return t.globalVars&&"object"===yl(t.globalVars)&&(n.globalVars=t.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=m&&e.eatSpace())return null;var i=t.tokenize(e,t);return"comment"==n?i:(t.lastType="operator"!=n||"++"!=r&&"--"!=r?n:"incdec",function(e,t,n,r,i){var o=e.cc;for(x.state=e,x.stream=i,x.marked=null,x.cc=o,x.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?P:R)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return x.marked?x.marked:"variable"==n&&k(e,r)?"variable-2":t}}(t,i,n,r,e))},indent:function(e,n){if(e.tokenize==m)return Va.Pass;if(e.tokenize!=p)return 0;var r,a=n&&n.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(n))for(var s=e.cc.length-1;s>=0;--s){var c=e.cc[s];if(c==z)l=l.prev;else if(c!=Se)break}for(;("stat"==l.type||"form"==l.type)&&("}"==a||(r=e.cc[e.cc.length-1])&&(r==G||r==K)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;o&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=a==d;return"vardef"==d?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==d&&"{"==a?l.indented:"form"==d?l.indented+i:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||u.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(e,n)?o||i:0):"switch"!=l.info||f||0==t.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:i):l.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:a,jsonMode:l,expressionAllowed:$e,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=P&&t!=H||e.cc.pop()}}}Va.defineMode("javascript",wl),Va.defineMode("js",wl),Va.registerHelper("wordChars","javascript",/[\w$]/),Va.defineMIME("json",{name:"javascript",json:!0}),Va.defineMIME("typescript",{name:"javascript",typescript:!0}),Va.defineMIME("ts",{name:"javascript",typescript:!0});["js","json","python","py","react","coffeescript","dart","go","jsx"].forEach(function(e){Va.defineMIME(e,"javascript")}),Va.defineMode("markdown",function(e,t){var n=Va.getMode(e,"text/html"),r="null"==n.name;void 0===t.highlightFormatting&&(t.highlightFormatting=!1),void 0===t.maxBlockquoteDepth&&(t.maxBlockquoteDepth=0),void 0===t.taskLists&&(t.taskLists=!1),void 0===t.strikethrough&&(t.strikethrough=!1),void 0===t.emoji&&(t.emoji=!1),void 0===t.fencedCodeBlockHighlighting&&(t.fencedCodeBlockHighlighting=!0),void 0===t.xml&&(t.xml=!0),void 0===t.tokenTypeOverrides&&(t.tokenTypeOverrides={});var i={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 o in i)i.hasOwnProperty(o)&&t.tokenTypeOverrides[o]&&(i[o]=t.tokenTypeOverrides[o]);var a=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,s=/^\[(x| )\](?=\s)/i,c=t.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ *(?:\={1,}|-{1,})\s*$/,u=/^[^#!\[\]*_\\<>` "'(~:]+/,f=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,h=/^\s*\[[^\]]+?\]:.*$/,p=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function m(e,t,n){return t.f=t.inline=n,n(e,t)}function g(e,t,n){return t.f=t.block=n,n(e,t)}function v(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==y){var t=r;if(!t){var i=Va.innerMode(n,e.htmlState);t="xml"==i.mode.name&&null===i.state.tagStart&&!i.state.context&&i.state.tokenize.isInText}t&&(e.f=C,e.block=b,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function b(n,r){var o=n.column()===r.indentation,u=function(e){return!e||!/\S/.test(e.string)}(r.prevLine.stream),p=r.indentedCode,g=r.prevLine.hr,v=!1!==r.list,b=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var y=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,v)){for(r.list=null;y=4&&(p||r.prevLine.fencedCodeEnd||r.prevLine.header||u))return n.skipToEnd(),r.indentedCode=!0,i.code;if(n.eatSpace())return null;if(o&&r.indentation<=b&&(S=n.match(c))&&S[1].length<=6)return r.quote=0,r.header=S[1].length,r.thisLine.header=!0,t.highlightFormatting&&(r.formatting="header"),r.f=r.inline,k(r);if(r.indentation<=b&&n.eat(">"))return r.quote=o?1:r.quote+1,t.highlightFormatting&&(r.formatting="quote"),n.eatSpace(),k(r);if(!C&&!r.setext&&o&&r.indentation<=b&&(S=n.match(l))){var M=S[1]?"ol":"ul";return r.indentation=y+n.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,t.taskLists&&n.match(s,!1)&&(r.taskList=!0),r.f=r.inline,t.highlightFormatting&&(r.formatting=["list","list-"+M]),k(r)}return o&&r.indentation<=b&&(S=n.match(f,!0))?(r.quote=0,r.fencedEndRE=new RegExp(S[1]+"+ *$"),r.localMode=t.fencedCodeBlockHighlighting&&function(t){if(Va.findModeByName){var n=Va.findModeByName(t);n&&(t=n.mime||n.mimes[0])}var r=Va.getMode(e,t);return"null"==r.name?null:r}(S[2]),r.localMode&&(r.localState=Va.startState(r.localMode)),r.f=r.block=w,t.highlightFormatting&&(r.formatting="code-block"),r.code=-1,k(r)):r.setext||!(x&&v||r.quote||!1!==r.list||r.code||C||h.test(n.string))&&(S=n.lookAhead(1))&&(S=S.match(d))?(r.setext?(r.header=r.setext,r.setext=0,n.skipToEnd(),t.highlightFormatting&&(r.formatting="header")):(r.header="="==S[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,k(r)):C?(n.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,i.hr):"["===n.peek()?m(n,r,T):m(n,r,r.inline)}function y(e,t){var i=n.token(e,t.htmlState);if(!r){var o=Va.innerMode(n,t.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=C,t.block=b,t.htmlState=null)}return i}function w(e,n){var r,o=n.listStack[n.listStack.length-1]||0,a=n.indentation=e.quote?n.push(i.formatting+"-"+e.formatting[r]+"-"+e.quote):n.push("error"))}if(e.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(e.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(e.linkHref?n.push(i.linkHref,"url"):(e.strong&&n.push(i.strong),e.em&&n.push(i.em),e.strikethrough&&n.push(i.strikethrough),e.emoji&&n.push(i.emoji),e.linkText&&n.push(i.linkText),e.code&&n.push(i.code),e.image&&n.push(i.image),e.imageAltText&&n.push(i.imageAltText,"link"),e.imageMarker&&n.push(i.imageMarker)),e.header&&n.push(i.header,i.header+"-"+e.header),e.quote&&(n.push(i.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(i.quote+"-"+e.quote):n.push(i.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var o=(e.listStack.length-1)%3;o?1===o?n.push(i.list2):n.push(i.list3):n.push(i.list1)}return e.trailingSpaceNewLine?n.push("trailing-space-new-line"):e.trailingSpace&&n.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),n.length?n.join(" "):null}function x(e,t){if(e.match(u,!0))return k(t)}function C(e,r){var o=r.text(e,r);if(void 0!==o)return o;if(r.list)return r.list=null,k(r);if(r.taskList)return" "===e.match(s,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,t.highlightFormatting&&(r.formatting="task"),r.taskList=!1,k(r);if(r.taskOpen=!1,r.taskClosed=!1,r.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(r.formatting="header"),k(r);var a=e.next();if(r.linkTitle){r.linkTitle=!1;var l=a;"("===a&&(l=")");var c="^\\s*(?:[^"+(l=String(l).replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(e.match(new RegExp(c),!0))return i.linkHref}if("`"===a){var d=r.formatting;t.highlightFormatting&&(r.formatting="code"),e.eatWhile("`");var u=e.current().length;if(0!=r.code||r.quote&&1!=u){if(u==r.code){var f=k(r);return r.code=0,f}return r.formatting=d,k(r)}return r.code=u,k(r)}if(r.code)return k(r);if("\\"===a&&(e.next(),t.highlightFormatting)){var h=k(r),m=i.formatting+"-escape";return h?h+" "+m:m}if("!"===a&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,t.highlightFormatting&&(r.formatting="image"),k(r);if("["===a&&r.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,t.highlightFormatting&&(r.formatting="image"),k(r);if("]"===a&&r.imageAltText){t.highlightFormatting&&(r.formatting="image");var h=k(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=M,h}if("["===a&&!r.image)return r.linkText&&e.match(/^.*?\]/)?k(r):(r.linkText=!0,t.highlightFormatting&&(r.formatting="link"),k(r));if("]"===a&&r.linkText){t.highlightFormatting&&(r.formatting="link");var h=k(r);return r.linkText=!1,r.inline=r.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?M:C,h}if("<"===a&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=S,t.highlightFormatting&&(r.formatting="link"),(h=k(r))?h+=" ":h="",h+i.linkInline;if("<"===a&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=S,t.highlightFormatting&&(r.formatting="link"),(h=k(r))?h+=" ":h="",h+i.linkEmail;if(t.xml&&"<"===a&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=e.string.indexOf(">",e.pos);if(-1!=v){var b=e.string.substring(e.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(r.md_inside=!0)}return e.backUp(1),r.htmlState=Va.startState(n),g(e,r,y)}if(t.xml&&"<"===a&&e.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===a||"_"===a){for(var w=1,x=1==e.pos?" ":e.string.charAt(e.pos-2);w<3&&e.eat(a);)w++;var E=e.peek()||" ",T=!/\s/.test(E)&&(!p.test(E)||/\s/.test(x)||p.test(x)),A=!/\s/.test(x)&&(!p.test(x)||/\s/.test(E)||p.test(E)),N=null,D=null;if(w%2&&(r.em||!T||"*"!==a&&A&&!p.test(x)?r.em!=a||!A||"*"!==a&&T&&!p.test(E)||(N=!1):N=!0),w>1&&(r.strong||!T||"*"!==a&&A&&!p.test(x)?r.strong!=a||!A||"*"!==a&&T&&!p.test(E)||(D=!1):D=!0),null!=D||null!=N){t.highlightFormatting&&(r.formatting=null==N?"strong":null==D?"em":"strong em"),!0===N&&(r.em=a),!0===D&&(r.strong=a);f=k(r);return!1===N&&(r.em=!1),!1===D&&(r.strong=!1),f}}else if(" "===a&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return k(r);e.backUp(1)}if(t.strikethrough)if("~"===a&&e.eatWhile(a)){if(r.strikethrough){t.highlightFormatting&&(r.formatting="strikethrough");f=k(r);return r.strikethrough=!1,f}if(e.match(/^[^\s]/,!1))return r.strikethrough=!0,t.highlightFormatting&&(r.formatting="strikethrough"),k(r)}else if(" "===a&&e.match(/^~~/,!0)){if(" "===e.peek())return k(r);e.backUp(2)}if(t.emoji&&":"===a&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){r.emoji=!0,t.highlightFormatting&&(r.formatting="emoji");var L=k(r);return r.emoji=!1,L}return" "===a&&(e.match(/^ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),k(r)}function S(e,n){if(">"===e.next()){n.f=n.inline=C,t.highlightFormatting&&(n.formatting="link");var r=k(n);return r?r+=" ":r="",r+i.linkInline}return e.match(/^[^>]+/,!0),i.linkInline}function M(e,n){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(n.f=n.inline=function(e){return function(n,r){var i=n.next();if(i===e){r.f=r.inline=C,t.highlightFormatting&&(r.formatting="link-string");var o=k(r);return r.linkHref=!1,o}return n.match(E[e]),r.linkHref=!0,k(r)}}("("===r?")":"]"),t.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,k(n)):"error"}var E={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function T(e,n){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=A,e.next(),t.highlightFormatting&&(n.formatting="link"),n.linkText=!0,k(n)):m(e,n,C)}function A(e,n){if(e.match(/^\]:/,!0)){n.f=n.inline=N,t.highlightFormatting&&(n.formatting="link");var r=k(n);return n.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),i.linkText}function N(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=C,i.linkHref+" url")}var D={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:C,text:x,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&Va.copyState(n,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?Va.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return v(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=y)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==y?{state:e.htmlState,mode:n}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:D}},indent:function(e,t,r){return e.block==y&&n.indent?n.indent(e.htmlState,t,r):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,r):Va.Pass},blankLine:v,getType:k,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return D},"xml"),Va.defineMIME("text/src","markdown"),Va.defineMIME("text/x-src","markdown");var kl={tabSize:4,styleActiveLine:!0,lineNumbers:!0,lineWrapping:!1,line:!0,mode:"text/x-src",theme:"default",cursorHeight:.8,lineWiseCopyCut:!0};n(815);var xl={strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!1,h5:!1,h6:!1,hr:!0,quote:!0,ul:!0,ol:!0,code:!0,link:!0,image:!0,uploadImage:!1,custom_image:!1,custom_uploadImage:!1,custom_uploadFile:!1,table:!0,checked:!0,notChecked:!0,split:!0,preview:!0,fullscreen:!0,theme:!0,exportmd:!0,importmd:!0,save:!1,clear:!1},Cl=Object.assign||function(e){for(var t=1;t0)for(var r=0,i=n.length;r1.4?"horizontal":"vertical",t.previewImgSrc=e,t.previewImgModal=!0}},chooseImage:function(){var e=this,t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=function(){var n=t.files;n[0]&&(e.$emit("on-upload-image",n[0]),t.value="")},t.click()},addCopyListener:function(){var e=this;setTimeout(function(){var t=document.querySelectorAll(".code-block .copy-code");e.btns=t;for(var n=function(n,r){t[n].onclick=function(){var r=t[n].parentNode.querySelectorAll("pre")[0].innerText,i=document.createElement("input");i.setAttribute("value",r),document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),e.$emit("on-copy",r)}},r=0,i=t.length;r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.editor;n.setCursor(e,t),n.focus()},insertStrong:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("**"+l+"**"):(this.insertContent("****"),this.setCursor(i,a+2))},insertItalic:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("*"+l+"*"):(this.insertContent("**"),this.setCursor(i,a+1))},insertUnderline:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent(""+l+""):(this.insertContent(""),this.setCursor(i,a+3))},insertOverline:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("~~"+l+"~~"):(this.insertContent("~~~~"),this.setCursor(i,a+2))},insertTitle:function(e){var t={1:"# ",2:"## ",3:"### ",4:"#### ",5:"##### ",6:"###### "},n=this.editor,r=this.lastPos,i=(void 0===r?{}:r).line,o=n.getSelection();if(o)this.insertContent("\n"+t[e]+o+"\n");else{var a=t[e];n.isClean()?(this.insertContent(a),this.setCursor(0,a.length)):(this.insertContent("\n"+a),this.setCursor(i+1,a.length))}},insertLine:function(){this.editor.isClean()?this.insertContent("----\n"):this.insertContent("\n\n----\n")},insertQuote:function(){var e=this.editor,t=this.lastPos,n=(void 0===t?{}:t).line,r=void 0===n?0:n,i=e.getSelection();i?this.insertContent("\n> "+i+"\n\n"):e.isClean()?(this.insertContent("> "),this.setCursor(0,3)):(this.insertContent("\n> "),this.setCursor(r+1,3))},insertUl:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("\n- "+l+"\n\n"):e.isClean()||0===a?(this.insertContent("- "),this.setCursor(i,3)):(this.insertContent("\n- "),this.setCursor(i+1,3))},insertOl:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("\n1. "+l+"\n\n"):e.isClean()||0===a?(this.insertContent("1. "),this.setCursor(i,4)):(this.insertContent("\n1. "),this.setCursor(i+1,4))},insertCode:function(){var e=this.editor,t=this.lastPos,n=(void 0===t?{}:t).line,r=e.getSelection();r?this.insertContent("\n```\n"+r+"\n```\n"):e.isClean()?(this.insertContent("```\n\n```"),this.setCursor(1,0)):(this.insertContent("\n```\n\n```"),this.setCursor(n+2,0))},insertFinished:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("\n- [x] "+l+"\n\n"):e.isClean()||0===a?(this.insertContent("- [x] "),this.setCursor(i,6)):(this.insertContent("\n- [x] "),this.setCursor(i+1,6))},insertNotFinished:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("\n- [ ] "+l+"\n\n"):e.isClean()||0===a?(this.insertContent("- [ ] "),this.setCursor(i,6)):(this.insertContent("\n- [ ] "),this.setCursor(i+1,6))},listerenKeyupEnter:function(e){var t=this.lastInsert;if(t){["-","- [ ]","- [x]"].includes(t.trim())?(e.preventDefault(),this.insertContent("\n"+t)):/^\d+\.$/.test(t.trim())&&(e.preventDefault(),this.insertContent("\n"+(parseInt(t,0)+1)+". "))}},listerenDelete:function(){var e=this;setTimeout(function(){var t=e.editor;t.isClean()||""===t.getValue().split("\n").pop()&&(e.lastInsert="")},20)},onDelete:function(){var e=this.currentValue.split("\n");""===e[e.length-1]&&(this.lastInsert="")},markdownScroll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.scrolling&&"left"===this.scrollSide){var t=e.doc,n=t.height,r=t.scrollTop,i=this.$refs.preview,o=i.offsetHeight,a=i.scrollHeight;i.scrollTop=parseInt(r*(a-o)/(n-o),0)}},previewScroll:function(){if(this.scrolling&&"right"===this.scrollSide){var e=this.$refs.preview,t=e.offsetHeight,n=e.scrollHeight,r=e.scrollTop,i=parseInt(r*(this.editorScrollHeight-t)/(n-t),0);this.editor.scrollTo(0,i)}},redo:function(){var e=this.editor;e.redo(),setTimeout(function(){e.refresh()},20)}},watch:{currentValue:function(){var e=this;clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){var t=e.currentValue,n=Object(Ml.a)(t,El({sanitize:!1},e.markedOptions)).replace(/href="/gi,'target="_blank" href="');e.copyCode&&""!==n&&(n=n.replace(/
    /g,'
    '+e.copyBtnText+"
    ").replace(/<\/pre>/g,"
    ")),e.html=n,e.addImageClickListener(),e.addCopyListener(),e.$emit("input",t)},30)},value:function(){var e=this.value;this.currentValue!==e&&(this.currentValue=e,this.editor.setOption("value",e))}}};t.default=Tl},815:function(e,t,n){var r=n(816);"string"==typeof r&&(r=[[e.i,r,""]]);var i={transform:void 0};n(50)(r,i);r.locals&&(e.exports=r.locals)},816:function(e,t,n){(e.exports=n(0)(!1)).push([e.i,'.CodeMirror{height:100%;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px;padding-left:8px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 5px!important;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor-mark{background-color:rgba(20,255,20,.5)}.cm-animate-fat-cursor,.cm-fat-cursor-mark{-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}.cm-animate-fat-cursor{width:auto;border:0;background-color:#7e7}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.CodeMirror{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:30px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-strikethrough{text-decoration:line-through}.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.cm-s-default.CodeMirror,.cm-s-default .CodeMirror-gutters{background-color:#282a36!important;color:#f8f8f2!important;border:none}.cm-s-default *,.cm-s-default.CodeMirror,.cm-s-default .CodeMirror-gutters{font-family:Menlo,Consolas,Courier New,Courier,FreeMono,monospace!important}.cm-s-default *{line-height:1.6!important;font-size:14px;color:#ccc}.cm-s-default .CodeMirror-gutters{color:#282a36}.cm-s-default .CodeMirror-cursor{border-left:thin solid #f8f8f0}.cm-s-default .CodeMirror-selected{background:hsla(0,0%,100%,.1)}.cm-s-default .CodeMirror-line::selection,.cm-s-default .CodeMirror-line>span::selection,.cm-s-default .CodeMirror-line>span>span::selection{background:hsla(0,0%,100%,.1)}.cm-s-default .CodeMirror-line::-moz-selection,.cm-s-default .CodeMirror-line>span::-moz-selection,.cm-s-default .CodeMirror-line>span>span::-moz-selection{background:hsla(0,0%,100%,.1)}.cm-s-default span.cm-comment{color:#999}.cm-s-default span.cm-string,.cm-s-default span.cm-string-2{color:#ce9178}.cm-s-default span.cm-number{color:#bd93f9}.cm-s-default span.cm-variable,.cm-s-default span.cm-variable-2{color:#61afef}.cm-s-default span.cm-def,.cm-s-default span.cm-operator{color:#e0e2e4}.cm-s-default span.cm-keyword{color:#c678dd}.cm-s-default span.cm-atom{color:#bd93f9}.cm-s-default span.cm-meta{color:#f8f8f2}.cm-s-default span.cm-tag{color:#569cd6}.cm-s-default span.cm-attribute,.cm-s-default span.cm-qualifier{color:#9cdcfe}.cm-s-default span.cm-property{color:#dcdcaa}.cm-s-default span.cm-builtin{color:#50fa7b}.cm-s-default span.cm-type,.cm-s-default span.cm-variable-3{color:#ffb86c}.cm-s-default .CodeMirror-activeline-background{background:hsla(0,0%,100%,.1)}.cm-s-default .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}.cm-s-default .cm-header{color:#fff}.cm-s-default .CodeMirror-gutter{background:#22252b;padding-right:2px}.cm-link{text-decoration:underline;color:#569cd6}.cm-url{color:#9cdcfe!important}',""])},817:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"markdown",class:"markdown "+(e.fullscreen?"fullscreen":"")+" "+(e.bordered?"border":""),style:{width:e.width+("string"==typeof e.width?"":"px"),height:e.height+("string"==typeof e.height?"":"px")}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:!e.preview,expression:"!preview"}],staticClass:"markdown-toolbars"},[n("li",[e._t("title")],2),e._v(" "),e.tools.undo?n("li",{attrs:{name:"撤销"}},[n("span",{staticClass:"iconfont icon-undo",on:{click:function(t){return e.editor.undo()}}})]):e._e(),e._v(" "),e.tools.redo?n("li",{attrs:{name:"重做"},on:{click:e.redo}},[n("span",{staticClass:"iconfont icon-redo"})]):e._e(),e._v(" "),e.tools.strong?n("li",{attrs:{name:"粗体"}},[n("span",{staticClass:"iconfont icon-bold",on:{click:e.insertStrong}})]):e._e(),e._v(" "),e.tools.italic?n("li",{attrs:{name:"斜体"}},[n("span",{staticClass:"iconfont icon-italic",on:{click:e.insertItalic}})]):e._e(),e._v(" "),e.tools.overline?n("li",{attrs:{name:"删除线"}},[n("span",{staticClass:"iconfont icon-overline",on:{click:e.insertOverline}})]):e._e(),e._v(" "),e.tools.overline?n("li",{attrs:{name:"下划线"}},[n("span",{staticClass:"iconfont icon-under-line",on:{click:e.insertUnderline}})]):e._e(),e._v(" "),e.tools.h1?n("li",{attrs:{name:"标题1"}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(1)}}},[e._v("h1")])]):e._e(),e._v(" "),e.tools.h2?n("li",{attrs:{name:"标题2"}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(2)}}},[e._v("h2")])]):e._e(),e._v(" "),e.tools.h3?n("li",{attrs:{name:"标题3"}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(3)}}},[e._v("h3")])]):e._e(),e._v(" "),e.tools.h4?n("li",{attrs:{name:"标题4"}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(4)}}},[e._v("h4")])]):e._e(),e._v(" "),e.tools.h5?n("li",{attrs:{name:"标题5"}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(5)}}},[e._v("h5")])]):e._e(),e._v(" "),e.tools.h6?n("li",{attrs:{name:"标题6"}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(6)}}},[e._v("h6")])]):e._e(),e._v(" "),e.tools.hr?n("li",{attrs:{name:"分割线"}},[n("span",{staticClass:"iconfont icon-horizontal",on:{click:e.insertLine}})]):e._e(),e._v(" "),e.tools.quote?n("li",{attrs:{name:"引用"}},[n("span",{staticClass:"iconfont icon-quote",staticStyle:{"font-size":"16px"},on:{click:e.insertQuote}})]):e._e(),e._v(" "),e.tools.ul?n("li",{attrs:{name:"无序列表"}},[n("span",{staticClass:"iconfont icon-ul",on:{click:e.insertUl}})]):e._e(),e._v(" "),e.tools.ol?n("li",{attrs:{name:"有序列表"}},[n("span",{staticClass:"iconfont icon-ol",on:{click:e.insertOl}})]):e._e(),e._v(" "),e.tools.code?n("li",{attrs:{name:"代码块"}},[n("span",{staticClass:"iconfont icon-code",on:{click:e.insertCode}})]):e._e(),e._v(" "),e.tools.notChecked?n("li",{attrs:{name:"未完成列表"}},[n("span",{staticClass:"iconfont icon-checked-false",on:{click:e.insertNotFinished}})]):e._e(),e._v(" "),e.tools.checked?n("li",{attrs:{name:"已完成列表"}},[n("span",{staticClass:"iconfont icon-checked",on:{click:e.insertFinished}})]):e._e(),e._v(" "),e.tools.link?n("li",{attrs:{name:"链接"}},[n("span",{staticClass:"iconfont icon-link",on:{click:e.insertLink}})]):e._e(),e._v(" "),e.tools.image?n("li",{attrs:{name:"图片"}},[n("span",{staticClass:"iconfont icon-img",on:{click:e.insertImage}})]):e._e(),e._v(" "),e.tools.uploadImage?n("li",{attrs:{name:"本地图片"}},[n("span",{staticClass:"iconfont icon-upload-img",on:{click:e.chooseImage}})]):e._e(),e._v(" "),e.tools.custom_image?n("li",{attrs:{name:"浏览图片"}},[n("span",{staticClass:"iconfont icon-img",on:{click:function(t){return e.onCustom("image-browse")}}})]):e._e(),e._v(" "),e.tools.custom_uploadImage?n("li",{attrs:{name:"上传图片"}},[n("span",{staticClass:"iconfont icon-upload-img",on:{click:function(t){return e.onCustom("image-upload")}}})]):e._e(),e._v(" "),e.tools.custom_uploadFile?n("li",{attrs:{name:"上传文件"}},[n("span",{staticClass:"icon-svg",on:{click:function(t){return e.onCustom("file-upload")}}},[n("svg",{staticClass:"icon",attrs:{t:"1599285632421",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"45640",width:"16",height:"16"}},[n("path",{attrs:{d:"M127.519 892.879v-763.34h655.448V514.69h63.612V81.831c0-8.783-7.12-15.903-15.903-15.903H79.81c-8.783 0-15.903 7.12-15.903 15.903v858.757c0 8.783 7.12 15.903 15.903 15.903h493.993v-63.612H127.519z",fill:"#999999","p-id":"45641"}}),n("path",{attrs:{d:"M231.608 228.388h447.269V292H231.608zM231.608 384.409h447.269v63.612H231.608zM231.608 540.43h245.141v63.612H231.608zM231.608 696.451h245.141v63.612H231.608zM923.269 762.938L745.315 584.984c-3.545-3.545-8.34-5.074-12.966-4.596a15.931 15.931 0 0 0-9.848 4.616L544.586 762.918c-6.248 6.248-6.248 16.379 0 22.627l22.353 22.353c6.248 6.248 16.379 6.248 22.627 0l112.555-112.555v245.148c0 8.837 7.163 16 16 16h31.612c8.837 0 16-7.163 16-16V695.363l112.555 112.555c6.248 6.248 16.379 6.248 22.627 0l22.353-22.353c6.249-6.248 6.249-16.378 0.001-22.627z",fill:"#999999","p-id":"45642"}})])])]):e._e(),e._v(" "),e.tools.table?n("li",{attrs:{name:"表格"}},[n("span",{staticClass:"iconfont icon-table",on:{click:e.insertTable}})]):e._e(),e._v(" "),e.tools.theme?n("li",{staticClass:"shift-theme",attrs:{name:"代码块主题"}},[n("div",[n("span",{staticClass:"iconfont icon-theme",on:{click:function(t){e.themeSlideDown=!e.themeSlideDown}}}),e._v(" "),n("ul",{class:{active:e.themeSlideDown},on:{mouseleave:function(t){e.themeSlideDown=!1}}},[n("li",{on:{click:function(t){return e.setThemes("light")}}},[e._v("Light")]),e._v(" "),n("li",{on:{click:function(t){return e.setThemes("dark")}}},[e._v("VS Code")]),e._v(" "),n("li",{on:{click:function(t){return e.setThemes("oneDark")}}},[e._v("Atom OneDark")]),e._v(" "),n("li",{on:{click:function(t){return e.setThemes("gitHub")}}},[e._v("GitHub")])])])]):e._e(),e._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:e.tools.importmd,expression:"tools.importmd"}],staticClass:"import-file",attrs:{name:"导入文件"}},[n("span",{staticClass:"iconfont icon-daoru",on:{click:e.importFile}}),e._v(" "),n("input",{attrs:{type:"file",accept:"text/markdown"},on:{change:function(t){return e.importFile(t)}}})]),e._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:e.tools.exportmd,expression:"tools.exportmd"}],attrs:{name:"保存到本地"}},[n("span",{staticClass:"iconfont icon-download",on:{click:e.exportFile}})]),e._v(" "),e.tools.split&&e.split?n("li",{attrs:{name:"全屏编辑"}},[n("span",{staticClass:"iconfont icon-md",on:{click:function(t){e.split=!1}}})]):e._e(),e._v(" "),e.tools.split&&!e.split?n("li",{attrs:{name:"分屏显示"}},[n("span",{staticClass:"iconfont icon-group",on:{click:function(t){e.split=!0}}})]):e._e(),e._v(" "),e.tools.preview?n("li",{attrs:{name:"预览"}},[n("span",{staticClass:"iconfont icon-preview",on:{click:function(t){e.preview=!0}}})]):e._e(),e._v(" "),e.tools.clear?n("li",{attrs:{name:"清空"},on:{click:function(t){e.value=""}}},[n("span",{staticClass:"iconfont icon-clear"})]):e._e(),e._v(" "),e.tools.save?n("li",{attrs:{name:"保存"},on:{click:e.handleSave}},[n("span",{staticClass:"iconfont icon-save"})]):e._e(),e._v(" "),n("li",{attrs:{name:e.scrolling?"同步滚动:开":"同步滚动:关"}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.scrolling,expression:"scrolling"}],staticClass:"iconfont icon-on",on:{click:function(t){e.scrolling=!e.scrolling}}}),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.scrolling,expression:"!scrolling"}],staticClass:"iconfont icon-off",on:{click:function(t){e.scrolling=!e.scrolling}}})]),e._v(" "),n("li",{attrs:{name:"html转markdown"},on:{click:function(t){return e.onCustom("html2md")}}},[n("span",{staticStyle:{width:"auto","font-size":"14px",padding:"0 6px"}},[e._v("HTML2MD")])]),e._v(" "),n("li",{staticClass:"empty"}),e._v(" "),e.tools.fullscreen&&!e.fullscreen?n("li",{attrs:{name:"全屏"}},[n("span",{staticClass:"iconfont icon-fullscreen",on:{click:function(t){e.fullscreen=!e.fullscreen}}})]):e._e(),e._v(" "),e.tools.fullscreen&&e.fullscreen?n("li",{attrs:{name:"退出全屏"}},[n("span",{staticClass:"iconfont icon-quite",on:{click:function(t){e.fullscreen=!e.fullscreen}}})]):e._e(),e._v(" "),e.tools.custom_fullscreen&&!e.isCustomFullscreen?n("li",{attrs:{name:"全屏"}},[n("span",{staticClass:"iconfont icon-fullscreen",on:{click:function(t){return e.onCustom("fullscreen")}}})]):e._e(),e._v(" "),e.tools.custom_fullscreen&&e.isCustomFullscreen?n("li",{attrs:{name:"退出全屏"}},[n("span",{staticClass:"iconfont icon-quite",on:{click:function(t){return e.onCustom("fullscreen")}}})]):e._e()]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.preview&&!e.isPreview,expression:"preview && !isPreview"}],staticClass:"close-preview",on:{click:function(t){e.preview=!1}}},[n("span",{staticClass:"iconfont icon-close"})]),e._v(" "),n("div",{staticClass:"markdown-content",style:{background:e.preview?"#fff":""}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.preview,expression:"!preview"}],ref:"codemirror",staticClass:"codemirror",on:{mouseenter:function(t){return e.mousescrollSide("left")}}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.preview?e.preview:e.split,expression:"preview ? preview : split"}],ref:"preview",class:"markdown-preview markdown-theme-"+e.themeName,on:{scroll:e.previewScroll,mouseenter:function(t){return e.mousescrollSide("right")}}},[n("div",{ref:"previewInner",domProps:{innerHTML:e._s(e.html)}})])]),e._v(" "),n("div",{class:["preview-img",e.previewImgModal?"active":""]},[n("span",{staticClass:"close icon-close iconfont",on:{click:function(t){e.previewImgModal=!1}}}),e._v(" "),n("img",{class:[e.previewImgMode],attrs:{src:e.previewImgSrc,alt:""}})])])},staticRenderFns:[]}},818:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"mdeditor-box"},[n("MarkdownPro",{ref:"md1",attrs:{height:e.height,toolbars:e.toolbars,"is-custom-fullscreen":e.transfer},on:{"on-custom":e.customClick,"on-upload-image":e.handleUploadImageUpload},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}),e._v(" "),n("ImgUpload",{ref:"myUpload",staticClass:"upload-control",attrs:{type:"callback",uploadIng:e.uploadIng,num:"50"},on:{"update:uploadIng":function(t){e.uploadIng=t},"update:upload-ing":function(t){e.uploadIng=t},"on-callback":e.editorImage}}),e._v(" "),n("Upload",{ref:"fileUpload",staticClass:"upload-control",attrs:{name:"files",action:e.actionUrl,data:e.params,multiple:"",format:e.uploadFormat,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}})],1),e._v(" "),e.uploadIng>0?n("Spin",{attrs:{fix:""}},[n("Icon",{staticClass:"upload-control-spin-icon-load",attrs:{type:"ios-loading"}}),e._v(" "),n("div",[e._v(e._s(e.$L("正在上传文件...")))])],1):e._e(),e._v(" "),n("Modal",{staticClass:"mdeditor-transfer",attrs:{"footer-hide":"",fullscreen:"",transfer:"",closable:!1},model:{value:e.transfer,callback:function(t){e.transfer=t},expression:"transfer"}},[n("div",{staticClass:"mdeditor-transfer-body"},[e.transfer?n("MarkdownPro",{ref:"md2",attrs:{toolbars:e.toolbars,"is-custom-fullscreen":e.transfer,height:"100%"},on:{"on-custom":e.customClick},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}):e._e()],1),e._v(" "),e.uploadIng>0?n("Spin",{attrs:{fix:""}},[n("Icon",{staticClass:"upload-control-spin-icon-load",attrs:{type:"ios-loading"}}),e._v(" "),n("div",[e._v(e._s(e.$L("正在上传文件...")))])],1):e._e()],1),e._v(" "),n("Modal",{attrs:{title:"html转markdown",okText:"转换成markdown",width:"680","class-name":"simple-modal",transfer:""},on:{"on-ok":e.htmlOk},model:{value:e.html2md,callback:function(t){e.html2md=t},expression:"html2md"}},[n("Input",{attrs:{type:"textarea",rows:14,placeholder:"请输入html代码..."},model:{value:e.htmlValue,callback:function(t){e.htmlValue=t},expression:"htmlValue"}})],1)],1)},staticRenderFns:[]}}});