!function(e,t){function i(e){var t=e.length,i=ae.type(e);return!ae.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||"function"!==i&&(0===t||"number"==typeof t&&t>0&&t-1 in e)))}function n(e){var t=fe[e]={};return ae.each(e.match(se)||[],function(e,i){t[i]=!0}),t}function r(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=ae.expando+Math.random()}function a(e,i,n){var r;if(n===t&&1===e.nodeType)if(r="data-"+i.replace(ye,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ve.test(n)?JSON.parse(n):n)}catch(e){}me.set(e,i,n)}else n=t;return n}function o(){return!0}function s(){return!1}function l(){try{return W.activeElement}catch(e){}}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e,t,i){if(ae.isFunction(t))return ae.grep(e,function(e,n){return!!t.call(e,n,e)!==i});if(t.nodeType)return ae.grep(e,function(e){return e===t!==i});if("string"==typeof t){if(Ee.test(t))return ae.filter(t,e,i);t=ae.filter(t,e)}return ae.grep(e,function(e){return te.call(t,e)>=0!==i})}function d(e,t){return ae.nodeName(e,"table")&&ae.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function h(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function p(e){var t=ze.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function f(e,t){for(var i=e.length,n=0;i>n;n++)ge.set(e[n],"globalEval",!t||ge.get(t[n],"globalEval"))}function m(e,t){var i,n,r,a,o,s,l,c;if(1===t.nodeType){if(ge.hasData(e)&&(a=ge.access(e),o=ge.set(t,a),c=a.events)){delete o.handle,o.events={};for(r in c)for(i=0,n=c[r].length;n>i;i++)ae.event.add(t,r,c[r][i])}me.hasData(e)&&(s=me.access(e),l=ae.extend({},s),me.set(t,l))}}function g(e,i){var n=e.getElementsByTagName?e.getElementsByTagName(i||"*"):e.querySelectorAll?e.querySelectorAll(i||"*"):[];return i===t||i&&ae.nodeName(e,i)?ae.merge([e],n):n}function v(e,t){var i=t.nodeName.toLowerCase();"input"===i&&Pe.test(e.type)?t.checked=e.checked:("input"===i||"textarea"===i)&&(t.defaultValue=e.defaultValue)}function y(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,r=Ze.length;r--;)if((t=Ze[r]+i)in e)return t;return n}function _(e,t){return e=t||e,"none"===ae.css(e,"display")||!ae.contains(e.ownerDocument,e)}function b(t){return e.getComputedStyle(t,null)}function w(e,t){for(var i,n,r,a=[],o=0,s=e.length;s>o;o++)n=e[o],n.style&&(a[o]=ge.get(n,"olddisplay"),i=n.style.display,t?(a[o]||"none"!==i||(n.style.display=""),""===n.style.display&&_(n)&&(a[o]=ge.access(n,"olddisplay",T(n.nodeName)))):a[o]||(r=_(n),(i&&"none"!==i||!r)&&ge.set(n,"olddisplay",r?i:ae.css(n,"display"))));for(o=0;s>o;o++)n=e[o],n.style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?a[o]||"":"none"));return e}function x(e,t,i){var n=We.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function k(e,t,i,n,r){for(var a=i===(n?"border":"content")?4:"width"===t?1:0,o=0;4>a;a+=2)"margin"===i&&(o+=ae.css(e,i+Qe[a],!0,r)),n?("content"===i&&(o-=ae.css(e,"padding"+Qe[a],!0,r)),"margin"!==i&&(o-=ae.css(e,"border"+Qe[a]+"Width",!0,r))):(o+=ae.css(e,"padding"+Qe[a],!0,r),"padding"!==i&&(o+=ae.css(e,"border"+Qe[a]+"Width",!0,r)));return o}function C(e,t,i){var n=!0,r="width"===t?e.offsetWidth:e.offsetHeight,a=b(e),o=ae.support.boxSizing&&"border-box"===ae.css(e,"boxSizing",!1,a);if(0>=r||null==r){if(r=Ue(e,t,a),(0>r||null==r)&&(r=e.style[t]),Ve.test(r))return r;n=o&&(ae.support.boxSizingReliable||r===e.style[t]),r=parseFloat(r)||0}return r+k(e,t,i||(o?"border":"content"),n,a)+"px"}function T(e){var t=W,i=Ye[e];return i||(i=S(e,t),"none"!==i&&i||($e=($e||ae("')},set_vm_scale:function(e){var i=this;if(e){var n=t(window).height();t(i.element).css({width:e,height:n})}}};return t.extend(n.prototype,r),n}),function(e){var t={init:function(i){return this.each(function(){t.destroy.call(this),this.opt=e.extend(!0,{},e.fn.raty.defaults,i);var n=e(this),r=["number","readOnly","score","scoreName"];t._callback.call(this,r),this.opt.precision&&t._adjustPrecision.call(this),this.opt.number=t._between(this.opt.number,0,this.opt.numberMax),this.opt.path=this.opt.path||"",this.opt.path&&"/"!==this.opt.path.slice(this.opt.path.length-1,this.opt.path.length)&&(this.opt.path+="/"),this.stars=t._createStars.call(this),this.score=t._createScore.call(this),t._apply.call(this,this.opt.score);var a=this.opt.space?4:0,o=this.opt.width||this.opt.number*this.opt.size+this.opt.number*a;this.opt.cancel&&(this.cancel=t._createCancel.call(this),o+=this.opt.size+a),this.opt.readOnly?t._lock.call(this):(n.css("cursor","pointer"),t._binds.call(this)),!1!==this.opt.width&&n.css("width",o),t._target.call(this,this.opt.score),n.data({settings:this.opt,raty:!0})})},_adjustPrecision:function(){this.opt.targetType="score",this.opt.half=!0},_apply:function(e){e&&e>0&&(e=t._between(e,0,this.opt.number),this.score.val(e)),t._fill.call(this,e),e&&t._roundStars.call(this,e)},_between:function(e,t,i){return Math.min(Math.max(parseFloat(e),t),i)},_binds:function(){this.cancel&&t._bindCancel.call(this),t._bindClick.call(this),t._bindOut.call(this),t._bindOver.call(this)},_bindCancel:function(){t._bindClickCancel.call(this),t._bindOutCancel.call(this),t._bindOverCancel.call(this)},_bindClick:function(){var t=this,i=e(t);t.stars.on("click.raty",function(e){t.score.val(t.opt.half||t.opt.precision?i.data("score"):this.alt),t.opt.click&&t.opt.click.call(t,parseFloat(t.score.val()),e)})},_bindClickCancel:function(){var e=this;e.cancel.on("click.raty",function(t){e.score.removeAttr("value"),e.opt.click&&e.opt.click.call(e,null,t)})},_bindOut:function(){var i=this;e(this).on("mouseleave.raty",function(e){var n=parseFloat(i.score.val())||void 0;t._apply.call(i,n),t._target.call(i,n,e),i.opt.mouseout&&i.opt.mouseout.call(i,n,e)})},_bindOutCancel:function(){var t=this;t.cancel.on("mouseleave.raty",function(i){e(this).attr("src",t.opt.path+t.opt.cancelOff),t.opt.mouseout&&t.opt.mouseout.call(t,t.score.val()||null,i)})},_bindOverCancel:function(){var i=this;i.cancel.on("mouseover.raty",function(n){e(this).attr("src",i.opt.path+i.opt.cancelOn),i.stars.attr("src",i.opt.path+i.opt.starOff),t._target.call(i,null,n),i.opt.mouseover&&i.opt.mouseover.call(i,null)})},_bindOver:function(){var i=this,n=e(i),r=i.opt.half?"mousemove.raty":"mouseover.raty";i.stars.on(r,function(r){var a=parseInt(this.alt,10);if(i.opt.half){var o=parseFloat((r.pageX-e(this).offset().left)/i.opt.size),s=o>.5?1:.5;a=a-1+s,t._fill.call(i,a),i.opt.precision&&(a=a-s+o),t._roundStars.call(i,a),n.data("score",a)}else t._fill.call(i,a);t._target.call(i,a,r),i.opt.mouseover&&i.opt.mouseover.call(i,a,r)})},_callback:function(e){for(i in e)"function"==typeof this.opt[e[i]]&&(this.opt[e[i]]=this.opt[e[i]].call(this))},_createCancel:function(){var t=e(this),i=this.opt.path+this.opt.cancelOff,n=e("",{src:i,alt:"x",title:this.opt.cancelHint,class:"raty-cancel"});return"left"==this.opt.cancelPlace?t.prepend(" ").prepend(n):t.append(" ").append(n),n},_createScore:function(){return e("",{type:"hidden",name:this.opt.scoreName}).appendTo(this)},_createStars:function(){for(var i=e(this),n=1;n<=this.opt.number;n++){var r=t._getHint.call(this,n),a=this.opt.score&&this.opt.score>=n?"starOn":"starOff";a=this.opt.path+this.opt[a],e("",{src:a,alt:n,title:r}).appendTo(this),this.opt.space&&i.append(ni){var o=t.opt.iconRange[i],s=o.on||t.opt.starOn,l=o.off||t.opt.starOff,c=a?s:l;n<=o.range&&r.attr("src",t.opt.path+c),n==o.range&&i++}else{var c=a?"starOn":"starOff";r.attr("src",this.opt.path+this.opt[c])}}},_getHint:function(e){var t=this.opt.hints[e-1];return""===t?"":t||e},_lock:function(){var i=parseInt(this.score.val(),10),n=i?t._getHint.call(this,i):this.opt.noRatedMsg;e(this).data("readonly",!0).css("cursor","").attr("title",n),this.score.attr("readonly","readonly"),this.stars.attr("title",n),this.cancel&&this.cancel.hide()},_roundStars:function(e){var t=(e-Math.floor(e)).toFixed(2);if(t>this.opt.round.down){var i="starOn";this.opt.halfShow&&t1?i:i[0]},readOnly:function(i){return this.each(function(){var n=e(this);n.data("readonly")!==i&&(i?(n.off(".raty").children("img").off(".raty"),t._lock.call(this)):(t._binds.call(this),t._unlock.call(this)),n.data("readonly",i))})},reload:function(){return t.set.call(this,{})},score:function(){return arguments.length?t.setScore.apply(this,arguments):t.getScore.call(this)},set:function(t){return this.each(function(){var i=e(this),n=i.data("settings"),r=e.extend({},n,t);i.raty(r)})},setScore:function(i){return e(this).each(function(){!0!==e(this).data("readonly")&&(t._apply.call(this,i),t._target.call(this,i))})}};e.fn.raty=function(i){return t[i]?t[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void e.error("Method "+i+" does not exist!"):t.init.apply(this,arguments)},e.fn.raty.defaults={cancel:!1,cancelHint:"Cancel this rating!",cancelOff:"cancel-off.png",cancelOn:"cancel-on.png",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["bad","poor","regular","good","gorgeous"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",number:5,numberMax:20,path:"",precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,size:16,space:!0,starHalf:"star-half.png",starOff:"star-off.png",starOn:"star-on.png",target:void 0,targetFormat:"{score}",targetKeep:!1,targetText:"",targetType:"hint",width:void 0}}(jQuery),define("jqueryray",["jquery"],function(){}),define("modules/console/expdesktop/model/comment/controller",["jquery","app-utils","jqueryray"],function(e,t,i){function n(e,t,i,n){this.container=t,this.data=i,this.service=n,this.step_id=e,i.$watch("course_evaluate.comment.value",function(e){i.course_evaluate.tip.value=i.course_evaluate.tip.title.replace(/\{\d\}/g,100-e.length)})}var r={init:function(){var e=this;e.get_comment_content(),e.data.course_evaluate.tip.value=e.data.course_evaluate.tip.title.replace(/\{\d\}/g,100),e.data.events.send_comment=function(){e.send_comment()}},getComment:function(e){var i=this,n={item_id:e,type:"step"};i.service.getCommentList(n).done(function(e){for(var n=0;n/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function o(e,t){return e=e.source,t=t||"",function i(n,r){return n?(r=r.source||r,r=r.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(n,r),i):new RegExp(e,t)}}function s(){}function l(e){for(var t,i,n=1;nAn error occured:

"+r(e.message+"",!0)+"
";throw e}}var u={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:s,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:s,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:s,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};u.bullet=/(?:[*+-]|\d+\.)/,u.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,u.item=o(u.item,"gm")(/bull/g,u.bullet)(),u.list=o(u.list)(/bull/g,u.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+u.def.source+")")(),u.blockquote=o(u.blockquote)("def",u.def)(),u._tag="(?!(?: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",u.html=o(u.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,u._tag)(),u.paragraph=o(u.paragraph)("hr",u.hr)("heading",u.heading)("lheading",u.lheading)("blockquote",u.blockquote)("tag","<"+u._tag)("def",u.def)(),u.normal=l({},u),u.gfm=l({},u.normal,{fences:/^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/}),u.gfm.paragraph=o(u.paragraph)("(?!","(?!"+u.gfm.fences.source.replace("\\1","\\2")+"|"+u.list.source.replace("\\1","\\3")+"|")(),u.tables=l({},u.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=u,e.lex=function(t,i){return new e(i).lex(t)},e.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)},e.prototype.token=function(e,t,i){for(var n,r,a,o,s,l,c,d,h,e=e.replace(/^ +$/gm,"");e;)if((a=this.rules.newline.exec(e))&&(e=e.substring(a[0].length),a[0].length>1&&this.tokens.push({type:"space"})),a=this.rules.code.exec(e))e=e.substring(a[0].length),a=a[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?a:a.replace(/\n+$/,"")});else if(a=this.rules.fences.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"code",lang:a[2],text:a[3]});else if(a=this.rules.heading.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"heading",depth:a[1].length,text:a[2]});else if(t&&(a=this.rules.nptable.exec(e))){for(e=e.substring(a[0].length),l={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/\n$/,"").split("\n")},d=0;d ?/gm,""),this.token(a,t,!0),this.tokens.push({type:"blockquote_end"});else if(a=this.rules.list.exec(e)){for(e=e.substring(a[0].length),o=a[2],this.tokens.push({type:"list_start",ordered:o.length>1}),a=a[0].match(this.rules.item),n=!1,h=a.length,d=0;d1&&s.length>1||(e=a.slice(d+1).join("\n")+e,d=h-1)),r=n||/\n\n(?!\s*$)/.test(l),d!==h-1&&(n="\n"===l.charAt(l.length-1),r||(r=n)),this.tokens.push({type:r?"loose_item_start":"list_item_start"}),this.token(l,!1,i),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(a=this.rules.html.exec(e))e=e.substring(a[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:"pre"===a[1]||"script"===a[1]||"style"===a[1],text:a[0]});else if(!i&&t&&(a=this.rules.def.exec(e)))e=e.substring(a[0].length),this.tokens.links[a[1].toLowerCase()]={href:a[2],title:a[3]};else if(t&&(a=this.rules.table.exec(e))){for(e=e.substring(a[0].length),l={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/(?: *\| *)?\n$/,"").split("\n")},d=0;d])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:s,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:s,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,d.link=o(d.link)("inside",d._inside)("href",d._href)(),d.reflink=o(d.reflink)("inside",d._inside)(),d.normal=l({},d),d.pedantic=l({},d.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),d.gfm=l({},d.normal,{escape:o(d.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:o(d.text)("]|","~]|")("|","|https?://|")()}),d.breaks=l({},d.gfm,{br:o(d.br)("{2,}","*")(),text:o(d.gfm.text)("{2,}","*")()}),t.rules=d,t.output=function(e,i,n){return new t(i,n).output(e)},t.prototype.output=function(e){for(var t,i,n,a,o="";e;)if(a=this.rules.escape.exec(e))e=e.substring(a[0].length),o+=a[1];else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),"@"===a[2]?(i=":"===a[1].charAt(6)?this.mangle(a[1].substring(7)):this.mangle(a[1]),n=this.mangle("mailto:")+i):(i=r(a[1]),n=i),o+=this.renderer.link(n,null,i);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.tag.exec(e))!this.inLink&&/^/i.test(a[0])&&(this.inLink=!1),e=e.substring(a[0].length),o+=this.options.sanitize?r(a[0]):a[0];else if(a=this.rules.link.exec(e))e=e.substring(a[0].length),this.inLink=!0,o+=this.outputLink(a,{href:a[2],title:a[3]}),this.inLink=!1;else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){o+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),o+=this.renderer.strong(this.output(a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),o+=this.renderer.em(this.output(a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),o+=this.renderer.codespan(r(a[2],!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),o+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),o+=this.renderer.del(this.output(a[1]));else if(a=this.rules.text.exec(e))e=e.substring(a[0].length),o+=r(this.smartypants(a[0]));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(a[0].length),i=r(a[1]),n=i,o+=this.renderer.link(n,null,i);return o},t.prototype.outputLink=function(e,t){var i=r(t.href),n=t.title?r(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(i,n,this.output(e[1])):this.renderer.image(i,n,r(e[1]))},t.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/--/g,"—").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},t.prototype.mangle=function(e){for(var t,i="",n=e.length,r=0;r.5&&(t="x"+t.toString(16)),i+="&#"+t+";";return i},i.prototype.code=function(e,t,i){if(this.options.highlight){var n=this.options.highlight(e,t);null!=n&&n!==e&&(i=!0,e=n)}return t?'
'+(i?e:r(e,!0))+"\n
\n":"
"+(i?e:r(e,!0))+"\n
"},i.prototype.blockquote=function(e){return"
\n"+e+"
\n"},i.prototype.html=function(e){return e},i.prototype.heading=function(e,t,i){return"'+e+"\n"},i.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},i.prototype.list=function(e,t){var i=t?"ol":"ul";return"<"+i+">\n"+e+"\n"},i.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},i.prototype.paragraph=function(e){return"

    "+e+"

    \n"},i.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},i.prototype.tablerow=function(e){return"\n"+e+"\n"},i.prototype.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' style="text-align:'+t.align+'">':"<"+i+">")+e+"\n"},i.prototype.strong=function(e){return""+e+""},i.prototype.em=function(e){return""+e+""},i.prototype.codespan=function(e){return""+e+""},i.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},i.prototype.del=function(e){return""+e+""},i.prototype.link=function(e,t,i){if(this.options.sanitize){try{var n=decodeURIComponent(a(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:"))return""}var r='
    "},i.prototype.image=function(e,t,i){var n=/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/;!new RegExp(n).test(e)&&this.options.image_Remote_URL&&(e=this.options.image_Remote_URL+e);var r=''+i+'":">"},n.parse=function(e,t,i){return new n(t,i).parse(e)},n.prototype.parse=function(e){this.inline=new t(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var i="";this.next();)i+=this.tok();return i},n.prototype.next=function(){return this.token=this.tokens.pop()},n.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},n.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},n.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,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,i,n,r="",a="";for(i="",e=0;e122||(u<65||d>90||r.push([32|Math.max(65,d),32|Math.min(u,90)]),u<97||d>122||r.push([-33&Math.max(97,d),-33&Math.min(u,122)]))}}r.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]});for(var h=[],p=[],s=0;sf[0]&&(f[1]+1>f[0]&&o.push("-"),o.push(i(f[1])))}return o.push("]"),o.join("")}for(var r=0,a=!1,o=!1,s=0,l=e.length;s=2&&"["===h?t[l]=n(u):"\\"!==h&&(t[l]=u.replace(/[a-zA-Z]/g,function(e){var t=e.charCodeAt(0);return"["+String.fromCharCode(-33&t,32|t)+"]"}))}return t.join("")}(c)+")")}return new RegExp(d.join("|"),o?"gi":"g")}function t(e,t){function i(e){var l=e.nodeType;if(1==l){if(n.test(e.className))return;for(var c=e.firstChild;c;c=c.nextSibling)i(c);var u=e.nodeName.toLowerCase();"br"!==u&&"li"!==u||(r[s]="\n",o[s<<1]=a++,o[s++<<1|1]=e)}else if(3==l||4==l){var d=e.nodeValue;d.length&&(d=t?d.replace(/\r\n?/g,"\n"):d.replace(/[ \t\r\n]+/g," "),r[s]=d,o[s<<1]=a,a+=d.length,o[s++<<1|1]=e)}}var n=/(?:^|\s)nocode(?:\s|$)/,r=[],a=0,o=[],s=0;return i(e),{sourceCode:r.join("").replace(/\n$/,""),spans:o}}function i(e,t,i,n,r){if(i){var a={sourceNode:e,pre:1,langExtension:null,numberLines:null,sourceCode:i,spans:null,basePos:t,decorations:null};n(a),r.push.apply(r,a.decorations)}}function n(e){for(var t=void 0,i=e.firstChild;i;i=i.nextSibling){var n=i.nodeType;t=1===n?t?e:i:3===n&&R.test(i.nodeValue)?e:t}return t===e?void 0:t}function r(t,n){var r,a={};!function(){for(var i=t.concat(n),o=[],s={},l=0,c=i.length;l=0;)a[d.charAt(h)]=u;var p=u[1],f=""+p;s.hasOwnProperty(f)||(o.push(p),s[f]=null)}o.push(/[\0-\uffff]/),r=e(o)}();var o=n.length,s=function(e){for(var t=e.sourceCode,l=e.basePos,u=e.sourceNode,d=[l,O],h=0,p=t.match(r)||[],f={},m=0,g=p.length;m=5&&"lang-"===_.substring(0,5),!v||b&&"string"==typeof b[1]||(v=!1,_=N),v||(f[y]=_)}var k=h;if(h+=y.length,v){var C=b[1],T=y.indexOf(C),S=T+C.length;b[2]&&(S=y.length-b[2].length,T=S-C.length);var E=_.substring(5);i(u,l+k,y.substring(0,T),s,d),i(u,l+k+T,C,c(E,C),d),i(u,l+k+S,y.substring(S),s,d)}else d.push(l+k,_)}e.decorations=d};return s}function a(e){var t=[],i=[];e.tripleQuotedStrings?t.push([E,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):e.multiLineStrings?t.push([E,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):t.push([E,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&i.push([E,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var n=e.hashComments;n&&(e.cStyleComments?(n>1?t.push([I,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):t.push([I,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),i.push([E,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):t.push([I,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(i.push([I,/^\/\/[^\r\n]*/,null]),i.push([I,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var a=e.regexLiterals;if(a){var o=a>1?"":"\n\r",s=o?".":"[\\S\\s]",l="/(?=[^/*"+o+"])(?:[^/\\x5B\\x5C"+o+"]|\\x5C"+s+"|\\x5B(?:[^\\x5C\\x5D"+o+"]|\\x5C"+s+")*(?:\\x5D|$))+/";i.push(["lang-regex",RegExp("^"+P+"("+l+")")])}var c=e.types;c&&i.push([D,c]);var u=(""+e.keywords).replace(/^ | $/g,"");u.length&&i.push([A,new RegExp("^(?:"+u.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push([O,/^\s+/,null," \r\n\t "]);var d="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(d+="(?!s*/)"),i.push([M,/^@[a-z_$][a-z_$@0-9]*/i,null],[D,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[O,/^[a-z_$][a-z_$@0-9]*/i,null],[M,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[O,/^\\[\s\S]?/,null],[L,new RegExp(d),null]),r(t,i)}function o(e,t,i){function n(e){var t=e.nodeType;if(1!=t||a.test(e.className)){if((3==t||4==t)&&i){var l=e.nodeValue,c=l.match(o);if(c){var u=l.substring(0,c.index);e.nodeValue=u;var d=l.substring(c.index+c[0].length);if(d){var h=e.parentNode;h.insertBefore(s.createTextNode(d),e.nextSibling)}r(e),u||e.parentNode.removeChild(e)}}}else if("br"===e.nodeName.toLowerCase())r(e),e.parentNode&&e.parentNode.removeChild(e);else for(var p=e.firstChild;p;p=p.nextSibling)n(p)}function r(e){function t(e,i){var n=i?e.cloneNode(!1):e,r=e.parentNode;if(r){var a=t(r,1),o=e.nextSibling;a.appendChild(n);for(var s=o;s;s=o)o=s.nextSibling,a.appendChild(s)}return n}for(;!e.nextSibling;)if(!(e=e.parentNode))return;for(var i,n=t(e.nextSibling,0);(i=n.parentNode)&&1===i.nodeType;)n=i;c.push(n)}for(var a=/(?:^|\s)nocode(?:\s|$)/,o=/\r\n?|\n/,s=e.ownerDocument,l=s.createElement("li");e.firstChild;)l.appendChild(e.firstChild);for(var c=[l],u=0;u=b&&(l+=2),a>=w&&(d+=2)}}finally{v&&(v.style.display=y)}}function l(e,t){for(var i=t.length;--i>=0;){var n=t[i];z.hasOwnProperty(n)?p.console&&console.warn("cannot override language handler %s",n):z[n]=e}}function c(e,t){return e&&z.hasOwnProperty(e)||(e=/^\s*"+e+"",a=a.firstChild,n&&o(a,n,!0),u({langExtension:r,numberLines:n,sourceNode:a,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null}),a.innerHTML}function h(e,t){function i(e){return a.getElementsByTagName(e)}function r(){for(var t=p.PR_SHOULD_USE_CONTINUATION?m.now()+250:1/0;g|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*",R=/\S/,j=a({keywords:T,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),z={};l(j,["default-code"]),l(r([],[[O,/^[^]*(?:>|$)/],[I,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),l(r([[O,/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),l(r([],[["atv",/^[\s\S]+/]]),["uq.val"]),l(a({keywords:v,hashComments:!0,cStyleComments:!0,types:S}),["c","cc","cpp","cxx","cyc","m"]),l(a({keywords:"null,true,false"}),["json"]),l(a({ keywords:_,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:S}),["cs"]),l(a({keywords:y,cStyleComments:!0}),["java"]),l(a({keywords:C,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),l(a({keywords:x,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),l(a({keywords:w,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),l(a({keywords:k,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),l(a({keywords:b,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),l(a({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),l(r([],[[E,/^[\s\S]+/]]),["regex"]);var F=p.PR={createSimpleLexer:r,registerLangHandler:l,sourceDecorator:a,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:I,PR_DECLARATION:"dec",PR_KEYWORD:A,PR_LITERAL:M,PR_NOCODE:"nocode",PR_PLAIN:O,PR_PUNCTUATION:L,PR_SOURCE:N,PR_STRING:E,PR_TAG:"tag",PR_TYPE:D,prettyPrintOne:IN_GLOBAL_SCOPE?p.prettyPrintOne=d:prettyPrintOne=d,prettyPrint:IN_GLOBAL_SCOPE?p.prettyPrint=h:prettyPrint=h},B=p.define;"function"==typeof B&&B.amd&&B("google-code-prettify",[],function(){return F})}(),define("prettify",function(){}),function(e){if("function"==typeof bootstrap)bootstrap("katex",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define("katex",e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeKatex=e}else"undefined"!=typeof window?window.katex=e():global.katex=e()}(function(){return function e(t,i,n){function r(o,s){if(!i[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);throw new Error("Cannot find module '"+o+"'")}var c=i[o]={exports:{}};t[o][0].call(c.exports,function(e){var i=t[o][1][e];return r(i||e)},c,c.exports,e,t,i,n)}return i[o].exports}for(var a="function"==typeof require&&require,o=0;o:]/,/^[,;]/,/^['\^_{}]/,/^[(\[]/,/^[)\]?!]/,/^~/],s=[/^[a-zA-Z0-9`!@*()-=+\[\]'";:?\/.,]/,/^[{}]/,/^~/],l=/^\s*/,c=/^( +|\\ +)/,u=/^\\(?:[a-zA-Z]+|.)/;n.prototype._innerLex=function(e,t,i){var n,o=this._input.slice(e);if(i)n=o.match(l)[0],e+=n.length,o=o.slice(n.length);else if(null!==(n=o.match(c)))return new r(" ",null,e+n[0].length);if(0===o.length)return new r("EOF",null,e);var s;if(s=o.match(u))return new r(s[0],null,e+s[0].length);for(var d=0;d0){if(s.getGreediness(r.result.result)>1)return this.parseFunction(e,t);throw new d("Got function '"+r.result.result+"' with no arguments as "+n,this.lexer,e)}return r.result}throw new d("Expected group after '"+i+"'",this.lexer,e)},n.prototype.parseAtom=function(e,t){var i=this.parseImplicitGroup(e,t);if("text"===t)return i;var n;i?n=i.position:(n=e,i=void 0);for(var o,s,l;;){var c=this.lexer.lex(n,t);if("^"===c.text){if(o)throw new d("Double superscript",this.lexer,n);l=this.handleSupSubscript(c.position,t,c.text,"superscript"),n=l.position,o=l.result}else if("_"===c.text){if(s)throw new d("Double subscript",this.lexer,n);l=this.handleSupSubscript(c.position,t,c.text,"subscript"),n=l.position,s=l.result}else{if("'"!==c.text)break;var u=new r("textord","\\prime",t),h=[u];for(n=c.position;"'"===(c=this.lexer.lex(n,t)).text;)h.push(u),n=c.position;o=new r("ordgroup",h,t)}}return o||s?new a(new r("supsub",{base:i&&i.result,sup:o,sub:s},t),n):i};var h=["\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],p=["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"];n.prototype.parseImplicitGroup=function(e,t){var i=this.parseSymbol(e,t);if(!i||!i.result)return this.parseFunction(e,t);var n,o=i.result.result;if("\\left"===o){var s=this.parseFunction(e,t);n=this.parseExpression(s.position,t,!1,"}");var l=this.parseSymbol(n.position,t);if(l&&"\\right"===l.result.result){var c=this.parseFunction(n.position,t);return new a(new r("leftright",{body:n.result,left:s.result.value.value,right:c.result.value.value},t),c.position)}throw new d("Missing \\right",this.lexer,n.position)}return"\\right"===o?null:u.contains(h,o)?(n=this.parseExpression(i.result.position,t,!1,"}"),new a(new r("sizing",{size:"size"+(u.indexOf(h,o)+1),value:n.result},t),n.position)):u.contains(p,o)?(n=this.parseExpression(i.result.position,t,!0,"}"),new a(new r("styling",{style:o.slice(1,o.length-5),value:n.result},t),n.position)):this.parseFunction(e,t)},n.prototype.parseFunction=function(e,t){var i=this.parseGroup(e,t);if(i){if(i.isFunction){var n=i.result.result;if("text"===t&&!i.allowedInText)throw new d("Can't use function '"+n+"' in text mode",this.lexer,i.position);var o,l=i.result.position,c=i.numArgs+i.numOptionalArgs;if(c>0){for(var u=s.getGreediness(n),h=[n],p=[l],f=0;f0){if(!(s.getGreediness(m.result.result)>u))throw new d("Got function '"+m.result.result+"' as argument to function '"+i.result.result+"'",this.lexer,m.result.position-1);v=this.parseFunction(l,t)}else v=m.result;h.push(v.result),p.push(v.position),l=v.position}h.push(p),o=s.funcs[n].handler.apply(this,h)}else o=s.funcs[n].handler.apply(this,[n]);return new a(new r(o.type,o,t),l)}return i.result}return null},n.prototype.parseSpecialGroup=function(e,t,i,n){if("color"===t||"size"===t){var s=this.lexer.lex(e,i);if(n&&"["!==s.text)return null;this.expect(s,n?"[":"{");var l,c=this.lexer.lex(s.position,t);l="color"===t?c.text:c.data;var u=this.lexer.lex(c.position,i);return this.expect(u,n?"]":"}"),new o(new a(new r(t,l,i),u.position),!1)}if("text"===t){e=this.lexer.lex(e,"whitespace").position}return n?this.parseOptionalGroup(e,t):this.parseGroup(e,t)},n.prototype.parseGroup=function(e,t){var i=this.lexer.lex(e,t);if("{"===i.text){var n=this.parseExpression(i.position,t,!1,"}"),s=this.lexer.lex(n.position,t);return this.expect(s,"}"),new o(new a(new r("ordgroup",n.result,t),s.position),!1)}return this.parseSymbol(e,t)},n.prototype.parseOptionalGroup=function(e,t){var i=this.lexer.lex(e,t);if("["===i.text){var n=this.parseExpression(i.position,t,!1,"]"),s=this.lexer.lex(n.position,t);return this.expect(s,"]"),new o(new a(new r("ordgroup",n.result,t),s.position),!1)}return null},n.prototype.parseSymbol=function(e,t){var i=this.lexer.lex(e,t);if(s.funcs[i.text]){var n=s.funcs[i.text],l=n.argTypes;if(l){l=l.slice();for(var u=0;ut&&(t=e.children[r].height),e.children[r].depth>i&&(i=e.children[r].depth),e.children[r].maxFontSize>n&&(n=e.children[r].maxFontSize);e.height=t,e.depth=i,e.maxFontSize=n},u=function(e,t,i){var r=new n.span(e,t);return c(r),i&&(r.style.color=i),r},d=function(e){var t=new n.documentFragment(e);return c(t),t},h=function(e,t){var i=u([],[new n.symbolNode("​")]);return i.style.fontSize=t/e.style.sizeMultiplier+"em",u(["fontsize-ensurer","reset-"+e.size,"size5"],[i])},p=function(e,t,i,r){var a,o,s;if("individualShift"===t){var l=e;for(e=[l[0]],a=-l[0].shift-l[0].elem.depth,o=a,s=1;s0&&(p+=T,g-=T)}w=o.makeVList([{type:"elem",elem:r,shift:g},{type:"elem",elem:n,shift:-p}],"individualShift",null,t),h instanceof l.symbolNode&&(w.children[0].style.marginLeft=-h.italic+"em"),w.children[0].style.marginRight=k,w.children[1].style.marginRight=k}else p=Math.max(p,_,s.depth+.25*c.metrics.xHeight),w=o.makeVList([{type:"elem",elem:n}],"shift",-p,t),w.children[0].style.marginRight=k;else g=Math.max(g,c.metrics.sub1,u.height-.8*c.metrics.xHeight),w=o.makeVList([{type:"elem",elem:r}],"shift",g,t),w.children[0].style.marginRight=k,h instanceof l.symbolNode&&(w.children[0].style.marginLeft=-h.italic+"em");return d([f(e.value.base)],[h,w])},genfrac:function(e,t,i){var n=t.style;"display"===e.value.size?n=a.DISPLAY:"text"===e.value.size&&(n=a.TEXT);var r,l=n.fracNum(),u=n.fracDen(),h=b(e.value.numer,t.withStyle(l)),p=d([n.reset(),l.cls()],[h]),f=b(e.value.denom,t.withStyle(u)),m=d([n.reset(),u.cls()],[f]);r=e.value.hasBarLine?c.metrics.defaultRuleThickness/t.style.sizeMultiplier:0;var g,v,y;n.size===a.DISPLAY.size?(g=c.metrics.num1,v=r>0?3*r:7*c.metrics.defaultRuleThickness,y=c.metrics.denom1):(r>0?(g=c.metrics.num2,v=r):(g=c.metrics.num3,v=3*c.metrics.defaultRuleThickness),y=c.metrics.denom2);var _;if(0===r){var w=g-h.depth-(f.height-y);wn.height+n.depth+h&&(h=(h+g-n.height-n.depth)/2);var v=-(n.height+h+r)+m.height;m.style.top=v+"em",m.height-=v,m.depth+=v;var y;return y=0===n.height&&0===n.depth?d():o.makeVList([{type:"elem",elem:n},{type:"kern",size:h},{type:"elem",elem:l},{type:"kern",size:r}],"firstBaseline",null,t),d(["sqrt","mord"],[m,y])},sizing:function(e,t,i){var n=h(e.value.value,t.withSize(e.value.size),i),r=d(["mord"],[d(["sizing","reset-"+t.size,e.value.size,t.style.cls()],n)]),a=_[e.value.size];return r.maxFontSize=a*t.style.sizeMultiplier,r},styling:function(e,t,i){var n={display:a.DISPLAY,text:a.TEXT,script:a.SCRIPT,scriptscript:a.SCRIPTSCRIPT},r=n[e.value.style],o=h(e.value.value,t.withStyle(r),i);return d([t.style.reset(),r.cls()],o)},delimsizing:function(e,t,i){var n=e.value.value;return"."===n?d([p[e.value.delimType]]):d([p[e.value.delimType]],[s.sizedDelim(n,e.value.size,t,e.mode)])},leftright:function(e,t,i){for(var n=h(e.value.body,t.reset()),r=0,a=0,o=0;o","\\langle","\\rangle","/","\\backslash"],b=[0,1.2,1.8,2.4,3],w=function(e,t,i,r){if("<"===e?e="\\langle":">"===e&&(e="\\rangle"),l.contains(v,e)||l.contains(_,e))return f(e,t,!1,i,r);if(l.contains(y,e))return g(e,b[t],!1,i,r);throw new n("Illegal delimiter: '"+e+"'")},x=[{type:"small",style:r.SCRIPTSCRIPT},{type:"small",style:r.SCRIPT},{type:"small",style:r.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],k=[{type:"small",style:r.SCRIPTSCRIPT},{type:"small",style:r.SCRIPT},{type:"small",style:r.TEXT},{type:"stack"}],C=[{type:"small",style:r.SCRIPTSCRIPT},{type:"small",style:r.SCRIPT},{type:"small",style:r.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],T=function(e){return"small"===e.type?"Main-Regular":"large"===e.type?"Size"+e.size+"-Regular":"stack"===e.type?"Size4-Regular":void 0},S=function(e,t,i,n){for(var r=Math.min(2,3-n.style.size),a=r;at)return i[a]}return i[i.length-1]},E=function(e,t,i,n,r){"<"===e?e="\\langle":">"===e&&(e="\\rangle");var a;a=l.contains(_,e)?x:l.contains(v,e)?C:k;var o=S(e,t,a,n);return"small"===o.type?p(e,o.style,i,n,r):"large"===o.type?f(e,o.size,i,n,r):"stack"===o.type?g(e,t,i,n,r):void 0},A=function(e,t,i,n,r){var a=o.metrics.axisHeight*n.style.sizeMultiplier,s=5/o.metrics.ptPerEm,l=Math.max(t-a,i+a),c=Math.max(l/500*901,2*l-s);return E(e,c,!0,n,r)};t.exports={sizedDelim:w,customSizedDelim:E,leftRightDelim:A}},{"./ParseError":4,"./Style":6,"./buildCommon":7,"./fontMetrics":11,"./symbols":14,"./utils":15}],10:[function(e,t,i){function n(e,t,i,n,r,a){this.classes=e||[],this.children=t||[],this.height=i||0,this.depth=n||0,this.maxFontSize=r||0,this.style=a||{}}function r(e,t,i,n){this.children=e||[],this.height=t||0,this.depth=i||0, this.maxFontSize=n||0}function a(e,t,i,n,r,a,o){this.value=e||"",this.height=t||0,this.depth=i||0,this.italic=n||0,this.skew=r||0,this.classes=a||[],this.style=o||{},this.maxFontSize=0}var o=e("./utils"),s=function(e){e=e.slice();for(var t=e.length-1;t>=0;t--)e[t]||e.splice(t,1);return e.join(" ")};n.prototype.toNode=function(){var e=document.createElement("span");e.className=s(this.classes);for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);for(var i=0;i0&&(t=document.createElement("span"),t.style.marginRight=this.italic+"em"),this.classes.length>0&&(t=t||document.createElement("span"),t.className=s(this.classes));for(var i in this.style)this.style.hasOwnProperty(i)&&(t=t||document.createElement("span"),t.style[i]=this.style[i]);return t?(t.appendChild(e),t):e},a.prototype.toMarkup=function(){var e=!1,t="0&&(i+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(i+=o.hyphenate(n)+":"+this.style[n]+";");i&&(e=!0,t+=' style="'+o.escape(i)+'"');var r=o.escape(this.value);return e?(t+=">",t+=r,t+=""):r},t.exports={span:n,documentFragment:r,symbolNode:a}},{"./utils":15}],11:[function(e,t,i){var n=e("./Style"),r={xHeight:.431,quad:1,num1:.677,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,supDrop:.386,subDrop:.05,axisHeight:.25,defaultRuleThickness:.04,bigOpSpacing1:.111,bigOpSpacing2:.166,bigOpSpacing3:.2,bigOpSpacing4:.6,bigOpSpacing5:.1,ptPerEm:10,delim1:2.39,getDelim2:function(e){if(e.size===n.TEXT.size)return 1.01;if(e.size===n.SCRIPT.size)return.81;if(e.size===n.SCRIPTSCRIPT.size)return.71;throw new Error("Unexpected style size: "+e.size)}},a={"AMS-Regular":{10003:{depth:0,height:.69224,italic:0,skew:0},10016:{depth:0,height:.69224,italic:0,skew:0},1008:{depth:0,height:.43056,italic:.04028,skew:0},107:{depth:0,height:.68889,italic:0,skew:0},10731:{depth:.11111,height:.69224,italic:0,skew:0},10846:{depth:.19444,height:.75583,italic:0,skew:0},10877:{depth:.13667,height:.63667,italic:0,skew:0},10878:{depth:.13667,height:.63667,italic:0,skew:0},10885:{depth:.25583,height:.75583,italic:0,skew:0},10886:{depth:.25583,height:.75583,italic:0,skew:0},10887:{depth:.13597,height:.63597,italic:0,skew:0},10888:{depth:.13597,height:.63597,italic:0,skew:0},10889:{depth:.26167,height:.75726,italic:0,skew:0},10890:{depth:.26167,height:.75726,italic:0,skew:0},10891:{depth:.48256,height:.98256,italic:0,skew:0},10892:{depth:.48256,height:.98256,italic:0,skew:0},10901:{depth:.13667,height:.63667,italic:0,skew:0},10902:{depth:.13667,height:.63667,italic:0,skew:0},10933:{depth:.25142,height:.75726,italic:0,skew:0},10934:{depth:.25142,height:.75726,italic:0,skew:0},10935:{depth:.26167,height:.75726,italic:0,skew:0},10936:{depth:.26167,height:.75726,italic:0,skew:0},10937:{depth:.26167,height:.75726,italic:0,skew:0},10938:{depth:.26167,height:.75726,italic:0,skew:0},10949:{depth:.25583,height:.75583,italic:0,skew:0},10950:{depth:.25583,height:.75583,italic:0,skew:0},10955:{depth:.28481,height:.79383,italic:0,skew:0},10956:{depth:.28481,height:.79383,italic:0,skew:0},165:{depth:0,height:.675,italic:.025,skew:0},174:{depth:.15559,height:.69224,italic:0,skew:0},240:{depth:0,height:.68889,italic:0,skew:0},295:{depth:0,height:.68889,italic:0,skew:0},57350:{depth:.08167,height:.58167,italic:0,skew:0},57351:{depth:.08167,height:.58167,italic:0,skew:0},57352:{depth:.08167,height:.58167,italic:0,skew:0},57353:{depth:0,height:.43056,italic:.04028,skew:0},57356:{depth:.25142,height:.75726,italic:0,skew:0},57357:{depth:.25142,height:.75726,italic:0,skew:0},57358:{depth:.41951,height:.91951,italic:0,skew:0},57359:{depth:.30274,height:.79383,italic:0,skew:0},57360:{depth:.30274,height:.79383,italic:0,skew:0},57361:{depth:.41951,height:.91951,italic:0,skew:0},57366:{depth:.25142,height:.75726,italic:0,skew:0},57367:{depth:.25142,height:.75726,italic:0,skew:0},57368:{depth:.25142,height:.75726,italic:0,skew:0},57369:{depth:.25142,height:.75726,italic:0,skew:0},57370:{depth:.13597,height:.63597,italic:0,skew:0},57371:{depth:.13597,height:.63597,italic:0,skew:0},65:{depth:0,height:.68889,italic:0,skew:0},66:{depth:0,height:.68889,italic:0,skew:0},67:{depth:0,height:.68889,italic:0,skew:0},68:{depth:0,height:.68889,italic:0,skew:0},69:{depth:0,height:.68889,italic:0,skew:0},70:{depth:0,height:.68889,italic:0,skew:0},71:{depth:0,height:.68889,italic:0,skew:0},710:{depth:0,height:.825,italic:0,skew:0},72:{depth:0,height:.68889,italic:0,skew:0},73:{depth:0,height:.68889,italic:0,skew:0},732:{depth:0,height:.9,italic:0,skew:0},74:{depth:.16667,height:.68889,italic:0,skew:0},75:{depth:0,height:.68889,italic:0,skew:0},76:{depth:0,height:.68889,italic:0,skew:0},77:{depth:0,height:.68889,italic:0,skew:0},770:{depth:0,height:.825,italic:0,skew:0},771:{depth:0,height:.9,italic:0,skew:0},78:{depth:0,height:.68889,italic:0,skew:0},79:{depth:.16667,height:.68889,italic:0,skew:0},80:{depth:0,height:.68889,italic:0,skew:0},81:{depth:.16667,height:.68889,italic:0,skew:0},82:{depth:0,height:.68889,italic:0,skew:0},8245:{depth:0,height:.54986,italic:0,skew:0},83:{depth:0,height:.68889,italic:0,skew:0},84:{depth:0,height:.68889,italic:0,skew:0},8463:{depth:0,height:.68889,italic:0,skew:0},8487:{depth:0,height:.68889,italic:0,skew:0},8498:{depth:0,height:.68889,italic:0,skew:0},85:{depth:0,height:.68889,italic:0,skew:0},8502:{depth:0,height:.68889,italic:0,skew:0},8503:{depth:0,height:.68889,italic:0,skew:0},8504:{depth:0,height:.68889,italic:0,skew:0},8513:{depth:0,height:.68889,italic:0,skew:0},8592:{depth:-.03598,height:.46402,italic:0,skew:0},8594:{depth:-.03598,height:.46402,italic:0,skew:0},86:{depth:0,height:.68889,italic:0,skew:0},8602:{depth:-.13313,height:.36687,italic:0,skew:0},8603:{depth:-.13313,height:.36687,italic:0,skew:0},8606:{depth:.01354,height:.52239,italic:0,skew:0},8608:{depth:.01354,height:.52239,italic:0,skew:0},8610:{depth:.01354,height:.52239,italic:0,skew:0},8611:{depth:.01354,height:.52239,italic:0,skew:0},8619:{depth:0,height:.54986,italic:0,skew:0},8620:{depth:0,height:.54986,italic:0,skew:0},8621:{depth:-.13313,height:.37788,italic:0,skew:0},8622:{depth:-.13313,height:.36687,italic:0,skew:0},8624:{depth:0,height:.69224,italic:0,skew:0},8625:{depth:0,height:.69224,italic:0,skew:0},8630:{depth:0,height:.43056,italic:0,skew:0},8631:{depth:0,height:.43056,italic:0,skew:0},8634:{depth:.08198,height:.58198,italic:0,skew:0},8635:{depth:.08198,height:.58198,italic:0,skew:0},8638:{depth:.19444,height:.69224,italic:0,skew:0},8639:{depth:.19444,height:.69224,italic:0,skew:0},8642:{depth:.19444,height:.69224,italic:0,skew:0},8643:{depth:.19444,height:.69224,italic:0,skew:0},8644:{depth:.1808,height:.675,italic:0,skew:0},8646:{depth:.1808,height:.675,italic:0,skew:0},8647:{depth:.1808,height:.675,italic:0,skew:0},8648:{depth:.19444,height:.69224,italic:0,skew:0},8649:{depth:.1808,height:.675,italic:0,skew:0},8650:{depth:.19444,height:.69224,italic:0,skew:0},8651:{depth:.01354,height:.52239,italic:0,skew:0},8652:{depth:.01354,height:.52239,italic:0,skew:0},8653:{depth:-.13313,height:.36687,italic:0,skew:0},8654:{depth:-.13313,height:.36687,italic:0,skew:0},8655:{depth:-.13313,height:.36687,italic:0,skew:0},8666:{depth:.13667,height:.63667,italic:0,skew:0},8667:{depth:.13667,height:.63667,italic:0,skew:0},8669:{depth:-.13313,height:.37788,italic:0,skew:0},87:{depth:0,height:.68889,italic:0,skew:0},8705:{depth:0,height:.825,italic:0,skew:0},8708:{depth:0,height:.68889,italic:0,skew:0},8709:{depth:.08167,height:.58167,italic:0,skew:0},8717:{depth:0,height:.43056,italic:0,skew:0},8722:{depth:-.03598,height:.46402,italic:0,skew:0},8724:{depth:.08198,height:.69224,italic:0,skew:0},8726:{depth:.08167,height:.58167,italic:0,skew:0},8733:{depth:0,height:.69224,italic:0,skew:0},8736:{depth:0,height:.69224,italic:0,skew:0},8737:{depth:0,height:.69224,italic:0,skew:0},8738:{depth:.03517,height:.52239,italic:0,skew:0},8739:{depth:.08167,height:.58167,italic:0,skew:0},8740:{depth:.25142,height:.74111,italic:0,skew:0},8741:{depth:.08167,height:.58167,italic:0,skew:0},8742:{depth:.25142,height:.74111,italic:0,skew:0},8756:{depth:0,height:.69224,italic:0,skew:0},8757:{depth:0,height:.69224,italic:0,skew:0},8764:{depth:-.13313,height:.36687,italic:0,skew:0},8765:{depth:-.13313,height:.37788,italic:0,skew:0},8769:{depth:-.13313,height:.36687,italic:0,skew:0},8770:{depth:-.03625,height:.46375,italic:0,skew:0},8774:{depth:.30274,height:.79383,italic:0,skew:0},8776:{depth:-.01688,height:.48312,italic:0,skew:0},8778:{depth:.08167,height:.58167,italic:0,skew:0},8782:{depth:.06062,height:.54986,italic:0,skew:0},8783:{depth:.06062,height:.54986,italic:0,skew:0},8785:{depth:.08198,height:.58198,italic:0,skew:0},8786:{depth:.08198,height:.58198,italic:0,skew:0},8787:{depth:.08198,height:.58198,italic:0,skew:0},8790:{depth:0,height:.69224,italic:0,skew:0},8791:{depth:.22958,height:.72958,italic:0,skew:0},8796:{depth:.08198,height:.91667,italic:0,skew:0},88:{depth:0,height:.68889,italic:0,skew:0},8806:{depth:.25583,height:.75583,italic:0,skew:0},8807:{depth:.25583,height:.75583,italic:0,skew:0},8808:{depth:.25142,height:.75726,italic:0,skew:0},8809:{depth:.25142,height:.75726,italic:0,skew:0},8812:{depth:.25583,height:.75583,italic:0,skew:0},8814:{depth:.20576,height:.70576,italic:0,skew:0},8815:{depth:.20576,height:.70576,italic:0,skew:0},8816:{depth:.30274,height:.79383,italic:0,skew:0},8817:{depth:.30274,height:.79383,italic:0,skew:0},8818:{depth:.22958,height:.72958,italic:0,skew:0},8819:{depth:.22958,height:.72958,italic:0,skew:0},8822:{depth:.1808,height:.675,italic:0,skew:0},8823:{depth:.1808,height:.675,italic:0,skew:0},8828:{depth:.13667,height:.63667,italic:0,skew:0},8829:{depth:.13667,height:.63667,italic:0,skew:0},8830:{depth:.22958,height:.72958,italic:0,skew:0},8831:{depth:.22958,height:.72958,italic:0,skew:0},8832:{depth:.20576,height:.70576,italic:0,skew:0},8833:{depth:.20576,height:.70576,italic:0,skew:0},8840:{depth:.30274,height:.79383,italic:0,skew:0},8841:{depth:.30274,height:.79383,italic:0,skew:0},8842:{depth:.13597,height:.63597,italic:0,skew:0},8843:{depth:.13597,height:.63597,italic:0,skew:0},8847:{depth:.03517,height:.54986,italic:0,skew:0},8848:{depth:.03517,height:.54986,italic:0,skew:0},8858:{depth:.08198,height:.58198,italic:0,skew:0},8859:{depth:.08198,height:.58198,italic:0,skew:0},8861:{depth:.08198,height:.58198,italic:0,skew:0},8862:{depth:0,height:.675,italic:0,skew:0},8863:{depth:0,height:.675,italic:0,skew:0},8864:{depth:0,height:.675,italic:0,skew:0},8865:{depth:0,height:.675,italic:0,skew:0},8872:{depth:0,height:.69224,italic:0,skew:0},8873:{depth:0,height:.69224,italic:0,skew:0},8874:{depth:0,height:.69224,italic:0,skew:0},8876:{depth:0,height:.68889,italic:0,skew:0},8877:{depth:0,height:.68889,italic:0,skew:0},8878:{depth:0,height:.68889,italic:0,skew:0},8879:{depth:0,height:.68889,italic:0,skew:0},8882:{depth:.03517,height:.54986,italic:0,skew:0},8883:{depth:.03517,height:.54986,italic:0,skew:0},8884:{depth:.13667,height:.63667,italic:0,skew:0},8885:{depth:.13667,height:.63667,italic:0,skew:0},8888:{depth:0,height:.54986,italic:0,skew:0},8890:{depth:.19444,height:.43056,italic:0,skew:0},8891:{depth:.19444,height:.69224,italic:0,skew:0},8892:{depth:.19444,height:.69224,italic:0,skew:0},89:{depth:0,height:.68889,italic:0,skew:0},8901:{depth:0,height:.54986,italic:0,skew:0},8903:{depth:.08167,height:.58167,italic:0,skew:0},8905:{depth:.08167,height:.58167,italic:0,skew:0},8906:{depth:.08167,height:.58167,italic:0,skew:0},8907:{depth:0,height:.69224,italic:0,skew:0},8908:{depth:0,height:.69224,italic:0,skew:0},8909:{depth:-.03598,height:.46402,italic:0,skew:0},8910:{depth:0,height:.54986,italic:0,skew:0},8911:{depth:0,height:.54986,italic:0,skew:0},8912:{depth:.03517,height:.54986,italic:0,skew:0},8913:{depth:.03517,height:.54986,italic:0,skew:0},8914:{depth:0,height:.54986,italic:0,skew:0},8915:{depth:0,height:.54986,italic:0,skew:0},8916:{depth:0,height:.69224,italic:0,skew:0},8918:{depth:.0391,height:.5391,italic:0,skew:0},8919:{depth:.0391,height:.5391,italic:0,skew:0},8920:{depth:.03517,height:.54986,italic:0,skew:0},8921:{depth:.03517,height:.54986,italic:0,skew:0},8922:{depth:.38569,height:.88569,italic:0,skew:0},8923:{depth:.38569,height:.88569,italic:0,skew:0},8926:{depth:.13667,height:.63667,italic:0,skew:0},8927:{depth:.13667,height:.63667,italic:0,skew:0},8928:{depth:.30274,height:.79383,italic:0,skew:0},8929:{depth:.30274,height:.79383,italic:0,skew:0},8934:{depth:.23222,height:.74111,italic:0,skew:0},8935:{depth:.23222,height:.74111,italic:0,skew:0},8936:{depth:.23222,height:.74111,italic:0,skew:0},8937:{depth:.23222,height:.74111,italic:0,skew:0},8938:{depth:.20576,height:.70576,italic:0,skew:0},8939:{depth:.20576,height:.70576,italic:0,skew:0},8940:{depth:.30274,height:.79383,italic:0,skew:0},8941:{depth:.30274,height:.79383,italic:0,skew:0},8994:{depth:.19444,height:.69224,italic:0,skew:0},8995:{depth:.19444,height:.69224,italic:0,skew:0},90:{depth:0,height:.68889,italic:0,skew:0},9416:{depth:.15559,height:.69224,italic:0,skew:0},9484:{depth:0,height:.69224,italic:0,skew:0},9488:{depth:0,height:.69224,italic:0,skew:0},9492:{depth:0,height:.37788,italic:0,skew:0},9496:{depth:0,height:.37788,italic:0,skew:0},9585:{depth:.19444,height:.68889,italic:0,skew:0},9586:{depth:.19444,height:.74111,italic:0,skew:0},9632:{depth:0,height:.675,italic:0,skew:0},9633:{depth:0,height:.675,italic:0,skew:0},9650:{depth:0,height:.54986,italic:0,skew:0},9651:{depth:0,height:.54986,italic:0,skew:0},9654:{depth:.03517,height:.54986,italic:0,skew:0},9660:{depth:0,height:.54986,italic:0,skew:0},9661:{depth:0,height:.54986,italic:0,skew:0},9664:{depth:.03517,height:.54986,italic:0,skew:0},9674:{depth:.11111,height:.69224,italic:0,skew:0},9733:{depth:.19444,height:.69224,italic:0,skew:0},989:{depth:.08167,height:.58167,italic:0,skew:0}},"Main-Bold":{100:{depth:0,height:.69444,italic:0,skew:0},101:{depth:0,height:.44444,italic:0,skew:0},102:{depth:0,height:.69444,italic:.10903,skew:0},10216:{depth:.25,height:.75,italic:0,skew:0},10217:{depth:.25,height:.75,italic:0,skew:0},103:{depth:.19444,height:.44444,italic:.01597,skew:0},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.69444,italic:0,skew:0},106:{depth:.19444,height:.69444,italic:0,skew:0},107:{depth:0,height:.69444,italic:0,skew:0},108:{depth:0,height:.69444,italic:0,skew:0},10815:{depth:0,height:.68611,italic:0,skew:0},109:{depth:0,height:.44444,italic:0,skew:0},10927:{depth:.19667,height:.69667,italic:0,skew:0},10928:{depth:.19667,height:.69667,italic:0,skew:0},110:{depth:0,height:.44444,italic:0,skew:0},111:{depth:0,height:.44444,italic:0,skew:0},112:{depth:.19444,height:.44444,italic:0,skew:0},113:{depth:.19444,height:.44444,italic:0,skew:0},114:{depth:0,height:.44444,italic:0,skew:0},115:{depth:0,height:.44444,italic:0,skew:0},116:{depth:0,height:.63492,italic:0,skew:0},117:{depth:0,height:.44444,italic:0,skew:0},118:{depth:0,height:.44444,italic:.01597,skew:0},119:{depth:0,height:.44444,italic:.01597,skew:0},120:{depth:0,height:.44444,italic:0,skew:0},121:{depth:.19444,height:.44444,italic:.01597,skew:0},122:{depth:0,height:.44444,italic:0,skew:0},123:{depth:.25,height:.75,italic:0,skew:0},124:{depth:.25,height:.75,italic:0,skew:0},125:{depth:.25,height:.75,italic:0,skew:0},126:{depth:.35,height:.34444,italic:0,skew:0},168:{depth:0,height:.69444,italic:0,skew:0},172:{depth:0,height:.44444,italic:0,skew:0},175:{depth:0,height:.59611,italic:0,skew:0},176:{depth:0,height:.69444,italic:0,skew:0},177:{depth:.13333,height:.63333,italic:0,skew:0},180:{depth:0,height:.69444,italic:0,skew:0},215:{depth:.13333,height:.63333,italic:0,skew:0},247:{depth:.13333,height:.63333,italic:0,skew:0},305:{depth:0,height:.44444,italic:0,skew:0},33:{depth:0,height:.69444,italic:0,skew:0},34:{depth:0,height:.69444,italic:0,skew:0},35:{depth:.19444,height:.69444,italic:0,skew:0},36:{depth:.05556,height:.75,italic:0,skew:0},37:{depth:.05556,height:.75,italic:0,skew:0},38:{depth:0,height:.69444,italic:0,skew:0},39:{depth:0,height:.69444,italic:0,skew:0},40:{depth:.25,height:.75,italic:0,skew:0},41:{depth:.25,height:.75,italic:0,skew:0},42:{depth:0,height:.75,italic:0,skew:0},43:{depth:.13333,height:.63333,italic:0,skew:0},44:{depth:.19444,height:.15556,italic:0,skew:0},45:{depth:0,height:.44444,italic:0,skew:0},46:{depth:0,height:.15556,italic:0,skew:0},47:{depth:.25,height:.75,italic:0,skew:0},48:{depth:0,height:.64444,italic:0,skew:0},49:{depth:0,height:.64444,italic:0,skew:0},50:{depth:0,height:.64444,italic:0,skew:0},51:{depth:0,height:.64444,italic:0,skew:0},52:{depth:0,height:.64444,italic:0,skew:0},53:{depth:0,height:.64444,italic:0,skew:0},54:{depth:0,height:.64444,italic:0,skew:0},55:{depth:0,height:.64444,italic:0,skew:0},56:{depth:0,height:.64444,italic:0,skew:0},567:{depth:.19444,height:.44444,italic:0,skew:0},57:{depth:0,height:.64444,italic:0,skew:0},58:{depth:0,height:.44444,italic:0,skew:0},59:{depth:.19444,height:.44444,italic:0,skew:0},60:{depth:.08556,height:.58556,italic:0,skew:0},61:{depth:-.10889,height:.39111,italic:0,skew:0},62:{depth:.08556,height:.58556,italic:0,skew:0},63:{depth:0,height:.69444,italic:0,skew:0},64:{depth:0,height:.69444,italic:0,skew:0},65:{depth:0,height:.68611,italic:0,skew:0},66:{depth:0,height:.68611,italic:0,skew:0},67:{depth:0,height:.68611,italic:0,skew:0},68:{depth:0,height:.68611,italic:0,skew:0},69:{depth:0,height:.68611,italic:0,skew:0},70:{depth:0,height:.68611,italic:0,skew:0},71:{depth:0,height:.68611,italic:0,skew:0},710:{depth:0,height:.69444,italic:0,skew:0},711:{depth:0,height:.63194,italic:0,skew:0},713:{depth:0,height:.59611,italic:0,skew:0},714:{depth:0,height:.69444,italic:0,skew:0},715:{depth:0,height:.69444,italic:0,skew:0},72:{depth:0,height:.68611,italic:0,skew:0},728:{depth:0,height:.69444,italic:0,skew:0},729:{depth:0,height:.69444,italic:0,skew:0},73:{depth:0,height:.68611,italic:0,skew:0},730:{depth:0,height:.69444,italic:0,skew:0},732:{depth:0,height:.69444,italic:0,skew:0},74:{depth:0,height:.68611,italic:0,skew:0},75:{depth:0,height:.68611,italic:0,skew:0},76:{depth:0,height:.68611,italic:0,skew:0},768:{depth:0,height:.69444,italic:0,skew:0},769:{depth:0,height:.69444,italic:0,skew:0},77:{depth:0,height:.68611,italic:0,skew:0},770:{depth:0,height:.69444,italic:0,skew:0},771:{depth:0,height:.69444,italic:0,skew:0},772:{depth:0,height:.59611,italic:0,skew:0},774:{depth:0,height:.69444,italic:0,skew:0},775:{depth:0,height:.69444,italic:0,skew:0},776:{depth:0,height:.69444,italic:0,skew:0},778:{depth:0,height:.69444,italic:0,skew:0},779:{depth:0,height:.69444,italic:0,skew:0},78:{depth:0,height:.68611,italic:0,skew:0},780:{depth:0,height:.63194,italic:0,skew:0},79:{depth:0,height:.68611,italic:0,skew:0},80:{depth:0,height:.68611,italic:0,skew:0},81:{depth:.19444,height:.68611,italic:0,skew:0},82:{depth:0,height:.68611,italic:0,skew:0},8211:{depth:0,height:.44444,italic:.03194,skew:0},8212:{depth:0,height:.44444,italic:.03194,skew:0},8216:{depth:0,height:.69444,italic:0,skew:0},8217:{depth:0,height:.69444,italic:0,skew:0},8220:{depth:0,height:.69444,italic:0,skew:0},8221:{depth:0,height:.69444,italic:0,skew:0},8224:{depth:.19444,height:.69444,italic:0,skew:0},8225:{depth:.19444,height:.69444,italic:0,skew:0},824:{depth:.19444,height:.69444,italic:0,skew:0},8242:{depth:0,height:.55556,italic:0,skew:0},83:{depth:0,height:.68611,italic:0,skew:0},84:{depth:0,height:.68611,italic:0,skew:0},8407:{depth:0,height:.72444,italic:.15486,skew:0},8463:{depth:0,height:.69444,italic:0,skew:0},8465:{depth:0,height:.69444,italic:0,skew:0},8467:{depth:0,height:.69444,italic:0,skew:0},8472:{depth:.19444,height:.44444,italic:0,skew:0},8476:{depth:0,height:.69444,italic:0,skew:0},85:{depth:0,height:.68611,italic:0,skew:0},8501:{depth:0,height:.69444,italic:0,skew:0},8592:{depth:-.10889,height:.39111,italic:0,skew:0},8593:{depth:.19444,height:.69444,italic:0,skew:0},8594:{depth:-.10889,height:.39111,italic:0,skew:0},8595:{depth:.19444,height:.69444,italic:0,skew:0},8596:{depth:-.10889,height:.39111,italic:0,skew:0},8597:{depth:.25,height:.75,italic:0,skew:0},8598:{depth:.19444,height:.69444,italic:0,skew:0},8599:{depth:.19444,height:.69444,italic:0,skew:0},86:{depth:0,height:.68611,italic:.01597,skew:0},8600:{depth:.19444,height:.69444,italic:0,skew:0},8601:{depth:.19444,height:.69444,italic:0,skew:0},8636:{depth:-.10889,height:.39111,italic:0,skew:0},8637:{depth:-.10889,height:.39111,italic:0,skew:0},8640:{depth:-.10889,height:.39111,italic:0,skew:0},8641:{depth:-.10889,height:.39111,italic:0,skew:0},8656:{depth:-.10889,height:.39111,italic:0,skew:0},8657:{depth:.19444,height:.69444,italic:0,skew:0},8658:{depth:-.10889,height:.39111,italic:0,skew:0},8659:{depth:.19444,height:.69444,italic:0,skew:0},8660:{depth:-.10889,height:.39111,italic:0,skew:0},8661:{depth:.25,height:.75,italic:0,skew:0},87:{depth:0,height:.68611,italic:.01597,skew:0},8704:{depth:0,height:.69444,italic:0,skew:0},8706:{depth:0,height:.69444,italic:.06389,skew:0},8707:{depth:0,height:.69444,italic:0,skew:0},8709:{depth:.05556,height:.75,italic:0,skew:0},8711:{depth:0,height:.68611,italic:0,skew:0},8712:{depth:.08556,height:.58556,italic:0,skew:0},8715:{depth:.08556,height:.58556,italic:0,skew:0},8722:{depth:.13333,height:.63333,italic:0,skew:0},8723:{depth:.13333,height:.63333,italic:0,skew:0},8725:{depth:.25,height:.75,italic:0,skew:0},8726:{depth:.25,height:.75,italic:0,skew:0},8727:{depth:-.02778,height:.47222,italic:0,skew:0},8728:{depth:-.02639,height:.47361,italic:0,skew:0},8729:{depth:-.02639,height:.47361,italic:0,skew:0},8730:{depth:.18,height:.82,italic:0,skew:0},8733:{depth:0,height:.44444,italic:0,skew:0},8734:{depth:0,height:.44444,italic:0,skew:0},8736:{depth:0,height:.69224,italic:0,skew:0},8739:{depth:.25,height:.75,italic:0,skew:0},8741:{depth:.25,height:.75,italic:0,skew:0},8743:{depth:0,height:.55556,italic:0,skew:0},8744:{depth:0,height:.55556,italic:0,skew:0},8745:{depth:0,height:.55556,italic:0,skew:0},8746:{depth:0,height:.55556,italic:0,skew:0},8747:{depth:.19444,height:.69444,italic:.12778,skew:0},8764:{depth:-.10889,height:.39111,italic:0,skew:0},8768:{depth:.19444,height:.69444,italic:0,skew:0},8771:{depth:.00222,height:.50222,italic:0,skew:0},8776:{depth:.02444,height:.52444,italic:0,skew:0},8781:{depth:.00222,height:.50222,italic:0,skew:0},88:{depth:0,height:.68611,italic:0,skew:0},8801:{depth:.00222,height:.50222,italic:0,skew:0},8804:{depth:.19667,height:.69667,italic:0,skew:0},8805:{depth:.19667,height:.69667,italic:0,skew:0},8810:{depth:.08556,height:.58556,italic:0,skew:0},8811:{depth:.08556,height:.58556,italic:0,skew:0},8826:{depth:.08556,height:.58556,italic:0,skew:0},8827:{depth:.08556,height:.58556,italic:0,skew:0},8834:{depth:.08556,height:.58556,italic:0,skew:0},8835:{depth:.08556,height:.58556,italic:0,skew:0},8838:{depth:.19667,height:.69667,italic:0,skew:0},8839:{depth:.19667,height:.69667,italic:0,skew:0},8846:{depth:0,height:.55556,italic:0,skew:0},8849:{depth:.19667,height:.69667,italic:0,skew:0},8850:{depth:.19667,height:.69667,italic:0,skew:0},8851:{depth:0,height:.55556,italic:0,skew:0},8852:{depth:0,height:.55556,italic:0,skew:0},8853:{depth:.13333,height:.63333,italic:0,skew:0},8854:{depth:.13333,height:.63333,italic:0,skew:0},8855:{depth:.13333,height:.63333,italic:0,skew:0},8856:{depth:.13333,height:.63333,italic:0,skew:0},8857:{depth:.13333,height:.63333,italic:0,skew:0},8866:{depth:0,height:.69444,italic:0,skew:0},8867:{depth:0,height:.69444,italic:0,skew:0},8868:{depth:0,height:.69444,italic:0,skew:0},8869:{depth:0,height:.69444,italic:0,skew:0},89:{depth:0,height:.68611,italic:.02875,skew:0},8900:{depth:-.02639,height:.47361,italic:0,skew:0},8901:{depth:-.02639,height:.47361,italic:0,skew:0},8902:{depth:-.02778,height:.47222,italic:0,skew:0},8968:{depth:.25,height:.75,italic:0,skew:0},8969:{depth:.25,height:.75,italic:0,skew:0},8970:{depth:.25,height:.75,italic:0,skew:0},8971:{depth:.25,height:.75,italic:0,skew:0},8994:{depth:-.13889,height:.36111,italic:0,skew:0},8995:{depth:-.13889,height:.36111,italic:0,skew:0},90:{depth:0,height:.68611,italic:0,skew:0},91:{depth:.25,height:.75,italic:0,skew:0},915:{depth:0,height:.68611,italic:0,skew:0},916:{depth:0,height:.68611,italic:0,skew:0},92:{depth:.25,height:.75,italic:0,skew:0},920:{depth:0,height:.68611,italic:0,skew:0},923:{depth:0,height:.68611,italic:0,skew:0},926:{depth:0,height:.68611,italic:0,skew:0},928:{depth:0,height:.68611,italic:0,skew:0},93:{depth:.25,height:.75,italic:0,skew:0},931:{depth:0,height:.68611,italic:0,skew:0},933:{depth:0,height:.68611,italic:0,skew:0},934:{depth:0,height:.68611,italic:0,skew:0},936:{depth:0,height:.68611,italic:0,skew:0},937:{depth:0,height:.68611,italic:0,skew:0},94:{depth:0,height:.69444,italic:0,skew:0},95:{depth:.31,height:.13444,italic:.03194,skew:0},96:{depth:0,height:.69444,italic:0,skew:0},9651:{depth:.19444,height:.69444,italic:0,skew:0},9657:{depth:-.02778,height:.47222,italic:0,skew:0},9661:{depth:.19444,height:.69444,italic:0,skew:0},9667:{depth:-.02778,height:.47222,italic:0,skew:0},97:{depth:0,height:.44444,italic:0,skew:0},9711:{depth:.19444,height:.69444,italic:0,skew:0},98:{depth:0,height:.69444,italic:0,skew:0},9824:{depth:.12963,height:.69444,italic:0,skew:0},9825:{depth:.12963,height:.69444,italic:0,skew:0},9826:{depth:.12963,height:.69444,italic:0,skew:0},9827:{depth:.12963,height:.69444,italic:0,skew:0},9837:{depth:0,height:.75,italic:0,skew:0},9838:{depth:.19444,height:.69444,italic:0,skew:0},9839:{depth:.19444,height:.69444,italic:0,skew:0},99:{depth:0,height:.44444,italic:0,skew:0}},"Main-Italic":{100:{depth:0,height:.69444,italic:.10333,skew:0},101:{depth:0,height:.43056,italic:.07514,skew:0},102:{depth:.19444,height:.69444,italic:.21194,skew:0},103:{depth:.19444,height:.43056,italic:.08847,skew:0},104:{depth:0,height:.69444,italic:.07671,skew:0},105:{depth:0,height:.65536,italic:.1019,skew:0},106:{depth:.19444,height:.65536,italic:.14467,skew:0},107:{depth:0,height:.69444,italic:.10764,skew:0},108:{depth:0,height:.69444,italic:.10333,skew:0},109:{depth:0,height:.43056,italic:.07671,skew:0},110:{depth:0,height:.43056,italic:.07671,skew:0},111:{depth:0,height:.43056,italic:.06312,skew:0},112:{depth:.19444,height:.43056,italic:.06312,skew:0},113:{depth:.19444,height:.43056,italic:.08847,skew:0},114:{depth:0,height:.43056,italic:.10764,skew:0},115:{depth:0,height:.43056,italic:.08208,skew:0},116:{depth:0,height:.61508,italic:.09486,skew:0},117:{depth:0,height:.43056,italic:.07671,skew:0},118:{depth:0,height:.43056,italic:.10764,skew:0},119:{depth:0,height:.43056,italic:.10764,skew:0},120:{depth:0,height:.43056,italic:.12042,skew:0},121:{depth:.19444,height:.43056,italic:.08847,skew:0},122:{depth:0,height:.43056,italic:.12292,skew:0},126:{depth:.35,height:.31786,italic:.11585,skew:0},163:{depth:0,height:.69444,italic:0,skew:0},305:{depth:0,height:.43056,italic:.07671,skew:0},33:{depth:0,height:.69444,italic:.12417,skew:0},34:{depth:0,height:.69444,italic:.06961,skew:0},35:{depth:.19444,height:.69444,italic:.06616,skew:0},37:{depth:.05556,height:.75,italic:.13639,skew:0},38:{depth:0,height:.69444,italic:.09694,skew:0},39:{depth:0,height:.69444,italic:.12417,skew:0},40:{depth:.25,height:.75,italic:.16194,skew:0},41:{depth:.25,height:.75,italic:.03694,skew:0},42:{depth:0,height:.75,italic:.14917,skew:0},43:{depth:.05667,height:.56167,italic:.03694,skew:0},44:{depth:.19444,height:.10556,italic:0,skew:0},45:{depth:0,height:.43056,italic:.02826,skew:0},46:{depth:0,height:.10556,italic:0,skew:0},47:{depth:.25,height:.75,italic:.16194,skew:0},48:{depth:0,height:.64444,italic:.13556,skew:0},49:{depth:0,height:.64444,italic:.13556,skew:0},50:{depth:0,height:.64444,italic:.13556,skew:0},51:{depth:0,height:.64444,italic:.13556,skew:0},52:{depth:.19444,height:.64444,italic:.13556,skew:0},53:{depth:0,height:.64444,italic:.13556,skew:0},54:{depth:0,height:.64444,italic:.13556,skew:0},55:{depth:.19444,height:.64444,italic:.13556,skew:0},56:{depth:0,height:.64444,italic:.13556,skew:0},567:{depth:.19444,height:.43056,italic:.03736,skew:0},57:{depth:0,height:.64444,italic:.13556,skew:0},58:{depth:0,height:.43056,italic:.0582,skew:0},59:{depth:.19444,height:.43056,italic:.0582,skew:0},61:{depth:-.13313,height:.36687,italic:.06616,skew:0},63:{depth:0,height:.69444,italic:.1225,skew:0},64:{depth:0,height:.69444,italic:.09597,skew:0},65:{depth:0,height:.68333,italic:0,skew:0},66:{depth:0,height:.68333,italic:.10257,skew:0},67:{depth:0,height:.68333,italic:.14528,skew:0},68:{depth:0,height:.68333,italic:.09403,skew:0},69:{depth:0,height:.68333,italic:.12028,skew:0},70:{depth:0,height:.68333,italic:.13305,skew:0},71:{depth:0,height:.68333,italic:.08722,skew:0},72:{depth:0,height:.68333,italic:.16389,skew:0},73:{depth:0,height:.68333,italic:.15806,skew:0},74:{depth:0,height:.68333,italic:.14028,skew:0},75:{depth:0,height:.68333,italic:.14528,skew:0},76:{depth:0,height:.68333,italic:0,skew:0},768:{depth:0,height:.69444,italic:0,skew:0},769:{depth:0,height:.69444,italic:.09694,skew:0},77:{depth:0,height:.68333,italic:.16389,skew:0},770:{depth:0,height:.69444,italic:.06646,skew:0},771:{depth:0,height:.66786,italic:.11585,skew:0},772:{depth:0,height:.56167,italic:.10333,skew:0},774:{depth:0,height:.69444,italic:.10806,skew:0},775:{depth:0,height:.66786,italic:.11752,skew:0},776:{depth:0,height:.66786,italic:.10474,skew:0},778:{depth:0,height:.69444,italic:0,skew:0},779:{depth:0,height:.69444,italic:.1225,skew:0},78:{depth:0,height:.68333,italic:.16389,skew:0},780:{depth:0,height:.62847,italic:.08295,skew:0},79:{depth:0,height:.68333,italic:.09403,skew:0},80:{depth:0,height:.68333,italic:.10257,skew:0},81:{depth:.19444,height:.68333,italic:.09403,skew:0},82:{depth:0,height:.68333,italic:.03868,skew:0},8211:{depth:0,height:.43056,italic:.09208,skew:0},8212:{depth:0,height:.43056,italic:.09208,skew:0},8216:{depth:0,height:.69444,italic:.12417,skew:0},8217:{depth:0,height:.69444,italic:.12417,skew:0},8220:{depth:0,height:.69444,italic:.1685,skew:0},8221:{depth:0,height:.69444,italic:.06961,skew:0},83:{depth:0,height:.68333,italic:.11972,skew:0},84:{depth:0,height:.68333,italic:.13305,skew:0},8463:{depth:0,height:.68889,italic:0,skew:0},85:{depth:0,height:.68333,italic:.16389,skew:0},86:{depth:0,height:.68333,italic:.18361,skew:0},87:{depth:0,height:.68333,italic:.18361,skew:0},88:{depth:0,height:.68333,italic:.15806,skew:0},89:{depth:0,height:.68333,italic:.19383,skew:0},90:{depth:0,height:.68333,italic:.14528,skew:0},91:{depth:.25,height:.75,italic:.1875,skew:0},915:{depth:0,height:.68333,italic:.13305,skew:0},916:{depth:0,height:.68333,italic:0,skew:0},920:{depth:0,height:.68333,italic:.09403,skew:0},923:{depth:0,height:.68333,italic:0,skew:0},926:{depth:0,height:.68333,italic:.15294,skew:0},928:{depth:0,height:.68333,italic:.16389,skew:0},93:{depth:.25,height:.75,italic:.10528,skew:0},931:{depth:0,height:.68333,italic:.12028,skew:0},933:{depth:0,height:.68333,italic:.11111,skew:0},934:{depth:0,height:.68333,italic:.05986,skew:0},936:{depth:0,height:.68333,italic:.11111,skew:0},937:{depth:0,height:.68333, italic:.10257,skew:0},94:{depth:0,height:.69444,italic:.06646,skew:0},95:{depth:.31,height:.12056,italic:.09208,skew:0},97:{depth:0,height:.43056,italic:.07671,skew:0},98:{depth:0,height:.69444,italic:.06312,skew:0},99:{depth:0,height:.43056,italic:.05653,skew:0}},"Main-Regular":{32:{depth:-0,height:0,italic:0,skew:0},160:{depth:-0,height:0,italic:0,skew:0},8230:{depth:-0,height:.12,italic:0,skew:0},8773:{depth:-.022,height:.589,italic:0,skew:0},8800:{depth:.215,height:.716,italic:0,skew:0},8942:{depth:.03,height:.9,italic:0,skew:0},8943:{depth:-.19,height:.31,italic:0,skew:0},8945:{depth:-.1,height:.82,italic:0,skew:0},100:{depth:0,height:.69444,italic:0,skew:0},101:{depth:0,height:.43056,italic:0,skew:0},102:{depth:0,height:.69444,italic:.07778,skew:0},10216:{depth:.25,height:.75,italic:0,skew:0},10217:{depth:.25,height:.75,italic:0,skew:0},103:{depth:.19444,height:.43056,italic:.01389,skew:0},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.66786,italic:0,skew:0},106:{depth:.19444,height:.66786,italic:0,skew:0},107:{depth:0,height:.69444,italic:0,skew:0},108:{depth:0,height:.69444,italic:0,skew:0},10815:{depth:0,height:.68333,italic:0,skew:0},109:{depth:0,height:.43056,italic:0,skew:0},10927:{depth:.13597,height:.63597,italic:0,skew:0},10928:{depth:.13597,height:.63597,italic:0,skew:0},110:{depth:0,height:.43056,italic:0,skew:0},111:{depth:0,height:.43056,italic:0,skew:0},112:{depth:.19444,height:.43056,italic:0,skew:0},113:{depth:.19444,height:.43056,italic:0,skew:0},114:{depth:0,height:.43056,italic:0,skew:0},115:{depth:0,height:.43056,italic:0,skew:0},116:{depth:0,height:.61508,italic:0,skew:0},117:{depth:0,height:.43056,italic:0,skew:0},118:{depth:0,height:.43056,italic:.01389,skew:0},119:{depth:0,height:.43056,italic:.01389,skew:0},120:{depth:0,height:.43056,italic:0,skew:0},121:{depth:.19444,height:.43056,italic:.01389,skew:0},122:{depth:0,height:.43056,italic:0,skew:0},123:{depth:.25,height:.75,italic:0,skew:0},124:{depth:.25,height:.75,italic:0,skew:0},125:{depth:.25,height:.75,italic:0,skew:0},126:{depth:.35,height:.31786,italic:0,skew:0},168:{depth:0,height:.66786,italic:0,skew:0},172:{depth:0,height:.43056,italic:0,skew:0},175:{depth:0,height:.56778,italic:0,skew:0},176:{depth:0,height:.69444,italic:0,skew:0},177:{depth:.08333,height:.58333,italic:0,skew:0},180:{depth:0,height:.69444,italic:0,skew:0},215:{depth:.08333,height:.58333,italic:0,skew:0},247:{depth:.08333,height:.58333,italic:0,skew:0},305:{depth:0,height:.43056,italic:0,skew:0},33:{depth:0,height:.69444,italic:0,skew:0},34:{depth:0,height:.69444,italic:0,skew:0},35:{depth:.19444,height:.69444,italic:0,skew:0},36:{depth:.05556,height:.75,italic:0,skew:0},37:{depth:.05556,height:.75,italic:0,skew:0},38:{depth:0,height:.69444,italic:0,skew:0},39:{depth:0,height:.69444,italic:0,skew:0},40:{depth:.25,height:.75,italic:0,skew:0},41:{depth:.25,height:.75,italic:0,skew:0},42:{depth:0,height:.75,italic:0,skew:0},43:{depth:.08333,height:.58333,italic:0,skew:0},44:{depth:.19444,height:.10556,italic:0,skew:0},45:{depth:0,height:.43056,italic:0,skew:0},46:{depth:0,height:.10556,italic:0,skew:0},47:{depth:.25,height:.75,italic:0,skew:0},48:{depth:0,height:.64444,italic:0,skew:0},49:{depth:0,height:.64444,italic:0,skew:0},50:{depth:0,height:.64444,italic:0,skew:0},51:{depth:0,height:.64444,italic:0,skew:0},52:{depth:0,height:.64444,italic:0,skew:0},53:{depth:0,height:.64444,italic:0,skew:0},54:{depth:0,height:.64444,italic:0,skew:0},55:{depth:0,height:.64444,italic:0,skew:0},56:{depth:0,height:.64444,italic:0,skew:0},567:{depth:.19444,height:.43056,italic:0,skew:0},57:{depth:0,height:.64444,italic:0,skew:0},58:{depth:0,height:.43056,italic:0,skew:0},59:{depth:.19444,height:.43056,italic:0,skew:0},60:{depth:.0391,height:.5391,italic:0,skew:0},61:{depth:-.13313,height:.36687,italic:0,skew:0},62:{depth:.0391,height:.5391,italic:0,skew:0},63:{depth:0,height:.69444,italic:0,skew:0},64:{depth:0,height:.69444,italic:0,skew:0},65:{depth:0,height:.68333,italic:0,skew:0},66:{depth:0,height:.68333,italic:0,skew:0},67:{depth:0,height:.68333,italic:0,skew:0},68:{depth:0,height:.68333,italic:0,skew:0},69:{depth:0,height:.68333,italic:0,skew:0},70:{depth:0,height:.68333,italic:0,skew:0},71:{depth:0,height:.68333,italic:0,skew:0},710:{depth:0,height:.69444,italic:0,skew:0},711:{depth:0,height:.62847,italic:0,skew:0},713:{depth:0,height:.56778,italic:0,skew:0},714:{depth:0,height:.69444,italic:0,skew:0},715:{depth:0,height:.69444,italic:0,skew:0},72:{depth:0,height:.68333,italic:0,skew:0},728:{depth:0,height:.69444,italic:0,skew:0},729:{depth:0,height:.66786,italic:0,skew:0},73:{depth:0,height:.68333,italic:0,skew:0},730:{depth:0,height:.69444,italic:0,skew:0},732:{depth:0,height:.66786,italic:0,skew:0},74:{depth:0,height:.68333,italic:0,skew:0},75:{depth:0,height:.68333,italic:0,skew:0},76:{depth:0,height:.68333,italic:0,skew:0},768:{depth:0,height:.69444,italic:0,skew:0},769:{depth:0,height:.69444,italic:0,skew:0},77:{depth:0,height:.68333,italic:0,skew:0},770:{depth:0,height:.69444,italic:0,skew:0},771:{depth:0,height:.66786,italic:0,skew:0},772:{depth:0,height:.56778,italic:0,skew:0},774:{depth:0,height:.69444,italic:0,skew:0},775:{depth:0,height:.66786,italic:0,skew:0},776:{depth:0,height:.66786,italic:0,skew:0},778:{depth:0,height:.69444,italic:0,skew:0},779:{depth:0,height:.69444,italic:0,skew:0},78:{depth:0,height:.68333,italic:0,skew:0},780:{depth:0,height:.62847,italic:0,skew:0},79:{depth:0,height:.68333,italic:0,skew:0},80:{depth:0,height:.68333,italic:0,skew:0},81:{depth:.19444,height:.68333,italic:0,skew:0},82:{depth:0,height:.68333,italic:0,skew:0},8211:{depth:0,height:.43056,italic:.02778,skew:0},8212:{depth:0,height:.43056,italic:.02778,skew:0},8216:{depth:0,height:.69444,italic:0,skew:0},8217:{depth:0,height:.69444,italic:0,skew:0},8220:{depth:0,height:.69444,italic:0,skew:0},8221:{depth:0,height:.69444,italic:0,skew:0},8224:{depth:.19444,height:.69444,italic:0,skew:0},8225:{depth:.19444,height:.69444,italic:0,skew:0},824:{depth:.19444,height:.69444,italic:0,skew:0},8242:{depth:0,height:.55556,italic:0,skew:0},83:{depth:0,height:.68333,italic:0,skew:0},84:{depth:0,height:.68333,italic:0,skew:0},8407:{depth:0,height:.71444,italic:.15382,skew:0},8463:{depth:0,height:.68889,italic:0,skew:0},8465:{depth:0,height:.69444,italic:0,skew:0},8467:{depth:0,height:.69444,italic:0,skew:.11111},8472:{depth:.19444,height:.43056,italic:0,skew:.11111},8476:{depth:0,height:.69444,italic:0,skew:0},85:{depth:0,height:.68333,italic:0,skew:0},8501:{depth:0,height:.69444,italic:0,skew:0},8592:{depth:-.13313,height:.36687,italic:0,skew:0},8593:{depth:.19444,height:.69444,italic:0,skew:0},8594:{depth:-.13313,height:.36687,italic:0,skew:0},8595:{depth:.19444,height:.69444,italic:0,skew:0},8596:{depth:-.13313,height:.36687,italic:0,skew:0},8597:{depth:.25,height:.75,italic:0,skew:0},8598:{depth:.19444,height:.69444,italic:0,skew:0},8599:{depth:.19444,height:.69444,italic:0,skew:0},86:{depth:0,height:.68333,italic:.01389,skew:0},8600:{depth:.19444,height:.69444,italic:0,skew:0},8601:{depth:.19444,height:.69444,italic:0,skew:0},8636:{depth:-.13313,height:.36687,italic:0,skew:0},8637:{depth:-.13313,height:.36687,italic:0,skew:0},8640:{depth:-.13313,height:.36687,italic:0,skew:0},8641:{depth:-.13313,height:.36687,italic:0,skew:0},8656:{depth:-.13313,height:.36687,italic:0,skew:0},8657:{depth:.19444,height:.69444,italic:0,skew:0},8658:{depth:-.13313,height:.36687,italic:0,skew:0},8659:{depth:.19444,height:.69444,italic:0,skew:0},8660:{depth:-.13313,height:.36687,italic:0,skew:0},8661:{depth:.25,height:.75,italic:0,skew:0},87:{depth:0,height:.68333,italic:.01389,skew:0},8704:{depth:0,height:.69444,italic:0,skew:0},8706:{depth:0,height:.69444,italic:.05556,skew:.08334},8707:{depth:0,height:.69444,italic:0,skew:0},8709:{depth:.05556,height:.75,italic:0,skew:0},8711:{depth:0,height:.68333,italic:0,skew:0},8712:{depth:.0391,height:.5391,italic:0,skew:0},8715:{depth:.0391,height:.5391,italic:0,skew:0},8722:{depth:.08333,height:.58333,italic:0,skew:0},8723:{depth:.08333,height:.58333,italic:0,skew:0},8725:{depth:.25,height:.75,italic:0,skew:0},8726:{depth:.25,height:.75,italic:0,skew:0},8727:{depth:-.03472,height:.46528,italic:0,skew:0},8728:{depth:-.05555,height:.44445,italic:0,skew:0},8729:{depth:-.05555,height:.44445,italic:0,skew:0},8730:{depth:.2,height:.8,italic:0,skew:0},8733:{depth:0,height:.43056,italic:0,skew:0},8734:{depth:0,height:.43056,italic:0,skew:0},8736:{depth:0,height:.69224,italic:0,skew:0},8739:{depth:.25,height:.75,italic:0,skew:0},8741:{depth:.25,height:.75,italic:0,skew:0},8743:{depth:0,height:.55556,italic:0,skew:0},8744:{depth:0,height:.55556,italic:0,skew:0},8745:{depth:0,height:.55556,italic:0,skew:0},8746:{depth:0,height:.55556,italic:0,skew:0},8747:{depth:.19444,height:.69444,italic:.11111,skew:0},8764:{depth:-.13313,height:.36687,italic:0,skew:0},8768:{depth:.19444,height:.69444,italic:0,skew:0},8771:{depth:-.03625,height:.46375,italic:0,skew:0},8776:{depth:-.01688,height:.48312,italic:0,skew:0},8781:{depth:-.03625,height:.46375,italic:0,skew:0},88:{depth:0,height:.68333,italic:0,skew:0},8801:{depth:-.03625,height:.46375,italic:0,skew:0},8804:{depth:.13597,height:.63597,italic:0,skew:0},8805:{depth:.13597,height:.63597,italic:0,skew:0},8810:{depth:.0391,height:.5391,italic:0,skew:0},8811:{depth:.0391,height:.5391,italic:0,skew:0},8826:{depth:.0391,height:.5391,italic:0,skew:0},8827:{depth:.0391,height:.5391,italic:0,skew:0},8834:{depth:.0391,height:.5391,italic:0,skew:0},8835:{depth:.0391,height:.5391,italic:0,skew:0},8838:{depth:.13597,height:.63597,italic:0,skew:0},8839:{depth:.13597,height:.63597,italic:0,skew:0},8846:{depth:0,height:.55556,italic:0,skew:0},8849:{depth:.13597,height:.63597,italic:0,skew:0},8850:{depth:.13597,height:.63597,italic:0,skew:0},8851:{depth:0,height:.55556,italic:0,skew:0},8852:{depth:0,height:.55556,italic:0,skew:0},8853:{depth:.08333,height:.58333,italic:0,skew:0},8854:{depth:.08333,height:.58333,italic:0,skew:0},8855:{depth:.08333,height:.58333,italic:0,skew:0},8856:{depth:.08333,height:.58333,italic:0,skew:0},8857:{depth:.08333,height:.58333,italic:0,skew:0},8866:{depth:0,height:.69444,italic:0,skew:0},8867:{depth:0,height:.69444,italic:0,skew:0},8868:{depth:0,height:.69444,italic:0,skew:0},8869:{depth:0,height:.69444,italic:0,skew:0},89:{depth:0,height:.68333,italic:.025,skew:0},8900:{depth:-.05555,height:.44445,italic:0,skew:0},8901:{depth:-.05555,height:.44445,italic:0,skew:0},8902:{depth:-.03472,height:.46528,italic:0,skew:0},8968:{depth:.25,height:.75,italic:0,skew:0},8969:{depth:.25,height:.75,italic:0,skew:0},8970:{depth:.25,height:.75,italic:0,skew:0},8971:{depth:.25,height:.75,italic:0,skew:0},8994:{depth:-.14236,height:.35764,italic:0,skew:0},8995:{depth:-.14236,height:.35764,italic:0,skew:0},90:{depth:0,height:.68333,italic:0,skew:0},91:{depth:.25,height:.75,italic:0,skew:0},915:{depth:0,height:.68333,italic:0,skew:0},916:{depth:0,height:.68333,italic:0,skew:0},92:{depth:.25,height:.75,italic:0,skew:0},920:{depth:0,height:.68333,italic:0,skew:0},923:{depth:0,height:.68333,italic:0,skew:0},926:{depth:0,height:.68333,italic:0,skew:0},928:{depth:0,height:.68333,italic:0,skew:0},93:{depth:.25,height:.75,italic:0,skew:0},931:{depth:0,height:.68333,italic:0,skew:0},933:{depth:0,height:.68333,italic:0,skew:0},934:{depth:0,height:.68333,italic:0,skew:0},936:{depth:0,height:.68333,italic:0,skew:0},937:{depth:0,height:.68333,italic:0,skew:0},94:{depth:0,height:.69444,italic:0,skew:0},95:{depth:.31,height:.12056,italic:.02778,skew:0},96:{depth:0,height:.69444,italic:0,skew:0},9651:{depth:.19444,height:.69444,italic:0,skew:0},9657:{depth:-.03472,height:.46528,italic:0,skew:0},9661:{depth:.19444,height:.69444,italic:0,skew:0},9667:{depth:-.03472,height:.46528,italic:0,skew:0},97:{depth:0,height:.43056,italic:0,skew:0},9711:{depth:.19444,height:.69444,italic:0,skew:0},98:{depth:0,height:.69444,italic:0,skew:0},9824:{depth:.12963,height:.69444,italic:0,skew:0},9825:{depth:.12963,height:.69444,italic:0,skew:0},9826:{depth:.12963,height:.69444,italic:0,skew:0},9827:{depth:.12963,height:.69444,italic:0,skew:0},9837:{depth:0,height:.75,italic:0,skew:0},9838:{depth:.19444,height:.69444,italic:0,skew:0},9839:{depth:.19444,height:.69444,italic:0,skew:0},99:{depth:0,height:.43056,italic:0,skew:0}},"Math-BoldItalic":{100:{depth:0,height:.69444,italic:0,skew:0},1009:{depth:.19444,height:.44444,italic:0,skew:0},101:{depth:0,height:.44444,italic:0,skew:0},1013:{depth:0,height:.44444,italic:0,skew:0},102:{depth:.19444,height:.69444,italic:.11042,skew:0},103:{depth:.19444,height:.44444,italic:.03704,skew:0},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.69326,italic:0,skew:0},106:{depth:.19444,height:.69326,italic:.0622,skew:0},107:{depth:0,height:.69444,italic:.01852,skew:0},108:{depth:0,height:.69444,italic:.0088,skew:0},109:{depth:0,height:.44444,italic:0,skew:0},110:{depth:0,height:.44444,italic:0,skew:0},111:{depth:0,height:.44444,italic:0,skew:0},112:{depth:.19444,height:.44444,italic:0,skew:0},113:{depth:.19444,height:.44444,italic:.03704,skew:0},114:{depth:0,height:.44444,italic:.03194,skew:0},115:{depth:0,height:.44444,italic:0,skew:0},116:{depth:0,height:.63492,italic:0,skew:0},117:{depth:0,height:.44444,italic:0,skew:0},118:{depth:0,height:.44444,italic:.03704,skew:0},119:{depth:0,height:.44444,italic:.02778,skew:0},120:{depth:0,height:.44444,italic:0,skew:0},121:{depth:.19444,height:.44444,italic:.03704,skew:0},122:{depth:0,height:.44444,italic:.04213,skew:0},47:{depth:.19444,height:.69444,italic:0,skew:0},65:{depth:0,height:.68611,italic:0,skew:0},66:{depth:0,height:.68611,italic:.04835,skew:0},67:{depth:0,height:.68611,italic:.06979,skew:0},68:{depth:0,height:.68611,italic:.03194,skew:0},69:{depth:0,height:.68611,italic:.05451,skew:0},70:{depth:0,height:.68611,italic:.15972,skew:0},71:{depth:0,height:.68611,italic:0,skew:0},72:{depth:0,height:.68611,italic:.08229,skew:0},73:{depth:0,height:.68611,italic:.07778,skew:0},74:{depth:0,height:.68611,italic:.10069,skew:0},75:{depth:0,height:.68611,italic:.06979,skew:0},76:{depth:0,height:.68611,italic:0,skew:0},77:{depth:0,height:.68611,italic:.11424,skew:0},78:{depth:0,height:.68611,italic:.11424,skew:0},79:{depth:0,height:.68611,italic:.03194,skew:0},80:{depth:0,height:.68611,italic:.15972,skew:0},81:{depth:.19444,height:.68611,italic:0,skew:0},82:{depth:0,height:.68611,italic:.00421,skew:0},83:{depth:0,height:.68611,italic:.05382,skew:0},84:{depth:0,height:.68611,italic:.15972,skew:0},85:{depth:0,height:.68611,italic:.11424,skew:0},86:{depth:0,height:.68611,italic:.25555,skew:0},87:{depth:0,height:.68611,italic:.15972,skew:0},88:{depth:0,height:.68611,italic:.07778,skew:0},89:{depth:0,height:.68611,italic:.25555,skew:0},90:{depth:0,height:.68611,italic:.06979,skew:0},915:{depth:0,height:.68611,italic:.15972,skew:0},916:{depth:0,height:.68611,italic:0,skew:0},920:{depth:0,height:.68611,italic:.03194,skew:0},923:{depth:0,height:.68611,italic:0,skew:0},926:{depth:0,height:.68611,italic:.07458,skew:0},928:{depth:0,height:.68611,italic:.08229,skew:0},931:{depth:0,height:.68611,italic:.05451,skew:0},933:{depth:0,height:.68611,italic:.15972,skew:0},934:{depth:0,height:.68611,italic:0,skew:0},936:{depth:0,height:.68611,italic:.11653,skew:0},937:{depth:0,height:.68611,italic:.04835,skew:0},945:{depth:0,height:.44444,italic:0,skew:0},946:{depth:.19444,height:.69444,italic:.03403,skew:0},947:{depth:.19444,height:.44444,italic:.06389,skew:0},948:{depth:0,height:.69444,italic:.03819,skew:0},949:{depth:0,height:.44444,italic:0,skew:0},950:{depth:.19444,height:.69444,italic:.06215,skew:0},951:{depth:.19444,height:.44444,italic:.03704,skew:0},952:{depth:0,height:.69444,italic:.03194,skew:0},953:{depth:0,height:.44444,italic:0,skew:0},954:{depth:0,height:.44444,italic:0,skew:0},955:{depth:0,height:.69444,italic:0,skew:0},956:{depth:.19444,height:.44444,italic:0,skew:0},957:{depth:0,height:.44444,italic:.06898,skew:0},958:{depth:.19444,height:.69444,italic:.03021,skew:0},959:{depth:0,height:.44444,italic:0,skew:0},960:{depth:0,height:.44444,italic:.03704,skew:0},961:{depth:.19444,height:.44444,italic:0,skew:0},962:{depth:.09722,height:.44444,italic:.07917,skew:0},963:{depth:0,height:.44444,italic:.03704,skew:0},964:{depth:0,height:.44444,italic:.13472,skew:0},965:{depth:0,height:.44444,italic:.03704,skew:0},966:{depth:.19444,height:.44444,italic:0,skew:0},967:{depth:.19444,height:.44444,italic:0,skew:0},968:{depth:.19444,height:.69444,italic:.03704,skew:0},969:{depth:0,height:.44444,italic:.03704,skew:0},97:{depth:0,height:.44444,italic:0,skew:0},977:{depth:0,height:.69444,italic:0,skew:0},98:{depth:0,height:.69444,italic:0,skew:0},981:{depth:.19444,height:.69444,italic:0,skew:0},982:{depth:0,height:.44444,italic:.03194,skew:0},99:{depth:0,height:.44444,italic:0,skew:0}},"Math-Italic":{100:{depth:0,height:.69444,italic:0,skew:.16667},1009:{depth:.19444,height:.43056,italic:0,skew:.08334},101:{depth:0,height:.43056,italic:0,skew:.05556},1013:{depth:0,height:.43056,italic:0,skew:.05556},102:{depth:.19444,height:.69444,italic:.10764,skew:.16667},103:{depth:.19444,height:.43056,italic:.03588,skew:.02778},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.65952,italic:0,skew:0},106:{depth:.19444,height:.65952,italic:.05724,skew:0},107:{depth:0,height:.69444,italic:.03148,skew:0},108:{depth:0,height:.69444,italic:.01968,skew:.08334},109:{depth:0,height:.43056,italic:0,skew:0},110:{depth:0,height:.43056,italic:0,skew:0},111:{depth:0,height:.43056,italic:0,skew:.05556},112:{depth:.19444,height:.43056,italic:0,skew:.08334},113:{depth:.19444,height:.43056,italic:.03588,skew:.08334},114:{depth:0,height:.43056,italic:.02778,skew:.05556},115:{depth:0,height:.43056,italic:0,skew:.05556},116:{depth:0,height:.61508,italic:0,skew:.08334},117:{depth:0,height:.43056,italic:0,skew:.02778},118:{depth:0,height:.43056,italic:.03588,skew:.02778},119:{depth:0,height:.43056,italic:.02691,skew:.08334},120:{depth:0,height:.43056,italic:0,skew:.02778},121:{depth:.19444,height:.43056,italic:.03588,skew:.05556},122:{depth:0,height:.43056,italic:.04398,skew:.05556},47:{depth:.19444,height:.69444,italic:0,skew:0},65:{depth:0,height:.68333,italic:0,skew:.13889},66:{depth:0,height:.68333,italic:.05017,skew:.08334},67:{depth:0,height:.68333,italic:.07153,skew:.08334},68:{depth:0,height:.68333,italic:.02778,skew:.05556},69:{depth:0,height:.68333,italic:.05764,skew:.08334},70:{depth:0,height:.68333,italic:.13889,skew:.08334},71:{depth:0,height:.68333,italic:0,skew:.08334},72:{depth:0,height:.68333,italic:.08125,skew:.05556},73:{depth:0,height:.68333,italic:.07847,skew:.11111},74:{depth:0,height:.68333,italic:.09618,skew:.16667},75:{depth:0,height:.68333,italic:.07153,skew:.05556},76:{depth:0,height:.68333,italic:0,skew:.02778},77:{depth:0,height:.68333,italic:.10903,skew:.08334},78:{depth:0,height:.68333,italic:.10903,skew:.08334},79:{depth:0,height:.68333,italic:.02778,skew:.08334},80:{depth:0,height:.68333,italic:.13889,skew:.08334},81:{depth:.19444,height:.68333,italic:0,skew:.08334},82:{depth:0,height:.68333,italic:.00773,skew:.08334},83:{depth:0,height:.68333,italic:.05764,skew:.08334},84:{depth:0,height:.68333,italic:.13889,skew:.08334},85:{depth:0,height:.68333,italic:.10903,skew:.02778},86:{depth:0,height:.68333,italic:.22222,skew:0},87:{depth:0,height:.68333,italic:.13889,skew:0},88:{depth:0,height:.68333,italic:.07847,skew:.08334},89:{depth:0,height:.68333,italic:.22222,skew:0},90:{depth:0,height:.68333,italic:.07153,skew:.08334},915:{depth:0,height:.68333,italic:.13889,skew:.08334},916:{depth:0,height:.68333,italic:0,skew:.16667},920:{depth:0,height:.68333,italic:.02778,skew:.08334},923:{depth:0,height:.68333,italic:0,skew:.16667},926:{depth:0,height:.68333,italic:.07569,skew:.08334},928:{depth:0,height:.68333,italic:.08125,skew:.05556},931:{depth:0,height:.68333,italic:.05764,skew:.08334},933:{depth:0,height:.68333,italic:.13889,skew:.05556},934:{depth:0,height:.68333,italic:0,skew:.08334},936:{depth:0,height:.68333,italic:.11,skew:.05556},937:{depth:0,height:.68333,italic:.05017,skew:.08334},945:{depth:0,height:.43056,italic:.0037,skew:.02778},946:{depth:.19444,height:.69444,italic:.05278,skew:.08334},947:{depth:.19444,height:.43056,italic:.05556,skew:0},948:{depth:0,height:.69444,italic:.03785,skew:.05556},949:{depth:0,height:.43056,italic:0,skew:.08334},950:{depth:.19444,height:.69444,italic:.07378,skew:.08334},951:{depth:.19444,height:.43056,italic:.03588,skew:.05556},952:{depth:0,height:.69444,italic:.02778,skew:.08334},953:{depth:0,height:.43056,italic:0,skew:.05556},954:{depth:0,height:.43056,italic:0,skew:0},955:{depth:0,height:.69444,italic:0,skew:0},956:{depth:.19444,height:.43056,italic:0,skew:.02778},957:{depth:0,height:.43056,italic:.06366,skew:.02778},958:{depth:.19444,height:.69444,italic:.04601,skew:.11111},959:{depth:0,height:.43056,italic:0,skew:.05556},960:{depth:0,height:.43056,italic:.03588,skew:0},961:{depth:.19444,height:.43056,italic:0,skew:.08334},962:{depth:.09722,height:.43056,italic:.07986,skew:.08334},963:{depth:0,height:.43056,italic:.03588,skew:0},964:{depth:0,height:.43056,italic:.1132,skew:.02778},965:{depth:0,height:.43056,italic:.03588,skew:.02778},966:{depth:.19444,height:.43056,italic:0,skew:.08334},967:{depth:.19444,height:.43056,italic:0,skew:.05556},968:{depth:.19444,height:.69444,italic:.03588,skew:.11111},969:{depth:0,height:.43056,italic:.03588,skew:0},97:{depth:0,height:.43056,italic:0,skew:0},977:{depth:0,height:.69444,italic:0,skew:.08334},98:{depth:0,height:.69444,italic:0,skew:0},981:{depth:.19444,height:.69444,italic:0,skew:.08334},982:{depth:0,height:.43056,italic:.02778,skew:0},99:{depth:0,height:.43056,italic:0,skew:.05556}},"Math-Regular":{100:{depth:0,height:.69444,italic:0,skew:.16667},1009:{depth:.19444,height:.43056,italic:0,skew:.08334},101:{depth:0,height:.43056,italic:0,skew:.05556},1013:{depth:0,height:.43056,italic:0,skew:.05556},102:{depth:.19444,height:.69444,italic:.10764,skew:.16667},103:{depth:.19444,height:.43056,italic:.03588,skew:.02778},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.65952,italic:0,skew:0},106:{depth:.19444,height:.65952,italic:.05724,skew:0},107:{depth:0,height:.69444,italic:.03148,skew:0},108:{depth:0,height:.69444,italic:.01968,skew:.08334},109:{depth:0,height:.43056,italic:0,skew:0},110:{depth:0,height:.43056,italic:0,skew:0},111:{depth:0,height:.43056,italic:0,skew:.05556},112:{depth:.19444,height:.43056,italic:0,skew:.08334},113:{depth:.19444,height:.43056,italic:.03588,skew:.08334},114:{depth:0,height:.43056,italic:.02778,skew:.05556},115:{depth:0,height:.43056,italic:0,skew:.05556},116:{depth:0,height:.61508,italic:0,skew:.08334},117:{depth:0,height:.43056,italic:0,skew:.02778},118:{depth:0,height:.43056,italic:.03588,skew:.02778},119:{depth:0,height:.43056,italic:.02691,skew:.08334},120:{depth:0,height:.43056,italic:0,skew:.02778},121:{depth:.19444,height:.43056,italic:.03588,skew:.05556},122:{depth:0,height:.43056,italic:.04398,skew:.05556},65:{depth:0,height:.68333,italic:0,skew:.13889},66:{depth:0,height:.68333,italic:.05017,skew:.08334},67:{depth:0,height:.68333,italic:.07153,skew:.08334},68:{depth:0,height:.68333,italic:.02778,skew:.05556},69:{depth:0,height:.68333,italic:.05764,skew:.08334},70:{depth:0,height:.68333,italic:.13889,skew:.08334},71:{depth:0,height:.68333,italic:0,skew:.08334},72:{depth:0,height:.68333,italic:.08125,skew:.05556},73:{depth:0,height:.68333,italic:.07847,skew:.11111},74:{depth:0,height:.68333,italic:.09618,skew:.16667},75:{depth:0,height:.68333,italic:.07153,skew:.05556},76:{depth:0,height:.68333,italic:0,skew:.02778},77:{depth:0,height:.68333,italic:.10903,skew:.08334},78:{depth:0,height:.68333,italic:.10903,skew:.08334},79:{depth:0,height:.68333,italic:.02778,skew:.08334},80:{depth:0,height:.68333,italic:.13889,skew:.08334},81:{depth:.19444,height:.68333,italic:0,skew:.08334},82:{depth:0,height:.68333,italic:.00773,skew:.08334},83:{depth:0,height:.68333,italic:.05764,skew:.08334},84:{depth:0,height:.68333,italic:.13889,skew:.08334},85:{depth:0,height:.68333,italic:.10903,skew:.02778},86:{depth:0,height:.68333,italic:.22222,skew:0},87:{depth:0,height:.68333,italic:.13889,skew:0},88:{depth:0,height:.68333,italic:.07847,skew:.08334},89:{depth:0,height:.68333,italic:.22222,skew:0},90:{depth:0,height:.68333,italic:.07153,skew:.08334},915:{depth:0,height:.68333,italic:.13889,skew:.08334},916:{depth:0,height:.68333,italic:0,skew:.16667},920:{depth:0,height:.68333,italic:.02778,skew:.08334},923:{depth:0,height:.68333,italic:0,skew:.16667},926:{depth:0,height:.68333,italic:.07569,skew:.08334},928:{depth:0,height:.68333,italic:.08125,skew:.05556},931:{depth:0,height:.68333,italic:.05764,skew:.08334},933:{depth:0,height:.68333,italic:.13889,skew:.05556},934:{depth:0,height:.68333,italic:0,skew:.08334},936:{depth:0,height:.68333,italic:.11,skew:.05556},937:{depth:0,height:.68333,italic:.05017,skew:.08334},945:{depth:0,height:.43056,italic:.0037,skew:.02778},946:{depth:.19444,height:.69444,italic:.05278,skew:.08334},947:{depth:.19444,height:.43056,italic:.05556,skew:0},948:{depth:0,height:.69444,italic:.03785,skew:.05556},949:{depth:0,height:.43056,italic:0,skew:.08334},950:{depth:.19444,height:.69444,italic:.07378,skew:.08334},951:{depth:.19444,height:.43056,italic:.03588,skew:.05556},952:{depth:0,height:.69444,italic:.02778,skew:.08334},953:{depth:0,height:.43056,italic:0,skew:.05556},954:{depth:0,height:.43056,italic:0,skew:0},955:{depth:0,height:.69444,italic:0,skew:0},956:{depth:.19444,height:.43056,italic:0,skew:.02778},957:{depth:0,height:.43056,italic:.06366,skew:.02778},958:{depth:.19444,height:.69444,italic:.04601,skew:.11111},959:{depth:0,height:.43056,italic:0,skew:.05556},960:{depth:0,height:.43056,italic:.03588,skew:0},961:{depth:.19444,height:.43056,italic:0,skew:.08334},962:{depth:.09722,height:.43056,italic:.07986,skew:.08334},963:{depth:0,height:.43056,italic:.03588,skew:0},964:{depth:0,height:.43056,italic:.1132,skew:.02778},965:{depth:0,height:.43056,italic:.03588,skew:.02778},966:{depth:.19444,height:.43056,italic:0,skew:.08334},967:{depth:.19444,height:.43056,italic:0,skew:.05556},968:{depth:.19444,height:.69444,italic:.03588,skew:.11111},969:{depth:0,height:.43056,italic:.03588,skew:0},97:{depth:0,height:.43056,italic:0,skew:0},977:{depth:0,height:.69444,italic:0,skew:.08334},98:{depth:0,height:.69444,italic:0,skew:0},981:{depth:.19444,height:.69444,italic:0,skew:.08334},982:{depth:0,height:.43056,italic:.02778,skew:0},99:{depth:0,height:.43056,italic:0,skew:.05556}},"Size1-Regular":{8748:{depth:.306,height:.805,italic:.19445,skew:0},8749:{depth:.306,height:.805,italic:.19445,skew:0},10216:{depth:.35001,height:.85,italic:0,skew:0},10217:{depth:.35001,height:.85,italic:0,skew:0},10752:{depth:.25001,height:.75,italic:0,skew:0},10753:{depth:.25001,height:.75,italic:0,skew:0},10754:{depth:.25001,height:.75,italic:0,skew:0},10756:{depth:.25001,height:.75,italic:0,skew:0},10758:{depth:.25001,height:.75,italic:0,skew:0},123:{depth:.35001,height:.85,italic:0,skew:0},125:{depth:.35001,height:.85,italic:0,skew:0},40:{depth:.35001,height:.85,italic:0,skew:0},41:{depth:.35001,height:.85,italic:0,skew:0},47:{depth:.35001,height:.85,italic:0,skew:0},710:{depth:0,height:.72222,italic:0,skew:0},732:{depth:0,height:.72222,italic:0,skew:0},770:{depth:0,height:.72222,italic:0,skew:0},771:{depth:0,height:.72222,italic:0,skew:0},8214:{depth:-99e-5,height:.601,italic:0,skew:0},8593:{depth:1e-5,height:.6,italic:0,skew:0},8595:{depth:1e-5,height:.6,italic:0,skew:0},8657:{depth:1e-5,height:.6,italic:0,skew:0},8659:{depth:1e-5,height:.6,italic:0,skew:0},8719:{depth:.25001,height:.75,italic:0,skew:0},8720:{depth:.25001,height:.75,italic:0,skew:0},8721:{depth:.25001,height:.75,italic:0,skew:0},8730:{depth:.35001,height:.85,italic:0,skew:0},8739:{depth:-.00599,height:.606,italic:0,skew:0},8741:{depth:-.00599,height:.606,italic:0,skew:0},8747:{depth:.30612,height:.805,italic:.19445,skew:0},8750:{depth:.30612,height:.805,italic:.19445,skew:0},8896:{depth:.25001,height:.75,italic:0,skew:0},8897:{depth:.25001,height:.75,italic:0,skew:0},8898:{depth:.25001,height:.75,italic:0,skew:0},8899:{depth:.25001,height:.75,italic:0,skew:0},8968:{depth:.35001,height:.85,italic:0,skew:0},8969:{depth:.35001,height:.85,italic:0,skew:0},8970:{depth:.35001,height:.85,italic:0,skew:0},8971:{depth:.35001,height:.85,italic:0,skew:0},91:{depth:.35001,height:.85,italic:0,skew:0},9168:{depth:-99e-5,height:.601,italic:0,skew:0},92:{depth:.35001,height:.85,italic:0,skew:0},93:{depth:.35001,height:.85,italic:0,skew:0}},"Size2-Regular":{8748:{depth:.862,height:1.36,italic:.44445,skew:0},8749:{depth:.862,height:1.36,italic:.44445,skew:0},10216:{depth:.65002,height:1.15,italic:0,skew:0},10217:{depth:.65002,height:1.15,italic:0,skew:0},10752:{depth:.55001,height:1.05,italic:0,skew:0},10753:{depth:.55001,height:1.05,italic:0,skew:0},10754:{depth:.55001,height:1.05,italic:0,skew:0},10756:{depth:.55001,height:1.05,italic:0,skew:0},10758:{depth:.55001,height:1.05,italic:0,skew:0},123:{depth:.65002,height:1.15,italic:0,skew:0},125:{depth:.65002,height:1.15,italic:0,skew:0},40:{depth:.65002,height:1.15,italic:0,skew:0},41:{depth:.65002,height:1.15,italic:0,skew:0},47:{depth:.65002,height:1.15,italic:0,skew:0},710:{depth:0,height:.75,italic:0,skew:0},732:{depth:0,height:.75,italic:0,skew:0},770:{depth:0,height:.75,italic:0,skew:0},771:{depth:0,height:.75,italic:0,skew:0},8719:{depth:.55001,height:1.05,italic:0,skew:0},8720:{depth:.55001,height:1.05,italic:0,skew:0},8721:{depth:.55001,height:1.05,italic:0,skew:0},8730:{depth:.65002,height:1.15,italic:0,skew:0},8747:{depth:.86225,height:1.36,italic:.44445,skew:0},8750:{depth:.86225,height:1.36,italic:.44445,skew:0},8896:{depth:.55001,height:1.05,italic:0,skew:0},8897:{depth:.55001,height:1.05,italic:0,skew:0},8898:{depth:.55001,height:1.05,italic:0,skew:0},8899:{depth:.55001,height:1.05,italic:0,skew:0},8968:{depth:.65002,height:1.15,italic:0,skew:0},8969:{depth:.65002,height:1.15,italic:0,skew:0},8970:{depth:.65002,height:1.15,italic:0,skew:0},8971:{depth:.65002,height:1.15,italic:0,skew:0},91:{depth:.65002,height:1.15,italic:0,skew:0},92:{depth:.65002,height:1.15,italic:0,skew:0},93:{depth:.65002,height:1.15,italic:0,skew:0}},"Size3-Regular":{10216:{depth:.95003,height:1.45,italic:0,skew:0},10217:{depth:.95003,height:1.45,italic:0,skew:0},123:{depth:.95003,height:1.45,italic:0,skew:0},125:{depth:.95003,height:1.45,italic:0,skew:0},40:{depth:.95003,height:1.45,italic:0,skew:0},41:{depth:.95003,height:1.45,italic:0,skew:0},47:{depth:.95003,height:1.45,italic:0,skew:0},710:{depth:0,height:.75,italic:0,skew:0},732:{depth:0,height:.75,italic:0,skew:0},770:{depth:0,height:.75,italic:0,skew:0},771:{depth:0,height:.75,italic:0,skew:0},8730:{depth:.95003,height:1.45,italic:0,skew:0},8968:{depth:.95003,height:1.45,italic:0,skew:0},8969:{depth:.95003,height:1.45,italic:0,skew:0},8970:{depth:.95003,height:1.45,italic:0,skew:0},8971:{depth:.95003,height:1.45,italic:0,skew:0},91:{depth:.95003,height:1.45,italic:0,skew:0},92:{depth:.95003,height:1.45,italic:0,skew:0},93:{depth:.95003,height:1.45,italic:0,skew:0}},"Size4-Regular":{10216:{depth:1.25003,height:1.75,italic:0,skew:0},10217:{depth:1.25003,height:1.75,italic:0,skew:0},123:{depth:1.25003,height:1.75,italic:0,skew:0},125:{depth:1.25003,height:1.75,italic:0,skew:0},40:{depth:1.25003,height:1.75,italic:0,skew:0},41:{depth:1.25003,height:1.75,italic:0,skew:0},47:{depth:1.25003,height:1.75,italic:0,skew:0},57344:{depth:-.00499,height:.605,italic:0,skew:0},57345:{depth:-.00499,height:.605,italic:0,skew:0},57680:{depth:0,height:.12,italic:0,skew:0},57681:{depth:0,height:.12,italic:0,skew:0},57682:{depth:0,height:.12,italic:0,skew:0},57683:{depth:0,height:.12,italic:0,skew:0},710:{depth:0,height:.825,italic:0,skew:0},732:{depth:0,height:.825,italic:0,skew:0},770:{depth:0,height:.825,italic:0,skew:0},771:{depth:0,height:.825,italic:0,skew:0},8730:{depth:1.25003, height:1.75,italic:0,skew:0},8968:{depth:1.25003,height:1.75,italic:0,skew:0},8969:{depth:1.25003,height:1.75,italic:0,skew:0},8970:{depth:1.25003,height:1.75,italic:0,skew:0},8971:{depth:1.25003,height:1.75,italic:0,skew:0},91:{depth:1.25003,height:1.75,italic:0,skew:0},9115:{depth:.64502,height:1.155,italic:0,skew:0},9116:{depth:1e-5,height:.6,italic:0,skew:0},9117:{depth:.64502,height:1.155,italic:0,skew:0},9118:{depth:.64502,height:1.155,italic:0,skew:0},9119:{depth:1e-5,height:.6,italic:0,skew:0},9120:{depth:.64502,height:1.155,italic:0,skew:0},9121:{depth:.64502,height:1.155,italic:0,skew:0},9122:{depth:-99e-5,height:.601,italic:0,skew:0},9123:{depth:.64502,height:1.155,italic:0,skew:0},9124:{depth:.64502,height:1.155,italic:0,skew:0},9125:{depth:-99e-5,height:.601,italic:0,skew:0},9126:{depth:.64502,height:1.155,italic:0,skew:0},9127:{depth:1e-5,height:.9,italic:0,skew:0},9128:{depth:.65002,height:1.15,italic:0,skew:0},9129:{depth:.90001,height:0,italic:0,skew:0},9130:{depth:0,height:.3,italic:0,skew:0},9131:{depth:1e-5,height:.9,italic:0,skew:0},9132:{depth:.65002,height:1.15,italic:0,skew:0},9133:{depth:.90001,height:0,italic:0,skew:0},9143:{depth:.88502,height:.915,italic:0,skew:0},92:{depth:1.25003,height:1.75,italic:0,skew:0},93:{depth:1.25003,height:1.75,italic:0,skew:0}}},o=function(e,t){return a[t][e.charCodeAt(0)]};t.exports={metrics:r,getCharacterMetrics:o}},{"./Style":6}],12:[function(e,t,i){for(var n=e("./utils"),r=e("./ParseError"),a={"\\sqrt":{numArgs:1,numOptionalArgs:1,handler:function(e,t,i,n){if(null!=t)throw new r("Optional arguments to \\sqrt aren't supported yet",this.lexer,n[1]-1);return{type:"sqrt",body:i}}},"\\text":{numArgs:1,argTypes:["text"],greediness:2,handler:function(e,t){var i;return i="ordgroup"===t.type?t.value:[t],{type:"text",body:i}}},"\\color":{numArgs:2,allowedInText:!0,argTypes:["color","original"],handler:function(e,t,i){var n;return n="ordgroup"===i.type?i.value:[i],{type:"color",color:t.value,value:n}}},"\\overline":{numArgs:1,handler:function(e,t){return{type:"overline",body:t}}},"\\rule":{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"],handler:function(e,t,i,n){return{type:"rule",shift:t&&t.value,width:i.value,height:n.value}}},"\\KaTeX":{numArgs:0,handler:function(e){return{type:"katex"}}}},o={"\\bigl":{type:"open",size:1},"\\Bigl":{type:"open",size:2},"\\biggl":{type:"open",size:3},"\\Biggl":{type:"open",size:4},"\\bigr":{type:"close",size:1},"\\Bigr":{type:"close",size:2},"\\biggr":{type:"close",size:3},"\\Biggr":{type:"close",size:4},"\\bigm":{type:"rel",size:1},"\\Bigm":{type:"rel",size:2},"\\biggm":{type:"rel",size:3},"\\Biggm":{type:"rel",size:4},"\\big":{type:"textord",size:1},"\\Big":{type:"textord",size:2},"\\bigg":{type:"textord",size:3},"\\Bigg":{type:"textord",size:4}},s=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","<",">","\\langle","\\rangle","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],l=[{funcs:["\\blue","\\orange","\\pink","\\red","\\green","\\gray","\\purple"],data:{numArgs:1,allowedInText:!0,handler:function(e,t){var i;return i="ordgroup"===t.type?t.value:[t],{type:"color",color:"katex-"+e.slice(1),value:i}}}},{funcs:["\\arcsin","\\arccos","\\arctan","\\arg","\\cos","\\cosh","\\cot","\\coth","\\csc","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\tan","\\tanh"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!1,symbol:!1,body:e}}}},{funcs:["\\det","\\gcd","\\inf","\\lim","\\liminf","\\limsup","\\max","\\min","\\Pr","\\sup"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!0,symbol:!1,body:e}}}},{funcs:["\\int","\\iint","\\iiint","\\oint"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!1,symbol:!0,body:e}}}},{funcs:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!0,symbol:!0,body:e}}}},{funcs:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom"],data:{numArgs:2,greediness:2,handler:function(e,t,i){var n,r=null,a=null,o="auto";switch(e){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,r="(",a=")";break;default:throw new Error("Unrecognized genfrac command")}switch(e){case"\\dfrac":case"\\dbinom":o="display";break;case"\\tfrac":case"\\tbinom":o="text"}return{type:"genfrac",numer:t,denom:i,hasBarLine:n,leftDelim:r,rightDelim:a,size:o}}}},{funcs:["\\llap","\\rlap"],data:{numArgs:1,allowedInText:!0,handler:function(e,t){return{type:e.slice(1),body:t}}}},{funcs:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg","\\left","\\right"],data:{numArgs:1,handler:function(e,t,i){if(!n.contains(s,t.value))throw new r("Invalid delimiter: '"+t.value+"' after '"+e+"'",this.lexer,i[1]);return"\\left"===e||"\\right"===e?{type:"leftright",value:t.value}:{type:"delimsizing",size:o[e].size,delimType:o[e].type,value:t.value}}}},{funcs:["\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],data:{numArgs:0}},{funcs:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],data:{numArgs:0}},{funcs:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot"],data:{numArgs:1,handler:function(e,t){return{type:"accent",accent:e,base:t}}}},{funcs:["\\over","\\choose"],data:{numArgs:0,handler:function(e){var t;switch(e){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",replaceWith:t}}}}],c=0;c":{font:"main",group:"rel"},":":{font:"main",group:"rel"},"\\approx":{font:"main",group:"rel",replace:"≈"},"\\cong":{font:"main",group:"rel",replace:"≅"},"\\ge":{font:"main",group:"rel",replace:"≥"},"\\geq":{font:"main",group:"rel",replace:"≥"},"\\gets":{font:"main",group:"rel",replace:"←"},"\\in":{font:"main",group:"rel",replace:"∈"},"\\notin":{font:"main",group:"rel",replace:"∉"},"\\subset":{font:"main",group:"rel",replace:"⊂"},"\\supset":{font:"main",group:"rel",replace:"⊃"},"\\subseteq":{font:"main",group:"rel",replace:"⊆"},"\\supseteq":{font:"main",group:"rel",replace:"⊇"},"\\nsubseteq":{font:"ams",group:"rel",replace:"⊈"},"\\nsupseteq":{font:"ams",group:"rel",replace:"⊉"},"\\models":{font:"main",group:"rel",replace:"⊨"},"\\leftarrow":{font:"main",group:"rel",replace:"←"},"\\le":{font:"main",group:"rel",replace:"≤"},"\\leq":{font:"main",group:"rel",replace:"≤"},"\\ne":{font:"main",group:"rel",replace:"≠"},"\\neq":{font:"main",group:"rel",replace:"≠"},"\\rightarrow":{font:"main",group:"rel",replace:"→"},"\\to":{font:"main",group:"rel",replace:"→"},"\\ngeq":{font:"ams",group:"rel",replace:"≱"},"\\nleq":{font:"ams",group:"rel",replace:"≰"},"\\!":{font:"main",group:"spacing"},"\\ ":{font:"main",group:"spacing",replace:" "},"~":{font:"main",group:"spacing",replace:" "},"\\,":{font:"main",group:"spacing"},"\\:":{font:"main",group:"spacing"},"\\;":{font:"main",group:"spacing"},"\\enspace":{font:"main",group:"spacing"},"\\qquad":{font:"main",group:"spacing"},"\\quad":{font:"main",group:"spacing"},"\\space":{font:"main",group:"spacing",replace:" "},",":{font:"main",group:"punct"},";":{font:"main",group:"punct"},"\\colon":{font:"main",group:"punct",replace:":"},"\\barwedge":{font:"ams",group:"textord",replace:"⊼"},"\\veebar":{font:"ams",group:"textord",replace:"⊻"},"\\odot":{font:"main",group:"textord",replace:"⊙"},"\\oplus":{font:"main",group:"textord",replace:"⊕"},"\\otimes":{font:"main",group:"textord",replace:"⊗"},"\\partial":{font:"main",group:"textord",replace:"∂"},"\\oslash":{font:"main",group:"textord",replace:"⊘"},"\\circledcirc":{font:"ams",group:"textord",replace:"⊚"},"\\boxdot":{font:"ams",group:"textord",replace:"⊡"},"\\bigtriangleup":{font:"main",group:"textord",replace:"△"},"\\bigtriangledown":{font:"main",group:"textord",replace:"▽"},"\\dagger":{font:"main",group:"textord",replace:"†"},"\\diamond":{font:"main",group:"textord",replace:"⋄"},"\\star":{font:"main",group:"textord",replace:"⋆"},"\\triangleleft":{font:"main",group:"textord",replace:"◃"},"\\triangleright":{font:"main",group:"textord",replace:"▹"},"\\{":{font:"main",group:"open",replace:"{"},"\\}":{font:"main",group:"close",replace:"}"},"\\lbrace":{font:"main",group:"open",replace:"{"},"\\rbrace":{font:"main",group:"close",replace:"}"},"\\lbrack":{font:"main",group:"open",replace:"["},"\\rbrack":{font:"main",group:"close",replace:"]"},"\\lfloor":{font:"main",group:"open",replace:"⌊"},"\\rfloor":{font:"main",group:"close",replace:"⌋"},"\\lceil":{font:"main",group:"open",replace:"⌈"},"\\rceil":{font:"main",group:"close",replace:"⌉"},"\\backslash":{font:"main",group:"textord",replace:"\\"},"|":{font:"main",group:"textord",replace:"∣"},"\\vert":{font:"main",group:"textord",replace:"∣"},"\\|":{font:"main",group:"textord",replace:"∥"},"\\Vert":{font:"main",group:"textord",replace:"∥"},"\\uparrow":{font:"main",group:"textord",replace:"↑"},"\\Uparrow":{font:"main",group:"textord",replace:"⇑"},"\\downarrow":{font:"main",group:"textord",replace:"↓"},"\\Downarrow":{font:"main",group:"textord",replace:"⇓"},"\\updownarrow":{font:"main",group:"textord",replace:"↕"},"\\Updownarrow":{font:"main",group:"textord",replace:"⇕"},"\\coprod":{font:"math",group:"op",replace:"∐"},"\\bigvee":{font:"math",group:"op",replace:"⋁"},"\\bigwedge":{font:"math",group:"op",replace:"⋀"},"\\biguplus":{font:"math",group:"op",replace:"⨄"},"\\bigcap":{font:"math",group:"op",replace:"⋂"},"\\bigcup":{font:"math",group:"op",replace:"⋃"},"\\int":{font:"math",group:"op",replace:"∫"},"\\intop":{font:"math",group:"op",replace:"∫"},"\\iint":{font:"math",group:"op",replace:"∬"},"\\iiint":{font:"math",group:"op",replace:"∭"},"\\prod":{font:"math",group:"op",replace:"∏"},"\\sum":{font:"math",group:"op",replace:"∑"},"\\bigotimes":{font:"math",group:"op",replace:"⨂"},"\\bigoplus":{font:"math",group:"op",replace:"⨁"},"\\bigodot":{font:"math",group:"op",replace:"⨀"},"\\oint":{font:"math",group:"op",replace:"∮"},"\\bigsqcup":{font:"math",group:"op",replace:"⨆"},"\\smallint":{font:"math",group:"op",replace:"∫"},"\\ldots":{font:"main",group:"punct",replace:"…"},"\\cdots":{font:"main",group:"inner",replace:"⋯"},"\\ddots":{font:"main",group:"inner",replace:"⋱"},"\\vdots":{font:"main",group:"textord",replace:"⋮"},"\\acute":{font:"main",group:"accent",replace:"´"},"\\grave":{font:"main",group:"accent",replace:"`"},"\\ddot":{font:"main",group:"accent",replace:"¨"},"\\tilde":{font:"main",group:"accent",replace:"~"},"\\bar":{font:"main",group:"accent",replace:"¯"},"\\breve":{font:"main",group:"accent",replace:"˘"},"\\check":{font:"main",group:"accent",replace:"ˇ"},"\\hat":{font:"main",group:"accent",replace:"^"},"\\vec":{font:"main",group:"accent",replace:"⃗"},"\\dot":{font:"main",group:"accent",replace:"˙"}},text:{"\\ ":{font:"main",group:"spacing",replace:" "}," ":{font:"main",group:"spacing",replace:" "},"~":{font:"main",group:"spacing",replace:" "}}},r='0123456789/@."',a=0;a":">","<":"<",'"':""","'":"'"},p=/[&><"']/g;if("undefined"!=typeof document){var f=document.createElement("span");o="textContent"in f?function(e,t){e.textContent=t}:function(e,t){e.innerText=t}}t.exports={contains:c,escape:r,hyphenate:d,indexOf:l,setTextContent:o,clearNode:a}},{}]},{},[1])(1)}),define("public/lib/editormd/lib/raphael-config",[],function(){return function(e){var t,i,n="0.4.2",r="hasOwnProperty",a=/[\.\/]/,o=function(){},s=function(e,t){return e-t},l={n:{}},c=function(e,n){e=String(e);var r,a=i,o=Array.prototype.slice.call(arguments,2),l=c.listeners(e),u=0,d=[],h={},p=[],f=t;t=e,i=0;for(var m=0,g=l.length;g>m;m++)"zIndex"in l[m]&&(d.push(l[m].zIndex),l[m].zIndex<0&&(h[l[m].zIndex]=l[m]));for(d.sort(s);d[u]<0;)if(r=h[d[u++]],p.push(r.apply(n,o)),i)return i=a,p;for(m=0;g>m;m++)if("zIndex"in(r=l[m]))if(r.zIndex==d[u]){if(p.push(r.apply(n,o)),i)break;do{if(u++,r=h[d[u]],r&&p.push(r.apply(n,o)),i)break}while(r)}else h[r.zIndex]=r;else if(p.push(r.apply(n,o)),i)break;return i=a,t=f,p.length?p:null};return c._events=l,c.listeners=function(e){var t,i,n,r,o,s,c,u,d=e.split(a),h=l,p=[h],f=[];for(r=0,o=d.length;o>r;r++){for(u=[],s=0,c=p.length;c>s;s++)for(h=p[s].n,i=[h[d[r]],h["*"]],n=2;n--;)(t=i[n])&&(u.push(t),f=f.concat(t.f||[]));p=u}return f},c.on=function(e,t){if(e=String(e),"function"!=typeof t)return function(){};for(var i=e.split(a),n=l,r=0,s=i.length;s>r;r++)n=n.n,n=n.hasOwnProperty(i[r])&&n[i[r]]||(n[i[r]]={n:{}});for(n.f=n.f||[],r=0,s=n.f.length;s>r;r++)if(n.f[r]==t)return o;return n.f.push(t),function(e){+e==+e&&(t.zIndex=+e)}},c.f=function(e){var t=[].slice.call(arguments,1);return function(){c.apply(null,[e,null].concat(t).concat([].slice.call(arguments,0)))}},c.stop=function(){i=1},c.nt=function(e){return e?new RegExp("(?:\\.|\\/|^)"+e+"(?:\\.|\\/|$)").test(t):t},c.nts=function(){return t.split(a)},c.off=c.unbind=function(e,t){if(!e)return void(c._events=l={n:{}});var i,n,o,s,u,d,h,p=e.split(a),f=[l];for(s=0,u=p.length;u>s;s++)for(d=0;ds;s++)for(i=f[s];i.n;){if(t){if(i.f){for(d=0,h=i.f.length;h>d;d++)if(i.f[d]==t){i.f.splice(d,1);break}!i.f.length&&delete i.f}for(n in i.n)if(i.n[r](n)&&i.n[n].f){var m=i.n[n].f;for(d=0,h=m.length;h>d;d++)if(m[d]==t){m.splice(d,1);break}!m.length&&delete i.n[n].f}}else{delete i.f;for(n in i.n)i.n[r](n)&&i.n[n].f&&delete i.n[n].f}i=i.n}},c.once=function(e,t){var i=function(){return c.unbind(e,i),t.apply(this,arguments)};return c.on(e,i)},c.version=n,c.toString=function(){return"You are running Eve "+n},"undefined"!=typeof module&&module.exports?module.exports=c:"undefined"!=typeof define?define("eve",[],function(){return c}):e.eve=c,c}(window||this)}),define("raphael",["public/lib/editormd/lib/raphael-config"],function(e){return function(e,t){function i(e){if(i.is(e,"function"))return b?e():t.on("raphael.DOMload",e);if(i.is(e,G))return i._engine.create[I](i,e.splice(0,3+i.is(e[0],W))).add(e);var n=Array.prototype.slice.call(arguments,0);if(i.is(n[n.length-1],"function")){var r=n.pop();return b?r.call(i._engine.create[I](i,n)):t.on("raphael.DOMload",function(){r.call(i._engine.create[I](i,n))})}return i._engine.create[I](i,arguments)}function n(e){if("function"==typeof e||Object(e)!==e)return e;var t=new e.constructor;for(var i in e)e[T](i)&&(t[i]=n(e[i]));return t}function r(e,t){for(var i=0,n=e.length;n>i;i++)if(e[i]===t)return e.push(e.splice(i,1)[0])}function a(e,t,i){function n(){var a=Array.prototype.slice.call(arguments,0),o=a.join("␀"),s=n.cache=n.cache||{},l=n.count=n.count||[];return s[T](o)?(r(l,o),i?i(s[o]):s[o]):(l.length>=1e3&&delete s[l.shift()],l.push(o),s[o]=e[I](t,a),i?i(s[o]):s[o])}return n}function o(){return this.hex}function s(e,t){for(var i=[],n=0,r=e.length;r-2*!t>n;n+=2){var a=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?r-4==n?a[3]={x:+e[0],y:+e[1]}:r-2==n&&(a[2]={x:+e[0],y:+e[1]},a[3]={x:+e[2],y:+e[3]}):a[0]={x:+e[r-2],y:+e[r-1]}:r-4==n?a[3]=a[2]:n||(a[0]={x:+e[n],y:+e[n+1]}),i.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return i}function l(e,t,i,n,r){return e*(e*(-3*t+9*i-9*n+3*r)+6*t-12*i+6*n)-3*t+3*i}function c(e,t,i,n,r,a,o,s,c){null==c&&(c=1),c=c>1?1:0>c?0:c;for(var u=c/2,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,f=0;12>f;f++){var m=u*d[f]+u,g=l(m,e,i,r,o),v=l(m,t,n,a,s),y=g*g+v*v;p+=h[f]*F.sqrt(y)}return u*p}function u(e,t,i,n,r,a,o,s,l){if(!(0>l||c(e,t,i,n,r,a,o,s).01;)d/=2,h+=(l>u?1:-1)*d,u=c(e,t,i,n,r,a,o,s,h);return h}}function d(e,t,i,n,r,a,o,s){if(!(B(e,i)B(r,o)||B(t,n)B(a,s))){var l=(e*n-t*i)*(r-o)-(e-i)*(r*s-a*o),c=(e*n-t*i)*(a-s)-(t-n)*(r*s-a*o),u=(e-i)*(a-s)-(t-n)*(r-o);if(u){var d=l/u,h=c/u,p=+d.toFixed(2),f=+h.toFixed(2);if(!(p<+U(e,i).toFixed(2)||p>+B(e,i).toFixed(2)||p<+U(r,o).toFixed(2)||p>+B(r,o).toFixed(2)||f<+U(t,n).toFixed(2)||f>+B(t,n).toFixed(2)||f<+U(a,s).toFixed(2)||f>+B(a,s).toFixed(2)))return{x:d,y:h}}}}function h(e,t,n){var r=i.bezierBBox(e),a=i.bezierBBox(t);if(!i.isBBoxIntersect(r,a))return n?0:[];for(var o=c.apply(0,e),s=c.apply(0,t),l=B(~~(o/5),1),u=B(~~(s/5),1),h=[],p=[],f={},m=n?0:[],g=0;l+1>g;g++){var v=i.findDotsAtSegment.apply(i,e.concat(g/l));h.push({x:v.x,y:v.y,t:g/l})}for(g=0;u+1>g;g++)v=i.findDotsAtSegment.apply(i,t.concat(g/u)),p.push({x:v.x,y:v.y,t:g/u});for(g=0;l>g;g++)for(var y=0;u>y;y++){var _=h[g],b=h[g+1],w=p[y],x=p[y+1],k=$(b.x-_.x)<.001?"y":"x",C=$(x.x-w.x)<.001?"y":"x",T=d(_.x,_.y,b.x,b.y,w.x,w.y,x.x,x.y);if(T){if(f[T.x.toFixed(4)]==T.y.toFixed(4))continue;f[T.x.toFixed(4)]=T.y.toFixed(4);var S=_.t+$((T[k]-_[k])/(b[k]-_[k]))*(b.t-_.t),E=w.t+$((T[C]-w[C])/(x[C]-w[C]))*(x.t-w.t);S>=0&&1.001>=S&&E>=0&&1.001>=E&&(n?m++:m.push({x:T.x,y:T.y,t1:U(S,1),t2:U(E,1)}))}}return m}function p(e,t,n){e=i._path2curve(e),t=i._path2curve(t);for(var r,a,o,s,l,c,u,d,p,f,m=n?0:[],g=0,v=e.length;v>g;g++){var y=e[g];if("M"==y[0])r=l=y[1],a=c=y[2];else{"C"==y[0]?(p=[r,a].concat(y.slice(1)),r=p[6],a=p[7]):(p=[r,a,r,a,l,c,l,c],r=l,a=c);for(var _=0,b=t.length;b>_;_++){var w=t[_];if("M"==w[0])o=u=w[1],s=d=w[2];else{"C"==w[0]?(f=[o,s].concat(w.slice(1)),o=f[6],s=f[7]):(f=[o,s,o,s,u,d,u,d],o=u,s=d);var x=h(p,f,n);if(n)m+=x;else{for(var k=0,C=x.length;C>k;k++)x[k].segment1=g,x[k].segment2=_,x[k].bez1=p,x[k].bez2=f;m=m.concat(x)}}}}}return m}function f(e,t,i,n,r,a){null!=e?(this.a=+e,this.b=+t,this.c=+i,this.d=+n,this.e=+r,this.f=+a):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function m(){return this.x+O+this.y+O+this.width+" × "+this.height}function g(e,t,i,n,r,a){function o(e){return((u*e+c)*e+l)*e}function s(e,t){var i,n,r,a,s,d;for(r=e,d=0;8>d;d++){if(a=o(r)-e,$(a)r)return i;if(r>n)return n;for(;n>i;){if(a=o(r),$(a-e)a?i=r:n=r,r=(n-i)/2+i}return r}var l=3*t,c=3*(n-t)-l,u=1-l-c,d=3*i,h=3*(r-i)-d,p=1-d-h;return function(e,t){var i=s(e,t);return((p*i+h)*i+d)*i}(e,1/(200*a))}function v(e,t){var i=[],n={};if(this.ms=t,this.times=1,e){for(var r in e)e[T](r)&&(n[J(r)]=e[r],i.push(J(r)));i.sort(de)}this.anim=n,this.top=i[i.length-1],this.percents=i}function y(e,n,r,a,o,s){r=J(r);var l,c,u,d,h,p,m=e.ms,v={},y={},_={};if(a)for(w=0,k=lt.length;k>w;w++){var b=lt[w];if(b.el.id==n.id&&b.anim==e){b.percent!=r?(lt.splice(w,1),u=1):c=b,n.attr(b.totalOrigin);break}}else a=+y;for(var w=0,k=e.percents.length;k>w;w++){if(e.percents[w]==r||e.percents[w]>a*e.top){r=e.percents[w],h=e.percents[w-1]||0,m=m/e.top*(r-h),d=e.percents[w+1],l=e.anim[r];break}a&&n.attr(e.anim[e.percents[w]])}if(l){if(c)c.initstatus=a,c.start=new Date-c.ms*a;else{for(var C in l)if(l[T](C)&&(ne[T](C)||n.paper.customAttributes[T](C)))switch(v[C]=n.attr(C),null==v[C]&&(v[C]=ie[C]),y[C]=l[C],ne[C]){case W:_[C]=(y[C]-v[C])/m;break;case"colour":v[C]=i.getRGB(v[C]);var S=i.getRGB(y[C]);_[C]={r:(S.r-v[C].r)/m,g:(S.g-v[C].g)/m,b:(S.b-v[C].b)/m};break;case"path":var E=Re(v[C],y[C]),A=E[1];for(v[C]=E[0],_[C]=[],w=0,k=v[C].length;k>w;w++){_[C][w]=[0];for(var I=1,M=v[C][w].length;M>I;I++)_[C][w][I]=(A[w][I]-v[C][w][I])/m}break;case"transform":var L=n._,O=Ue(L[C],y[C]);if(O)for(v[C]=O.from,y[C]=O.to,_[C]=[],_[C].real=!0,w=0,k=v[C].length;k>w;w++)for(_[C][w]=[v[C][w][0]],I=1,M=v[C][w].length;M>I;I++)_[C][w][I]=(y[C][w][I]-v[C][w][I])/m;else{var R=n.matrix||new f,j={_:{transform:L.transform},getBBox:function(){return n.getBBox(1)}};v[C]=[R.a,R.b,R.c,R.d,R.e,R.f],Fe(j,y[C]),y[C]=j._.transform,_[C]=[(j.matrix.a-R.a)/m,(j.matrix.b-R.b)/m,(j.matrix.c-R.c)/m,(j.matrix.d-R.d)/m,(j.matrix.e-R.e)/m,(j.matrix.f-R.f)/m]}break;case"csv":var z=N(l[C])[P](x),F=N(v[C])[P](x);if("clip-rect"==C)for(v[C]=F,_[C]=[],w=F.length;w--;)_[C][w]=(z[w]-v[C][w])/m;y[C]=z;break;default:for(z=[][D](l[C]),F=[][D](v[C]),_[C]=[],w=n.paper.customAttributes[C].length;w--;)_[C][w]=((z[w]||0)-(F[w]||0))/m}var B=l.easing,U=i.easing_formulas[B];if(!U)if((U=N(B).match(Q))&&5==U.length){var $=U;U=function(e){return g(e,+$[1],+$[2],+$[3],+$[4],m)}}else U=pe;if(p=l.start||e.start||+new Date,b={anim:e,percent:r,timestamp:p,start:p+(e.del||0),status:0,initstatus:a||0,stop:!1,ms:m,easing:U,from:v,diff:_,to:y,el:n,callback:l.callback,prev:h,next:d,repeat:s||e.times,origin:n.attr(),totalOrigin:o},lt.push(b),a&&!c&&!u&&(b.stop=!0,b.start=new Date-m*a,1==lt.length))return ut();u&&(b.start=new Date-b.ms*a),1==lt.length&&ct(ut)}t("raphael.anim.start."+n.id,n,e)}}function _(e){for(var t=0;tr;r++)for(l=e[r],a=1,s=l.length;s>a;a+=2)i=t.x(l[a],l[a+1]),n=t.y(l[a],l[a+1]),l[a]=i,l[a+1]=n;return e};if(i._g=S,i.type=S.win.SVGAngle||S.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML","VML"==i.type){var ye,_e=S.doc.createElement("div");if(_e.innerHTML='',ye=_e.firstChild,ye.style.behavior="url(#default#VML)",!ye||"object"!=typeof ye.adj)return i.type=L;_e=null} i.svg=!(i.vml="VML"==i.type),i._Paper=A,i.fn=w=A.prototype=i.prototype,i._id=0,i._oid=0,i.is=function(e,t){return t=z.call(t),"finite"==t?!X[T](+e):"array"==t?e instanceof Array:"null"==t&&null===e||t==typeof e&&null!==e||"object"==t&&e===Object(e)||"array"==t&&Array.isArray&&Array.isArray(e)||Y.call(e).slice(8,-1).toLowerCase()==t},i.angle=function(e,t,n,r,a,o){if(null==a){var s=e-n,l=t-r;return s||l?(180+180*F.atan2(-l,-s)/H+360)%360:0}return i.angle(e,t,a,o)-i.angle(n,r,a,o)},i.rad=function(e){return e%360*H/180},i.deg=function(e){return 180*e/H%360},i.snapTo=function(e,t,n){if(n=i.is(n,"finite")?n:10,i.is(e,G)){for(var r=e.length;r--;)if($(e[r]-t)<=n)return e[r]}else{e=+e;var a=t%e;if(n>a)return t-a;if(a>e-n)return t-a+e}return t},i.createUUID=function(e,t){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(e,t).toUpperCase()}}(/[xy]/g,function(e){var t=16*F.random()|0;return("x"==e?t:3&t|8).toString(16)}),i.setWindow=function(e){t("raphael.setWindow",i,S.win,e),S.win=e,S.doc=S.win.document,i._engine.initWin&&i._engine.initWin(S.win)};var be=function(e){if(i.vml){var t,n=/^\s+|\s+$/g;try{var r=new ActiveXObject("htmlfile");r.write(""),r.close(),t=r.body}catch(e){t=createPopup().document.body}var o=t.createTextRange();be=a(function(e){try{t.style.color=N(e).replace(n,L);var i=o.queryCommandValue("ForeColor");return i=(255&i)<<16|65280&i|(16711680&i)>>>16,"#"+("000000"+i.toString(16)).slice(-6)}catch(e){return"none"}})}else{var s=S.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",S.doc.body.appendChild(s),be=a(function(e){return s.style.color=e,S.doc.defaultView.getComputedStyle(s,L).getPropertyValue("color")})}return be(e)},we=function(){return"hsb("+[this.h,this.s,this.b]+")"},xe=function(){return"hsl("+[this.h,this.s,this.l]+")"},ke=function(){return this.hex},Ce=function(e,t,n){if(null==t&&i.is(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(n=e.b,t=e.g,e=e.r),null==t&&i.is(e,V)){var r=i.getRGB(e);e=r.r,t=r.g,n=r.b}return(e>1||t>1||n>1)&&(e/=255,t/=255,n/=255),[e,t,n]},Te=function(e,t,n,r){e*=255,t*=255,n*=255;var a={r:e,g:t,b:n,hex:i.rgb(e,t,n),toString:ke};return i.is(r,"finite")&&(a.opacity=r),a};i.color=function(e){var t;return i.is(e,"object")&&"h"in e&&"s"in e&&"b"in e?(t=i.hsb2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.hex=t.hex):i.is(e,"object")&&"h"in e&&"s"in e&&"l"in e?(t=i.hsl2rgb(e),e.r=t.r,e.g=t.g,e.b=t.b,e.hex=t.hex):(i.is(e,"string")&&(e=i.getRGB(e)),i.is(e,"object")&&"r"in e&&"g"in e&&"b"in e?(t=i.rgb2hsl(e),e.h=t.h,e.s=t.s,e.l=t.l,t=i.rgb2hsb(e),e.v=t.b):(e={hex:"none"},e.r=e.g=e.b=e.h=e.s=e.v=e.l=-1)),e.toString=ke,e},i.hsb2rgb=function(e,t,i,n){this.is(e,"object")&&"h"in e&&"s"in e&&"b"in e&&(i=e.b,t=e.s,n=e.o,e=e.h),e*=360;var r,a,o,s,l;return e=e%360/60,l=i*t,s=l*(1-$(e%2-1)),r=a=o=i-l,e=~~e,r+=[l,s,0,0,s,l][e],a+=[s,l,l,s,0,0][e],o+=[0,0,s,l,l,s][e],Te(r,a,o,n)},i.hsl2rgb=function(e,t,i,n){this.is(e,"object")&&"h"in e&&"s"in e&&"l"in e&&(i=e.l,t=e.s,e=e.h),(e>1||t>1||i>1)&&(e/=360,t/=100,i/=100),e*=360;var r,a,o,s,l;return e=e%360/60,l=2*t*(.5>i?i:1-i),s=l*(1-$(e%2-1)),r=a=o=i-l/2,e=~~e,r+=[l,s,0,0,s,l][e],a+=[s,l,l,s,0,0][e],o+=[0,0,s,l,l,s][e],Te(r,a,o,n)},i.rgb2hsb=function(e,t,i){i=Ce(e,t,i),e=i[0],t=i[1],i=i[2];var n,r,a,o;return a=B(e,t,i),o=a-U(e,t,i),n=0==o?null:a==e?(t-i)/o:a==t?(i-e)/o+2:(e-t)/o+4,n=(n+360)%6*60/360,r=0==o?0:o/a,{h:n,s:r,b:a,toString:we}},i.rgb2hsl=function(e,t,i){i=Ce(e,t,i),e=i[0],t=i[1],i=i[2];var n,r,a,o,s,l;return o=B(e,t,i),s=U(e,t,i),l=o-s,n=0==l?null:o==e?(t-i)/l:o==t?(i-e)/l+2:(e-t)/l+4,n=(n+360)%6*60/360,a=(o+s)/2,r=0==l?0:.5>a?l/(2*a):l/(2-2*a),{h:n,s:r,l:a,toString:xe}},i._path2string=function(){return this.join(",").replace(oe,"$1")},i._preload=function(e,t){var i=S.doc.createElement("img");i.style.cssText="position:absolute;left:-9999em;top:-9999em",i.onload=function(){t.call(this),this.onload=null,S.doc.body.removeChild(this)},i.onerror=function(){S.doc.body.removeChild(this)},S.doc.body.appendChild(i),i.src=e},i.getRGB=a(function(e){if(!e||(e=N(e)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o};if("none"==e)return{r:-1,g:-1,b:-1,hex:"none",toString:o};!(ae[T](e.toLowerCase().substring(0,2))||"#"==e.charAt())&&(e=be(e));var t,n,r,a,s,l,c=e.match(K);return c?(c[2]&&(r=ee(c[2].substring(5),16),n=ee(c[2].substring(3,5),16),t=ee(c[2].substring(1,3),16)),c[3]&&(r=ee((s=c[3].charAt(3))+s,16),n=ee((s=c[3].charAt(2))+s,16),t=ee((s=c[3].charAt(1))+s,16)),c[4]&&(l=c[4][P](re),t=J(l[0]),"%"==l[0].slice(-1)&&(t*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),"rgba"==c[1].toLowerCase().slice(0,4)&&(a=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100)),c[5]?(l=c[5][P](re),t=J(l[0]),"%"==l[0].slice(-1)&&(t*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(t/=360),"hsba"==c[1].toLowerCase().slice(0,4)&&(a=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),i.hsb2rgb(t,n,r,a)):c[6]?(l=c[6][P](re),t=J(l[0]),"%"==l[0].slice(-1)&&(t*=2.55),n=J(l[1]),"%"==l[1].slice(-1)&&(n*=2.55),r=J(l[2]),"%"==l[2].slice(-1)&&(r*=2.55),("deg"==l[0].slice(-3)||"°"==l[0].slice(-1))&&(t/=360),"hsla"==c[1].toLowerCase().slice(0,4)&&(a=J(l[3])),l[3]&&"%"==l[3].slice(-1)&&(a/=100),i.hsl2rgb(t,n,r,a)):(c={r:t,g:n,b:r,toString:o},c.hex="#"+(16777216|r|n<<8|t<<16).toString(16).slice(1),i.is(a,"finite")&&(c.opacity=a),c)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:o}},i),i.hsb=a(function(e,t,n){return i.hsb2rgb(e,t,n).hex}),i.hsl=a(function(e,t,n){return i.hsl2rgb(e,t,n).hex}),i.rgb=a(function(e,t,i){return"#"+(16777216|i|t<<8|e<<16).toString(16).slice(1)}),i.getColor=function(e){var t=this.getColor.start=this.getColor.start||{h:0,s:1,b:e||.75},i=this.hsb2rgb(t.h,t.s,t.b);return t.h+=.075,t.h>1&&(t.h=0,t.s-=.2,t.s<=0&&(this.getColor.start={h:0,s:1,b:t.b})),i.hex},i.getColor.reset=function(){delete this.start},i.parsePathString=function(e){if(!e)return null;var t=Se(e);if(t.arr)return Ae(t.arr);var n={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];return i.is(e,G)&&i.is(e[0],G)&&(r=Ae(e)),r.length||N(e).replace(se,function(e,t,i){var a=[],o=t.toLowerCase();if(i.replace(ce,function(e,t){t&&a.push(+t)}),"m"==o&&a.length>2&&(r.push([t][D](a.splice(0,2))),o="l",t="m"==t?"l":"L"),"r"==o)r.push([t][D](a));else for(;a.length>=n[o]&&(r.push([t][D](a.splice(0,n[o]))),n[o]););}),r.toString=i._path2string,t.arr=Ae(r),r},i.parseTransformString=a(function(e){if(!e)return null;var t=[];return i.is(e,G)&&i.is(e[0],G)&&(t=Ae(e)),t.length||N(e).replace(le,function(e,i,n){var r=[];z.call(i),n.replace(ce,function(e,t){t&&r.push(+t)}),t.push([i][D](r))}),t.toString=i._path2string,t});var Se=function(e){var t=Se.ps=Se.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(function(){for(var i in t)t[T](i)&&i!=e&&!--t[i].sleep&&delete t[i]}),t[e]};i.findDotsAtSegment=function(e,t,i,n,r,a,o,s,l){var c=1-l,u=q(c,3),d=q(c,2),h=l*l,p=h*l,f=u*e+3*d*l*i+3*c*l*l*r+p*o,m=u*t+3*d*l*n+3*c*l*l*a+p*s,g=e+2*l*(i-e)+h*(r-2*i+e),v=t+2*l*(n-t)+h*(a-2*n+t),y=i+2*l*(r-i)+h*(o-2*r+i),_=n+2*l*(a-n)+h*(s-2*a+n),b=c*e+l*i,w=c*t+l*n,x=c*r+l*o,k=c*a+l*s,C=90-180*F.atan2(g-y,v-_)/H;return(g>y||_>v)&&(C+=180),{x:f,y:m,m:{x:g,y:v},n:{x:y,y:_},start:{x:b,y:w},end:{x:x,y:k},alpha:C}},i.bezierBBox=function(e,t,n,r,a,o,s,l){i.is(e,"array")||(e=[e,t,n,r,a,o,s,l]);var c=Pe.apply(null,e);return{x:c.min.x,y:c.min.y,x2:c.max.x,y2:c.max.y,width:c.max.x-c.min.x,height:c.max.y-c.min.y}},i.isPointInsideBBox=function(e,t,i){return t>=e.x&&t<=e.x2&&i>=e.y&&i<=e.y2},i.isBBoxIntersect=function(e,t){var n=i.isPointInsideBBox;return n(t,e.x,e.y)||n(t,e.x2,e.y)||n(t,e.x,e.y2)||n(t,e.x2,e.y2)||n(e,t.x,t.y)||n(e,t.x2,t.y)||n(e,t.x,t.y2)||n(e,t.x2,t.y2)||(e.xt.x||t.xe.x)&&(e.yt.y||t.ye.y)},i.pathIntersection=function(e,t){return p(e,t)},i.pathIntersectionNumber=function(e,t){return p(e,t,1)},i.isPointInsidePath=function(e,t,n){var r=i.pathBBox(e);return i.isPointInsideBBox(r,t,n)&&p(e,[["M",t,n],["H",r.x2+10]],1)%2==1},i._removedFactory=function(e){return function(){t("raphael.log",null,"Raphaël: you are calling to method “"+e+"” of removed object",e)}};var Ee=i.pathBBox=function(e){var t=Se(e);if(t.bbox)return n(t.bbox);if(!e)return{x:0,y:0,width:0,height:0,x2:0,y2:0};e=Re(e);for(var i,r=0,a=0,o=[],s=[],l=0,c=e.length;c>l;l++)if(i=e[l],"M"==i[0])r=i[1],a=i[2],o.push(r),s.push(a);else{var u=Pe(r,a,i[1],i[2],i[3],i[4],i[5],i[6]);o=o[D](u.min.x,u.max.x),s=s[D](u.min.y,u.max.y),r=i[5],a=i[6]}var d=U[I](0,o),h=U[I](0,s),p=B[I](0,o),f=B[I](0,s),m=p-d,g=f-h,v={x:d,y:h,x2:p,y2:f,width:m,height:g,cx:d+m/2,cy:h+g/2};return t.bbox=n(v),v},Ae=function(e){var t=n(e);return t.toString=i._path2string,t},Ie=i._pathToRelative=function(e){var t=Se(e);if(t.rel)return Ae(t.rel);i.is(e,G)&&i.is(e&&e[0],G)||(e=i.parsePathString(e));var n=[],r=0,a=0,o=0,s=0,l=0;"M"==e[0][0]&&(r=e[0][1],a=e[0][2],o=r,s=a,l++,n.push(["M",r,a]));for(var c=l,u=e.length;u>c;c++){var d=n[c]=[],h=e[c];if(h[0]!=z.call(h[0]))switch(d[0]=z.call(h[0]),d[0]){case"a":d[1]=h[1],d[2]=h[2],d[3]=h[3],d[4]=h[4],d[5]=h[5],d[6]=+(h[6]-r).toFixed(3),d[7]=+(h[7]-a).toFixed(3);break;case"v":d[1]=+(h[1]-a).toFixed(3);break;case"m":o=h[1],s=h[2];default:for(var p=1,f=h.length;f>p;p++)d[p]=+(h[p]-(p%2?r:a)).toFixed(3)}else{d=n[c]=[],"m"==h[0]&&(o=h[1]+r,s=h[2]+a);for(var m=0,g=h.length;g>m;m++)n[c][m]=h[m]}var v=n[c].length;switch(n[c][0]){case"z":r=o,a=s;break;case"h":r+=+n[c][v-1];break;case"v":a+=+n[c][v-1];break;default:r+=+n[c][v-2],a+=+n[c][v-1]}}return n.toString=i._path2string,t.rel=Ae(n),n},De=i._pathToAbsolute=function(e){var t=Se(e);if(t.abs)return Ae(t.abs);if(i.is(e,G)&&i.is(e&&e[0],G)||(e=i.parsePathString(e)),!e||!e.length)return[["M",0,0]];var n=[],r=0,a=0,o=0,l=0,c=0;"M"==e[0][0]&&(r=+e[0][1],a=+e[0][2],o=r,l=a,c++,n[0]=["M",r,a]);for(var u,d,h=3==e.length&&"M"==e[0][0]&&"R"==e[1][0].toUpperCase()&&"Z"==e[2][0].toUpperCase(),p=c,f=e.length;f>p;p++){if(n.push(u=[]),d=e[p],d[0]!=te.call(d[0]))switch(u[0]=te.call(d[0]),u[0]){case"A":u[1]=d[1],u[2]=d[2],u[3]=d[3],u[4]=d[4],u[5]=d[5],u[6]=+(d[6]+r),u[7]=+(d[7]+a);break;case"V":u[1]=+d[1]+a;break;case"H":u[1]=+d[1]+r;break;case"R":for(var m=[r,a][D](d.slice(1)),g=2,v=m.length;v>g;g++)m[g]=+m[g]+r,m[++g]=+m[g]+a;n.pop(),n=n[D](s(m,h));break;case"M":o=+d[1]+r,l=+d[2]+a;default:for(g=1,v=d.length;v>g;g++)u[g]=+d[g]+(g%2?r:a)}else if("R"==d[0])m=[r,a][D](d.slice(1)),n.pop(),n=n[D](s(m,h)),u=["R"][D](d.slice(-2));else for(var y=0,_=d.length;_>y;y++)u[y]=d[y];switch(u[0]){case"Z":r=o,a=l;break;case"H":r=u[1];break;case"V":a=u[1];break;case"M":o=u[u.length-2],l=u[u.length-1];default:r=u[u.length-2],a=u[u.length-1]}}return n.toString=i._path2string,t.abs=Ae(n),n},Me=function(e,t,i,n){return[e,t,i,n,i,n]},Le=function(e,t,i,n,r,a){var o=1/3,s=2/3;return[o*e+s*i,o*t+s*n,o*r+s*i,o*a+s*n,r,a]},Oe=function(e,t,i,n,r,o,s,l,c,u){var d,h=120*H/180,p=H/180*(+r||0),f=[],m=a(function(e,t,i){return{x:e*F.cos(i)-t*F.sin(i),y:e*F.sin(i)+t*F.cos(i)}});if(u)C=u[0],T=u[1],x=u[2],k=u[3];else{d=m(e,t,-p),e=d.x,t=d.y,d=m(l,c,-p),l=d.x,c=d.y;var g=(F.cos(H/180*r),F.sin(H/180*r),(e-l)/2),v=(t-c)/2,y=g*g/(i*i)+v*v/(n*n);y>1&&(y=F.sqrt(y),i*=y,n*=y);var _=i*i,b=n*n,w=(o==s?-1:1)*F.sqrt($((_*b-_*v*v-b*g*g)/(_*v*v+b*g*g))),x=w*i*v/n+(e+l)/2,k=w*-n*g/i+(t+c)/2,C=F.asin(((t-k)/n).toFixed(9)),T=F.asin(((c-k)/n).toFixed(9));C=x>e?H-C:C,T=x>l?H-T:T,0>C&&(C=2*H+C),0>T&&(T=2*H+T),s&&C>T&&(C-=2*H),!s&&T>C&&(T-=2*H)}var S=T-C;if($(S)>h){var E=T,A=l,I=c;T=C+h*(s&&T>C?1:-1),l=x+i*F.cos(T),c=k+n*F.sin(T),f=Oe(l,c,i,n,r,0,s,A,I,[T,E,x,k])}S=T-C;var M=F.cos(C),L=F.sin(C),O=F.cos(T),N=F.sin(T),R=F.tan(S/4),j=4/3*i*R,z=4/3*n*R,B=[e,t],U=[e+j*L,t-z*M],q=[l+j*N,c-z*O],W=[l,c];if(U[0]=2*B[0]-U[0],U[1]=2*B[1]-U[1],u)return[U,q,W][D](f);f=[U,q,W][D](f).join()[P](",");for(var V=[],G=0,Y=f.length;Y>G;G++)V[G]=G%2?m(f[G-1],f[G],p).y:m(f[G],f[G+1],p).x;return V},Ne=function(e,t,i,n,r,a,o,s,l){var c=1-l;return{x:q(c,3)*e+3*q(c,2)*l*i+3*c*l*l*r+q(l,3)*o,y:q(c,3)*t+3*q(c,2)*l*n+3*c*l*l*a+q(l,3)*s}},Pe=a(function(e,t,i,n,r,a,o,s){var l,c=r-2*i+e-(o-2*r+i),u=2*(i-e)-2*(r-i),d=e-i,h=(-u+F.sqrt(u*u-4*c*d))/2/c,p=(-u-F.sqrt(u*u-4*c*d))/2/c,f=[t,s],m=[e,o];return $(h)>"1e12"&&(h=.5),$(p)>"1e12"&&(p=.5),h>0&&1>h&&(l=Ne(e,t,i,n,r,a,o,s,h),m.push(l.x),f.push(l.y)),p>0&&1>p&&(l=Ne(e,t,i,n,r,a,o,s,p),m.push(l.x),f.push(l.y)),c=a-2*n+t-(s-2*a+n),u=2*(n-t)-2*(a-n),d=t-n,h=(-u+F.sqrt(u*u-4*c*d))/2/c,p=(-u-F.sqrt(u*u-4*c*d))/2/c,$(h)>"1e12"&&(h=.5),$(p)>"1e12"&&(p=.5),h>0&&1>h&&(l=Ne(e,t,i,n,r,a,o,s,h),m.push(l.x),f.push(l.y)),p>0&&1>p&&(l=Ne(e,t,i,n,r,a,o,s,p),m.push(l.x),f.push(l.y)),{min:{x:U[I](0,m),y:U[I](0,f)},max:{x:B[I](0,m),y:B[I](0,f)}}}),Re=i._path2curve=a(function(e,t){var i=!t&&Se(e);if(!t&&i.curve)return Ae(i.curve);for(var n=De(e),r=t&&De(t),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=(function(e,t,i){var n,r,a={T:1,Q:1};if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(!(e[0]in a)&&(t.qx=t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":e=["C"][D](Oe[I](0,[t.x,t.y][D](e.slice(1))));break;case"S":"C"==i||"S"==i?(n=2*t.x-t.bx,r=2*t.y-t.by):(n=t.x,r=t.y),e=["C",n,r][D](e.slice(1));break;case"T":"Q"==i||"T"==i?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),e=["C"][D](Le(t.x,t.y,t.qx,t.qy,e[1],e[2]));break;case"Q":t.qx=e[1],t.qy=e[2],e=["C"][D](Le(t.x,t.y,e[1],e[2],e[3],e[4]));break;case"L":e=["C"][D](Me(t.x,t.y,e[1],e[2]));break;case"H":e=["C"][D](Me(t.x,t.y,e[1],t.y));break;case"V":e=["C"][D](Me(t.x,t.y,t.x,e[1]));break;case"Z":e=["C"][D](Me(t.x,t.y,t.X,t.Y))}return e}),l=function(e,t){if(e[t].length>7){e[t].shift();for(var i=e[t];i.length;)u[t]="A",r&&(d[t]="A"),e.splice(t++,0,["C"][D](i.splice(0,6)));e.splice(t,1),m=B(n.length,r&&r.length||0)}},c=function(e,t,i,a,o){e&&t&&"M"==e[o][0]&&"M"!=t[o][0]&&(t.splice(o,0,["M",a.x,a.y]),i.bx=0,i.by=0,i.x=e[o][1],i.y=e[o][2],m=B(n.length,r&&r.length||0))},u=[],d=[],h="",p="",f=0,m=B(n.length,r&&r.length||0);m>f;f++){n[f]&&(h=n[f][0]),"C"!=h&&(u[f]=h,f&&(p=u[f-1])),n[f]=s(n[f],a,p),"A"!=u[f]&&"C"==h&&(u[f]="C"),l(n,f),r&&(r[f]&&(h=r[f][0]),"C"!=h&&(d[f]=h,f&&(p=d[f-1])),r[f]=s(r[f],o,p),"A"!=d[f]&&"C"==h&&(d[f]="C"),l(r,f)),c(n,r,a,o,f),c(r,n,o,a,f);var g=n[f],v=r&&r[f],y=g.length,_=r&&v.length;a.x=g[y-2],a.y=g[y-1],a.bx=J(g[y-4])||a.x,a.by=J(g[y-3])||a.y,o.bx=r&&(J(v[_-4])||o.x),o.by=r&&(J(v[_-3])||o.y),o.x=r&&v[_-2],o.y=r&&v[_-1]}return r||(i.curve=Ae(n)),r?[n,r]:n},null,Ae),je=(i._parseDots=a(function(e){for(var t=[],n=0,r=e.length;r>n;n++){var a={},o=e[n].match(/^([^:]*):?([\d\.]*)/);if(a.color=i.getRGB(o[1]),a.color.error)return null;a.color=a.color.hex,o[2]&&(a.offset=o[2]+"%"),t.push(a)}for(n=1,r=t.length-1;r>n;n++)if(!t[n].offset){for(var s=J(t[n-1].offset||0),l=0,c=n+1;r>c;c++)if(t[c].offset){l=t[c].offset;break}l||(l=100,c=r),l=J(l);for(var u=(l-s)/(c-n+1);c>n;n++)s+=u,t[n].offset=s+"%"}return t}),i._tear=function(e,t){e==t.top&&(t.top=e.prev),e==t.bottom&&(t.bottom=e.next),e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next)}),ze=(i._tofront=function(e,t){t.top!==e&&(je(e,t),e.next=null,e.prev=t.top,t.top.next=e,t.top=e)},i._toback=function(e,t){t.bottom!==e&&(je(e,t),e.next=t.bottom,e.prev=null,t.bottom.prev=e,t.bottom=e)},i._insertafter=function(e,t,i){je(e,i),t==i.top&&(i.top=e),t.next&&(t.next.prev=e),e.next=t.next,e.prev=t,t.next=e},i._insertbefore=function(e,t,i){je(e,i),t==i.bottom&&(i.bottom=e),t.prev&&(t.prev.next=e),e.prev=t.prev,t.prev=e,e.next=t},i.toMatrix=function(e,t){var i=Ee(e),n={_:{transform:L},getBBox:function(){return i}};return Fe(n,t),n.matrix}),Fe=(i.transformPath=function(e,t){return ve(e,ze(e,t))},i._extractTransform=function(e,t){if(null==t)return e._.transform;t=N(t).replace(/\.{3}|\u2026/g,e._.transform||L);var n=i.parseTransformString(t),r=0,a=0,o=0,s=1,l=1,c=e._,u=new f;if(c.transform=n||[],n)for(var d=0,h=n.length;h>d;d++){var p,m,g,v,y,_=n[d],b=_.length,w=N(_[0]).toLowerCase(),x=_[0]!=w,k=x?u.invert():0;"t"==w&&3==b?x?(p=k.x(0,0),m=k.y(0,0),g=k.x(_[1],_[2]),v=k.y(_[1],_[2]),u.translate(g-p,v-m)):u.translate(_[1],_[2]):"r"==w?2==b?(y=y||e.getBBox(1),u.rotate(_[1],y.x+y.width/2,y.y+y.height/2),r+=_[1]):4==b&&(x?(g=k.x(_[2],_[3]),v=k.y(_[2],_[3]),u.rotate(_[1],g,v)):u.rotate(_[1],_[2],_[3]),r+=_[1]):"s"==w?2==b||3==b?(y=y||e.getBBox(1),u.scale(_[1],_[b-1],y.x+y.width/2,y.y+y.height/2),s*=_[1],l*=_[b-1]):5==b&&(x?(g=k.x(_[3],_[4]),v=k.y(_[3],_[4]),u.scale(_[1],_[2],g,v)):u.scale(_[1],_[2],_[3],_[4]),s*=_[1],l*=_[2]):"m"==w&&7==b&&u.add(_[1],_[2],_[3],_[4],_[5],_[6]),c.dirtyT=1,e.matrix=u}e.matrix=u,c.sx=s,c.sy=l,c.deg=r,c.dx=a=u.e,c.dy=o=u.f,1==s&&1==l&&!r&&c.bbox?(c.bbox.x+=+a,c.bbox.y+=+o):c.dirtyT=1}),Be=function(e){var t=e[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":return 4==e.length?[t,0,e[2],e[3]]:[t,0];case"s":return 5==e.length?[t,1,1,e[3],e[4]]:3==e.length?[t,1,1]:[t,1]}},Ue=i._equaliseTransform=function(e,t){t=N(t).replace(/\.{3}|\u2026/g,e),e=i.parseTransformString(e)||[],t=i.parseTransformString(t)||[];for(var n,r,a,o,s=B(e.length,t.length),l=[],c=[],u=0;s>u;u++){if(a=e[u]||Be(t[u]),o=t[u]||Be(a),a[0]!=o[0]||"r"==a[0].toLowerCase()&&(a[2]!=o[2]||a[3]!=o[3])||"s"==a[0].toLowerCase()&&(a[3]!=o[3]||a[4]!=o[4]))return;for(l[u]=[],c[u]=[],n=0,r=B(a.length,o.length);r>n;n++)n in a&&(l[u][n]=a[n]),n in o&&(c[u][n]=o[n])}return{from:l,to:c}};i._getContainer=function(e,t,n,r){var a;return a=null!=r||i.is(e,"object")?e:S.doc.getElementById(e),null!=a?a.tagName?null==t?{container:a,width:a.style.pixelWidth||a.offsetWidth,height:a.style.pixelHeight||a.offsetHeight}:{container:a,width:t,height:n}:{container:1,x:e,y:t,width:n,height:r}:void 0},i.pathToRelative=Ie,i._engine={},i.path2curve=Re,i.matrix=function(e,t,i,n,r,a){return new f(e,t,i,n,r,a)},function(e){function t(e){return e[0]*e[0]+e[1]*e[1]}function n(e){var i=F.sqrt(t(e));e[0]&&(e[0]/=i),e[1]&&(e[1]/=i)}e.add=function(e,t,i,n,r,a){var o,s,l,c,u=[[],[],[]],d=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],h=[[e,i,r],[t,n,a],[0,0,1]];for(e&&e instanceof f&&(h=[[e.a,e.c,e.e],[e.b,e.d,e.f],[0,0,1]]),o=0;3>o;o++)for(s=0;3>s;s++){for(c=0,l=0;3>l;l++)c+=d[o][l]*h[l][s];u[o][s]=c}this.a=u[0][0],this.b=u[1][0],this.c=u[0][1],this.d=u[1][1],this.e=u[0][2],this.f=u[1][2]},e.invert=function(){var e=this,t=e.a*e.d-e.b*e.c;return new f(e.d/t,-e.b/t,-e.c/t,e.a/t,(e.c*e.f-e.d*e.e)/t,(e.b*e.e-e.a*e.f)/t)},e.clone=function(){return new f(this.a,this.b,this.c,this.d,this.e,this.f)},e.translate=function(e,t){this.add(1,0,0,1,e,t)},e.scale=function(e,t,i,n){null==t&&(t=e),(i||n)&&this.add(1,0,0,1,i,n),this.add(e,0,0,t,0,0),(i||n)&&this.add(1,0,0,1,-i,-n)},e.rotate=function(e,t,n){e=i.rad(e),t=t||0,n=n||0;var r=+F.cos(e).toFixed(9),a=+F.sin(e).toFixed(9);this.add(r,a,-a,r,t,n),this.add(1,0,0,1,-t,-n)},e.x=function(e,t){return e*this.a+t*this.c+this.e},e.y=function(e,t){return e*this.b+t*this.d+this.f},e.get=function(e){return+this[N.fromCharCode(97+e)].toFixed(4)},e.toString=function(){return i.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()},e.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"},e.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},e.split=function(){var e={};e.dx=this.e,e.dy=this.f;var r=[[this.a,this.c],[this.b,this.d]];e.scalex=F.sqrt(t(r[0])),n(r[0]),e.shear=r[0][0]*r[1][0]+r[0][1]*r[1][1],r[1]=[r[1][0]-r[0][0]*e.shear,r[1][1]-r[0][1]*e.shear],e.scaley=F.sqrt(t(r[1])),n(r[1]),e.shear/=e.scaley;var a=-r[0][1],o=r[1][1];return 0>o?(e.rotate=i.deg(F.acos(o)),0>a&&(e.rotate=360-e.rotate)):e.rotate=i.deg(F.asin(a)),e.isSimple=!(+e.shear.toFixed(9)||e.scalex.toFixed(9)!=e.scaley.toFixed(9)&&e.rotate),e.isSuperSimple=!+e.shear.toFixed(9)&&e.scalex.toFixed(9)==e.scaley.toFixed(9)&&!e.rotate,e.noRotation=!+e.shear.toFixed(9)&&!e.rotate,e},e.toTransformString=function(e){var t=e||this[P]();return t.isSimple?(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[t.dx,t.dy]:L)+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:L)+(t.rotate?"r"+[t.rotate,0,0]:L)):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}(f.prototype);var $e=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);w.safari="Apple Computer, Inc."==navigator.vendor&&($e&&$e[1]<4||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&$e&&$e[1]<8?function(){var e=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){e.remove()})}:he;for(var qe=function(){this.returnValue=!1},He=function(){return this.originalEvent.preventDefault()},We=function(){this.cancelBubble=!0},Ve=function(){return this.originalEvent.stopPropagation()},Ge=function(e){var t=S.doc.documentElement.scrollTop||S.doc.body.scrollTop,i=S.doc.documentElement.scrollLeft||S.doc.body.scrollLeft;return{x:e.clientX+i,y:e.clientY+t}},Ye=function(){return S.doc.addEventListener?function(e,t,i,n){var r=function(e){var t=Ge(e);return i.call(n,e,t.x,t.y)};if(e.addEventListener(t,r,!1),M&&j[t]){var a=function(t){for(var r=Ge(t),a=t,o=0,s=t.targetTouches&&t.targetTouches.length;s>o;o++)if(t.targetTouches[o].target==e){t=t.targetTouches[o],t.originalEvent=a,t.preventDefault=He,t.stopPropagation=Ve;break}return i.call(n,t,r.x,r.y)};e.addEventListener(j[t],a,!1)}return function(){return e.removeEventListener(t,r,!1),M&&j[t]&&e.removeEventListener(j[t],a,!1),!0}}:S.doc.attachEvent?function(e,t,i,n){var r=function(e){e=e||S.win.event;var t=S.doc.documentElement.scrollTop||S.doc.body.scrollTop,r=S.doc.documentElement.scrollLeft||S.doc.body.scrollLeft,a=e.clientX+r,o=e.clientY+t;return e.preventDefault=e.preventDefault||qe,e.stopPropagation=e.stopPropagation||We,i.call(n,e,a,o)};return e.attachEvent("on"+t,r),function(){return e.detachEvent("on"+t,r),!0}}:void 0}(),Ke=[],Xe=function(e){for(var i,n=e.clientX,r=e.clientY,a=S.doc.documentElement.scrollTop||S.doc.body.scrollTop,o=S.doc.documentElement.scrollLeft||S.doc.body.scrollLeft,s=Ke.length;s--;){if(i=Ke[s],M&&e.touches){for(var l,c=e.touches.length;c--;)if(l=e.touches[c],l.identifier==i.el._drag.id){n=l.clientX,r=l.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var u,d=i.el.node,h=d.nextSibling,p=d.parentNode,f=d.style.display;S.win.opera&&p.removeChild(d),d.style.display="none",u=i.el.paper.getElementByPoint(n,r),d.style.display=f,S.win.opera&&(h?p.insertBefore(d,h):p.appendChild(d)),u&&t("raphael.drag.over."+i.el.id,i.el,u),n+=o,r+=a,t("raphael.drag.move."+i.el.id,i.move_scope||i.el,n-i.el._drag.x,r-i.el._drag.y,n,r,e)}},Qe=function(e){i.unmousemove(Xe).unmouseup(Qe);for(var n,r=Ke.length;r--;)n=Ke[r],n.el._drag={},t("raphael.drag.end."+n.el.id,n.end_scope||n.start_scope||n.move_scope||n.el,e);Ke=[]},Ze=i.el={},Je=R.length;Je--;)!function(e){i[e]=Ze[e]=function(t,n){return i.is(t,"function")&&(this.events=this.events||[],this.events.push({name:e,f:t,unbind:Ye(this.shape||this.node||S.doc,e,t,n||this)})),this},i["un"+e]=Ze["un"+e]=function(t){for(var n=this.events||[],r=n.length;r--;)n[r].name!=e||!i.is(t,"undefined")&&n[r].f!=t||(n[r].unbind(),n.splice(r,1),!n.length&&delete this.events);return this}}(R[Je]);Ze.data=function(e,n){var r=ue[this.id]=ue[this.id]||{};if(0==arguments.length)return r;if(1==arguments.length){if(i.is(e,"object")){for(var a in e)e[T](a)&&this.data(a,e[a]);return this}return t("raphael.data.get."+this.id,this,r[e],e),r[e]}return r[e]=n,t("raphael.data.set."+this.id,this,n,e),this},Ze.removeData=function(e){return null==e?ue[this.id]={}:ue[this.id]&&delete ue[this.id][e],this},Ze.getData=function(){return n(ue[this.id]||{})},Ze.hover=function(e,t,i,n){return this.mouseover(e,i).mouseout(t,n||i)},Ze.unhover=function(e,t){return this.unmouseover(e).unmouseout(t)};var et=[];Ze.drag=function(e,n,r,a,o,s){function l(l){(l.originalEvent||l).preventDefault();var c=l.clientX,u=l.clientY,d=S.doc.documentElement.scrollTop||S.doc.body.scrollTop,h=S.doc.documentElement.scrollLeft||S.doc.body.scrollLeft;if(this._drag.id=l.identifier,M&&l.touches)for(var p,f=l.touches.length;f--;)if(p=l.touches[f],this._drag.id=p.identifier,p.identifier==this._drag.id){c=p.clientX,u=p.clientY;break}this._drag.x=c+h,this._drag.y=u+d,!Ke.length&&i.mousemove(Xe).mouseup(Qe),Ke.push({el:this,move_scope:a,start_scope:o,end_scope:s}),n&&t.on("raphael.drag.start."+this.id,n),e&&t.on("raphael.drag.move."+this.id,e),r&&t.on("raphael.drag.end."+this.id,r),t("raphael.drag.start."+this.id,o||a||this,l.clientX+h,l.clientY+d,l)}return this._drag={},et.push({el:this,start:l}),this.mousedown(l),this},Ze.onDragOver=function(e){e?t.on("raphael.drag.over."+this.id,e):t.unbind("raphael.drag.over."+this.id)},Ze.undrag=function(){for(var e=et.length;e--;)et[e].el==this&&(this.unmousedown(et[e].start),et.splice(e,1),t.unbind("raphael.drag.*."+this.id));!et.length&&i.unmousemove(Xe).unmouseup(Qe),Ke=[]},w.circle=function(e,t,n){var r=i._engine.circle(this,e||0,t||0,n||0);return this.__set__&&this.__set__.push(r),r},w.rect=function(e,t,n,r,a){var o=i._engine.rect(this,e||0,t||0,n||0,r||0,a||0);return this.__set__&&this.__set__.push(o),o},w.ellipse=function(e,t,n,r){var a=i._engine.ellipse(this,e||0,t||0,n||0,r||0);return this.__set__&&this.__set__.push(a),a},w.path=function(e){e&&!i.is(e,V)&&!i.is(e[0],G)&&(e+=L);var t=i._engine.path(i.format[I](i,arguments),this);return this.__set__&&this.__set__.push(t),t},w.image=function(e,t,n,r,a){var o=i._engine.image(this,e||"about:blank",t||0,n||0,r||0,a||0);return this.__set__&&this.__set__.push(o),o},w.text=function(e,t,n){var r=i._engine.text(this,e||0,t||0,N(n));return this.__set__&&this.__set__.push(r),r},w.set=function(e){!i.is(e,"array")&&(e=Array.prototype.splice.call(arguments,0,arguments.length));var t=new ht(e);return this.__set__&&this.__set__.push(t),t.paper=this,t.type="set",t},w.setStart=function(e){this.__set__=e||this.set()},w.setFinish=function(){var e=this.__set__;return delete this.__set__,e},w.getSize=function(){var e=this.canvas.parentNode;return{width:e.offsetWidth,height:e.offsetHeight}},w.setSize=function(e,t){return i._engine.setSize.call(this,e,t)},w.setViewBox=function(e,t,n,r,a){return i._engine.setViewBox.call(this,e,t,n,r,a)},w.top=w.bottom=null,w.raphael=i;var tt=function(e){var t=e.getBoundingClientRect(),i=e.ownerDocument,n=i.body,r=i.documentElement,a=r.clientTop||n.clientTop||0,o=r.clientLeft||n.clientLeft||0;return{y:t.top+(S.win.pageYOffset||r.scrollTop||n.scrollTop)-a,x:t.left+(S.win.pageXOffset||r.scrollLeft||n.scrollLeft)-o}};w.getElementByPoint=function(e,t){var i=this,n=i.canvas,r=S.doc.elementFromPoint(e,t);if(S.win.opera&&"svg"==r.tagName){var a=tt(n),o=n.createSVGRect();o.x=e-a.x,o.y=t-a.y,o.width=o.height=1;var s=n.getIntersectionList(o,null);s.length&&(r=s[s.length-1])}if(!r)return null;for(;r.parentNode&&r!=n.parentNode&&!r.raphael;)r=r.parentNode;return r==i.canvas.parentNode&&(r=n),r=r&&r.raphael?i.getById(r.raphaelid):null},w.getElementsByBBox=function(e){var t=this.set();return this.forEach(function(n){i.isBBoxIntersect(n.getBBox(),e)&&t.push(n)}),t},w.getById=function(e){for(var t=this.bottom;t;){if(t.id==e)return t;t=t.next}return null},w.forEach=function(e,t){for(var i=this.bottom;i;){if(!1===e.call(t,i))return this;i=i.next}return this},w.getElementsByPoint=function(e,t){var i=this.set();return this.forEach(function(n){n.isPointInside(e,t)&&i.push(n)}),i},Ze.isPointInside=function(e,t){var n=this.realPath=ge[this.type](this);return this.attr("transform")&&this.attr("transform").length&&(n=i.transformPath(n,this.attr("transform"))),i.isPointInsidePath(n,e,t)},Ze.getBBox=function(e){if(this.removed)return{};var t=this._;return e?((t.dirty||!t.bboxwt)&&(this.realPath=ge[this.type](this),t.bboxwt=Ee(this.realPath),t.bboxwt.toString=m,t.dirty=0),t.bboxwt):((t.dirty||t.dirtyT||!t.bbox)&&((t.dirty||!this.realPath)&&(t.bboxwt=0,this.realPath=ge[this.type](this)),t.bbox=Ee(ve(this.realPath,this.matrix)),t.bbox.toString=m,t.dirty=t.dirtyT=0),t.bbox)},Ze.clone=function(){if(this.removed)return null;var e=this.paper[this.type]().attr(this.attr());return this.__set__&&this.__set__.push(e),e},Ze.glow=function(e){if("text"==this.type)return null;e=e||{};var t={width:(e.width||10)+(+this.attr("stroke-width")||1),fill:e.fill||!1,opacity:e.opacity||.5,offsetx:e.offsetx||0,offsety:e.offsety||0,color:e.color||"#000"},i=t.width/2,n=this.paper,r=n.set(),a=this.realPath||ge[this.type](this);a=this.matrix?ve(a,this.matrix):a;for(var o=1;i+1>o;o++)r.push(n.path(a).attr({stroke:t.color,fill:t.fill?t.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(t.width/i*o).toFixed(3),opacity:+(t.opacity/i).toFixed(3)}));return r.insertBefore(this).translate(t.offsetx,t.offsety)};var it=function(e,t,n,r,a,o,s,l,d){return null==d?c(e,t,n,r,a,o,s,l):i.findDotsAtSegment(e,t,n,r,a,o,s,l,u(e,t,n,r,a,o,s,l,d))},nt=function(e,t){return function(n,r,a){n=Re(n);for(var o,s,l,c,u,d="",h={},p=0,f=0,m=n.length;m>f;f++){if(l=n[f],"M"==l[0])o=+l[1],s=+l[2];else{if(c=it(o,s,l[1],l[2],l[3],l[4],l[5],l[6]),p+c>r){if(t&&!h.start){if(u=it(o,s,l[1],l[2],l[3],l[4],l[5],l[6],r-p),d+=["C"+u.start.x,u.start.y,u.m.x,u.m.y,u.x,u.y],a)return d;h.start=d,d=["M"+u.x,u.y+"C"+u.n.x,u.n.y,u.end.x,u.end.y,l[5],l[6]].join(),p+=c,o=+l[5],s=+l[6];continue}if(!e&&!t)return u=it(o,s,l[1],l[2],l[3],l[4],l[5],l[6],r-p),{x:u.x,y:u.y,alpha:u.alpha}}p+=c,o=+l[5],s=+l[6]}d+=l.shift()+l}return h.end=d,u=e?p:t?h:i.findDotsAtSegment(o,s,l[0],l[1],l[2],l[3],l[4],l[5],1),u.alpha&&(u={x:u.x,y:u.y,alpha:u.alpha}),u}},rt=nt(1),at=nt(),ot=nt(0,1);i.getTotalLength=rt,i.getPointAtLength=at,i.getSubpath=function(e,t,i){if(this.getTotalLength(e)-i<1e-6)return ot(e,t).end;var n=ot(e,i,1);return t?ot(n,t).end:n},Ze.getTotalLength=function(){var e=this.getPath();if(e)return this.node.getTotalLength?this.node.getTotalLength():rt(e)},Ze.getPointAtLength=function(e){var t=this.getPath();if(t)return at(t,e)},Ze.getPath=function(){var e,t=i._getPath[this.type];if("text"!=this.type&&"set"!=this.type)return t&&(e=t(this)),e},Ze.getSubpath=function(e,t){var n=this.getPath();if(n)return i.getSubpath(n,e,t)};var st=i.easing_formulas={linear:function(e){return e},"<":function(e){return q(e,1.7)},">":function(e){return q(e,.48)},"<>":function(e){var t=.48-e/1.04,i=F.sqrt(.1734+t*t),n=i-t,r=q($(n),1/3)*(0>n?-1:1),a=-i-t,o=q($(a),1/3)*(0>a?-1:1),s=r+o+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){e-=1;var t=1.70158;return e*e*((t+1)*e+t)+1},elastic:function(e){return e==!!e?e:q(2,-10*e)*F.sin(2*(e-.075)*H/.3)+1},bounce:function(e){var t,i=7.5625,n=2.75;return 1/n>e?t=i*e*e:2/n>e?(e-=1.5/n,t=i*e*e+.75):2.5/n>e?(e-=2.25/n,t=i*e*e+.9375):(e-=2.625/n,t=i*e*e+.984375),t}};st.easeIn=st["ease-in"]=st["<"],st.easeOut=st["ease-out"]=st[">"],st.easeInOut=st["ease-in-out"]=st["<>"],st["back-in"]=st.backIn,st["back-out"]=st.backOut;var lt=[],ct=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(e){setTimeout(e,16)},ut=function(){for(var e=+new Date,n=0;ns))if(l>s){var g=c(s/l);for(var v in u)if(u[T](v)){switch(ne[v]){case W:a=+u[v]+g*l*d[v];break;case"colour":a="rgb("+[dt(Z(u[v].r+g*l*d[v].r)),dt(Z(u[v].g+g*l*d[v].g)),dt(Z(u[v].b+g*l*d[v].b))].join(",")+")";break;case"path":a=[] ;for(var _=0,b=u[v].length;b>_;_++){a[_]=[u[v][_][0]];for(var w=1,x=u[v][_].length;x>w;w++)a[_][w]=+u[v][_][w]+g*l*d[v][_][w];a[_]=a[_].join(O)}a=a.join(O);break;case"transform":if(d[v].real)for(a=[],_=0,b=u[v].length;b>_;_++)for(a[_]=[u[v][_][0]],w=1,x=u[v][_].length;x>w;w++)a[_][w]=u[v][_][w]+g*l*d[v][_][w];else{var k=function(e){return+u[v][e]+g*l*d[v][e]};a=[["m",k(0),k(1),k(2),k(3),k(4),k(5)]]}break;case"csv":if("clip-rect"==v)for(a=[],_=4;_--;)a[_]=+u[v][_]+g*l*d[v][_];break;default:var C=[][D](u[v]);for(a=[],_=p.paper.customAttributes[v].length;_--;)a[_]=+C[_]+g*l*d[v][_]}f[v]=a}p.attr(f),function(e,i,n){setTimeout(function(){t("raphael.anim.frame."+e,i,n)})}(p.id,p,r.anim)}else{if(function(e,n,r){setTimeout(function(){t("raphael.anim.frame."+n.id,n,r),t("raphael.anim.finish."+n.id,n,r),i.is(e,"function")&&e.call(n)})}(r.callback,p,r.anim),p.attr(h),lt.splice(n--,1),r.repeat>1&&!r.next){for(o in h)h[T](o)&&(m[o]=r.totalOrigin[o]);r.el.attr(m),y(r.anim,r.el,r.anim.percents[0],null,r.totalOrigin,r.repeat-1)}r.next&&!r.stop&&y(r.anim,r.el,r.next,null,r.totalOrigin,r.repeat)}}}i.svg&&p&&p.paper&&p.paper.safari(),lt.length&&ct(ut)},dt=function(e){return e>255?255:0>e?0:e};Ze.animateWith=function(e,t,n,r,a,o){var s=this;if(s.removed)return o&&o.call(s),s;var l=n instanceof v?n:i.animation(n,r,a,o);y(l,s,l.percents[0],null,s.attr());for(var c=0,u=lt.length;u>c;c++)if(lt[c].anim==t&<[c].el==e){lt[u-1].start=lt[c].start;break}return s},Ze.onAnimation=function(e){return e?t.on("raphael.anim.frame."+this.id,e):t.unbind("raphael.anim.frame."+this.id),this},v.prototype.delay=function(e){var t=new v(this.anim,this.ms);return t.times=this.times,t.del=+e||0,t},v.prototype.repeat=function(e){var t=new v(this.anim,this.ms);return t.del=this.del,t.times=F.floor(B(e,0))||1,t},i.animation=function(e,t,n,r){if(e instanceof v)return e;(i.is(n,"function")||!n)&&(r=r||n||null,n=null),e=Object(e),t=+t||0;var a,o,s={};for(o in e)e[T](o)&&J(o)!=o&&J(o)+"%"!=o&&(a=!0,s[o]=e[o]);if(a)return n&&(s.easing=n),r&&(s.callback=r),new v({100:s},t);if(r){var l=0;for(var c in e){var u=ee(c);e[T](c)&&u>l&&(l=u)}l+="%",!e[l].callback&&(e[l].callback=r)}return new v(e,t)},Ze.animate=function(e,t,n,r){var a=this;if(a.removed)return r&&r.call(a),a;var o=e instanceof v?e:i.animation(e,t,n,r);return y(o,a,o.percents[0],null,a.attr()),a},Ze.setTime=function(e,t){return e&&null!=t&&this.status(e,U(t,e.ms)/e.ms),this},Ze.status=function(e,t){var i,n,r=[],a=0;if(null!=t)return y(e,this,-1,U(t,1)),this;for(i=lt.length;i>a;a++)if(n=lt[a],n.el.id==this.id&&(!e||n.anim==e)){if(e)return n.status;r.push({anim:n.anim,status:n.status})}return e?0:r},Ze.pause=function(e){for(var i=0;it;t++)!e[t]||e[t].constructor!=Ze.constructor&&e[t].constructor!=ht||(this[this.items.length]=this.items[this.items.length]=e[t],this.length++)},pt=ht.prototype;pt.push=function(){for(var e,t,i=0,n=arguments.length;n>i;i++)!(e=arguments[i])||e.constructor!=Ze.constructor&&e.constructor!=ht||(t=this.items.length,this[t]=this.items[t]=e,this.length++);return this},pt.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},pt.forEach=function(e,t){for(var i=0,n=this.items.length;n>i;i++)if(!1===e.call(t,this.items[i],i))return this;return this};for(var ft in Ze)Ze[T](ft)&&(pt[ft]=function(e){return function(){var t=arguments;return this.forEach(function(i){i[e][I](i,t)})}}(ft));return pt.attr=function(e,t){if(e&&i.is(e,G)&&i.is(e[0],"object"))for(var n=0,r=e.length;r>n;n++)this.items[n].attr(e[n]);else for(var a=0,o=this.items.length;o>a;a++)this.items[a].attr(e,t);return this},pt.clear=function(){for(;this.length;)this.pop()},pt.splice=function(e,t){e=0>e?B(this.length+e,0):e,t=B(0,U(this.length-e,t));var i,n=[],r=[],a=[];for(i=2;ii;i++)r.push(this[e+i]);for(;ii?a[i]:n[i-o];for(i=this.items.length=this.length-=t-o;this[i];)delete this[i++];return new ht(r)},pt.exclude=function(e){for(var t=0,i=this.length;i>t;t++)if(this[t]==e)return this.splice(t,1),!0},pt.animate=function(e,t,n,r){(i.is(n,"function")||!n)&&(r=n||null);var a,o,s=this.items.length,l=s,c=this;if(!s)return this;r&&(o=function(){!--s&&r.call(c)}),n=i.is(n,V)?n:o;var u=i.animation(e,t,n,o);for(a=this.items[--l].animate(u);l--;)this.items[l]&&!this.items[l].removed&&this.items[l].animateWith(a,u,u),this.items[l]&&!this.items[l].removed||s--;return this},pt.insertAfter=function(e){for(var t=this.items.length;t--;)this.items[t].insertAfter(e);return this},pt.getBBox=function(){for(var e=[],t=[],i=[],n=[],r=this.items.length;r--;)if(!this.items[r].removed){var a=this.items[r].getBBox();e.push(a.x),t.push(a.y),i.push(a.x+a.width),n.push(a.y+a.height)}return e=U[I](0,e),t=U[I](0,t),i=B[I](0,i),n=B[I](0,n),{x:e,y:t,x2:i,y2:n,width:i-e,height:n-t}},pt.clone=function(e){e=this.paper.set();for(var t=0,i=this.items.length;i>t;t++)e.push(this.items[t].clone());return e},pt.toString=function(){return"Raphaël‘s set"},pt.glow=function(e){var t=this.paper.set();return this.forEach(function(i){var n=i.glow(e);null!=n&&n.forEach(function(e){t.push(e)})}),t},pt.isPointInside=function(e,t){var i=!1;return this.forEach(function(n){return n.isPointInside(e,t)?(i=!0,!1):void 0}),i},i.registerFont=function(e){if(!e.face)return e;this.fonts=this.fonts||{};var t={w:e.w,face:{},glyphs:{}},i=e.face["font-family"];for(var n in e.face)e.face[T](n)&&(t.face[n]=e.face[n]);if(this.fonts[i]?this.fonts[i].push(t):this.fonts[i]=[t],!e.svg){t.face["units-per-em"]=ee(e.face["units-per-em"],10);for(var r in e.glyphs)if(e.glyphs[T](r)){var a=e.glyphs[r];if(t.glyphs[r]={w:a.w,k:{},d:a.d&&"M"+a.d.replace(/[mlcxtrv]/g,function(e){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[e]||"M"})+"z"},a.k)for(var o in a.k)a[T](o)&&(t.glyphs[r].k[o]=a.k[o])}}return e},w.getFont=function(e,t,n,r){if(r=r||"normal",n=n||"normal",t=+t||{normal:400,bold:700,lighter:300,bolder:800}[t]||400,i.fonts){var a=i.fonts[e];if(!a){var o=new RegExp("(^|\\s)"+e.replace(/[^\w\d\s+!~.:_-]/g,L)+"(\\s|$)","i");for(var s in i.fonts)if(i.fonts[T](s)&&o.test(s)){a=i.fonts[s];break}}var l;if(a)for(var c=0,u=a.length;u>c&&(l=a[c],l.face["font-weight"]!=t||l.face["font-style"]!=n&&l.face["font-style"]||l.face["font-stretch"]!=r);c++);return l}},w.print=function(e,t,n,r,a,o,s,l){o=o||"middle",s=B(U(s||0,1),-1),l=B(U(l||1,3),1);var c,u=N(n)[P](L),d=0,h=0,p=L;if(i.is(r,"string")&&(r=this.getFont(r)),r){c=(a||16)/r.face["units-per-em"];for(var f=r.face.bbox[P](x),m=+f[0],g=f[3]-f[1],v=0,y=+f[1]+("baseline"==o?g+ +r.face.descent:g/2),_=0,b=u.length;b>_;_++){if("\n"==u[_])d=0,k=0,h=0,v+=g*l;else{var w=h&&r.glyphs[u[_-1]]||{},k=r.glyphs[u[_]];d+=h?(w.w||r.w)+(w.k&&w.k[u[_]]||0)+r.w*s:0,h=1}k&&k.d&&(p+=i.transformPath(k.d,["t",d*c,v*c,"s",c,c,m,y,"t",(e-m)/c,(t-y)/c]))}}return this.path(p).attr({fill:"#000",stroke:"none"})},w.add=function(e){if(i.is(e,"array"))for(var t,n=this.set(),r=0,a=e.length;a>r;r++)t=e[r]||{},k[T](t.type)&&n.push(this[t.type]().attr(t));return n},i.format=function(e,t){var n=i.is(t,G)?[0][D](t):arguments;return e&&i.is(e,V)&&n.length-1&&(e=e.replace(C,function(e,t){return null==n[++t]?L:n[t]})),e||L},i.fullfill=function(){var e=/\{([^\}]+)\}/g,t=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(e,i,n){var r=n;return i.replace(t,function(e,t,i,n,a){t=t||n,r&&(t in r&&(r=r[t]),"function"==typeof r&&a&&(r=r()))}),r=(null==r||r==n?e:r)+""};return function(t,n){return String(t).replace(e,function(e,t){return i(e,t,n)})}}(),i.ninja=function(){return E.was?S.win.Raphael=E.is:delete Raphael,i},i.st=pt,t.on("raphael.DOMload",function(){b=!0}),function(e,t,n){function r(){/in/.test(e.readyState)?setTimeout(r,9):i.eve("raphael.DOMload")}null==e.readyState&&e.addEventListener&&(e.addEventListener(t,n=function(){e.removeEventListener(t,n,!1),e.readyState="complete"},!1),e.readyState="loading"),r()}(document,"DOMContentLoaded"),function(){if(i.svg){var e="hasOwnProperty",t=String,n=parseFloat,r=parseInt,a=Math,o=a.max,s=a.abs,l=a.pow,c=/[, ]+/,u=i.eve,d="",h=" ",p="http://www.w3.org/1999/xlink",f={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},m={};i.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var g=function(n,r){if(r){"string"==typeof n&&(n=g(n));for(var a in r)r[e](a)&&("xlink:"==a.substring(0,6)?n.setAttributeNS(p,a.substring(6),t(r[a])):n.setAttribute(a,t(r[a])))}else n=i._g.doc.createElementNS("http://www.w3.org/2000/svg",n),n.style&&(n.style.webkitTapHighlightColor="rgba(0,0,0,0)");return n},v=function(e,r){var c="linear",u=e.id+r,h=.5,p=.5,f=e.node,m=e.paper,v=f.style,y=i._g.doc.getElementById(u);if(!y){if(r=t(r).replace(i._radial_gradient,function(e,t,i){if(c="radial",t&&i){h=n(t),p=n(i);var r=2*(p>.5)-1;l(h-.5,2)+l(p-.5,2)>.25&&(p=a.sqrt(.25-l(h-.5,2))*r+.5)&&.5!=p&&(p=p.toFixed(5)-1e-5*r)}return d}),r=r.split(/\s*\-\s*/),"linear"==c){var _=r.shift();if(_=-n(_),isNaN(_))return null;var b=[0,0,a.cos(i.rad(_)),a.sin(i.rad(_))],w=1/(o(s(b[2]),s(b[3]))||1);b[2]*=w,b[3]*=w,b[2]<0&&(b[0]=-b[2],b[2]=0),b[3]<0&&(b[1]=-b[3],b[3]=0)}var x=i._parseDots(r);if(!x)return null;if(u=u.replace(/[\(\)\s,\xb0#]/g,"_"),e.gradient&&u!=e.gradient.id&&(m.defs.removeChild(e.gradient),delete e.gradient),!e.gradient){y=g(c+"Gradient",{id:u}),e.gradient=y,g(y,"radial"==c?{fx:h,fy:p}:{x1:b[0],y1:b[1],x2:b[2],y2:b[3],gradientTransform:e.matrix.invert()}),m.defs.appendChild(y);for(var k=0,C=x.length;C>k;k++)y.appendChild(g("stop",{offset:x[k].offset?x[k].offset:k?"100%":"0%","stop-color":x[k].color||"#fff"}))}}return g(f,{fill:"url("+document.location+"#"+u+")",opacity:1,"fill-opacity":1}),v.fill=d,v.opacity=1,v.fillOpacity=1,1},y=function(e){var t=e.getBBox(1);g(e.pattern,{patternTransform:e.matrix.invert()+" translate("+t.x+","+t.y+")"})},_=function(n,r,a){if("path"==n.type){for(var o,s,l,c,u,h=t(r).toLowerCase().split("-"),p=n.paper,v=a?"end":"start",y=n.node,_=n.attrs,b=_["stroke-width"],w=h.length,x="classic",k=3,C=3,T=5;w--;)switch(h[w]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":x=h[w];break;case"wide":C=5;break;case"narrow":C=2;break;case"long":k=5;break;case"short":k=2}if("open"==x?(k+=2,C+=2,T+=2,l=1,c=a?4:1,u={fill:"none",stroke:_.stroke}):(c=l=k/2,u={fill:_.stroke,stroke:"none"}),n._.arrows?a?(n._.arrows.endPath&&m[n._.arrows.endPath]--,n._.arrows.endMarker&&m[n._.arrows.endMarker]--):(n._.arrows.startPath&&m[n._.arrows.startPath]--,n._.arrows.startMarker&&m[n._.arrows.startMarker]--):n._.arrows={},"none"!=x){var S="raphael-marker-"+x,E="raphael-marker-"+v+x+k+C+"-obj"+n.id;i._g.doc.getElementById(S)?m[S]++:(p.defs.appendChild(g(g("path"),{"stroke-linecap":"round",d:f[x],id:S})),m[S]=1);var A,I=i._g.doc.getElementById(E);I?(m[E]++,A=I.getElementsByTagName("use")[0]):(I=g(g("marker"),{id:E,markerHeight:C,markerWidth:k,orient:"auto",refX:c,refY:C/2}),A=g(g("use"),{"xlink:href":"#"+S,transform:(a?"rotate(180 "+k/2+" "+C/2+") ":d)+"scale("+k/T+","+C/T+")","stroke-width":(1/((k/T+C/T)/2)).toFixed(4)}),I.appendChild(A),p.defs.appendChild(I),m[E]=1),g(A,u);var D=l*("diamond"!=x&&"oval"!=x);a?(o=n._.arrows.startdx*b||0,s=i.getTotalLength(_.path)-D*b):(o=D*b,s=i.getTotalLength(_.path)-(n._.arrows.enddx*b||0)),u={},u["marker-"+v]="url(#"+E+")",(s||o)&&(u.d=i.getSubpath(_.path,o,s)),g(y,u),n._.arrows[v+"Path"]=S,n._.arrows[v+"Marker"]=E,n._.arrows[v+"dx"]=D,n._.arrows[v+"Type"]=x,n._.arrows[v+"String"]=r}else a?(o=n._.arrows.startdx*b||0,s=i.getTotalLength(_.path)-o):(o=0,s=i.getTotalLength(_.path)-(n._.arrows.enddx*b||0)),n._.arrows[v+"Path"]&&g(y,{d:i.getSubpath(_.path,o,s)}),delete n._.arrows[v+"Path"],delete n._.arrows[v+"Marker"],delete n._.arrows[v+"dx"],delete n._.arrows[v+"Type"],delete n._.arrows[v+"String"];for(u in m)if(m[e](u)&&!m[u]){var M=i._g.doc.getElementById(u);M&&M.parentNode.removeChild(M)}}},b={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},w=function(e,i,n){if(i=b[t(i).toLowerCase()]){for(var r=e.attrs["stroke-width"]||"1",a={round:r,square:r,butt:0}[e.attrs["stroke-linecap"]||n["stroke-linecap"]]||0,o=[],s=i.length;s--;)o[s]=i[s]*r+(s%2?1:-1)*a;g(e.node,{"stroke-dasharray":o.join(",")})}},x=function(n,a){var l=n.node,u=n.attrs,h=l.style.visibility;l.style.visibility="hidden";for(var f in a)if(a[e](f)){if(!i._availableAttrs[e](f))continue;var m=a[f];switch(u[f]=m,f){case"blur":n.blur(m);break;case"title":var b=l.getElementsByTagName("title");if(b.length&&(b=b[0]))b.firstChild.nodeValue=m;else{b=g("title");var x=i._g.doc.createTextNode(m);b.appendChild(x),l.appendChild(b)}break;case"href":case"target":var C=l.parentNode;if("a"!=C.tagName.toLowerCase()){var T=g("a");C.insertBefore(T,l),T.appendChild(l),C=T}"target"==f?C.setAttributeNS(p,"show","blank"==m?"new":m):C.setAttributeNS(p,f,m);break;case"cursor":l.style.cursor=m;break;case"transform":n.transform(m);break;case"arrow-start":_(n,m);break;case"arrow-end":_(n,m,1);break;case"clip-rect":var S=t(m).split(c);if(4==S.length){n.clip&&n.clip.parentNode.parentNode.removeChild(n.clip.parentNode);var E=g("clipPath"),A=g("rect");E.id=i.createUUID(),g(A,{x:S[0],y:S[1],width:S[2],height:S[3]}),E.appendChild(A),n.paper.defs.appendChild(E),g(l,{"clip-path":"url(#"+E.id+")"}),n.clip=A}if(!m){var I=l.getAttribute("clip-path");if(I){var D=i._g.doc.getElementById(I.replace(/(^url\(#|\)$)/g,d));D&&D.parentNode.removeChild(D),g(l,{"clip-path":d}),delete n.clip}}break;case"path":"path"==n.type&&(g(l,{d:m?u.path=i._pathToAbsolute(m):"M0,0"}),n._.dirty=1,n._.arrows&&("startString"in n._.arrows&&_(n,n._.arrows.startString),"endString"in n._.arrows&&_(n,n._.arrows.endString,1)));break;case"width":if(l.setAttribute(f,m),n._.dirty=1,!u.fx)break;f="x",m=u.x;case"x":u.fx&&(m=-u.x-(u.width||0));case"rx":if("rx"==f&&"rect"==n.type)break;case"cx":l.setAttribute(f,m),n.pattern&&y(n),n._.dirty=1;break;case"height":if(l.setAttribute(f,m),n._.dirty=1,!u.fy)break;f="y",m=u.y;case"y":u.fy&&(m=-u.y-(u.height||0));case"ry":if("ry"==f&&"rect"==n.type)break;case"cy":l.setAttribute(f,m),n.pattern&&y(n),n._.dirty=1;break;case"r":"rect"==n.type?g(l,{rx:m,ry:m}):l.setAttribute(f,m),n._.dirty=1;break;case"src":"image"==n.type&&l.setAttributeNS(p,"href",m);break;case"stroke-width":(1!=n._.sx||1!=n._.sy)&&(m/=o(s(n._.sx),s(n._.sy))||1),l.setAttribute(f,m),u["stroke-dasharray"]&&w(n,u["stroke-dasharray"],a),n._.arrows&&("startString"in n._.arrows&&_(n,n._.arrows.startString),"endString"in n._.arrows&&_(n,n._.arrows.endString,1));break;case"stroke-dasharray":w(n,m,a);break;case"fill":var M=t(m).match(i._ISURL);if(M){E=g("pattern");var L=g("image");E.id=i.createUUID(),g(E,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1}),g(L,{x:0,y:0,"xlink:href":M[1]}),E.appendChild(L),function(e){i._preload(M[1],function(){var t=this.offsetWidth,i=this.offsetHeight;g(e,{width:t,height:i}),g(L,{width:t,height:i}),n.paper.safari()})}(E),n.paper.defs.appendChild(E),g(l,{fill:"url(#"+E.id+")"}),n.pattern=E,n.pattern&&y(n);break}var O=i.getRGB(m);if(O.error){if(("circle"==n.type||"ellipse"==n.type||"r"!=t(m).charAt())&&v(n,m)){if("opacity"in u||"fill-opacity"in u){var N=i._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,d));if(N){var P=N.getElementsByTagName("stop");g(P[P.length-1],{"stop-opacity":("opacity"in u?u.opacity:1)*("fill-opacity"in u?u["fill-opacity"]:1)})}}u.gradient=m,u.fill="none";break}}else delete a.gradient,delete u.gradient,!i.is(u.opacity,"undefined")&&i.is(a.opacity,"undefined")&&g(l,{opacity:u.opacity}),!i.is(u["fill-opacity"],"undefined")&&i.is(a["fill-opacity"],"undefined")&&g(l,{"fill-opacity":u["fill-opacity"]});O[e]("opacity")&&g(l,{"fill-opacity":O.opacity>1?O.opacity/100:O.opacity});case"stroke":O=i.getRGB(m),l.setAttribute(f,O.hex),"stroke"==f&&O[e]("opacity")&&g(l,{"stroke-opacity":O.opacity>1?O.opacity/100:O.opacity}),"stroke"==f&&n._.arrows&&("startString"in n._.arrows&&_(n,n._.arrows.startString),"endString"in n._.arrows&&_(n,n._.arrows.endString,1));break;case"gradient":("circle"==n.type||"ellipse"==n.type||"r"!=t(m).charAt())&&v(n,m);break;case"opacity":u.gradient&&!u[e]("stroke-opacity")&&g(l,{"stroke-opacity":m>1?m/100:m});case"fill-opacity":if(u.gradient){(N=i._g.doc.getElementById(l.getAttribute("fill").replace(/^url\(#|\)$/g,d)))&&(P=N.getElementsByTagName("stop"),g(P[P.length-1],{"stop-opacity":m}));break}default:"font-size"==f&&(m=r(m,10)+"px");var R=f.replace(/(\-.)/g,function(e){return e.substring(1).toUpperCase()});l.style[R]=m,n._.dirty=1,l.setAttribute(f,m)}}k(n,a),l.style.visibility=h},k=function(n,a){if("text"==n.type&&(a[e]("text")||a[e]("font")||a[e]("font-size")||a[e]("x")||a[e]("y"))){var o=n.attrs,s=n.node,l=s.firstChild?r(i._g.doc.defaultView.getComputedStyle(s.firstChild,d).getPropertyValue("font-size"),10):10;if(a[e]("text")){for(o.text=a.text;s.firstChild;)s.removeChild(s.firstChild);for(var c,u=t(a.text).split("\n"),h=[],p=0,f=u.length;f>p;p++)c=g("tspan"),p&&g(c,{dy:1.2*l,x:o.x}),c.appendChild(i._g.doc.createTextNode(u[p])),s.appendChild(c),h[p]=c}else for(h=s.getElementsByTagName("tspan"),p=0,f=h.length;f>p;p++)p?g(h[p],{dy:1.2*l,x:o.x}):g(h[0],{dy:0});g(s,{x:o.x,y:o.y}),n._.dirty=1;var m=n._getBBox(),v=o.y-(m.y+m.height/2);v&&i.is(v,"finite")&&g(h[0],{dy:v})}},C=function(e){return e.parentNode&&"a"===e.parentNode.tagName.toLowerCase()?e.parentNode:e};Element=function(e,t){this[0]=this.node=e,e.raphael=!0,this.id=i._oid++,e.raphaelid=this.id,this.matrix=i.matrix(),this.realPath=null,this.paper=t,this.attrs=this.attrs||{},this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1},!t.bottom&&(t.bottom=this),this.prev=t.top,t.top&&(t.top.next=this),t.top=this,this.next=null},Ze=i.el,Element.prototype=Ze,Ze.constructor=Element,i._engine.path=function(e,t){var i=g("path");t.canvas&&t.canvas.appendChild(i);var n=new Element(i,t);return n.type="path",x(n,{fill:"none",stroke:"#000",path:e}),n},Ze.rotate=function(e,i,r){if(this.removed)return this;if(e=t(e).split(c),e.length-1&&(i=n(e[1]),r=n(e[2])),e=n(e[0]),null==r&&(i=r),null==i||null==r){var a=this.getBBox(1);i=a.x+a.width/2,r=a.y+a.height/2}return this.transform(this._.transform.concat([["r",e,i,r]])),this},Ze.scale=function(e,i,r,a){if(this.removed)return this;if(e=t(e).split(c),e.length-1&&(i=n(e[1]),r=n(e[2]),a=n(e[3])),e=n(e[0]),null==i&&(i=e),null==a&&(r=a),null==r||null==a)var o=this.getBBox(1);return r=null==r?o.x+o.width/2:r,a=null==a?o.y+o.height/2:a,this.transform(this._.transform.concat([["s",e,i,r,a]])),this},Ze.translate=function(e,i){return this.removed?this:(e=t(e).split(c),e.length-1&&(i=n(e[1])),e=n(e[0])||0,i=+i||0,this.transform(this._.transform.concat([["t",e,i]])),this)},Ze.transform=function(t){var n=this._;if(null==t)return n.transform;if(i._extractTransform(this,t),this.clip&&g(this.clip,{transform:this.matrix.invert()}),this.pattern&&y(this),this.node&&g(this.node,{transform:this.matrix}),1!=n.sx||1!=n.sy){var r=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":r})}return this},Ze.hide=function(){return!this.removed&&this.paper.safari(this.node.style.display="none"),this},Ze.show=function(){return!this.removed&&this.paper.safari(this.node.style.display=""),this},Ze.remove=function(){var e=C(this.node);if(!this.removed&&e.parentNode){var t=this.paper;t.__set__&&t.__set__.exclude(this),u.unbind("raphael.*.*."+this.id),this.gradient&&t.defs.removeChild(this.gradient),i._tear(this,t),e.parentNode.removeChild(e),this.removeData();for(var n in this)this[n]="function"==typeof this[n]?i._removedFactory(n):null;this.removed=!0}},Ze._getBBox=function(){if("none"==this.node.style.display){this.show();var e=!0}var t,i=!1;this.paper.canvas.parentElement?t=this.paper.canvas.parentElement.style:this.paper.canvas.parentNode&&(t=this.paper.canvas.parentNode.style),t&&"none"==t.display&&(i=!0,t.display="");var n={};try{n=this.node.getBBox()}catch(e){n={x:this.node.clientLeft,y:this.node.clientTop,width:this.node.clientWidth,height:this.node.clientHeight}}finally{n=n||{},i&&(t.display="none")}return e&&this.hide(),n},Ze.attr=function(t,n){if(this.removed)return this;if(null==t){var r={};for(var a in this.attrs)this.attrs[e](a)&&(r[a]=this.attrs[a]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&i.is(t,"string")){if("fill"==t&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==t)return this._.transform;for(var o=t.split(c),s={},l=0,d=o.length;d>l;l++)t=o[l],s[t]=t in this.attrs?this.attrs[t]:i.is(this.paper.customAttributes[t],"function")?this.paper.customAttributes[t].def:i._availableAttrs[t];return d-1?s:s[o[0]]}if(null==n&&i.is(t,"array")){for(s={},l=0,d=t.length;d>l;l++)s[t[l]]=this.attr(t[l]);return s}if(null!=n){var h={};h[t]=n}else null!=t&&i.is(t,"object")&&(h=t);for(var p in h)u("raphael.attr."+p+"."+this.id,this,h[p]);for(p in this.paper.customAttributes)if(this.paper.customAttributes[e](p)&&h[e](p)&&i.is(this.paper.customAttributes[p],"function")){var f=this.paper.customAttributes[p].apply(this,[].concat(h[p]));this.attrs[p]=h[p];for(var m in f)f[e](m)&&(h[m]=f[m])}return x(this,h),this},Ze.toFront=function(){if(this.removed)return this;var e=C(this.node);e.parentNode.appendChild(e);var t=this.paper;return t.top!=this&&i._tofront(this,t),this},Ze.toBack=function(){if(this.removed)return this;var e=C(this.node),t=e.parentNode;return t.insertBefore(e,t.firstChild),i._toback(this,this.paper),this.paper,this},Ze.insertAfter=function(e){if(this.removed||!e)return this;var t=C(this.node),n=C(e.node||e[e.length-1].node);return n.nextSibling?n.parentNode.insertBefore(t,n.nextSibling):n.parentNode.appendChild(t),i._insertafter(this,e,this.paper),this},Ze.insertBefore=function(e){if(this.removed||!e)return this;var t=C(this.node),n=C(e.node||e[0].node);return n.parentNode.insertBefore(t,n),i._insertbefore(this,e,this.paper),this},Ze.blur=function(e){var t=this;if(0!=+e){var n=g("filter"),r=g("feGaussianBlur");t.attrs.blur=e,n.id=i.createUUID(),g(r,{stdDeviation:+e||1.5}),n.appendChild(r),t.paper.defs.appendChild(n),t._blur=n,g(t.node,{filter:"url(#"+n.id+")"})}else t._blur&&(t._blur.parentNode.removeChild(t._blur),delete t._blur,delete t.attrs.blur),t.node.removeAttribute("filter");return t},i._engine.circle=function(e,t,i,n){var r=g("circle");e.canvas&&e.canvas.appendChild(r);var a=new Element(r,e);return a.attrs={cx:t,cy:i,r:n,fill:"none",stroke:"#000"},a.type="circle",g(r,a.attrs),a},i._engine.rect=function(e,t,i,n,r,a){var o=g("rect");e.canvas&&e.canvas.appendChild(o);var s=new Element(o,e);return s.attrs={x:t,y:i,width:n,height:r,rx:a||0,ry:a||0,fill:"none",stroke:"#000"},s.type="rect",g(o,s.attrs),s},i._engine.ellipse=function(e,t,i,n,r){var a=g("ellipse");e.canvas&&e.canvas.appendChild(a);var o=new Element(a,e);return o.attrs={cx:t,cy:i,rx:n,ry:r,fill:"none",stroke:"#000"},o.type="ellipse",g(a,o.attrs),o},i._engine.image=function(e,t,i,n,r,a){var o=g("image");g(o,{x:i,y:n,width:r,height:a,preserveAspectRatio:"none"}),o.setAttributeNS(p,"href",t),e.canvas&&e.canvas.appendChild(o);var s=new Element(o,e);return s.attrs={x:i,y:n,width:r,height:a,src:t},s.type="image",s},i._engine.text=function(e,t,n,r){var a=g("text");e.canvas&&e.canvas.appendChild(a);var o=new Element(a,e);return o.attrs={x:t,y:n,"text-anchor":"middle",text:r,"font-family":i._availableAttrs["font-family"],"font-size":i._availableAttrs["font-size"],stroke:"none",fill:"#000"},o.type="text",x(o,o.attrs),o},i._engine.setSize=function(e,t){return this.width=e||this.width,this.height=t||this.height,this.canvas.setAttribute("width",this.width),this.canvas.setAttribute("height",this.height),this._viewBox&&this.setViewBox.apply(this,this._viewBox),this},i._engine.create=function(){var e=i._getContainer.apply(0,arguments),t=e&&e.container,n=e.x,r=e.y,a=e.width,o=e.height;if(!t)throw new Error("SVG container not found.");var s,l=g("svg"),c="overflow:hidden;";return n=n||0,r=r||0,a=a||512,o=o||342,g(l,{height:o,version:1.1,width:a,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}),1==t?(l.style.cssText=c+"position:absolute;left:"+n+"px;top:"+r+"px",i._g.doc.body.appendChild(l),s=1):(l.style.cssText=c+"position:relative",t.firstChild?t.insertBefore(l,t.firstChild):t.appendChild(l)),t=new i._Paper,t.width=a,t.height=o,t.canvas=l,t.clear(),t._left=t._top=0,s&&(t.renderfix=function(){}),t.renderfix(),t},i._engine.setViewBox=function(e,t,i,n,r){u("raphael.setViewBox",this,this._viewBox,[e,t,i,n,r]);var a,s,l=this.getSize(),c=o(i/l.width,n/l.height),d=this.top,p=r?"xMidYMid meet":"xMinYMin";for(null==e?(this._vbSize&&(c=1),delete this._vbSize,a="0 0 "+this.width+h+this.height):(this._vbSize=c,a=e+h+t+h+i+h+n),g(this.canvas,{viewBox:a,preserveAspectRatio:p});c&&d;)s="stroke-width"in d.attrs?d.attrs["stroke-width"]:1,d.attr({"stroke-width":s}),d._.dirty=1,d._.dirtyT=1,d=d.prev;return this._viewBox=[e,t,i,n,!!r],this},i.prototype.renderfix=function(){var e,t=this.canvas,i=t.style;try{e=t.getScreenCTM()||t.createSVGMatrix()}catch(i){e=t.createSVGMatrix()}var n=-e.e%1,r=-e.f%1;(n||r)&&(n&&(this._left=(this._left+n)%1,i.left=this._left+"px"),r&&(this._top=(this._top+r)%1,i.top=this._top+"px"))},i.prototype.clear=function(){i.eve("raphael.clear",this);for(var e=this.canvas;e.firstChild;)e.removeChild(e.firstChild);this.bottom=this.top=null,(this.desc=g("desc")).appendChild(i._g.doc.createTextNode("Created with Raphaël "+i.version)),e.appendChild(this.desc),e.appendChild(this.defs=g("defs"))},i.prototype.remove=function(){u("raphael.remove",this),this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?i._removedFactory(e):null};var T=i.st;for(var S in Ze)Ze[e](S)&&!T[e](S)&&(T[S]=function(e){return function(){var t=arguments;return this.forEach(function(i){i[e].apply(i,t)})}}(S))}}(),function(){if(i.vml){var e="hasOwnProperty",t=String,n=parseFloat,r=Math,a=r.round,o=r.max,s=r.min,l=r.abs,c="fill",u=/[, ]+/,d=i.eve,h=" ",p="",f={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},m=/([clmz]),?([^clmz]*)/gi,g=/ progid:\S+Blur\([^\)]+\)/g,v=/-?[^,\s-]+/g,y="position:absolute;left:0;top:0;width:1px;height:1px;behavior:url(#default#VML)",_=21600,b={path:1,rect:1,image:1},w={circle:1,ellipse:1},x=function(e){var n=/[ahqstv]/gi,r=i._pathToAbsolute;if(t(e).match(n)&&(r=i._path2curve),n=/[clmz]/g,r==i._pathToAbsolute&&!t(e).match(n)){var o=t(e).replace(m,function(e,t,i){var n=[],r="m"==t.toLowerCase(),o=f[t];return i.replace(v,function(e){r&&2==n.length&&(o+=n+f["m"==t?"l":"L"],n=[]),n.push(a(e*_))}),o+n});return o}var s,l,c=r(e);o=[];for(var u=0,d=c.length;d>u;u++){s=c[u],"z"==(l=c[u][0].toLowerCase())&&(l="x");for(var g=1,y=s.length;y>g;g++)l+=a(s[g]*_)+(g!=y-1?",":p);o.push(l)}return o.join(h)},k=function(e,t,n){var r=i.matrix();return r.rotate(-e,.5,.5),{dx:r.x(t,n),dy:r.y(t,n)}},C=function(e,t,i,n,r,a){var o=e._,s=e.matrix,u=o.fillpos,d=e.node,p=d.style,f=1,m="",g=_/t,v=_/i;if(p.visibility="hidden",t&&i){if(d.coordsize=l(g)+h+l(v),p.rotation=a*(0>t*i?-1:1),a){var y=k(a,n,r);n=y.dx,r=y.dy}if(0>t&&(m+="x"),0>i&&(m+=" y")&&(f=-1),p.flip=m,d.coordorigin=n*-g+h+r*-v,u||o.fillsize){var b=d.getElementsByTagName(c);b=b&&b[0],d.removeChild(b),u&&(y=k(a,s.x(u[0],u[1]),s.y(u[0],u[1])),b.position=y.dx*f+h+y.dy*f),o.fillsize&&(b.size=o.fillsize[0]*l(t)+h+o.fillsize[1]*l(i)),d.appendChild(b)}p.visibility="visible"}};i.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var T=function(e,i,n){for(var r=t(i).toLowerCase().split("-"),a=n?"end":"start",o=r.length,s="classic",l="medium",c="medium";o--;)switch(r[o]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":s=r[o];break;case"wide":case"narrow":c=r[o];break;case"long":case"short":l=r[o]}var u=e.node.getElementsByTagName("stroke")[0];u[a+"arrow"]=s,u[a+"arrowlength"]=l,u[a+"arrowwidth"]=c},S=function(r,l){r.attrs=r.attrs||{};var d=r.node,f=r.attrs,m=d.style,g=b[r.type]&&(l.x!=f.x||l.y!=f.y||l.width!=f.width||l.height!=f.height||l.cx!=f.cx||l.cy!=f.cy||l.rx!=f.rx||l.ry!=f.ry||l.r!=f.r),v=w[r.type]&&(f.cx!=l.cx||f.cy!=l.cy||f.r!=l.r||f.rx!=l.rx||f.ry!=l.ry),y=r;for(var k in l)l[e](k)&&(f[k]=l[k]);if(g&&(f.path=i._getPath[r.type](r),r._.dirty=1),l.href&&(d.href=l.href),l.title&&(d.title=l.title),l.target&&(d.target=l.target),l.cursor&&(m.cursor=l.cursor),"blur"in l&&r.blur(l.blur),(l.path&&"path"==r.type||g)&&(d.path=x(~t(f.path).toLowerCase().indexOf("r")?i._pathToAbsolute(f.path):f.path),r._.dirty=1,"image"==r.type&&(r._.fillpos=[f.x,f.y],r._.fillsize=[f.width,f.height],C(r,1,1,0,0,0))),"transform"in l&&r.transform(l.transform),v){var S=+f.cx,A=+f.cy,I=+f.rx||+f.r||0,M=+f.ry||+f.r||0;d.path=i.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",a((S-I)*_),a((A-M)*_),a((S+I)*_),a((A+M)*_),a(S*_)),r._.dirty=1}if("clip-rect"in l){var L=t(l["clip-rect"]).split(u);if(4==L.length){L[2]=+L[2]+ +L[0],L[3]=+L[3]+ +L[1];var O=d.clipRect||i._g.doc.createElement("div"),N=O.style;N.clip=i.format("rect({1}px {2}px {3}px {0}px)",L),d.clipRect||(N.position="absolute",N.top=0,N.left=0,N.width=r.paper.width+"px",N.height=r.paper.height+"px",d.parentNode.insertBefore(O,d),O.appendChild(d),d.clipRect=O)}l["clip-rect"]||d.clipRect&&(d.clipRect.style.clip="auto")}if(r.textpath){var P=r.textpath.style;l.font&&(P.font=l.font),l["font-family"]&&(P.fontFamily='"'+l["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,p)+'"'),l["font-size"]&&(P.fontSize=l["font-size"]),l["font-weight"]&&(P.fontWeight=l["font-weight"]),l["font-style"]&&(P.fontStyle=l["font-style"])}if("arrow-start"in l&&T(y,l["arrow-start"]),"arrow-end"in l&&T(y,l["arrow-end"],1),null!=l.opacity||null!=l["stroke-width"]||null!=l.fill||null!=l.src||null!=l.stroke||null!=l["stroke-width"]||null!=l["stroke-opacity"]||null!=l["fill-opacity"]||null!=l["stroke-dasharray"]||null!=l["stroke-miterlimit"]||null!=l["stroke-linejoin"]||null!=l["stroke-linecap"]){var R=d.getElementsByTagName(c);if(R=R&&R[0],!R&&(R=D(c)),"image"==r.type&&l.src&&(R.src=l.src),l.fill&&(R.on=!0),(null==R.on||"none"==l.fill||null===l.fill)&&(R.on=!1),R.on&&l.fill){var j=t(l.fill).match(i._ISURL);if(j){R.parentNode==d&&d.removeChild(R),R.rotate=!0,R.src=j[1],R.type="tile";var z=r.getBBox(1);R.position=z.x+h+z.y,r._.fillpos=[z.x,z.y],i._preload(j[1],function(){r._.fillsize=[this.offsetWidth,this.offsetHeight]})}else R.color=i.getRGB(l.fill).hex,R.src=p,R.type="solid",i.getRGB(l.fill).error&&(y.type in{circle:1,ellipse:1}||"r"!=t(l.fill).charAt())&&E(y,l.fill,R)&&(f.fill="none",f.gradient=l.fill,R.rotate=!1)}if("fill-opacity"in l||"opacity"in l){var F=((+f["fill-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+i.getRGB(l.fill).o+1||2)-1);F=s(o(F,0),1),R.opacity=F,R.src&&(R.color="none")}d.appendChild(R);var B=d.getElementsByTagName("stroke")&&d.getElementsByTagName("stroke")[0],U=!1;!B&&(U=B=D("stroke")), (l.stroke&&"none"!=l.stroke||l["stroke-width"]||null!=l["stroke-opacity"]||l["stroke-dasharray"]||l["stroke-miterlimit"]||l["stroke-linejoin"]||l["stroke-linecap"])&&(B.on=!0),("none"==l.stroke||null===l.stroke||null==B.on||0==l.stroke||0==l["stroke-width"])&&(B.on=!1);var $=i.getRGB(l.stroke);B.on&&l.stroke&&(B.color=$.hex),F=((+f["stroke-opacity"]+1||2)-1)*((+f.opacity+1||2)-1)*((+$.o+1||2)-1);var q=.75*(n(l["stroke-width"])||1);if(F=s(o(F,0),1),null==l["stroke-width"]&&(q=f["stroke-width"]),l["stroke-width"]&&(B.weight=q),q&&1>q&&(F*=q)&&(B.weight=1),B.opacity=F,l["stroke-linejoin"]&&(B.joinstyle=l["stroke-linejoin"]||"miter"),B.miterlimit=l["stroke-miterlimit"]||8,l["stroke-linecap"]&&(B.endcap="butt"==l["stroke-linecap"]?"flat":"square"==l["stroke-linecap"]?"square":"round"),"stroke-dasharray"in l){var H={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};B.dashstyle=H[e](l["stroke-dasharray"])?H[l["stroke-dasharray"]]:p}U&&d.appendChild(B)}if("text"==y.type){y.paper.canvas.style.display=p;var W=y.paper.span,V=f.font&&f.font.match(/\d+(?:\.\d*)?(?=px)/);m=W.style,f.font&&(m.font=f.font),f["font-family"]&&(m.fontFamily=f["font-family"]),f["font-weight"]&&(m.fontWeight=f["font-weight"]),f["font-style"]&&(m.fontStyle=f["font-style"]),V=n(f["font-size"]||V&&V[0])||10,m.fontSize=100*V+"px",y.textpath.string&&(W.innerHTML=t(y.textpath.string).replace(/"));var G=W.getBoundingClientRect();y.W=f.w=(G.right-G.left)/100,y.H=f.h=(G.bottom-G.top)/100,y.X=f.x,y.Y=f.y+y.H/2,("x"in l||"y"in l)&&(y.path.v=i.format("m{0},{1}l{2},{1}",a(f.x*_),a(f.y*_),a(f.x*_)+1));for(var Y=["x","y","text","font","font-family","font-weight","font-style","font-size"],K=0,X=Y.length;X>K;K++)if(Y[K]in l){y._.dirty=1;break}switch(f["text-anchor"]){case"start":y.textpath.style["v-text-align"]="left",y.bbx=y.W/2;break;case"end":y.textpath.style["v-text-align"]="right",y.bbx=-y.W/2;break;default:y.textpath.style["v-text-align"]="center",y.bbx=0}y.textpath.style["v-text-kern"]=!0}},E=function(e,a,o){e.attrs=e.attrs||{};var s=(e.attrs,Math.pow),l="linear",c=".5 .5";if(e.attrs.gradient=a,a=t(a).replace(i._radial_gradient,function(e,t,i){return l="radial",t&&i&&(t=n(t),i=n(i),s(t-.5,2)+s(i-.5,2)>.25&&(i=r.sqrt(.25-s(t-.5,2))*(2*(i>.5)-1)+.5),c=t+h+i),p}),a=a.split(/\s*\-\s*/),"linear"==l){var u=a.shift();if(u=-n(u),isNaN(u))return null}var d=i._parseDots(a);if(!d)return null;if(e=e.shape||e.node,d.length){e.removeChild(o),o.on=!0,o.method="none",o.color=d[0].color,o.color2=d[d.length-1].color;for(var f=[],m=0,g=d.length;g>m;m++)d[m].offset&&f.push(d[m].offset+h+d[m].color);o.colors=f.length?f.join():"0% "+o.color,"radial"==l?(o.type="gradientTitle",o.focus="100%",o.focussize="0 0",o.focusposition=c,o.angle=0):(o.type="gradient",o.angle=(270-u)%360),e.appendChild(o)}return 1},A=function(e,t){this[0]=this.node=e,e.raphael=!0,this.id=i._oid++,e.raphaelid=this.id,this.X=0,this.Y=0,this.attrs={},this.paper=t,this.matrix=i.matrix(),this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1},!t.bottom&&(t.bottom=this),this.prev=t.top,t.top&&(t.top.next=this),t.top=this,this.next=null},I=i.el;A.prototype=I,I.constructor=A,I.transform=function(e){if(null==e)return this._.transform;var n,r=this.paper._viewBoxShift,a=r?"s"+[r.scale,r.scale]+"-1-1t"+[r.dx,r.dy]:p;r&&(n=e=t(e).replace(/\.{3}|\u2026/g,this._.transform||p)),i._extractTransform(this,a+e);var o,s=this.matrix.clone(),l=this.skew,c=this.node,u=~t(this.attrs.fill).indexOf("-"),d=!t(this.attrs.fill).indexOf("url(");if(s.translate(1,1),d||u||"image"==this.type)if(l.matrix="1 0 0 1",l.offset="0 0",o=s.split(),u&&o.noRotation||!o.isSimple){c.style.filter=s.toFilter();var f=this.getBBox(),m=this.getBBox(1),g=f.x-m.x,v=f.y-m.y;c.coordorigin=g*-_+h+v*-_,C(this,1,1,g,v,0)}else c.style.filter=p,C(this,o.scalex,o.scaley,o.dx,o.dy,o.rotate);else c.style.filter=p,l.matrix=t(s),l.offset=s.offset();return null!==n&&(this._.transform=n,i._extractTransform(this,n)),this},I.rotate=function(e,i,r){if(this.removed)return this;if(null!=e){if(e=t(e).split(u),e.length-1&&(i=n(e[1]),r=n(e[2])),e=n(e[0]),null==r&&(i=r),null==i||null==r){var a=this.getBBox(1);i=a.x+a.width/2,r=a.y+a.height/2}return this._.dirtyT=1,this.transform(this._.transform.concat([["r",e,i,r]])),this}},I.translate=function(e,i){return this.removed?this:(e=t(e).split(u),e.length-1&&(i=n(e[1])),e=n(e[0])||0,i=+i||0,this._.bbox&&(this._.bbox.x+=e,this._.bbox.y+=i),this.transform(this._.transform.concat([["t",e,i]])),this)},I.scale=function(e,i,r,a){if(this.removed)return this;if(e=t(e).split(u),e.length-1&&(i=n(e[1]),r=n(e[2]),a=n(e[3]),isNaN(r)&&(r=null),isNaN(a)&&(a=null)),e=n(e[0]),null==i&&(i=e),null==a&&(r=a),null==r||null==a)var o=this.getBBox(1);return r=null==r?o.x+o.width/2:r,a=null==a?o.y+o.height/2:a,this.transform(this._.transform.concat([["s",e,i,r,a]])),this._.dirtyT=1,this},I.hide=function(){return!this.removed&&(this.node.style.display="none"),this},I.show=function(){return!this.removed&&(this.node.style.display=p),this},I.auxGetBBox=i.el.getBBox,I.getBBox=function(){var e=this.auxGetBBox();if(this.paper&&this.paper._viewBoxShift){var t={},i=1/this.paper._viewBoxShift.scale;return t.x=e.x-this.paper._viewBoxShift.dx,t.x*=i,t.y=e.y-this.paper._viewBoxShift.dy,t.y*=i,t.width=e.width*i,t.height=e.height*i,t.x2=t.x+t.width,t.y2=t.y+t.height,t}return e},I._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}},I.remove=function(){if(!this.removed&&this.node.parentNode){this.paper.__set__&&this.paper.__set__.exclude(this),i.eve.unbind("raphael.*.*."+this.id),i._tear(this,this.paper),this.node.parentNode.removeChild(this.node),this.shape&&this.shape.parentNode.removeChild(this.shape);for(var e in this)this[e]="function"==typeof this[e]?i._removedFactory(e):null;this.removed=!0}},I.attr=function(t,n){if(this.removed)return this;if(null==t){var r={};for(var a in this.attrs)this.attrs[e](a)&&(r[a]=this.attrs[a]);return r.gradient&&"none"==r.fill&&(r.fill=r.gradient)&&delete r.gradient,r.transform=this._.transform,r}if(null==n&&i.is(t,"string")){if(t==c&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;for(var o=t.split(u),s={},l=0,h=o.length;h>l;l++)t=o[l],s[t]=t in this.attrs?this.attrs[t]:i.is(this.paper.customAttributes[t],"function")?this.paper.customAttributes[t].def:i._availableAttrs[t];return h-1?s:s[o[0]]}if(this.attrs&&null==n&&i.is(t,"array")){for(s={},l=0,h=t.length;h>l;l++)s[t[l]]=this.attr(t[l]);return s}var p;null!=n&&(p={},p[t]=n),null==n&&i.is(t,"object")&&(p=t);for(var f in p)d("raphael.attr."+f+"."+this.id,this,p[f]);if(p){for(f in this.paper.customAttributes)if(this.paper.customAttributes[e](f)&&p[e](f)&&i.is(this.paper.customAttributes[f],"function")){var m=this.paper.customAttributes[f].apply(this,[].concat(p[f]));this.attrs[f]=p[f];for(var g in m)m[e](g)&&(p[g]=m[g])}p.text&&"text"==this.type&&(this.textpath.string=p.text),S(this,p)}return this},I.toFront=function(){return!this.removed&&this.node.parentNode.appendChild(this.node),this.paper&&this.paper.top!=this&&i._tofront(this,this.paper),this},I.toBack=function(){return this.removed?this:(this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),i._toback(this,this.paper)),this)},I.insertAfter=function(e){return this.removed?this:(e.constructor==i.st.constructor&&(e=e[e.length-1]),e.node.nextSibling?e.node.parentNode.insertBefore(this.node,e.node.nextSibling):e.node.parentNode.appendChild(this.node),i._insertafter(this,e,this.paper),this)},I.insertBefore=function(e){return this.removed?this:(e.constructor==i.st.constructor&&(e=e[0]),e.node.parentNode.insertBefore(this.node,e.node),i._insertbefore(this,e,this.paper),this)},I.blur=function(e){var t=this.node.runtimeStyle,n=t.filter;return n=n.replace(g,p),0!=+e?(this.attrs.blur=e,t.filter=n+h+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+e||1.5)+")",t.margin=i.format("-{0}px 0 0 -{0}px",a(+e||1.5))):(t.filter=n,t.margin=0,delete this.attrs.blur),this},i._engine.path=function(e,t){var i=D("shape");i.style.cssText=y,i.coordsize=_+h+_,i.coordorigin=t.coordorigin;var n=new A(i,t),r={fill:"none",stroke:"#000"};e&&(r.path=e),n.type="path",n.path=[],n.Path=p,S(n,r),t.canvas.appendChild(i);var a=D("skew");return a.on=!0,i.appendChild(a),n.skew=a,n.transform(p),n},i._engine.rect=function(e,t,n,r,a,o){var s=i._rectPath(t,n,r,a,o),l=e.path(s),c=l.attrs;return l.X=c.x=t,l.Y=c.y=n,l.W=c.width=r,l.H=c.height=a,c.r=o,c.path=s,l.type="rect",l},i._engine.ellipse=function(e,t,i,n,r){var a=e.path();return a.attrs,a.X=t-n,a.Y=i-r,a.W=2*n,a.H=2*r,a.type="ellipse",S(a,{cx:t,cy:i,rx:n,ry:r}),a},i._engine.circle=function(e,t,i,n){var r=e.path();return r.attrs,r.X=t-n,r.Y=i-n,r.W=r.H=2*n,r.type="circle",S(r,{cx:t,cy:i,r:n}),r},i._engine.image=function(e,t,n,r,a,o){var s=i._rectPath(n,r,a,o),l=e.path(s).attr({stroke:"none"}),u=l.attrs,d=l.node,h=d.getElementsByTagName(c)[0];return u.src=t,l.X=u.x=n,l.Y=u.y=r,l.W=u.width=a,l.H=u.height=o,u.path=s,l.type="image",h.parentNode==d&&d.removeChild(h),h.rotate=!0,h.src=t,h.type="tile",l._.fillpos=[n,r],l._.fillsize=[a,o],d.appendChild(h),C(l,1,1,0,0,0),l},i._engine.text=function(e,n,r,o){var s=D("shape"),l=D("path"),c=D("textpath");n=n||0,r=r||0,o=o||"",l.v=i.format("m{0},{1}l{2},{1}",a(n*_),a(r*_),a(n*_)+1),l.textpathok=!0,c.string=t(o),c.on=!0,s.style.cssText=y,s.coordsize=_+h+_,s.coordorigin="0 0";var u=new A(s,e),d={fill:"#000",stroke:"none",font:i._availableAttrs.font,text:o};u.shape=s,u.path=l,u.textpath=c,u.type="text",u.attrs.text=t(o),u.attrs.x=n,u.attrs.y=r,u.attrs.w=1,u.attrs.h=1,S(u,d),s.appendChild(c),s.appendChild(l),e.canvas.appendChild(s);var f=D("skew");return f.on=!0,s.appendChild(f),u.skew=f,u.transform(p),u},i._engine.setSize=function(e,t){var n=this.canvas.style;return this.width=e,this.height=t,e==+e&&(e+="px"),t==+t&&(t+="px"),n.width=e,n.height=t,n.clip="rect(0 "+e+" "+t+" 0)",this._viewBox&&i._engine.setViewBox.apply(this,this._viewBox),this},i._engine.setViewBox=function(e,t,n,r,a){i.eve("raphael.setViewBox",this,this._viewBox,[e,t,n,r,a]);var o,s,l=this.getSize(),c=l.width,u=l.height;return a&&(o=u/r,s=c/n,c>n*o&&(e-=(c-n*o)/2/o),u>r*s&&(t-=(u-r*s)/2/s)),this._viewBox=[e,t,n,r,!!a],this._viewBoxShift={dx:-e,dy:-t,scale:size},this.forEach(function(e){e.transform("...")}),this};var D;i._engine.initWin=function(e){var t=e.document;t.styleSheets.length<31?t.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"):t.styleSheets[0].addRule(".rvml","behavior:url(#default#VML)");try{!t.namespaces.rvml&&t.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),D=function(e){return t.createElement("')}}catch(e){D=function(e){return t.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},i._engine.initWin(i._g.win),i._engine.create=function(){var e=i._getContainer.apply(0,arguments),t=e.container,n=e.height,r=e.width,a=e.x,o=e.y;if(!t)throw new Error("VML container not found.");var s=new i._Paper,l=s.canvas=i._g.doc.createElement("div"),c=l.style;return a=a||0,o=o||0,r=r||512,n=n||342,s.width=r,s.height=n,r==+r&&(r+="px"),n==+n&&(n+="px"),s.coordsize=216e5+h+216e5,s.coordorigin="0 0",s.span=i._g.doc.createElement("span"),s.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",l.appendChild(s.span),c.cssText=i.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,n),1==t?(i._g.doc.body.appendChild(l),c.left=a+"px",c.top=o+"px",c.position="absolute"):t.firstChild?t.insertBefore(l,t.firstChild):t.appendChild(l),s.renderfix=function(){},s},i.prototype.clear=function(){i.eve("raphael.clear",this),this.canvas.innerHTML=p,this.span=i._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},i.prototype.remove=function(){i.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas);for(var e in this)this[e]="function"==typeof this[e]?i._removedFactory(e):null;return!0};var M=i.st;for(var L in I)I[e](L)&&!M[e](L)&&(M[L]=function(e){return function(){var t=arguments;return this.forEach(function(i){i[e].apply(i,t)})}}(L))}}(),E.was?S.win.Raphael=i:Raphael=i,"object"==typeof exports&&(module.exports=i),window.Raphael=i,i}(this,e)}),function(){function e(e){function t(t,i,n,r,a,o){for(;a>=0&&o>a;a+=e){var s=r?r[a]:a;n=i(n,t[s],s,t)}return n}return function(i,n,r,a){n=y(n,a,4);var o=!k(i)&&v.keys(i),s=(o||i).length,l=e>0?0:s-1;return arguments.length<3&&(r=i[o?o[l]:l],l+=e),t(i,n,r,o,l,s)}}function t(e){return function(t,i,n){i=_(i,n);for(var r=null!=t&&t.length,a=e>0?0:r-1;a>=0&&r>a;a+=e)if(i(t[a],a,t))return a;return-1}}function i(e,t){var i=A.length,n=e.constructor,r=v.isFunction(n)&&n.prototype||o,a="constructor";for(v.has(e,a)&&!v.contains(t,a)&&t.push(a);i--;)(a=A[i])in e&&e[a]!==r[a]&&!v.contains(t,a)&&t.push(a)}var n=this,r=n._,a=Array.prototype,o=Object.prototype,s=Function.prototype,l=a.push,c=a.slice,u=o.toString,d=o.hasOwnProperty,h=Array.isArray,p=Object.keys,f=s.bind,m=Object.create,g=function(){},v=function(e){return e instanceof v?e:this instanceof v?void(this._wrapped=e):new v(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=v),exports._=v):n._=v,v.VERSION="1.8.2";var y=function(e,t,i){if(void 0===t)return e;switch(null==i?3:i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,r){return e.call(t,i,n,r)};case 4:return function(i,n,r,a){return e.call(t,i,n,r,a)}}return function(){return e.apply(t,arguments)}},_=function(e,t,i){return null==e?v.identity:v.isFunction(e)?y(e,t,i):v.isObject(e)?v.matcher(e):v.property(e)};v.iteratee=function(e,t){return _(e,t,1/0)};var b=function(e,t){return function(i){var n=arguments.length;if(2>n||null==i)return i;for(var r=1;n>r;r++)for(var a=arguments[r],o=e(a),s=o.length,l=0;s>l;l++){var c=o[l];t&&void 0!==i[c]||(i[c]=a[c])}return i}},w=function(e){if(!v.isObject(e))return{};if(m)return m(e);g.prototype=e;var t=new g;return g.prototype=null,t},x=Math.pow(2,53)-1,k=function(e){var t=e&&e.length;return"number"==typeof t&&t>=0&&x>=t};v.each=v.forEach=function(e,t,i){t=y(t,i);var n,r;if(k(e))for(n=0,r=e.length;r>n;n++)t(e[n],n,e);else{var a=v.keys(e);for(n=0,r=a.length;r>n;n++)t(e[a[n]],a[n],e)}return e},v.map=v.collect=function(e,t,i){t=_(t,i);for(var n=!k(e)&&v.keys(e),r=(n||e).length,a=Array(r),o=0;r>o;o++){var s=n?n[o]:o;a[o]=t(e[s],s,e)}return a},v.reduce=v.foldl=v.inject=e(1),v.reduceRight=v.foldr=e(-1),v.find=v.detect=function(e,t,i){var n;return n=k(e)?v.findIndex(e,t,i):v.findKey(e,t,i),void 0!==n&&-1!==n?e[n]:void 0},v.filter=v.select=function(e,t,i){var n=[];return t=_(t,i),v.each(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n},v.reject=function(e,t,i){return v.filter(e,v.negate(_(t)),i)},v.every=v.all=function(e,t,i){t=_(t,i);for(var n=!k(e)&&v.keys(e),r=(n||e).length,a=0;r>a;a++){var o=n?n[a]:a;if(!t(e[o],o,e))return!1}return!0},v.some=v.any=function(e,t,i){t=_(t,i);for(var n=!k(e)&&v.keys(e),r=(n||e).length,a=0;r>a;a++){var o=n?n[a]:a;if(t(e[o],o,e))return!0}return!1},v.contains=v.includes=v.include=function(e,t,i){return k(e)||(e=v.values(e)),v.indexOf(e,t,"number"==typeof i&&i)>=0},v.invoke=function(e,t){var i=c.call(arguments,2),n=v.isFunction(t);return v.map(e,function(e){var r=n?t:e[t];return null==r?r:r.apply(e,i)})},v.pluck=function(e,t){return v.map(e,v.property(t))},v.where=function(e,t){return v.filter(e,v.matcher(t))},v.findWhere=function(e,t){return v.find(e,v.matcher(t))},v.max=function(e,t,i){var n,r,a=-1/0,o=-1/0;if(null==t&&null!=e){e=k(e)?e:v.values(e);for(var s=0,l=e.length;l>s;s++)(n=e[s])>a&&(a=n)}else t=_(t,i),v.each(e,function(e,i,n){((r=t(e,i,n))>o||r===-1/0&&a===-1/0)&&(a=e,o=r)});return a},v.min=function(e,t,i){var n,r,a=1/0,o=1/0;if(null==t&&null!=e){e=k(e)?e:v.values(e);for(var s=0,l=e.length;l>s;s++)n=e[s],a>n&&(a=n)}else t=_(t,i),v.each(e,function(e,i,n){r=t(e,i,n),(o>r||1/0===r&&1/0===a)&&(a=e,o=r)});return a},v.shuffle=function(e){for(var t,i=k(e)?e:v.values(e),n=i.length,r=Array(n),a=0;n>a;a++)t=v.random(0,a),t!==a&&(r[a]=r[t]),r[t]=i[a];return r},v.sample=function(e,t,i){return null==t||i?(k(e)||(e=v.values(e)),e[v.random(e.length-1)]):v.shuffle(e).slice(0,Math.max(0,t))},v.sortBy=function(e,t,i){return t=_(t,i),v.pluck(v.map(e,function(e,i,n){return{value:e,index:i,criteria:t(e,i,n)}}).sort(function(e,t){var i=e.criteria,n=t.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(n>i||void 0===n)return-1}return e.index-t.index}),"value")};var C=function(e){return function(t,i,n){var r={};return i=_(i,n),v.each(t,function(n,a){var o=i(n,a,t);e(r,n,o)}),r}};v.groupBy=C(function(e,t,i){v.has(e,i)?e[i].push(t):e[i]=[t]}),v.indexBy=C(function(e,t,i){e[i]=t}),v.countBy=C(function(e,t,i){v.has(e,i)?e[i]++:e[i]=1}),v.toArray=function(e){return e?v.isArray(e)?c.call(e):k(e)?v.map(e,v.identity):v.values(e):[]},v.size=function(e){return null==e?0:k(e)?e.length:v.keys(e).length},v.partition=function(e,t,i){t=_(t,i);var n=[],r=[];return v.each(e,function(e,i,a){(t(e,i,a)?n:r).push(e)}),[n,r]},v.first=v.head=v.take=function(e,t,i){return null==e?void 0:null==t||i?e[0]:v.initial(e,e.length-t)},v.initial=function(e,t,i){return c.call(e,0,Math.max(0,e.length-(null==t||i?1:t)))},v.last=function(e,t,i){return null==e?void 0:null==t||i?e[e.length-1]:v.rest(e,Math.max(0,e.length-t))},v.rest=v.tail=v.drop=function(e,t,i){return c.call(e,null==t||i?1:t)},v.compact=function(e){return v.filter(e,v.identity)};var T=function(e,t,i,n){for(var r=[],a=0,o=n||0,s=e&&e.length;s>o;o++){var l=e[o];if(k(l)&&(v.isArray(l)||v.isArguments(l))){t||(l=T(l,t,i));var c=0,u=l.length;for(r.length+=u;u>c;)r[a++]=l[c++]}else i||(r[a++]=l)}return r};v.flatten=function(e,t){return T(e,t,!1)},v.without=function(e){return v.difference(e,c.call(arguments,1))},v.uniq=v.unique=function(e,t,i,n){if(null==e)return[];v.isBoolean(t)||(n=i,i=t,t=!1),null!=i&&(i=_(i,n));for(var r=[],a=[],o=0,s=e.length;s>o;o++){var l=e[o],c=i?i(l,o,e):l;t?(o&&a===c||r.push(l),a=c):i?v.contains(a,c)||(a.push(c),r.push(l)):v.contains(r,l)||r.push(l)}return r},v.union=function(){return v.uniq(T(arguments,!0,!0))},v.intersection=function(e){if(null==e)return[];for(var t=[],i=arguments.length,n=0,r=e.length;r>n;n++){var a=e[n];if(!v.contains(t,a)){for(var o=1;i>o&&v.contains(arguments[o],a);o++);o===i&&t.push(a)}}return t},v.difference=function(e){var t=T(arguments,!0,!0,1);return v.filter(e,function(e){return!v.contains(t,e)})},v.zip=function(){return v.unzip(arguments)},v.unzip=function(e){for(var t=e&&v.max(e,"length").length||0,i=Array(t),n=0;t>n;n++)i[n]=v.pluck(e,n);return i},v.object=function(e,t){for(var i={},n=0,r=e&&e.length;r>n;n++)t?i[e[n]]=t[n]:i[e[n][0]]=e[n][1];return i},v.indexOf=function(e,t,i){var n=0,r=e&&e.length;if("number"==typeof i)n=0>i?Math.max(0,r+i):i;else if(i&&r)return n=v.sortedIndex(e,t),e[n]===t?n:-1;if(t!==t)return v.findIndex(c.call(e,n),v.isNaN);for(;r>n;n++)if(e[n]===t)return n;return-1},v.lastIndexOf=function(e,t,i){var n=e?e.length:0;if("number"==typeof i&&(n=0>i?n+i+1:Math.min(n,i+1)),t!==t)return v.findLastIndex(c.call(e,0,n),v.isNaN);for(;--n>=0;)if(e[n]===t)return n;return-1},v.findIndex=t(1),v.findLastIndex=t(-1),v.sortedIndex=function(e,t,i,n){i=_(i,n,1);for(var r=i(t),a=0,o=e.length;o>a;){var s=Math.floor((a+o)/2);i(e[s])a;a++,e+=i)r[a]=e;return r};var S=function(e,t,i,n,r){if(!(n instanceof t))return e.apply(i,r);var a=w(e.prototype),o=e.apply(a,r);return v.isObject(o)?o:a};v.bind=function(e,t){if(f&&e.bind===f)return f.apply(e,c.call(arguments,1));if(!v.isFunction(e))throw new TypeError("Bind must be called on a function");var i=c.call(arguments,2),n=function(){return S(e,n,t,this,i.concat(c.call(arguments)))};return n},v.partial=function(e){var t=c.call(arguments,1),i=function(){for(var n=0,r=t.length,a=Array(r),o=0;r>o;o++)a[o]=t[o]===v?arguments[n++]:t[o];for(;n=n)throw new Error("bindAll must be passed function names");for(t=1;n>t;t++)i=arguments[t],e[i]=v.bind(e[i],e);return e},v.memoize=function(e,t){var i=function(n){var r=i.cache,a=""+(t?t.apply(this,arguments):n);return v.has(r,a)||(r[a]=e.apply(this,arguments)),r[a]};return i.cache={},i},v.delay=function(e,t){var i=c.call(arguments,2);return setTimeout(function(){return e.apply(null,i)},t)},v.defer=v.partial(v.delay,v,1),v.throttle=function(e,t,i){var n,r,a,o=null,s=0;i||(i={});var l=function(){s=!1===i.leading?0:v.now(),o=null,a=e.apply(n,r),o||(n=r=null)};return function(){var c=v.now();s||!1!==i.leading||(s=c);var u=t-(c-s);return n=this,r=arguments,0>=u||u>t?(o&&(clearTimeout(o),o=null),s=c,a=e.apply(n,r),o||(n=r=null)):o||!1===i.trailing||(o=setTimeout(l,u)),a}},v.debounce=function(e,t,i){var n,r,a,o,s,l=function(){var c=v.now()-o;t>c&&c>=0?n=setTimeout(l,t-c):(n=null,i||(s=e.apply(a,r),n||(a=r=null)))};return function(){a=this,r=arguments,o=v.now();var c=i&&!n;return n||(n=setTimeout(l,t)),c&&(s=e.apply(a,r),a=r=null),s}},v.wrap=function(e,t){return v.partial(t,e)},v.negate=function(e){return function(){return!e.apply(this,arguments)}},v.compose=function(){var e=arguments,t=e.length-1;return function(){for(var i=t,n=e[t].apply(this,arguments);i--;)n=e[i].call(this,n);return n}},v.after=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}},v.before=function(e,t){var i;return function(){return--e>0&&(i=t.apply(this,arguments)),1>=e&&(t=null),i}},v.once=v.partial(v.before,2);var E=!{toString:null}.propertyIsEnumerable("toString"),A=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];v.keys=function(e){if(!v.isObject(e))return[];if(p)return p(e);var t=[];for(var n in e)v.has(e,n)&&t.push(n);return E&&i(e,t),t},v.allKeys=function(e){if(!v.isObject(e))return[];var t=[];for(var n in e)t.push(n);return E&&i(e,t),t},v.values=function(e){for(var t=v.keys(e),i=t.length,n=Array(i),r=0;i>r;r++)n[r]=e[t[r]];return n},v.mapObject=function(e,t,i){t=_(t,i);for(var n,r=v.keys(e),a=r.length,o={},s=0;a>s;s++)n=r[s],o[n]=t(e[n],n,e);return o},v.pairs=function(e){for(var t=v.keys(e),i=t.length,n=Array(i),r=0;i>r;r++)n[r]=[t[r],e[t[r]]];return n},v.invert=function(e){for(var t={},i=v.keys(e),n=0,r=i.length;r>n;n++)t[e[i[n]]]=i[n];return t},v.functions=v.methods=function(e){var t=[];for(var i in e)v.isFunction(e[i])&&t.push(i);return t.sort()},v.extend=b(v.allKeys),v.extendOwn=v.assign=b(v.keys),v.findKey=function(e,t,i){t=_(t,i);for(var n,r=v.keys(e),a=0,o=r.length;o>a;a++)if(n=r[a],t(e[n],n,e))return n},v.pick=function(e,t,i){var n,r,a={},o=e;if(null==o)return a;v.isFunction(t)?(r=v.allKeys(o),n=y(t,i)):(r=T(arguments,!1,!1,1),n=function(e,t,i){return t in i},o=Object(o));for(var s=0,l=r.length;l>s;s++){var c=r[s],u=o[c];n(u,c,o)&&(a[c]=u)}return a},v.omit=function(e,t,i){if(v.isFunction(t))t=v.negate(t);else{var n=v.map(T(arguments,!1,!1,1),String);t=function(e,t){return!v.contains(n,t)}}return v.pick(e,t,i)},v.defaults=b(v.allKeys,!0),v.clone=function(e){return v.isObject(e)?v.isArray(e)?e.slice():v.extend({},e):e},v.tap=function(e,t){return t(e),e},v.isMatch=function(e,t){var i=v.keys(t),n=i.length;if(null==e)return!n;for(var r=Object(e),a=0;n>a;a++){var o=i[a];if(t[o]!==r[o]||!(o in r))return!1}return!0};var I=function(e,t,i,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof v&&(e=e._wrapped),t instanceof v&&(t=t._wrapped);var r=u.call(e);if(r!==u.call(t))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}var a="[object Array]"===r;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,s=t.constructor;if(o!==s&&!(v.isFunction(o)&&o instanceof o&&v.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}i=i||[],n=n||[];for(var l=i.length;l--;)if(i[l]===e)return n[l]===t;if(i.push(e),n.push(t),a){if((l=e.length)!==t.length)return!1;for(;l--;)if(!I(e[l],t[l],i,n))return!1}else{var c,d=v.keys(e);if(l=d.length,v.keys(t).length!==l)return!1;for(;l--;)if(c=d[l],!v.has(t,c)||!I(e[c],t[c],i,n))return!1}return i.pop(),n.pop(),!0};v.isEqual=function(e,t){return I(e,t)},v.isEmpty=function(e){return null==e||(k(e)&&(v.isArray(e)||v.isString(e)||v.isArguments(e))?0===e.length:0===v.keys(e).length)},v.isElement=function(e){return!(!e||1!==e.nodeType)},v.isArray=h||function(e){return"[object Array]"===u.call(e)},v.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},v.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){v["is"+e]=function(t){return u.call(t)==="[object "+e+"]"}}),v.isArguments(arguments)||(v.isArguments=function(e){return v.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(v.isFunction=function(e){return"function"==typeof e||!1}),v.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},v.isNaN=function(e){return v.isNumber(e)&&e!==+e},v.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===u.call(e)},v.isNull=function(e){return null===e},v.isUndefined=function(e){return void 0===e},v.has=function(e,t){return null!=e&&d.call(e,t)},v.noConflict=function(){return n._=r,this},v.identity=function(e){return e},v.constant=function(e){return function(){return e}},v.noop=function(){},v.property=function(e){return function(t){return null==t?void 0:t[e]}},v.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},v.matcher=v.matches=function(e){return e=v.extendOwn({},e),function(t){return v.isMatch(t,e)}},v.times=function(e,t,i){var n=Array(Math.max(0,e));t=y(t,i,1);for(var r=0;e>r;r++)n[r]=t(r);return n},v.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},v.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},M=v.invert(D),L=function(e){var t=function(t){return e[t]},i="(?:"+v.keys(e).join("|")+")",n=RegExp(i),r=RegExp(i,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(r,t):e}};v.escape=L(D),v.unescape=L(M),v.result=function(e,t,i){var n=null==e?void 0:e[t];return void 0===n&&(n=i),v.isFunction(n)?n.call(e):n};var O=0;v.uniqueId=function(e){var t=++O+"";return e?e+t:t},v.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var N=/(.)^/,P={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},R=/\\|'|\r|\n|\u2028|\u2029/g,j=function(e){return"\\"+P[e]};v.template=function(e,t,i){!t&&i&&(t=i),t=v.defaults({},t,v.templateSettings);var n=RegExp([(t.escape||N).source,(t.interpolate||N).source,(t.evaluate||N).source].join("|")+"|$","g"),r=0,a="__p+='";e.replace(n,function(t,i,n,o,s){return a+=e.slice(r,s).replace(R,j),r=s+t.length,i?a+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?a+="'+\n((__t=("+n+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{var o=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return o.call(this,e,v)};return s.source="function("+(t.variable||"obj")+"){\n"+a+"}",s},v.chain=function(e){var t=v(e);return t._chain=!0,t};var z=function(e,t){return e._chain?v(t).chain():t};v.mixin=function(e){v.each(v.functions(e),function(t){var i=v[t]=e[t];v.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),z(this,i.apply(v,e))}})},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];v.prototype[e]=function(){var i=this._wrapped;return t.apply(i,arguments),"shift"!==e&&"splice"!==e||0!==i.length||delete i[0],z(this,i)}}),v.each(["concat","join","slice"],function(e){var t=a[e];v.prototype[e]=function(){return z(this,t.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return v})}.call(this),function(){function e(t,i){if(!t||"function"==typeof t)return i;var n={};for(var r in i)n[r]=i[r];for(r in t)t[r]&&(n[r]="object"==typeof n[r]?e(n[r],t[r]):t[r]);return n}function t(e,t){if("function"==typeof Object.create)e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});else{e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}function i(e,t,i){var n,r,a="M{0},{1}";for(n=2,r=2*i.length+2;r>n;n+=2)a+=" L{"+n+"},{"+(n+1)+"}";var o=[t.x,t.y];for(n=0,r=i.length;r>n;n++)o.push(i[n].x),o.push(i[n].y);var s=e.paper.path(a,o);s.attr("stroke",e.options["element-color"]),s.attr("stroke-width",e.options["line-width"]);var l=e.options.font,c=e.options["font-family"],u=e.options["font-weight"];return l&&s.attr({font:l}),c&&s.attr({"font-family":c}),u&&s.attr({"font-weight":u}),s}function n(e,t,i,n){var r,a;"[object Array]"!==Object.prototype.toString.call(i)&&(i=[i]);var o="M{0},{1}";for(r=2,a=2*i.length+2;a>r;r+=2)o+=" L{"+r+"},{"+(r+1)+"}";var s=[t.x,t.y];for(r=0,a=i.length;a>r;r++)s.push(i[r].x),s.push(i[r].y);var l=e.paper.path(o,s);l.attr({stroke:e.options["line-color"],"stroke-width":e.options["line-width"],"arrow-end":e.options["arrow-end"]});var c=e.options.font,u=e.options["font-family"],d=e.options["font-weight"];if(c&&l.attr({font:c}),u&&l.attr({"font-family":u}),d&&l.attr({"font-weight":d}),n){var h=e.paper.text(0,0,n),p=!1,f=i[0];t.y===f.y&&(p=!0);var m=0,g=0;m=t.x,g=t.y,p?(m+=e.options["text-margin"]/2,g-=e.options["text-margin"]):(m+=e.options["text-margin"]/2,g+=e.options["text-margin"]),h.attr({"text-anchor":"start","font-size":e.options["font-size"],fill:e.options["font-color"],x:m,y:g}),c&&h.attr({font:c}),u&&h.attr({"font-family":u}),d&&h.attr({"font-weight":d})}return l}function r(e,t,i,n,r,a,o,s){var l,c,u,d,h,p={x:null,y:null,onLine1:!1,onLine2:!1};return l=(s-a)*(i-e)-(o-r)*(n-t),0===l?p:(c=t-a,u=e-r,d=(o-r)*c-(s-a)*u,h=(i-e)*c-(n-t)*u,c=d/l,u=h/l,p.x=e+c*(i-e),p.y=t+c*(n-t),c>0&&1>c&&(p.onLine1=!0),u>0&&1>u&&(p.onLine2=!0),p)}function a(e,t){t=t||{},this.paper=new Raphael(e),this.options=v.defaults(t,g),this.symbols=[],this.lines=[],this.start=null}function o(e,t,i){this.chart=e,this.group=this.chart.paper.set(),this.symbol=i,this.connectedTo=[],this.symbolType=t.symbolType,this.flowstate=t.flowstate||"future",this.next_direction=t.next&&t.direction_next?t.direction_next:void 0,this.text=this.chart.paper.text(0,0,t.text),t.key&&(this.text.node.id=t.key+"t"),this.text.node.setAttribute("class",this.getAttr("class")+"t"),this.text.attr({"text-anchor":"start",x:this.getAttr("text-margin"),fill:this.getAttr("font-color"),"font-size":this.getAttr("font-size")});var n=this.getAttr("font"),r=this.getAttr("font-family"),a=this.getAttr("font-weight");n&&this.text.attr({font:n}),r&&this.text.attr({"font-family":r}),a&&this.text.attr({"font-weight":a}),t.link&&this.text.attr("href",t.link),t.target&&this.text.attr("target",t.target);var o=this.getAttr("maxWidth");if(o){for(var s=t.text.split(" "),l="",c=0,u=s.length;u>c;c++){ var d=s[c];this.text.attr("text",l+" "+d),l+=this.text.getBBox().width>o?"\n"+d:" "+d}this.text.attr("text",l.substring(1))}if(this.group.push(this.text),i){var h=this.getAttr("text-margin");i.attr({fill:this.getAttr("fill"),stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),width:this.text.getBBox().width+2*h,height:this.text.getBBox().height+2*h}),i.node.setAttribute("class",this.getAttr("class")),t.link&&i.attr("href",t.link),t.target&&i.attr("target",t.target),t.key&&(i.node.id=t.key),this.group.push(i),i.insertBefore(this.text),this.text.attr({y:i.getBBox().height/2}),this.initialize()}}function s(e,t){var i=e.paper.rect(0,0,0,0,20);t=t||{},t.text=t.text||"Start",o.call(this,e,t,i)}function l(e,t){var i=e.paper.rect(0,0,0,0,20);t=t||{},t.text=t.text||"End",o.call(this,e,t,i)}function c(e,t){var i=e.paper.rect(0,0,0,0);t=t||{},o.call(this,e,t,i)}function u(e,t){var i=e.paper.rect(0,0,0,0);t=t||{},o.call(this,e,t,i),i.attr({width:this.text.getBBox().width+4*this.getAttr("text-margin")}),this.text.attr({x:2*this.getAttr("text-margin")});var n=e.paper.rect(0,0,0,0);n.attr({x:this.getAttr("text-margin"),stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),width:this.text.getBBox().width+2*this.getAttr("text-margin"),height:this.text.getBBox().height+2*this.getAttr("text-margin"),fill:this.getAttr("fill")}),t.key&&(n.node.id=t.key+"i");var r=this.getAttr("font"),a=this.getAttr("font-family"),s=this.getAttr("font-weight");r&&n.attr({font:r}),a&&n.attr({"font-family":a}),s&&n.attr({"font-weight":s}),t.link&&n.attr("href",t.link),t.target&&n.attr("target",t.target),this.group.push(n),n.insertBefore(this.text),this.initialize()}function d(e,t){t=t||{},o.call(this,e,t),this.textMargin=this.getAttr("text-margin"),this.text.attr({x:3*this.textMargin});var n=this.text.getBBox().width+4*this.textMargin,r=this.text.getBBox().height+2*this.textMargin,a=this.textMargin,s=r/2,l={x:a,y:s},c=[{x:a-this.textMargin,y:r},{x:a-this.textMargin+n,y:r},{x:a-this.textMargin+n+2*this.textMargin,y:0},{x:a-this.textMargin+2*this.textMargin,y:0},{x:a,y:s}],u=i(e,l,c);u.attr({stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),fill:this.getAttr("fill")}),t.link&&u.attr("href",t.link),t.target&&u.attr("target",t.target),t.key&&(u.node.id=t.key),u.node.setAttribute("class",this.getAttr("class")),this.text.attr({y:u.getBBox().height/2}),this.group.push(u),u.insertBefore(this.text),this.initialize()}function h(e,t){t=t||{},o.call(this,e,t),this.textMargin=this.getAttr("text-margin"),this.yes_direction="bottom",this.no_direction="right",t.yes&&t.direction_yes&&t.no&&!t.direction_no?"right"===t.direction_yes?(this.no_direction="bottom",this.yes_direction="right"):(this.no_direction="right",this.yes_direction="bottom"):t.yes&&!t.direction_yes&&t.no&&t.direction_no?"right"===t.direction_no?(this.yes_direction="bottom",this.no_direction="right"):(this.yes_direction="right",this.no_direction="bottom"):(this.yes_direction="bottom",this.no_direction="right"),this.yes_direction=this.yes_direction||"bottom",this.no_direction=this.no_direction||"right",this.text.attr({x:2*this.textMargin});var n=this.text.getBBox().width+3*this.textMargin;n+=n/2;var r=this.text.getBBox().height+2*this.textMargin;r+=r/2,r=Math.max(.5*n,r);var a=n/4,s=r/4;this.text.attr({x:a+this.textMargin/2});var l={x:a,y:s},c=[{x:a-n/4,y:s+r/4},{x:a-n/4+n/2,y:s+r/4+r/2},{x:a-n/4+n,y:s+r/4},{x:a-n/4+n/2,y:s+r/4-r/2},{x:a-n/4,y:s+r/4}],u=i(e,l,c);u.attr({stroke:this.getAttr("element-color"),"stroke-width":this.getAttr("line-width"),fill:this.getAttr("fill")}),t.link&&u.attr("href",t.link),t.target&&u.attr("target",t.target),t.key&&(u.node.id=t.key),u.node.setAttribute("class",this.getAttr("class")),this.text.attr({y:u.getBBox().height/2}),this.group.push(u),u.insertBefore(this.text),this.initialize()}function p(e){function t(e){var t=e.indexOf("(")+1,n=e.indexOf(")");return t>=0&&n>=0?i.symbols[e.substring(0,t-1)]:i.symbols[e]}e=e||"",e=e.trim();for(var i={symbols:{},start:null,drawSVG:function(e,t){function i(e){if(o[e.key])return o[e.key];switch(e.symbolType){case"start":o[e.key]=new s(r,e);break;case"end":o[e.key]=new l(r,e);break;case"operation":o[e.key]=new c(r,e);break;case"inputoutput":o[e.key]=new d(r,e);break;case"subroutine":o[e.key]=new u(r,e);break;case"condition":o[e.key]=new h(r,e);break;default:return new Error("Wrong symbol type!")}return o[e.key]}var n=this;this.diagram&&this.diagram.clean();var r=new a(e,t);this.diagram=r;var o={};!function e(t,a,o){var s=i(t);return n.start===t?r.startWith(s):a&&o&&!a.pathOk&&(a instanceof h?(o.yes===t&&a.yes(s),o.no===t&&a.no(s)):a.then(s)),s.pathOk?s:(s instanceof h?(t.yes&&e(t.yes,s,t),t.no&&e(t.no,s,t)):t.next&&e(t.next,s,t),s)}(this.start),r.render()},clean:function(){this.diagram.clean()}},n=[],r=0,o=1,p=e.length;p>o;o++)if("\n"===e[o]&&"\\"!==e[o-1]){var f=e.substring(r,o);r=o+1,n.push(f.replace(/\\\n/g,"\n"))}rm;){var v=n[m];v.indexOf(": ")<0&&v.indexOf("(")<0&&v.indexOf(")")<0&&v.indexOf("->")<0&&v.indexOf("=>")<0?(n[m-1]+="\n"+v,n.splice(m,1),g--):m++}for(;n.length>0;){var y=n.splice(0,1)[0];if(y.indexOf("=>")>=0){var _,b=y.split("=>"),w={key:b[0],symbolType:b[1],text:null,link:null,target:null,flowstate:null};if(w.symbolType.indexOf(": ")>=0&&(_=w.symbolType.split(": "),w.symbolType=_[0],w.text=_[1]),w.text&&w.text.indexOf(":>")>=0?(_=w.text.split(":>"),w.text=_[0],w.link=_[1]):w.symbolType.indexOf(":>")>=0&&(_=w.symbolType.split(":>"),w.symbolType=_[0],w.link=_[1]),w.symbolType.indexOf("\n")>=0&&(w.symbolType=w.symbolType.split("\n")[0]),w.link){var x=w.link.indexOf("[")+1,k=w.link.indexOf("]");x>=0&&k>=0&&(w.target=w.link.substring(x,k),w.link=w.link.substring(0,x-1))}if(w.text&&w.text.indexOf("|")>=0){var C=w.text.split("|");w.text=C[0],w.flowstate=C[1].trim()}i.symbols[w.key]=w}else if(y.indexOf("->")>=0)for(var T=y.split("->"),S=0,E=T.length;E>S;S++){var A=T[S],I=t(A),D=function(e){var t="next",i=e.indexOf("(")+1,n=e.indexOf(")");return i>=0&&n>=0&&(t=A.substring(i,n),t.indexOf(",")<0&&"yes"!==t&&"no"!==t&&(t="next, "+t)),t}(A),M=null;if(D.indexOf(",")>=0){var L=D.split(",");D=L[0],M=L[1].trim()}if(i.start||(i.start=I),E>S+1){var O=T[S+1];I[D]=t(O),I["direction_"+D]=M,M=null}}}return i}Array.prototype.indexOf||(Array.prototype.indexOf=function(e){"use strict";if(null===this)throw new TypeError;var t=Object(this),i=t.length>>>0;if(0===i)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),n!=n?n=0:0!==n&&1/0!=n&&n!=-1/0&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=i)return-1;for(var r=n>=0?n:Math.max(i-Math.abs(n),0);i>r;r++)if(r in t&&t[r]===e)return r;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){"use strict";if(null===this)throw new TypeError;var t=Object(this),i=t.length>>>0;if(0===i)return-1;var n=i;arguments.length>1&&(n=Number(arguments[1]),n!=n?n=0:0!==n&&n!=1/0&&n!=-1/0&&(n=(n>0||-1)*Math.floor(Math.abs(n))));for(var r=n>=0?Math.min(n,i-1):i-Math.abs(n);r>=0;r--)if(r in t&&t[r]===e)return r;return-1}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var f=this,m={};"undefined"!=typeof module&&module.exports?module.exports=m:f.flowchart=f.flowchart||m;var g={x:0,y:0,"line-width":3,"line-length":50,"text-margin":10,"font-size":14,"font-color":"black","line-color":"black","element-color":"black",fill:"white","yes-text":"yes","no-text":"no","arrow-end":"block",class:"flowchart",symbols:{start:{},end:{},condition:{},inputoutput:{},operation:{},subroutine:{}}},v={defaults:e,inherits:t};a.prototype.handle=function(e){this.symbols.indexOf(e)<=-1&&this.symbols.push(e);var t=this;return e instanceof h?(e.yes=function(i){return e.yes_symbol=i,e.no_symbol&&(e.pathOk=!0),t.handle(i)},e.no=function(i){return e.no_symbol=i,e.yes_symbol&&(e.pathOk=!0),t.handle(i)}):e.then=function(i){return e.next=i,e.pathOk=!0,t.handle(i)},e},a.prototype.startWith=function(e){return this.start=e,this.handle(e)},a.prototype.render=function(){var e,t=0,i=0,n=0,r=0,a=0,o=0;for(n=0,r=this.symbols.length;r>n;n++)e=this.symbols[n],e.width>t&&(t=e.width),e.height>i&&(i=e.height);for(n=0,r=this.symbols.length;r>n;n++)e=this.symbols[n],e.shiftX(this.options.x+(t-e.width)/2+this.options["line-width"]),e.shiftY(this.options.y+(i-e.height)/2+this.options["line-width"]);for(this.start.render(),n=0,r=this.symbols.length;r>n;n++)e=this.symbols[n],e.renderLines();for(a=this.maxXFromLine,n=0,r=this.symbols.length;r>n;n++){e=this.symbols[n];var s=e.getX()+e.width,l=e.getY()+e.height;s>a&&(a=s),l>o&&(o=l)}this.paper.setSize(a+this.options["line-width"],o+this.options["line-width"])},a.prototype.clean=function(){if(this.paper){var e=this.paper.canvas;e.parentNode.removeChild(e)}},o.prototype.getAttr=function(e){if(this.chart){var t,i=this.chart.options?this.chart.options[e]:void 0,n=this.chart.options.symbols?this.chart.options.symbols[this.symbolType][e]:void 0;return this.chart.options.flowstate&&this.chart.options.flowstate[this.flowstate]&&(t=this.chart.options.flowstate[this.flowstate][e]),t||n||i}},o.prototype.initialize=function(){this.group.transform("t"+this.getAttr("line-width")+","+this.getAttr("line-width")),this.width=this.group.getBBox().width,this.height=this.group.getBBox().height},o.prototype.getCenter=function(){return{x:this.getX()+this.width/2,y:this.getY()+this.height/2}},o.prototype.getX=function(){return this.group.getBBox().x},o.prototype.getY=function(){return this.group.getBBox().y},o.prototype.shiftX=function(e){this.group.transform("t"+(this.getX()+e)+","+this.getY())},o.prototype.setX=function(e){this.group.transform("t"+e+","+this.getY())},o.prototype.shiftY=function(e){this.group.transform("t"+this.getX()+","+(this.getY()+e))},o.prototype.setY=function(e){this.group.transform("t"+this.getX()+","+e)},o.prototype.getTop=function(){var e=this.getY();return{x:this.getX()+this.width/2,y:e}},o.prototype.getBottom=function(){var e=this.getY()+this.height;return{x:this.getX()+this.width/2,y:e}},o.prototype.getLeft=function(){var e=this.getY()+this.group.getBBox().height/2;return{x:this.getX(),y:e}},o.prototype.getRight=function(){var e=this.getY()+this.group.getBBox().height/2;return{x:this.getX()+this.group.getBBox().width,y:e}},o.prototype.render=function(){if(this.next){var e=this.getAttr("line-length");if("right"===this.next_direction){var t=this.getRight();if(this.next.getLeft(),!this.next.isPositioned){this.next.setY(t.y-this.next.height/2),this.next.shiftX(this.group.getBBox().x+this.width+e);var i=this;!function t(){for(var n,r=!1,a=0,o=i.chart.symbols.length;o>a;a++){n=i.chart.symbols[a];var s=Math.abs(n.getCenter().x-i.next.getCenter().x);if(n.getCenter().y>i.next.getCenter().y&&s<=i.next.width/2){r=!0;break}}r&&(i.next.setX(n.getX()+n.width+e),t())}(),this.next.isPositioned=!0,this.next.render()}}else{var n=this.getBottom();this.next.getTop(),this.next.isPositioned||(this.next.shiftY(this.getY()+this.height+e),this.next.setX(n.x-this.next.width/2),this.next.isPositioned=!0,this.next.render())}}},o.prototype.renderLines=function(){this.next&&(this.next_direction?this.drawLineTo(this.next,"",this.next_direction):this.drawLineTo(this.next))},o.prototype.drawLineTo=function(e,t,i){this.connectedTo.indexOf(e)<0&&this.connectedTo.push(e);var a,o=this.getCenter().x,s=this.getCenter().y,l=(this.getTop(),this.getRight()),c=this.getBottom(),u=this.getLeft(),d=e.getCenter().x,h=e.getCenter().y,p=e.getTop(),f=e.getRight(),m=(e.getBottom(),e.getLeft()),g=o===d,v=s===h,y=h>s,_=s>h,b=o>d,w=d>o,x=0,k=this.getAttr("line-length"),C=this.getAttr("line-width");if(i&&"bottom"!==i||!g||!y)if(i&&"right"!==i||!v||!w)if(i&&"left"!==i||!v||!b)if(i&&"right"!==i||!g||!_)if(i&&"right"!==i||!g||!y)if(i&&"bottom"!==i||!b)if(i&&"bottom"!==i||!w)if(i&&"right"===i&&b)a=n(this.chart,l,[{x:l.x+k/2,y:l.y},{x:l.x+k/2,y:p.y-k/2},{x:p.x,y:p.y-k/2},{x:p.x,y:p.y}],t),this.rightStart=!0,e.topEnd=!0,x=l.x+k/2;else if(i&&"right"===i&&w)a=n(this.chart,l,[{x:p.x,y:l.y},{x:p.x,y:p.y}],t),this.rightStart=!0,e.topEnd=!0,x=l.x+k/2;else if(i&&"bottom"===i&&g&&_)a=n(this.chart,c,[{x:c.x,y:c.y+k/2},{x:l.x+k/2,y:c.y+k/2},{x:l.x+k/2,y:p.y-k/2},{x:p.x,y:p.y-k/2},{x:p.x,y:p.y}],t),this.bottomStart=!0,e.topEnd=!0,x=c.x+k/2;else if("left"===i&&g&&_){var T=u.x-k/2;m.xS;S++)for(var A,I=this.chart.lines[S],D=I.attr("path"),M=a.attr("path"),L=0,O=D.length-1;O>L;L++){var N=[];N.push(["M",D[L][1],D[L][2]]),N.push(["L",D[L+1][1],D[L+1][2]]);for(var P=N[0][1],R=N[0][2],j=N[1][1],z=N[1][2],F=0,B=M.length-1;B>F;F++){var U=[];U.push(["M",M[F][1],M[F][2]]),U.push(["L",M[F+1][1],M[F+1][2]]);var $=U[0][1],q=U[0][2],H=U[1][1],W=U[1][2],V=r(P,R,j,z,$,q,H,W);if(V.onLine1&&V.onLine2){var G;q===W?$>H?(G=["L",V.x+2*C,q],M.splice(F+1,0,G),G=["C",V.x+2*C,q,V.x,q-4*C,V.x-2*C,q],M.splice(F+2,0,G),a.attr("path",M)):(G=["L",V.x-2*C,q],M.splice(F+1,0,G),G=["C",V.x-2*C,q,V.x,q-4*C,V.x+2*C,q],M.splice(F+2,0,G),a.attr("path",M)):q>W?(G=["L",$,V.y+2*C],M.splice(F+1,0,G),G=["C",$,V.y+2*C,$+4*C,V.y,$,V.y-2*C],M.splice(F+2,0,G),a.attr("path",M)):(G=["L",$,V.y-2*C],M.splice(F+1,0,G),G=["C",$,V.y-2*C,$+4*C,V.y,$,V.y+2*C],M.splice(F+2,0,G),a.attr("path",M)),F+=2,A+=2}}}this.chart.lines.push(a)}(!this.chart.maxXFromLine||this.chart.maxXFromLine&&x>this.chart.maxXFromLine)&&(this.chart.maxXFromLine=x)},v.inherits(s,o),v.inherits(l,o),v.inherits(c,o),v.inherits(u,o),v.inherits(d,o),d.prototype.getLeft=function(){var e=this.getY()+this.group.getBBox().height/2;return{x:this.getX()+this.textMargin,y:e}},d.prototype.getRight=function(){var e=this.getY()+this.group.getBBox().height/2;return{x:this.getX()+this.group.getBBox().width-this.textMargin,y:e}},v.inherits(h,o),h.prototype.render=function(){this.yes_direction&&(this[this.yes_direction+"_symbol"]=this.yes_symbol),this.no_direction&&(this[this.no_direction+"_symbol"]=this.no_symbol);var e=this.getAttr("line-length");if(this.bottom_symbol){var t=this.getBottom();this.bottom_symbol.getTop(),this.bottom_symbol.isPositioned||(this.bottom_symbol.shiftY(this.getY()+this.height+e),this.bottom_symbol.setX(t.x-this.bottom_symbol.width/2),this.bottom_symbol.isPositioned=!0,this.bottom_symbol.render())}if(this.right_symbol){var i=this.getRight();if(this.right_symbol.getLeft(),!this.right_symbol.isPositioned){this.right_symbol.setY(i.y-this.right_symbol.height/2),this.right_symbol.shiftX(this.group.getBBox().x+this.width+e);var n=this;!function t(){for(var i,r=!1,a=0,o=n.chart.symbols.length;o>a;a++){i=n.chart.symbols[a];var s=Math.abs(i.getCenter().x-n.right_symbol.getCenter().x);if(i.getCenter().y>n.right_symbol.getCenter().y&&s<=n.right_symbol.width/2){r=!0;break}}r&&(n.right_symbol.setX(i.getX()+i.width+e),t())}(),this.right_symbol.isPositioned=!0,this.right_symbol.render()}}},h.prototype.renderLines=function(){this.yes_symbol&&this.drawLineTo(this.yes_symbol,this.getAttr("yes-text"),this.yes_direction),this.no_symbol&&this.drawLineTo(this.no_symbol,this.getAttr("no-text"),this.no_direction)},m.parse=p}(),define("flowchart",function(){}),function(e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else{if("function"==typeof define&&define.amd)return define("public/lib/editormd/lib/codemirror/lib/codemirror",[],e);this.CodeMirror=e()}}(function(){"use strict";function e(i,n){if(!(this instanceof e))return new e(i,n);this.options=n=n?Dr(n):{},Dr(qa,n,!1),p(n);var r=n.value;"string"==typeof r&&(r=new fo(r,n.mode)),this.doc=r;var a=new e.inputStyles[n.inputStyle](this),o=this.display=new t(i,r,a);o.wrapper.CodeMirror=this,c(this),s(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),n.autofocus&&!_a&&o.input.focus(),v(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,draggingText:!1,highlight:new xr,keySeq:null};var l=this;ca&&ua<11&&setTimeout(function(){l.display.input.reset(!0)},20),Ft(this),$r(),vt(this),this.curOp.forceUpdate=!0,qn(this,r),n.autofocus&&!_a||l.hasFocus()?setTimeout(Mr(ci,this),20):ui(this);for(var u in Ha)Ha.hasOwnProperty(u)&&Ha[u](this,n[u],Wa);x(this),n.finishInit&&n.finishInit(this);for(var d=0;dt.maxLineLength&&(t.maxLineLength=i,t.maxLine=e)})}function p(e){var t=Sr(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function f(e){var t=e.display,i=t.gutters.offsetWidth,n=Math.round(e.doc.height+Ue(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?i:0,docHeight:n,scrollHeight:n+qe(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}function m(e,t,i){this.cm=i;var n=this.vert=Pr("div",[Pr("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=Pr("div",[Pr("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(n),e(r),bo(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),bo(r,"scroll",function(){r.clientWidth&&t(r.scrollLeft,"horizontal")}),this.checkedOverlay=!1,ca&&ua<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function g(){}function v(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&Fo(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new e.scrollbarModel[t.options.scrollbarStyle](function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),bo(e,"mousedown",function(){t.state.focused&&setTimeout(function(){t.display.input.focus()},0)}),e.setAttribute("cm-not-content","true")},function(e,i){"horizontal"==i?Zt(t,e):Qt(t,e)},t),t.display.scrollbars.addClass&&Bo(t.display.wrapper,t.display.scrollbars.addClass)}function y(e,t){t||(t=f(e));var i=e.display.barWidth,n=e.display.barHeight;_(e,t);for(var r=0;r<4&&i!=e.display.barWidth||n!=e.display.barHeight;r++)i!=e.display.barWidth&&e.options.lineWrapping&&M(e),_(e,f(e)),i=e.display.barWidth,n=e.display.barHeight}function _(e,t){var i=e.display,n=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=n.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=n.bottom)+"px",n.right&&n.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=n.bottom+"px",i.scrollbarFiller.style.width=n.right+"px"):i.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=n.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}function b(e,t,i){var n=i&&null!=i.top?Math.max(0,i.top):e.scroller.scrollTop;n=Math.floor(n-Be(e));var r=i&&null!=i.bottom?i.bottom:n+e.wrapper.clientHeight,a=Kn(t,n),o=Kn(t,r);if(i&&i.ensure){var s=i.ensure.from.line,l=i.ensure.to.line;s=o&&(a=Kn(t,Xn(Hn(t,l))-e.wrapper.clientHeight),o=l)}return{from:a,to:Math.max(o,a+1)}}function w(e){var t=e.display,i=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=C(t)-t.scroller.scrollLeft+e.doc.scrollLeft,r=t.gutters.offsetWidth,a=n+"px",o=0;o=i.viewFrom&&t.visible.to<=i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&0==zt(e))return!1;x(e)&&(Nt(e),t.dims=O(e));var r=n.first+n.size,a=Math.max(t.visible.from-e.options.viewportMargin,n.first),o=Math.min(r,t.visible.to+e.options.viewportMargin);i.viewFromo&&i.viewTo-o<20&&(o=Math.min(r,i.viewTo)),Sa&&(a=pn(e.doc,a),o=fn(e.doc,o));var s=a!=i.viewFrom||o!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;jt(e,a,o),i.viewOffset=Xn(Hn(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var l=zt(e);if(!s&&0==l&&!t.force&&i.renderedView==i.view&&(null==i.updateLineNumbers||i.updateLineNumbers>=i.viewTo))return!1;var c=zr();return l>4&&(i.lineDiv.style.display="none"),N(e,i.updateLineNumbers,t.dims),l>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,c&&zr()!=c&&c.offsetHeight&&c.focus(),Rr(i.cursorDiv),Rr(i.selectionDiv),i.gutters.style.height=0,s&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Re(e,400)),i.updateLineNumbers=null,!0}function A(e,t){for(var i=(t.force,t.viewport),n=!0;;n=!1){if(n&&e.options.lineWrapping&&t.oldDisplayWidth!=He(e))!0;else if(!1,i&&null!=i.top&&(i={top:Math.min(e.doc.height+Ue(e.display)-We(e),i.top)}),t.visible=b(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!E(e,t))break;M(e);var r=f(e);Me(e),D(e,r),y(e,r)}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 I(e,t){var i=new T(e,t);if(E(e,i)){M(e),A(e,i);var n=f(e);Me(e),D(e,n),y(e,n),i.finish()}}function D(e,t){e.display.sizer.style.minHeight=t.docHeight+"px";var i=t.docHeight+e.display.barHeight;e.display.heightForcer.style.top=i+"px",e.display.gutters.style.height=Math.max(i+qe(e),t.clientHeight)+"px"}function M(e){for(var t=e.display,i=t.lineDiv.offsetTop,n=0;n.001||l<-.001)&&(Gn(a.line,r),L(a.line),a.rest))for(var c=0;c-1&&(h=!1),P(e,d,c,i)),h&&(Rr(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(k(e.options,c)))),s=d.node.nextSibling}else{var p=q(e,d,c,i);o.insertBefore(p,s)}c+=d.size}for(;s;)s=n(s)}function P(e,t,i,n){for(var r=0;r1&&(Ia&&Ia.join("\n")==t?o=n.ranges.length%Ia.length==0&&Er(Ia,qo):a.length==n.ranges.length&&(o=Er(a,function(e){return[e]})));for(var s=n.ranges.length-1;s>=0;s--){var l=n.ranges[s],c=l.from(),u=l.to();l.empty()&&(i&&i>0?c=Ea(c.line,c.ch-i):e.state.overwrite&&!e.state.pasteIncoming&&(u=Ea(u.line,Math.min(Hn(r,u.line).text.length,u.ch+Tr(a).length))));var d=e.curOp.updateInput,h={from:c,to:u,text:o?o[s%o.length]:a,origin:e.state.pasteIncoming?"paste":e.state.cutIncoming?"cut":"+input"};if(yi(e.doc,h),gr(e,"inputRead",e,h),t&&!e.state.pasteIncoming&&e.options.electricChars&&e.options.smartIndent&&l.head.ch<100&&(!s||n.ranges[s-1].head.line!=l.head.line)){var p=e.getModeAt(l.head),f=$a(h);if(p.electricChars){for(var m=0;m-1){Li(e,f.line,"smart");break}}else p.electricInput&&p.electricInput.test(Hn(r,f.line).text.slice(0,f.ch))&&Li(e,f.line,"smart")}}Di(e),e.curOp.updateInput=d,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function J(e){for(var t=[],i=[],n=0;n=0){var o=K(a.from(),r.from()),s=Y(a.to(),r.to()),l=a.empty()?r.from()==r.head:a.from()==a.head;n<=t&&--t,e.splice(--n,2,new ue(l?s:o,l?o:s))}}return new ce(e,t)}function he(e,t){return new ce([new ue(e,t||e)],0)}function pe(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function fe(e,t){if(t.linei?Ea(i,Hn(e,i).text.length):me(t,Hn(e,t.line).text.length)}function me(e,t){var i=e.ch;return null==i||i>t?Ea(e.line,t):i<0?Ea(e.line,0):e}function ge(e,t){return t>=e.first&&t=a.ch:c.to>a.ch))){if(n&&(xo(u,"beforeCursorEnter"),u.explicitlyCleared)){if(s.markedSpans){--l;continue}break}if(!u.atomic)continue;var d=u.find(o<0?-1:1);if(0==Aa(d,a)&&(d.ch+=o,d.ch<0?d=d.line>e.first?fe(e,Ea(d.line-1)):null:d.ch>s.text.length&&(d=d.line3&&(n(p,m.top,null,m.bottom),p=c,m.bottoml.bottom||d.bottom==l.bottom&&d.right>l.right)&&(l=d),p0?t.blinker=setInterval(function(){t.cursorDiv.style.visibility=(i=!i)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Re(e,t){e.doc.mode.startState&&e.doc.frontier=e.display.viewTo)){var i=+new Date+e.options.workTime,n=Qa(t.mode,Fe(e,t.frontier)),r=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(a){if(t.frontier>=e.display.viewFrom){var o=a.styles,s=En(e,a,n,!0);a.styles=s.styles;var l=a.styleClasses,c=s.classes;c?a.styleClasses=c:l&&(a.styleClasses=null);for(var u=!o||o.length!=a.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),d=0;!u&&di)return Re(e,e.options.workDelay),!0}),r.length&&St(e,function(){for(var t=0;to;--s){if(s<=a.first)return a.first;var l=Hn(a,s-1);if(l.stateAfter&&(!i||s<=a.frontier))return s;var c=Io(l.text,null,e.options.tabSize);(null==r||n>c)&&(r=s-1,n=c)}return r}function Fe(e,t,i){var n=e.doc,r=e.display;if(!n.mode.startState)return!0;var a=ze(e,t,i),o=a>n.first&&Hn(n,a-1).stateAfter;return o=o?Qa(n.mode,o):Za(n.mode),n.iter(a,t,function(i){In(e,i.text,o);var s=a==t-1||a%5==0||a>=r.viewFrom&&a2&&a.push((l.bottom+c.top)/2-i.top)}}a.push(i.bottom-i.top)}}function Ge(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;ni)return{map:e.measure.maps[n],cache:e.measure.caches[n],before:!0}}function Ye(e,t){t=dn(t);var i=Yn(t),n=e.display.externalMeasured=new Dt(e.doc,t,i);n.lineN=i;var r=n.built=Mn(e,n);return n.text=r.pre,jr(e.display.lineMeasure,r.pre),n}function Ke(e,t,i,n){return Ze(e,Qe(e,t),i,n)}function Xe(e,t){if(t>=e.display.viewFrom&&t=i.lineN&&tt)&&(a=c-l,r=a-1,t>=c&&(o="right")),null!=r){if(n=e[s+2],l==c&&i==(n.insertLeft?"left":"right")&&(o=i),"left"==i&&0==r)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)n=e[2+(s-=3)],o="left";if("right"==i&&r==c-l)for(;s0&&(c=n="right");var d;r=e.options.lineWrapping&&(d=o.getClientRects()).length>1?d["right"==n?d.length-1:0]:o.getBoundingClientRect()}if(ca&&ua<9&&!s&&(!r||!r.left&&!r.right)){var h=o.parentNode.getClientRects()[0];r=h?{left:h.left,right:h.left+gt(e.display),top:h.top,bottom:h.bottom}:Oa}for(var p=r.top-t.rect.top,f=r.bottom-t.rect.top,m=(p+f)/2,g=t.view.measure.heights,u=0;ui.from?o(e-1):o(e,n)}n=n||Hn(e.doc,t.line),r||(r=Qe(e,n));var l=Qn(n),c=t.ch;if(!l)return o(c);var u=ia(l,c),d=s(c,u);return null!=Yo&&(d.other=s(c,Yo)),d}function dt(e,t){var i=0,t=fe(e.doc,t);e.options.lineWrapping||(i=gt(e.display)*t.ch);var n=Hn(e.doc,t.line),r=Xn(n)+Be(e.display);return{left:i,right:i,top:r,bottom:r+n.height}}function ht(e,t,i,n){var r=Ea(e,t);return r.xRel=n,i&&(r.outside=!0),r}function pt(e,t,i){var n=e.doc;if((i+=e.display.viewOffset)<0)return ht(n.first,0,!0,-1);var r=Kn(n,i),a=n.first+n.size-1;if(r>a)return ht(n.first+n.size-1,Hn(n,a).text.length,!0,1);t<0&&(t=0);for(var o=Hn(n,r);;){var s=ft(e,o,r,t,i),l=cn(o),c=l&&l.find(0,!0);if(!l||!(s.ch>c.from.ch||s.ch==c.from.ch&&s.xRel>0))return s;r=Yn(o=c.to.line)}}function ft(e,t,i,n,r){function a(n){var r=ut(e,Ea(i,n),"line",t,c);return s=!0,o>r.bottom?r.left-l:og)return ht(i,p,v,1);for(;;){if(u?p==h||p==ra(t,h,1):p-h<=1){for(var y=n1?1:0)}var b=Math.ceil(d/2),w=h+b;if(u){w=h;for(var x=0;xn?(p=w,g=k,(v=s)&&(g+=1e3),d=b):(h=w,f=k,m=s,d-=b)}}function mt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Da){Da=Pr("pre");for(var t=0;t<49;++t)Da.appendChild(document.createTextNode("x")),Da.appendChild(Pr("br"));Da.appendChild(document.createTextNode("x"))}jr(e.measure,Da);var i=Da.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),Rr(e.measure),i||1}function gt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=Pr("span","xxxxxxxxxx"),i=Pr("pre",[t]);jr(e.measure,i);var n=t.getBoundingClientRect(),r=(n.right-n.left)/10;return r>2&&(e.cachedCharWidth=r),r||10}function vt(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,id:++Pa},Na?Na.ops.push(e.curOp):e.curOp.ownsGroup=Na={ops:[e.curOp],delayedCallbacks:[]}}function yt(e){var t=e.delayedCallbacks,i=0;do{for(;i=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new T(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function xt(e){e.updatedDisplay=e.mustUpdate&&E(e.cm,e.update)}function kt(e){var t=e.cm,i=t.display;e.updatedDisplay&&M(t),e.barMeasure=f(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ke(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+qe(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-He(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function Ct(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(r.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=r.viewTo)Sa&&pn(e.doc,t)r.viewFrom?Nt(e):(r.viewFrom+=n,r.viewTo+=n);else if(t<=r.viewFrom&&i>=r.viewTo)Nt(e);else if(t<=r.viewFrom){var a=Rt(e,i,i+n,1);a?(r.view=r.view.slice(a.index),r.viewFrom=a.lineN,r.viewTo+=n):Nt(e)}else if(i>=r.viewTo){var a=Rt(e,t,t,-1);a?(r.view=r.view.slice(0,a.index),r.viewTo=a.lineN):Nt(e)}else{var o=Rt(e,t,t,-1),s=Rt(e,i,i+n,1);o&&s?(r.view=r.view.slice(0,o.index).concat(Mt(e,o.lineN,s.lineN)).concat(r.view.slice(s.index)),r.viewTo+=n):Nt(e)}var l=r.externalMeasured;l&&(i=r.lineN&&t=n.viewTo)){var a=n.view[Pt(e,t)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==Sr(o,i)&&o.push(i)}}}function Nt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Pt(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var i=e.display.view,n=0;n0){if(a==o.length-1)return null;r=l+o[a].size-t,a++}else r=l-t;t+=r,i+=r}for(;pn(e.doc,i)!=i;){if(a==(n<0?0:o.length-1))return null;i+=n*o[a-(n<0?1:0)].size,a+=n}return{index:a,lineN:i}}function jt(e,t,i){var n=e.display;0==n.view.length||t>=n.viewTo||i<=n.viewFrom?(n.view=Mt(e,t,i),n.viewFrom=t):(n.viewFrom>t?n.view=Mt(e,t,n.viewFrom).concat(n.view):n.viewFromi&&(n.view=n.view.slice(0,Pt(e,i)))),n.viewTo=i}function zt(e){for(var t=e.display.view,i=0,n=0;n400}function r(t){yr(e,t)||_o(t)}var a=e.display;bo(a.scroller,"mousedown",Et(e,qt)),ca&&ua<11?bo(a.scroller,"dblclick",Et(e,function(t){if(!yr(e,t)){var i=$t(e,t);if(i&&!Yt(e,t)&&!Ut(e.display,t)){vo(t);var n=e.findWordAt(i);_e(e.doc,n.anchor,n.head)}}})):bo(a.scroller,"dblclick",function(t){yr(e,t)||vo(t)}),Ca||bo(a.scroller,"contextmenu",function(t){di(e,t)});var o,s={end:0};bo(a.scroller,"touchstart",function(e){if(!i(e)){clearTimeout(o);var t=+new Date;a.activeTouch={start:t,moved:!1,prev:t-s.end<=300?s:null},1==e.touches.length&&(a.activeTouch.left=e.touches[0].pageX,a.activeTouch.top=e.touches[0].pageY)}}),bo(a.scroller,"touchmove",function(){a.activeTouch&&(a.activeTouch.moved=!0)}),bo(a.scroller,"touchend",function(i){var r=a.activeTouch;if(r&&!Ut(a,i)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,s=e.coordsChar(a.activeTouch,"page");o=!r.prev||n(r,r.prev)?new ue(s,s):!r.prev.prev||n(r,r.prev.prev)?e.findWordAt(s):new ue(Ea(s.line,0),fe(e.doc,Ea(s.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),vo(i)}t()}),bo(a.scroller,"touchcancel",t),bo(a.scroller,"scroll",function(){a.scroller.clientHeight&&(Qt(e,a.scroller.scrollTop),Zt(e,a.scroller.scrollLeft,!0),xo(e,"scroll",e))}),bo(a.scroller,"mousewheel",function(t){Jt(e,t)}),bo(a.scroller,"DOMMouseScroll",function(t){Jt(e,t)}),bo(a.wrapper,"scroll",function(){a.wrapper.scrollTop=a.wrapper.scrollLeft=0}),e.options.dragDrop&&(bo(a.scroller,"dragstart",function(t){Xt(e,t)}),bo(a.scroller,"dragenter",r),bo(a.scroller,"dragover",r),bo(a.scroller,"drop",Et(e,Kt)));var l=a.input.getField();bo(l,"keyup",function(t){si.call(e,t)}),bo(l,"keydown",Et(e,ai)),bo(l,"keypress",Et(e,li)),bo(l,"focus",Mr(ci,e)),bo(l,"blur",Mr(ui,e))}function Bt(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function Ut(e,t){for(var i=fr(t);i!=e.wrapper;i=i.parentNode)if(!i||1==i.nodeType&&"true"==i.getAttribute("cm-ignore-events")||i.parentNode==e.sizer&&i!=e.mover)return!0}function $t(e,t,i,n){var r=e.display;if(!i&&"true"==fr(t).getAttribute("cm-not-content"))return null;var a,o,s=r.lineSpace.getBoundingClientRect();try{a=t.clientX-s.left,o=t.clientY-s.top}catch(t){return null}var l,c=pt(e,a,o);if(n&&1==c.xRel&&(l=Hn(e.doc,c.line).text).length==c.ch){var u=Io(l,l.length,e.options.tabSize)-l.length;c=Ea(c.line,Math.max(0,Math.round((a-$e(e.display).left)/gt(e.display))-u))}return c}function qt(e){var t=this,i=t.display;if(!(i.activeTouch&&i.input.supportsTouch()||yr(t,e))){if(i.shift=e.shiftKey,Ut(i,e))return void(da||(i.scroller.draggable=!1,setTimeout(function(){i.scroller.draggable=!0},100)));if(!Yt(t,e)){var n=$t(t,e);switch(window.focus(),mr(e)){case 1:n?Ht(t,e,n):fr(e)==i.scroller&&vo(e);break;case 2:da&&(t.state.lastMiddleDown=+new Date),n&&_e(t.doc,n),setTimeout(function(){i.input.focus()},20),vo(e);break;case 3:Ca&&di(t,e)}}}}function Ht(e,t,i){ca?setTimeout(Mr(X,e),0):X(e);var n,r=+new Date;La&&La.time>r-400&&0==Aa(La.pos,i)?n="triple":Ma&&Ma.time>r-400&&0==Aa(Ma.pos,i)?(n="double",La={time:r,pos:i}):(n="single",Ma={time:r,pos:i});var a,o=e.doc.sel,s=ba?t.metaKey:t.ctrlKey;e.options.dragDrop&&$o&&!Q(e)&&"single"==n&&(a=o.contains(i))>-1&&!o.ranges[a].empty()?Wt(e,t,i,s):Vt(e,t,i,n,s)}function Wt(e,t,i,n){var r=e.display,a=Et(e,function(o){da&&(r.scroller.draggable=!1),e.state.draggingText=!1,wo(document,"mouseup",a),wo(r.scroller,"drop",a),Math.abs(t.clientX-o.clientX)+Math.abs(t.clientY-o.clientY)<10&&(vo(o),n||_e(e.doc,i),r.input.focus(),ca&&9==ua&&setTimeout(function(){document.body.focus(),r.input.focus()},20))});da&&(r.scroller.draggable=!0),e.state.draggingText=a,r.scroller.dragDrop&&r.scroller.dragDrop(),bo(document,"mouseup",a),bo(r.scroller,"drop",a)}function Vt(e,t,i,n,r){function a(t){if(0!=Aa(g,t))if(g=t,"rect"==n){for(var r=[],a=e.options.tabSize,o=Io(Hn(c,i.line).text,i.ch,a),s=Io(Hn(c,t.line).text,t.ch,a),l=Math.min(o,s),p=Math.max(o,s),f=Math.min(i.line,t.line),m=Math.min(e.lastLine(),Math.max(i.line,t.line));f<=m;f++){var v=Hn(c,f).text,y=kr(v,l,a);l==p?r.push(new ue(Ea(f,y),Ea(f,y))):v.length>y&&r.push(new ue(Ea(f,y),Ea(f,kr(v,p,a))))}r.length||r.push(new ue(i,i)),Te(c,de(h.ranges.slice(0,d).concat(r),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var _=u,b=_.anchor,w=t;if("single"!=n){if("double"==n)var x=e.findWordAt(t);else var x=new ue(Ea(t.line,0),fe(c,Ea(t.line+1,0)));Aa(x.anchor,b)>0?(w=x.head,b=K(_.from(),x.anchor)):(w=x.anchor,b=Y(_.to(),x.head))}var r=h.ranges.slice(0);r[d]=new ue(fe(c,b),w),Te(c,de(r,d),Eo)}}function o(t){var i=++y,r=$t(e,t,!0,"rect"==n);if(r)if(0!=Aa(r,g)){X(e),a(r);var s=b(l,c);(r.line>=s.to||r.linev.bottom?20:0;u&&setTimeout(Et(e,function(){ y==i&&(l.scroller.scrollTop+=u,o(t))}),50)}}function s(e){y=1/0,vo(e),l.input.focus(),wo(document,"mousemove",_),wo(document,"mouseup",w),c.history.lastSelOrigin=null}var l=e.display,c=e.doc;vo(t);var u,d,h=c.sel,p=h.ranges;if(r&&!t.shiftKey?(d=c.sel.contains(i),u=d>-1?p[d]:new ue(i,i)):u=c.sel.primary(),t.altKey)n="rect",r||(u=new ue(i,i)),i=$t(e,t,!0,!0),d=-1;else if("double"==n){var f=e.findWordAt(i);u=e.display.shift||c.extend?ye(c,u,f.anchor,f.head):f}else if("triple"==n){var m=new ue(Ea(i.line,0),fe(c,Ea(i.line+1,0)));u=e.display.shift||c.extend?ye(c,u,m.anchor,m.head):m}else u=ye(c,u,i);r?-1==d?(d=p.length,Te(c,de(p.concat([u]),d),{scroll:!1,origin:"*mouse"})):p.length>1&&p[d].empty()&&"single"==n?(Te(c,de(p.slice(0,d).concat(p.slice(d+1)),0)),h=c.sel):we(c,d,u,Eo):(d=0,Te(c,new ce([u],0),Eo),h=c.sel);var g=i,v=l.wrapper.getBoundingClientRect(),y=0,_=Et(e,function(e){mr(e)?o(e):s(e)}),w=Et(e,s);bo(document,"mousemove",_),bo(document,"mouseup",w)}function Gt(e,t,i,n,r){try{var a=t.clientX,o=t.clientY}catch(t){return!1}if(a>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&vo(t);var s=e.display,l=s.lineDiv.getBoundingClientRect();if(o>l.bottom||!br(e,i))return pr(t);o-=l.top-s.viewOffset;for(var c=0;c=a){return r(e,i,e,Kn(e.doc,o),e.options.gutters[c],t),pr(t)}}}function Yt(e,t){return Gt(e,t,"gutterClick",!0,gr)}function Kt(e){var t=this;if(!yr(t,e)&&!Ut(t.display,e)){vo(e),ca&&(Ra=+new Date);var i=$t(t,e,!0),n=e.dataTransfer.files;if(i&&!Q(t))if(n&&n.length&&window.FileReader&&window.File)for(var r=n.length,a=Array(r),o=0,s=0;s-1)return t.state.draggingText(e),void setTimeout(function(){t.display.input.focus()},20);try{var a=e.dataTransfer.getData("Text");if(a){if(t.state.draggingText&&!(ba?e.metaKey:e.ctrlKey))var l=t.listSelections();if(Se(t.doc,he(i,i)),l)for(var s=0;so.clientWidth||r&&o.scrollHeight>o.clientHeight){if(r&&ba&&da)e:for(var s=t.target,l=a.view;s!=o;s=s.parentNode)for(var c=0;c=0;--r)_i(e,{from:n[r].from,to:n[r].to,text:r?[""]:t.text});else _i(e,t)}}function _i(e,t){if(1!=t.text.length||""!=t.text[0]||0!=Aa(t.from,t.to)){var i=fi(e,t);ir(e,t,i,e.cm?e.cm.curOp.id:NaN),xi(e,t,i,Qi(e,t));var n=[];$n(e,function(e,i){i||-1!=Sr(n,e.history)||(hr(e.history,t),n.push(e.history)),xi(e,t,null,Qi(e,t))})}}function bi(e,t,i){if(!e.cm||!e.cm.state.suppressEdits){for(var n,r=e.history,a=e.sel,o="undo"==t?r.done:r.undone,s="undo"==t?r.undone:r.done,l=0;l=0;--l){var d=n.changes[l];if(d.origin=t,u&&!vi(e,d,!1))return void(o.length=0);c.push(Jn(e,d));var h=l?fi(e,d):Tr(o);xi(e,d,h,Ji(e,d)),!l&&e.cm&&e.cm.scrollIntoView({from:d.from,to:$a(d)});var p=[];$n(e,function(e,t){t||-1!=Sr(p,e.history)||(hr(e.history,d),p.push(e.history)),xi(e,d,null,Ji(e,d))})}}}}function wi(e,t){if(0!=t&&(e.first+=t,e.sel=new ce(Er(e.sel.ranges,function(e){return new ue(Ea(e.anchor.line+t,e.anchor.ch),Ea(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){Lt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,n=i.viewFrom;ne.lastLine())){if(t.from.linea&&(t={from:t.from,to:Ea(a,Hn(e,a).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Wn(e,t.from,t.to),i||(i=fi(e,t)),e.cm?ki(e.cm,t,n):Fn(e,t,n),Se(e,i,So)}}function ki(e,t,i){var n=e.doc,r=e.display,o=t.from,s=t.to,l=!1,c=o.line;e.options.lineWrapping||(c=Yn(dn(Hn(n,o.line))),n.iter(c,s.line+1,function(e){if(e==r.maxLine)return l=!0,!0})),n.sel.contains(t.from,t.to)>-1&&_r(e),Fn(n,t,i,a(e)),e.options.lineWrapping||(n.iter(c,o.line+t.text.length,function(e){var t=d(e);t>r.maxLineLength&&(r.maxLine=e,r.maxLineLength=t,r.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),n.frontier=Math.min(n.frontier,o.line),Re(e,400);var u=t.text.length-(s.line-o.line)-1;t.full?Lt(e):o.line!=s.line||1!=t.text.length||zn(e.doc,t)?Lt(e,o.line,s.line+1,u):Ot(e,o.line,"text");var h=br(e,"changes"),p=br(e,"change");if(p||h){var f={from:o,to:s,text:t.text,removed:t.removed,origin:t.origin};p&&gr(e,"change",e,f),h&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function Ci(e,t,i,n,r){if(n||(n=i),Aa(n,i)<0){var a=n;n=i,i=a}"string"==typeof t&&(t=qo(t)),yi(e,{from:i,to:n,text:t,origin:r})}function Ti(e,t){if(!yr(e,"scrollCursorIntoView")){var i=e.display,n=i.sizer.getBoundingClientRect(),r=null;if(t.top+n.top<0?r=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!va){var a=Pr("div","​",null,"position: absolute; top: "+(t.top-i.viewOffset-Be(e.display))+"px; height: "+(t.bottom-t.top+qe(e)+i.barHeight)+"px; left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(r),e.display.lineSpace.removeChild(a)}}}function Si(e,t,i,n){null==n&&(n=0);for(var r=0;r<5;r++){var a=!1,o=ut(e,t),s=i&&i!=t?ut(e,i):o,l=Ai(e,Math.min(o.left,s.left),Math.min(o.top,s.top)-n,Math.max(o.left,s.left),Math.max(o.bottom,s.bottom)+n),c=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=l.scrollTop&&(Qt(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=l.scrollLeft&&(Zt(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(a=!0)),!a)break}return o}function Ei(e,t,i,n,r){var a=Ai(e,t,i,n,r);null!=a.scrollTop&&Qt(e,a.scrollTop),null!=a.scrollLeft&&Zt(e,a.scrollLeft)}function Ai(e,t,i,n,r){var a=e.display,o=mt(e.display);i<0&&(i=0);var s=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:a.scroller.scrollTop,l=We(e),c={};r-i>l&&(r=i+l);var u=e.doc.height+Ue(a),d=iu-o;if(is+l){var p=Math.min(i,(h?u:r)-l);p!=s&&(c.scrollTop=p)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:a.scroller.scrollLeft,m=He(e)-(e.options.fixedGutter?a.gutters.offsetWidth:0),g=n-t>m;return g&&(n=t+m),t<10?c.scrollLeft=0:tm+f-3&&(c.scrollLeft=n+(g?0:10)-m),c}function Ii(e,t,i){null==t&&null==i||Mi(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=i&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+i)}function Di(e){Mi(e);var t=e.getCursor(),i=t,n=t;e.options.lineWrapping||(i=t.ch?Ea(t.line,t.ch-1):t,n=Ea(t.line,t.ch+1)),e.curOp.scrollToPos={from:i,to:n,margin:e.options.cursorScrollMargin,isCursor:!0}}function Mi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=dt(e,t.from),n=dt(e,t.to),r=Ai(e,Math.min(i.left,n.left),Math.min(i.top,n.top)-t.margin,Math.max(i.right,n.right),Math.max(i.bottom,n.bottom)+t.margin);e.scrollTo(r.scrollLeft,r.scrollTop)}}function Li(e,t,i,n){var r,a=e.doc;null==i&&(i="add"),"smart"==i&&(a.mode.indent?r=Fe(e,t):i="prev");var o=e.options.tabSize,s=Hn(a,t),l=Io(s.text,null,o);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==i&&((c=a.mode.indent(r,s.text.slice(u.length),s.text))==To||c>150)){if(!n)return;i="prev"}}else c=0,i="not";"prev"==i?c=t>a.first?Io(Hn(a,t-1).text,null,o):0:"add"==i?c=l+e.options.indentUnit:"subtract"==i?c=l-e.options.indentUnit:"number"==typeof i&&(c=l+i),c=Math.max(0,c);var d="",h=0;if(e.options.indentWithTabs)for(var p=Math.floor(c/o);p;--p)h+=o,d+="\t";if(h=0;t--)Ci(e.doc,"",n[t].from,n[t].to,"+delete");Di(e)})}function Pi(e,t,i,n,r){function a(){var t=s+i;return t=e.first+e.size?d=!1:(s=t,u=Hn(e,t))}function o(e){var t=(r?ra:aa)(u,l,i,!0);if(null==t){if(e||!a())return d=!1;l=r?(i<0?Qr:Xr)(u):i<0?u.text.length:0}else l=t;return!0}var s=t.line,l=t.ch,c=i,u=Hn(e,s),d=!0;if("char"==n)o();else if("column"==n)o(!0);else if("word"==n||"group"==n)for(var h=null,p="group"==n,f=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(i<0)||o(!m);m=!1){var g=u.text.charAt(l)||"\n",v=Lr(g,f)?"w":p&&"\n"==g?"n":!p||/\s/.test(g)?null:"p";if(!p||m||v||(v="s"),h&&h!=v){i<0&&(i=1,o());break}if(v&&(h=v),i>0&&!o(!m))break}var y=De(e,Ea(s,l),c,!0);return d||(y.hitSide=!0),y}function Ri(e,t,i,n){var r,a=e.doc,o=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);r=t.top+i*(s-(i<0?1.5:.5)*mt(e.display))}else"line"==n&&(r=i>0?t.bottom+3:t.top-3);for(;;){var l=pt(e,o,r);if(!l.outside)break;if(i<0?r<=0:r>=a.height){l.hitSide=!0;break}r+=5*i}return l}function ji(t,i,n,r){e.defaults[t]=i,n&&(Ha[t]=r?function(e,t,i){i!=Wa&&n(e,t,i)}:n)}function zi(e){for(var t,i,n,r,a=e.split(/-(?!$)/),e=a[a.length-1],o=0;o0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=Pr("span",[a.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(un(e,t.line,t,i,a)||t.line!=i.line&&un(e,i.line,t,i,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");Sa=!0}a.addToHistory&&ir(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var s,l=t.line,c=e.cm;if(e.iter(l,i.line+1,function(e){c&&a.collapsed&&!c.options.lineWrapping&&dn(e)==c.display.maxLine&&(s=!0),a.collapsed&&l!=t.line&&Gn(e,0),Yi(e,new Wi(a,l==t.line?t.ch:null,l==i.line?i.ch:null)),++l}),a.collapsed&&e.iter(t.line,i.line+1,function(t){mn(e,t)&&Gn(t,0)}),a.clearOnEnter&&bo(a,"beforeCursorEnter",function(){a.clear()}),a.readOnly&&(Ta=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++ao,a.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),a.collapsed)Lt(c,t.line,i.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var u=t.line;u<=i.line;u++)Ot(c,u,"text");a.atomic&&Ae(c.doc),gr(c,"markerAdded",c,a)}return a}function Ui(e,t,i,n,r){n=Dr(n),n.shared=!1;var a=[Bi(e,t,i,n,r)],o=a[0],s=n.widgetNode;return $n(e,function(e){s&&(n.widgetNode=s.cloneNode(!0)),a.push(Bi(e,fe(e,t),fe(e,i),n,r));for(var l=0;l=t:a.to>t);(n||(n=[])).push(new Wi(o,a.from,l?null:a.to))}}return n}function Xi(e,t,i){if(e)for(var n,r=0;r=t:a.to>t);if(s||a.from==t&&"bookmark"==o.type&&(!i||a.marker.insertLeft)){var l=null==a.from||(o.inclusiveLeft?a.from<=t:a.from0&&s)for(var d=0;d0)){var u=[l,1],d=Aa(c.from,s.from),h=Aa(c.to,s.to);(d<0||!o.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(h>0||!o.inclusiveRight&&!h)&&u.push({from:s.to,to:c.to}),r.splice.apply(r,u),l+=u.length-1}}return r}function tn(e){var t=e.markedSpans;if(t){for(var i=0;i=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(Aa(c.to,i)>0||l.marker.inclusiveRight&&r.inclusiveLeft)||u>=0&&(Aa(c.from,n)<0||l.marker.inclusiveLeft&&r.inclusiveRight)))return!0}}}function dn(e){for(var t;t=ln(e);)e=t.find(-1,!0).line;return e}function hn(e){for(var t,i;t=cn(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function pn(e,t){var i=Hn(e,t),n=dn(i);return i==n?t:Yn(n)}function fn(e,t){if(t>e.lastLine())return t;var i,n=Hn(e,t);if(!mn(e,n))return t;for(;i=cn(n);)n=i.find(1,!0).line;return Yn(n)+1}function mn(e,t){var i=Sa&&t.markedSpans;if(i)for(var n,r=0;ri.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}function Tn(e,t,i,n){function r(e){return{start:d.start,end:d.pos,string:d.current(),type:a||null,state:e?Qa(o.mode,u):u}}var a,o=e.doc,s=o.mode;t=fe(o,t);var l,c=Hn(o,t.line),u=Fe(e,t.line,i),d=new ro(c.text,e.options.tabSize);for(n&&(l=[]);(n||d.pose.options.maxHighlightLength?(s=!1,o&&In(e,t,n,d.pos),d.pos=t.length,l=null):l=xn(Cn(i,d,n,h),a),h){var p=h[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||u!=l){for(;ce&&r.splice(l,1,e,r[l+1],n),l+=2,c=Math.min(e,n)}if(t)if(s.opaque)r.splice(i,l-i,e,"cm-overlay "+t),l=i+2;else for(;il&&d.from<=l)break}if(d.to>=c)return e(i,n,r,a,o,s);e(i,n.slice(0,d.to-l),r,a,null,s),a=null,n=n.slice(d.to-l),l=d.to}}}function Rn(e,t,i,n){var r=!n&&i.widgetNode;r&&e.map.push(e.pos,e.pos+t,r),!n&&e.cm.display.input.needsContentAttribute&&(r||(r=e.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",i.id)),r&&(e.cm.display.input.setUneditable(r),e.content.appendChild(r)),e.pos+=t}function jn(e,t,i){var n=e.markedSpans,r=e.text,a=0;if(n)for(var o,s,l,c,u,d,h,p=r.length,f=0,m=1,g="",v=0;;){if(v==f){l=c=u=d=s="",h=null,v=1/0;for(var y=[],_=0;_f)?(null!=b.to&&v>b.to&&(v=b.to,c=""),w.className&&(l+=" "+w.className),w.css&&(s=w.css),w.startStyle&&b.from==f&&(u+=" "+w.startStyle),w.endStyle&&b.to==v&&(c+=" "+w.endStyle),w.title&&!d&&(d=w.title),w.collapsed&&(!h||on(h.marker,w)<0)&&(h=b)):b.from>f&&v>b.from&&(v=b.from),"bookmark"==w.type&&b.from==f&&w.widgetNode&&y.push(w)}if(h&&(h.from||0)==f&&(Rn(t,(null==h.to?p+1:h.to)-f,h.marker,null==h.from),null==h.to))return;if(!h&&y.length)for(var _=0;_=p)break;for(var x=Math.min(p,v);;){if(g){var k=f+g.length;if(!h){var C=k>x?g.slice(0,x-f):g;t.addToken(t,C,o?o+l:l,u,f+C.length==v?c:"",d,s)}if(k>=x){g=g.slice(x-f),f=x;break}f=k,u=""}g=r.slice(a,a=i[m++]),o=Dn(i[m++],t.cm.options)}}else for(var m=1;m1&&e.remove(s.line+1,f-1),e.insert(s.line+1,m)}gr(e,"change",e,t)}function Bn(e){this.lines=e,this.parent=null;for(var t=0,i=0;t=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var n=0;;++n){var r=i.children[n],a=r.chunkSize();if(t1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Tr(e.done)):void 0}function ir(e,t,i,n){var r=e.history;r.undone.length=0;var a,o=+new Date;if((r.lastOp==n||r.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&r.lastModTime>o-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(a=tr(r,r.lastOp==n))){var s=Tr(a.changes);0==Aa(t.from,t.to)&&0==Aa(t.from,s.to)?s.to=$a(t):a.changes.push(Jn(e,t))}else{var l=Tr(r.done);for(l&&l.ranges||ar(e.sel,r.done),a={changes:[Jn(e,t)],generation:r.generation},r.done.push(a);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(i),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=o,r.lastOp=r.lastSelOp=n,r.lastOrigin=r.lastSelOrigin=t.origin,s||xo(e,"historyAdded")}function nr(e,t,i,n){var r=t.charAt(0);return"*"==r||"+"==r&&i.ranges.length==n.ranges.length&&i.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function rr(e,t,i,n){var r=e.history,a=n&&n.origin;i==r.lastSelOp||a&&r.lastSelOrigin==a&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==a||nr(e,a,Tr(r.done),t))?r.done[r.done.length-1]=t:ar(t,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=a,r.lastSelOp=i,n&&!1!==n.clearRedo&&er(r.undone)}function ar(e,t){var i=Tr(t);i&&i.ranges&&i.equals(e)||t.push(e)}function or(e,t,i,n){var r=t["spans_"+e.id],a=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,n),function(i){i.markedSpans&&((r||(r=t["spans_"+e.id]={}))[a]=i.markedSpans),++a})}function sr(e){if(!e)return null;for(var t,i=0;i-1&&(Tr(s)[d]=u[d],delete u[d])}}}return r}function ur(e,t,i,n){i0}function wr(e){e.prototype.on=function(e,t){bo(this,e,t)},e.prototype.off=function(e,t){wo(this,e,t)}}function xr(){this.id=null}function kr(e,t,i){for(var n=0,r=0;;){var a=e.indexOf("\t",n);-1==a&&(a=e.length);var o=a-n;if(a==e.length||r+o>=t)return n+Math.min(o,t-r);if(r+=a-n,r+=i-r%i,n=a+1,r>=t)return n}}function Cr(e){for(;Do.length<=e;)Do.push(Tr(Do)+" ");return Do[e]}function Tr(e){return e[e.length-1]}function Sr(e,t){for(var i=0;i-1&&No(e))||t.test(e):No(e)}function Or(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function Nr(e){return e.charCodeAt(0)>=768&&Po.test(e)}function Pr(e,t,i,n){var r=document.createElement(e);if(i&&(r.className=i),n&&(r.style.cssText=n),"string"==typeof t)r.appendChild(document.createTextNode(t));else if(t)for(var a=0;a0;--t)e.removeChild(e.firstChild);return e}function jr(e,t){return Rr(e).appendChild(t)}function zr(){return document.activeElement}function Fr(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function Br(e,t){for(var i=e.split(" "),n=0;n2&&!(ca&&ua<8))}var i=jo?Pr("span","​"):Pr("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function Wr(e){if(null!=zo)return zo;var t=jr(e,document.createTextNode("AخA")),i=Lo(t,0,1).getBoundingClientRect();if(!i||i.left==i.right)return!1;var n=Lo(t,1,2).getBoundingClientRect();return zo=n.right-i.right<3}function Vr(e){if(null!=Vo)return Vo;var t=jr(e,Pr("span","x")),i=t.getBoundingClientRect(),n=Lo(t,0,1).getBoundingClientRect();return Vo=Math.abs(i.left-n.left)>1}function Gr(e,t,i,n){if(!e)return n(t,i,"ltr");for(var r=!1,a=0;at||t==i&&o.to==t)&&(n(Math.max(o.from,t),Math.min(o.to,i),1==o.level?"rtl":"ltr"),r=!0)}r||n(t,i,"ltr")}function Yr(e){return e.level%2?e.to:e.from}function Kr(e){return e.level%2?e.from:e.to}function Xr(e){var t=Qn(e);return t?Yr(t[0]):0}function Qr(e){var t=Qn(e);return t?Kr(Tr(t)):e.text.length}function Zr(e,t){var i=Hn(e.doc,t),n=dn(i);n!=i&&(t=Yn(n));var r=Qn(n),a=r?r[0].level%2?Qr(n):Xr(n):0;return Ea(t,a)}function Jr(e,t){for(var i,n=Hn(e.doc,t);i=cn(n);)n=i.find(1,!0).line,t=null;var r=Qn(n),a=r?r[0].level%2?Xr(n):Qr(n):n.text.length;return Ea(null==t?Yn(n):t,a)}function ea(e,t){var i=Zr(e,t.line),n=Hn(e.doc,i.line),r=Qn(n);if(!r||0==r[0].level){var a=Math.max(0,n.text.search(/\S/)),o=t.line==i.line&&t.ch<=a&&t.ch;return Ea(i.line,o?0:a)}return i}function ta(e,t,i){var n=e[0].level;return t==n||i!=n&&tt)return n;if(r.from==t||r.to==t){if(null!=i)return ta(e,r.level,e[i].level)?(r.from!=r.to&&(Yo=i),n):(r.from!=r.to&&(Yo=n),i);i=n}}return i}function na(e,t,i,n){if(!n)return t+i;do{t+=i}while(t>0&&Nr(e.text.charAt(t)));return t}function ra(e,t,i,n){var r=Qn(e);if(!r)return aa(e,t,i,n);for(var a=ia(r,t),o=r[a],s=na(e,t,o.level%2?-i:i,n);;){if(s>o.from&&s0==o.level%2?o.to:o.from);if(!(o=r[a+=i]))return null;s=i>0==o.level%2?na(e,o.to,-1,n):na(e,o.from,1,n)}}function aa(e,t,i,n){var r=t+i;if(n)for(;r>0&&Nr(e.text.charAt(r));)r+=i;return r<0||r>e.text.length?null:r}var oa=/gecko\/\d/i.test(navigator.userAgent),sa=/MSIE \d/.test(navigator.userAgent),la=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),ca=sa||la,ua=ca&&(sa?document.documentMode||6:la[1]),da=/WebKit\//.test(navigator.userAgent),ha=da&&/Qt\/\d+\.\d+/.test(navigator.userAgent),pa=/Chrome\//.test(navigator.userAgent),fa=/Opera\//.test(navigator.userAgent),ma=/Apple Computer/.test(navigator.vendor),ga=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent),va=/PhantomJS/.test(navigator.userAgent),ya=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),_a=ya||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent),ba=ya||/Mac/.test(navigator.platform),wa=/win/i.test(navigator.platform),xa=fa&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);xa&&(xa=Number(xa[1])),xa&&xa>=15&&(fa=!1,da=!0);var ka=ba&&(ha||fa&&(null==xa||xa<12.11)),Ca=oa||ca&&ua>=9,Ta=!1,Sa=!1;m.prototype=Dr({update:function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var r=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var a=e.viewWidth-e.barLeft-(i?n:0);this.horiz.firstChild.style.width=e.scrollWidth-e.clientWidth+a+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedOverlay&&e.clientHeight>0&&(0==n&&this.overlayHack(),this.checkedOverlay=!0),{right:i?n:0,bottom:t?n:0}},setScrollLeft:function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e)},setScrollTop:function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e)},overlayHack:function(){var e=ba&&!ga?"12px":"18px";this.horiz.style.minHeight=this.vert.style.minWidth=e;var t=this,i=function(e){fr(e)!=t.vert&&fr(e)!=t.horiz&&Et(t.cm,qt)(e)};bo(this.vert,"mousedown",i),bo(this.horiz,"mousedown",i)},clear:function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)}},m.prototype),g.prototype=Dr({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},g.prototype),e.scrollbarModel={native:m,null:g},T.prototype.signal=function(e,t){br(e,t)&&this.events.push(arguments)},T.prototype.finish=function(){for(var e=0;e=9&&i.hasSelection&&(i.hasSelection=null),i.poll()}),bo(a,"paste",function(){if(da&&!n.state.fakedLastChar&&!(new Date-n.state.lastMiddleDown<200)){var e=a.selectionStart,t=a.selectionEnd;a.value+="$",a.selectionEnd=t,a.selectionStart=e,n.state.fakedLastChar=!0}n.state.pasteIncoming=!0,i.fastPoll()}),bo(a,"cut",t),bo(a,"copy",t),bo(e.scroller,"paste",function(t){Ut(e,t)||(n.state.pasteIncoming=!0,i.focus())}),bo(e.lineSpace,"selectstart",function(t){Ut(e,t)||vo(t)})},prepareSelection:function(){var e=this.cm,t=e.display,i=e.doc,n=Le(e);if(e.options.moveInputWithCursor){var r=ut(e,i.sel.primary().head,"div"),a=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,r.top+o.top-a.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,r.left+o.left-a.left))}return n},showSelection:function(e){var t=this.cm,i=t.display;jr(i.cursorDiv,e.cursors),jr(i.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},reset:function(e){if(!this.contextMenuPending){var t,i,n=this.cm,r=n.doc;if(n.somethingSelected()){this.prevInput="";var a=r.sel.primary();t=Wo&&(a.to().line-a.from().line>100||(i=n.getSelection()).length>1e3);var o=t?"-":i||n.getSelection();this.textarea.value=o,n.state.focused&&Mo(this.textarea),ca&&ua>=9&&(this.hasSelection=o)}else e||(this.prevInput=this.textarea.value="",ca&&ua>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!_a||zr()!=this.textarea))try{this.textarea.focus()}catch(e){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var e=this;e.pollingFast||e.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},fastPoll:function(){function e(){i.poll()||t?(i.pollingFast=!1,i.slowPoll()):(t=!0,i.polling.set(60,e))}var t=!1,i=this;i.pollingFast=!0,i.polling.set(20,e)},poll:function(){var e=this.cm,t=this.textarea,i=this.prevInput;if(!e.state.focused||Ho(t)&&!i||Q(e)||e.options.disableInput||e.state.keySeq)return!1;e.state.pasteIncoming&&e.state.fakedLastChar&&(t.value=t.value.substring(0,t.value.length-1),e.state.fakedLastChar=!1);var n=t.value;if(n==i&&!e.somethingSelected())return!1;if(ca&&ua>=9&&this.hasSelection===n||ba&&/[\uf700-\uf7ff]/.test(n))return e.display.input.reset(),!1;8203!=n.charCodeAt(0)||e.doc.sel!=e.display.selForContextMenu||i||(i="​");for(var r=0,a=Math.min(i.length,n.length);r1e3||n.indexOf("\n")>-1?t.value=o.prevInput="":o.prevInput=n}),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){ca&&ua>=9&&(this.hasSelection=null),this.fastPoll()},onContextMenu:function(e){function t(){if(null!=o.selectionStart){var e=r.somethingSelected(),t=o.value="​"+(e?o.value:"");n.prevInput=e?"":"​",o.selectionStart=1,o.selectionEnd=t.length,a.selForContextMenu=r.doc.sel}}function i(){if(n.contextMenuPending=!1,n.wrapper.style.position="relative",o.style.cssText=c,ca&&ua<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=l),null!=o.selectionStart){(!ca||ca&&ua<9)&&t();var e=0,i=function(){a.selForContextMenu==r.doc.sel&&0==o.selectionStart?Et(r,Ja.selectAll)(r):e++<10?a.detectingSelectAll=setTimeout(i,500):a.input.reset()};a.detectingSelectAll=setTimeout(i,200)}}var n=this,r=n.cm,a=r.display,o=n.textarea,s=$t(r,e),l=a.scroller.scrollTop;if(s&&!fa){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(s)&&Et(r,Te)(r.doc,he(s),So);var c=o.style.cssText;if(n.wrapper.style.position="absolute",o.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(e.clientY-5)+"px; left: "+(e.clientX-5)+"px; z-index: 1000; background: "+(ca?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",da)var u=window.scrollY;if(a.input.focus(),da&&window.scrollTo(null,u),a.input.reset(),r.somethingSelected()||(o.value=n.prevInput=" "),n.contextMenuPending=!0,a.selForContextMenu=r.doc.sel,clearTimeout(a.detectingSelectAll),ca&&ua>=9&&t(),Ca){_o(e);var d=function(){wo(window,"mouseup",d),setTimeout(i,20)};bo(window,"mouseup",d)}else setTimeout(i,50)}},setUneditable:Ar,needsContentAttribute:!1},te.prototype),ne.prototype=Dr({init:function(e){function t(e){if(n.somethingSelected())Ia=n.getSelections(),"cut"==e.type&&n.replaceSelection("",null,"cut");else{var t=J(n);Ia=t.text,"cut"==e.type&&n.operation(function(){n.setSelections(t.ranges,0,So),n.replaceSelection("",null,"cut")})}if(e.clipboardData&&!ya)e.preventDefault(),e.clipboardData.clearData(),e.clipboardData.setData("text/plain",Ia.join("\n"));else{var i=ie(),r=i.firstChild;n.display.lineSpace.insertBefore(i,n.display.lineSpace.firstChild),r.value=Ia.join("\n");var a=document.activeElement;Mo(r),setTimeout(function(){n.display.lineSpace.removeChild(i),a.focus()},50)}}var i=this,n=i.cm,r=i.div=e.lineDiv;r.contentEditable="true",ee(r),bo(r,"paste",function(e){var t=e.clipboardData&&e.clipboardData.getData("text/plain");t&&(e.preventDefault(),n.replaceSelection(t,null,"paste"))}),bo(r,"compositionstart",function(e){var t=e.data;if(i.composing={sel:n.doc.sel,data:t,startData:t},t){var r=n.doc.sel.primary(),a=n.getLine(r.head.line),o=a.indexOf(t,Math.max(0,r.head.ch-t.length));o>-1&&o<=r.head.ch&&(i.composing.sel=he(Ea(r.head.line,o),Ea(r.head.line,o+t.length)))}}),bo(r,"compositionupdate",function(e){i.composing.data=e.data}),bo(r,"compositionend",function(e){var t=i.composing;t&&(e.data==t.startData||/\u200b/.test(e.data)||(t.data=e.data),setTimeout(function(){t.handled||i.applyComposition(t),i.composing==t&&(i.composing=null)},50))}),bo(r,"touchstart",function(){i.forceCompositionEnd()}),bo(r,"input",function(){i.composing||i.pollContent()||St(i.cm,function(){Lt(n)})}),bo(r,"copy",t),bo(r,"cut",t)},prepareSelection:function(){var e=Le(this.cm,!1);return e.focus=this.cm.state.focused,e},showSelection:function(e){e&&this.cm.display.view.length&&(e.focus&&this.showPrimarySelection(),this.showMultipleSelections(e))},showPrimarySelection:function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),i=oe(this.cm,e.anchorNode,e.anchorOffset),n=oe(this.cm,e.focusNode,e.focusOffset);if(!i||i.bad||!n||n.bad||0!=Aa(K(i,n),t.from())||0!=Aa(Y(i,n),t.to())){var r=re(this.cm,t.from()),a=re(this.cm,t.to());if(r||a){var o=this.cm.display.view,s=e.rangeCount&&e.getRangeAt(0);if(r){if(!a){var l=o[o.length-1].measure,c=l.maps?l.maps[l.maps.length-1]:l.map;a={node:c[c.length-1],offset:c[c.length-2]-c[c.length-3]}}}else r={node:o[0].measure.map[2],offset:0};try{var u=Lo(r.node,r.offset,a.offset,a.node)}catch(e){}u&&(e.removeAllRanges(),e.addRange(u),s&&null==e.anchorNode&&e.addRange(s)),this.rememberSelection()}}},showMultipleSelections:function(e){jr(this.cm.display.cursorDiv,e.cursors),jr(this.cm.display.selectionDiv,e.selection)},rememberSelection:function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},selectionInEditor:function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return Ro(this.div,t)},focus:function(){"nocursor"!=this.cm.options.readOnly&&this.div.focus()},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():St(this.cm,function(){t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},pollSelection:function(){if(!this.composing){var e=window.getSelection(),t=this.cm;if(e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset){this.rememberSelection();var i=oe(t,e.anchorNode,e.anchorOffset),n=oe(t,e.focusNode,e.focusOffset);i&&n&&St(t,function(){Te(t.doc,he(i,n),So),(i.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},pollContent:function(){var e=this.cm,t=e.display,i=e.doc.sel.primary(),n=i.from(),r=i.to();if(n.linet.viewTo-1)return!1;var a;if(n.line==t.viewFrom||0==(a=Pt(e,n.line)))var o=Yn(t.view[0].line),s=t.view[0].node;else var o=Yn(t.view[a].line),s=t.view[a-1].node.nextSibling;var l=Pt(e,r.line);if(l==t.view.length-1)var c=t.viewTo-1,u=t.view[l].node;else var c=Yn(t.view[l+1].line)-1,u=t.view[l+1].node.previousSibling;for(var d=qo(le(e,s,u,o,c)),h=Wn(e.doc,Ea(o,0),Ea(c,Hn(e.doc,c).text.length));d.length>1&&h.length>1;)if(Tr(d)==Tr(h))d.pop(),h.pop(),c--;else{if(d[0]!=h[0])break;d.shift(),h.shift(),o++}for(var p=0,f=0,m=d[0],g=h[0],v=Math.min(m.length,g.length);p1||d[0]||Aa(w,x)?(Ci(e.doc,d,w,x,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&!this.composing.handled&&(this.applyComposition(this.composing),this.composing.handled=!0,this.div.blur(),this.div.focus())},applyComposition:function(e){e.data&&e.data!=e.startData&&Et(this.cm,Z)(this.cm,e.data,0,e.sel)},setUneditable:function(e){e.setAttribute("contenteditable","false")},onKeyPress:function(e){e.preventDefault(),Et(this.cm,Z)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0)},onContextMenu:Ar,resetPosition:Ar,needsContentAttribute:!0},ne.prototype),e.inputStyles={textarea:te,contenteditable:ne},ce.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t=0&&Aa(e,n.to())<=0)return i}return-1}},ue.prototype={from:function(){return K(this.anchor,this.head)},to:function(){return Y(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var Da,Ma,La,Oa={left:0,right:0,top:0,bottom:0},Na=null,Pa=0,Ra=0,ja=0,za=null;ca?za=-.53:oa?za=15:pa?za=-.7:ma&&(za=-1/3);var Fa=function(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==i&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:null==i&&(i=e.wheelDelta),{x:t,y:i}};e.wheelEventPixels=function(e){var t=Fa(e);return t.x*=za,t.y*=za,t};var Ba=new xr,Ua=null,$a=e.changeEnd=function(e){return e.text?Ea(e.from.line+e.text.length-1,Tr(e.text).length+(1==e.text.length?e.from.ch:0)):e.to};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){var i=this.options,n=i[e];i[e]==t&&"mode"!=e||(i[e]=t,Ha.hasOwnProperty(e)&&Et(this,Ha[e])(this,t,n))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Fi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,i=0;ii&&(Li(this,r.head.line,e,!0),i=r.head.line,n==this.doc.sel.primIndex&&Di(this));else{var a=r.from(),o=r.to(),s=Math.max(i,a.line);i=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var l=s;l0&&we(this.doc,n,new ue(a,c[n].to()),So)}}}),getTokenAt:function(e,t){return Tn(this,e,t)},getLineTokens:function(e,t){return Tn(this,Ea(e),t,!0)},getTokenTypeAt:function(e){e=fe(this.doc,e);var t,i=An(this,Hn(this.doc,e.line)),n=0,r=(i.length-1)/2,a=e.ch;if(0==a)t=i[2];else for(;;){var o=n+r>>1;if((o?i[2*o-1]:0)>=a)r=o;else{if(!(i[2*o+1]n&&(e=n,i=!0);var r=Hn(this.doc,e);return st(this,r,{top:0,left:0},t||"page").top+(i?this.doc.height-Xn(r):0)},defaultTextHeight:function(){return mt(this.display)},defaultCharWidth:function(){return gt(this.display)},setGutterMarker:At(function(e,t,i){return Oi(this.doc,e,"gutter",function(e){var n=e.gutterMarkers||(e.gutterMarkers={});return n[t]=i,!i&&Or(n)&&(e.gutterMarkers=null),!0})}),clearGutter:At(function(e){var t=this,i=t.doc,n=i.first;i.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&(i.gutterMarkers[e]=null,Ot(t,n,"gutter"),Or(i.gutterMarkers)&&(i.gutterMarkers=null)),++n})}),addLineWidget:At(function(e,t,i){return _n(this,e,t,i)}),removeLineWidget:function(e){e.clear()},lineInfo:function(e){if("number"==typeof e){if(!ge(this.doc,e))return null;var t=e;if(!(e=Hn(this.doc,e)))return null}else{var t=Yn(e);if(null==t)return null}return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,i,n,r){var a=this.display;e=ut(this,fe(this.doc,e));var o=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==n)o=e.top;else if("above"==n||"near"==n){var l=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?o=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(o=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=o+"px",t.style.left=t.style.right="","right"==r?(s=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==r?s=0:"middle"==r&&(s=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),i&&Ei(this,s,o,s+t.offsetWidth,o+t.offsetHeight)},triggerOnKeyDown:At(ai),triggerOnKeyPress:At(li),triggerOnKeyUp:si,execCommand:function(e){if(Ja.hasOwnProperty(e))return Ja[e](this)},findPosH:function(e,t,i,n){var r=1;t<0&&(r=-1,t=-t);for(var a=0,o=fe(this.doc,e);a0&&s(i.charAt(n-1));)--n ;for(;r.5)&&o(this),xo(this,"refresh",this)}),swapDoc:At(function(e){var t=this.doc;return t.cm=null,qn(this,e),rt(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,gr(this,"swapDoc",this,t),t}),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}},wr(e);var qa=e.defaults={},Ha=e.optionHandlers={},Wa=e.Init={toString:function(){return"CodeMirror.Init"}};ji("value","",function(e,t){e.setValue(t)},!0),ji("mode",null,function(e,t){e.doc.modeOption=t,i(e)},!0),ji("indentUnit",2,i,!0),ji("indentWithTabs",!1),ji("smartIndent",!0),ji("tabSize",4,function(e){n(e),rt(e),Lt(e)},!0),ji("specialChars",/[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t){e.options.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),e.refresh()},!0),ji("specialCharPlaceholder",Ln,function(e){e.refresh()},!0),ji("electricChars",!0),ji("inputStyle",_a?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ji("rtlMoveVisually",!wa),ji("wholeLineUpdateBefore",!0),ji("theme","default",function(e){s(e),l(e)},!0),ji("keyMap","default",function(t,i,n){var r=Fi(i),a=n!=e.Init&&Fi(n);a&&a.detach&&a.detach(t,r),r.attach&&r.attach(t,a||null)}),ji("extraKeys",null),ji("lineWrapping",!1,r,!0),ji("gutters",[],function(e){p(e.options),l(e)},!0),ji("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?C(e.display)+"px":"0",e.refresh()},!0),ji("coverGutterNextToScrollbar",!1,function(e){y(e)},!0),ji("scrollbarStyle","native",function(e){v(e),y(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),ji("lineNumbers",!1,function(e){p(e.options),l(e)},!0),ji("firstLineNumber",1,l,!0),ji("lineNumberFormatter",function(e){return e},l,!0),ji("showCursorWhenSelecting",!1,Me,!0),ji("resetSelectionOnContextMenu",!0),ji("readOnly",!1,function(e,t){"nocursor"==t?(ui(e),e.display.input.blur(),e.display.disabled=!0):(e.display.disabled=!1,t||e.display.input.reset())}),ji("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),ji("dragDrop",!0),ji("cursorBlinkRate",530),ji("cursorScrollMargin",0),ji("cursorHeight",1,Me,!0),ji("singleCursorHeightPerLine",!0,Me,!0),ji("workTime",100),ji("workDelay",100),ji("flattenSpans",!0,n,!0),ji("addModeClass",!1,n,!0),ji("pollInterval",100),ji("undoDepth",200,function(e,t){e.doc.history.undoDepth=t}),ji("historyEventDelay",1250),ji("viewportMargin",10,function(e){e.refresh()},!0),ji("maxHighlightLength",1e4,n,!0),ji("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),ji("tabindex",null,function(e,t){e.display.input.getField().tabIndex=t||""}),ji("autofocus",null);var Va=e.modes={},Ga=e.mimeModes={};e.defineMode=function(t,i){e.defaults.mode||"null"==t||(e.defaults.mode=t),arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Va[t]=i},e.defineMIME=function(e,t){Ga[e]=t},e.resolveMode=function(t){if("string"==typeof t&&Ga.hasOwnProperty(t))t=Ga[t];else if(t&&"string"==typeof t.name&&Ga.hasOwnProperty(t.name)){var i=Ga[t.name];"string"==typeof i&&(i={name:i}),t=Ir(i,t),t.name=i.name}else if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return e.resolveMode("application/xml");return"string"==typeof t?{name:t}:t||{name:"null"}},e.getMode=function(t,i){var i=e.resolveMode(i),n=Va[i.name];if(!n)return e.getMode(t,"text/plain");var r=n(t,i);if(Ya.hasOwnProperty(i.name)){var a=Ya[i.name];for(var o in a)a.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=a[o])}if(r.name=i.name,i.helperType&&(r.helperType=i.helperType),i.modeProps)for(var o in i.modeProps)r[o]=i.modeProps[o];return r},e.defineMode("null",function(){return{token:function(e){e.skipToEnd()}}}),e.defineMIME("text/plain","null");var Ya=e.modeExtensions={};e.extendMode=function(e,t){Dr(t,Ya.hasOwnProperty(e)?Ya[e]:Ya[e]={})},e.defineExtension=function(t,i){e.prototype[t]=i},e.defineDocExtension=function(e,t){fo.prototype[e]=t},e.defineOption=ji;var Ka=[];e.defineInitHook=function(e){Ka.push(e)};var Xa=e.helpers={};e.registerHelper=function(t,i,n){Xa.hasOwnProperty(t)||(Xa[t]=e[t]={_global:[]}),Xa[t][i]=n},e.registerGlobalHelper=function(t,i,n,r){e.registerHelper(t,i,r),Xa[t]._global.push({pred:n,val:r})};var Qa=e.copyState=function(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var i={};for(var n in t){var r=t[n];r instanceof Array&&(r=r.concat([])),i[n]=r}return i},Za=e.startState=function(e,t,i){return!e.startState||e.startState(t,i)};e.innerMode=function(e,t){for(;e.innerMode;){var i=e.innerMode(t);if(!i||i.mode==e)break;t=i.state,e=i.mode}return i||{mode:e,state:t}};var Ja=e.commands={selectAll:function(e){e.setSelection(Ea(e.firstLine(),0),Ea(e.lastLine()),So)},singleSelection:function(e){e.setSelection(e.getCursor("anchor"),e.getCursor("head"),So)},killLine:function(e){Ni(e,function(t){if(t.empty()){var i=Hn(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line0)r=new Ea(r.line,r.ch+1),e.replaceRange(a.charAt(r.ch-1)+a.charAt(r.ch-2),Ea(r.line,r.ch-2),r,"+transpose");else if(r.line>e.doc.first){var o=Hn(e.doc,r.line-1).text;o&&e.replaceRange(a.charAt(0)+"\n"+o.charAt(o.length-1),Ea(r.line-1,o.length-1),Ea(r.line,1),"+transpose")}i.push(new ue(r,r))}e.setSelections(i)})},newlineAndIndent:function(e){St(e,function(){for(var t=e.listSelections().length,i=0;i=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.post},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var r=function(e){return i?e.toLowerCase():e};if(r(this.string.substr(this.pos,e.length))==r(e))return!1!==t&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var ao=0,oo=e.TextMarker=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++ao};wr(oo),oo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&vt(e),br(this,"clear")){var i=this.find();i&&gr(this,"clear",i.from,i.to)}for(var n=null,r=null,a=0;ae.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=n&&e&&this.collapsed&&Lt(e,n,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ae(e.doc)),e&&gr(e,"markerCleared",e,this),t&&_t(e),this.parent&&this.parent.clear()}},oo.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var i,n,r=0;r1||!(this.children[0]instanceof Bn))){var s=[];this.collapse(s),this.children=[new Bn(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(;r.lines.length>50;){var o=r.lines.splice(r.lines.length-25,25),s=new Bn(o);r.height-=s.height,this.children.splice(n+1,0,s),s.parent=this}this.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new Un(t);if(e.parent){e.size-=i.size,e.height-=i.height;var n=Sr(e.parent.children,e);e.parent.children.splice(n+1,0,i)}else{var r=new Un(e.children);r.parent=e,e.children=[r,i],e=r}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var n=0;n=0;a--)yi(this,n[a]);s?Ce(this,s):this.cm&&Di(this.cm)}),undo:It(function(){bi(this,"undo")}),redo:It(function(){bi(this,"redo")}),undoSelection:It(function(){bi(this,"undo",!0)}),redoSelection:It(function(){bi(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,n=0;n=e.ch)&&t.push(r.marker.parent||r.marker)}return t},findMarks:function(e,t,i){e=fe(this,e),t=fe(this,t);var n=[],r=e.line;return this.iter(e.line,t.line+1,function(a){var o=a.markedSpans;if(o)for(var s=0;sl.to||null==l.from&&r!=e.line||r==t.line&&l.from>t.ch||i&&!i(l.marker)||n.push(l.marker.parent||l.marker)}++r}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var n=0;ne)return t=e,!0;e-=r,++i}),fe(this,Ea(i,t))},indexFromPos:function(e){e=fe(this,e);var t=e.ch;return e.linet&&(t=e.from),null!=e.to&&e.to=t)return o+(t-a);o+=s-a,o+=i-o%i,a=s+1}},Do=[""],Mo=function(e){e.select()};ya?Mo=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:ca&&(Mo=function(e){try{e.select()}catch(e){}});var Lo,Oo=/[\u00df\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,No=e.isWordChar=function(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||Oo.test(e)) },Po=/[\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]/;Lo=document.createRange?function(e,t,i,n){var r=document.createRange();return r.setEnd(n||e,i),r.setStart(e,t),r}:function(e,t,i){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(e){return n}return n.collapse(!0),n.moveEnd("character",i),n.moveStart("character",t),n};var Ro=e.contains=function(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)};ca&&ua<11&&(zr=function(){try{return document.activeElement}catch(e){return document.body}});var jo,zo,Fo=e.rmClass=function(e,t){var i=e.className,n=Fr(t).exec(i);if(n){var r=i.slice(n.index+n[0].length);e.className=i.slice(0,n.index)+(r?n[1]+r:"")}},Bo=e.addClass=function(e,t){var i=e.className;Fr(t).test(i)||(e.className+=(i?" ":"")+t)},Uo=!1,$o=function(){if(ca&&ua<9)return!1;var e=Pr("div");return"draggable"in e||"dragDrop"in e}(),qo=e.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,i=[],n=e.length;t<=n;){var r=e.indexOf("\n",t);-1==r&&(r=e.length);var a=e.slice(t,"\r"==e.charAt(r-1)?r-1:r),o=a.indexOf("\r");-1!=o?(i.push(a.slice(0,o)),t+=o+1):(i.push(a),t=r+1)}return i}:function(e){return e.split(/\r\n?|\n/)},Ho=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Wo=function(){var e=Pr("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Vo=null,Go={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",107:"=",109:"-",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};e.keyNames=Go,function(){for(var e=0;e<10;e++)Go[e+48]=Go[e+96]=String(e);for(var e=65;e<=90;e++)Go[e]=String.fromCharCode(e);for(var e=1;e<=12;e++)Go[e+111]=Go[e+63235]="F"+e}();var Yo,Ko=function(){function e(e){return e<=247?i.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1773?n.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,i){this.level=e,this.from=t,this.to=i}var i="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=/[stwN]/,o=/[LRr]/,s=/[Lb1n]/,l=/[1n]/;return function(i){if(!r.test(i))return!1;for(var n,c=i.length,u=[],d=0;d>2,this.message=n},e.Signal.prototype.isSelf=function(){return this.actorA.index==this.actorB.index},e.Note=function(e,t,i){if(this.type="Note",this.actor=e,this.placement=t,this.message=i,this.hasManyActors()&&e[0]==e[1])throw new Error("Note should be over two different actors")},e.Note.prototype.hasManyActors=function(){return i.isArray(this.actor)},e.LINETYPE={SOLID:0,DOTTED:1},e.ARROWTYPE={FILLED:0,OPEN:1},e.PLACEMENT={LEFTOF:0,RIGHTOF:1,OVER:2};var n=function(){function t(){this.yy={}}var i={trace:function(){},yy:{},symbols_:{error:2,start:3,document:4,EOF:5,line:6,statement:7,NL:8,participant:9,actor:10,signal:11,note_statement:12,title:13,message:14,note:15,placement:16,over:17,actor_pair:18,",":19,left_of:20,right_of:21,signaltype:22,ACTOR:23,linetype:24,arrowtype:25,LINE:26,DOTLINE:27,ARROW:28,OPENARROW:29,MESSAGE:30,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",8:"NL",9:"participant",13:"title",15:"note",17:"over",19:",",20:"left_of",21:"right_of",23:"ACTOR",26:"LINE",27:"DOTLINE",28:"ARROW",29:"OPENARROW",30:"MESSAGE"},productions_:[0,[3,2],[4,0],[4,2],[6,1],[6,1],[7,2],[7,1],[7,1],[7,2],[12,4],[12,4],[18,1],[18,3],[16,1],[16,1],[11,4],[10,1],[22,2],[22,1],[24,1],[24,1],[25,1],[25,1],[14,1]],performAction:function(t,i,n,r,a,o){var s=o.length-1;switch(a){case 1:return r;case 4:break;case 6:o[s];break;case 7:case 8:r.addSignal(o[s]);break;case 9:r.setTitle(o[s]);break;case 10:this.$=new e.Note(o[s-1],o[s-2],o[s]);break;case 11:this.$=new e.Note(o[s-1],e.PLACEMENT.OVER,o[s]);break;case 12:this.$=o[s];break;case 13:this.$=[o[s-2],o[s]];break;case 14:this.$=e.PLACEMENT.LEFTOF;break;case 15:this.$=e.PLACEMENT.RIGHTOF;break;case 16:this.$=new e.Signal(o[s-3],o[s-2],o[s-1],o[s]);break;case 17:this.$=r.getActor(o[s]);break;case 18:this.$=o[s-1]|o[s]<<2;break;case 19:this.$=o[s];break;case 20:this.$=e.LINETYPE.SOLID;break;case 21:this.$=e.LINETYPE.DOTTED;break;case 22:this.$=e.ARROWTYPE.FILLED;break;case 23:this.$=e.ARROWTYPE.OPEN;break;case 24:this.$=o[s].substring(1).trim().replace(/\\n/gm,"\n")}},table:[{3:1,4:2,5:[2,2],8:[2,2],9:[2,2],13:[2,2],15:[2,2],23:[2,2]},{1:[3]},{5:[1,3],6:4,7:5,8:[1,6],9:[1,7],10:11,11:8,12:9,13:[1,10],15:[1,12],23:[1,13]},{1:[2,1]},{5:[2,3],8:[2,3],9:[2,3],13:[2,3],15:[2,3],23:[2,3]},{5:[2,4],8:[2,4],9:[2,4],13:[2,4],15:[2,4],23:[2,4]},{5:[2,5],8:[2,5],9:[2,5],13:[2,5],15:[2,5],23:[2,5]},{10:14,23:[1,13]},{5:[2,7],8:[2,7],9:[2,7],13:[2,7],15:[2,7],23:[2,7]},{5:[2,8],8:[2,8],9:[2,8],13:[2,8],15:[2,8],23:[2,8]},{14:15,30:[1,16]},{22:17,24:18,26:[1,19],27:[1,20]},{16:21,17:[1,22],20:[1,23],21:[1,24]},{5:[2,17],8:[2,17],9:[2,17],13:[2,17],15:[2,17],19:[2,17],23:[2,17],26:[2,17],27:[2,17],30:[2,17]},{5:[2,6],8:[2,6],9:[2,6],13:[2,6],15:[2,6],23:[2,6]},{5:[2,9],8:[2,9],9:[2,9],13:[2,9],15:[2,9],23:[2,9]},{5:[2,24],8:[2,24],9:[2,24],13:[2,24],15:[2,24],23:[2,24]},{10:25,23:[1,13]},{23:[2,19],25:26,28:[1,27],29:[1,28]},{23:[2,20],28:[2,20],29:[2,20]},{23:[2,21],28:[2,21],29:[2,21]},{10:29,23:[1,13]},{10:31,18:30,23:[1,13]},{23:[2,14]},{23:[2,15]},{14:32,30:[1,16]},{23:[2,18]},{23:[2,22]},{23:[2,23]},{14:33,30:[1,16]},{14:34,30:[1,16]},{19:[1,35],30:[2,12]},{5:[2,16],8:[2,16],9:[2,16],13:[2,16],15:[2,16],23:[2,16]},{5:[2,10],8:[2,10],9:[2,10],13:[2,10],15:[2,10],23:[2,10]},{5:[2,11],8:[2,11],9:[2,11],13:[2,11],15:[2,11],23:[2,11]},{10:36,23:[1,13]},{30:[2,13]}],defaultActions:{3:[2,1],23:[2,14],24:[2,15],26:[2,18],27:[2,22],28:[2,23],36:[2,13]},parseError:function(e,t){if(!t.recoverable)throw new Error(e);this.trace(e)},parse:function(e){var t=this,i=[0],n=[null],r=[],a=this.table,o="",s=0,l=0,c=0,u=1;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var d=this.lexer.yylloc;r.push(d);var h=this.lexer.options&&this.lexer.options.ranges;this.parseError="function"==typeof this.yy.parseError?this.yy.parseError:Object.getPrototypeOf(this).parseError;for(var p,f,m,g,v,y,_,b,w,x={};;){if(m=i[i.length-1],this.defaultActions[m]?g=this.defaultActions[m]:((null===p||void 0===p)&&(p=function(){var e;return e=t.lexer.lex()||u,"number"!=typeof e&&(e=t.symbols_[e]||e),e}()),g=a[m]&&a[m][p]),void 0===g||!g.length||!g[0]){var k="";w=[];for(y in a[m])this.terminals_[y]&&y>2&&w.push("'"+this.terminals_[y]+"'");k=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(s+1)+": Unexpected "+(p==u?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:d,expected:w})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+p);switch(g[0]){case 1:i.push(p),n.push(this.lexer.yytext),r.push(this.lexer.yylloc),i.push(g[1]),p=null,f?(p=f,f=null):(l=this.lexer.yyleng,o=this.lexer.yytext,s=this.lexer.yylineno,d=this.lexer.yylloc,c>0&&c--);break;case 2:if(_=this.productions_[g[1]][1],x.$=n[n.length-_],x._$={first_line:r[r.length-(_||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(_||1)].first_column,last_column:r[r.length-1].last_column},h&&(x._$.range=[r[r.length-(_||1)].range[0],r[r.length-1].range[1]]),void 0!==(v=this.performAction.call(x,o,l,s,this.yy,g[1],n,r)))return v;_&&(i=i.slice(0,-2*_),n=n.slice(0,-1*_),r=r.slice(0,-1*_)),i.push(this.productions_[g[1]][0]),n.push(x.$),r.push(x._$),b=a[i[i.length-2]][i[i.length-1]],i.push(b);break;case 3:return!0}}return!0}},n=function(){return{EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,i=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===n.length?this.yylloc.first_column:0)+n[n.length-i.length].length-i[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var i,n,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),n=e[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],i=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),i)return i;if(this._backtrack){for(var a in r)this[a]=r[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,i,n;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),a=0;at[0].length)){if(t=i,n=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(i,r[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,r[n]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,i,n){switch(i){case 0:return 8;case 1:case 2:break;case 3:return 9;case 4:return 20;case 5:return 21;case 6:return 17;case 7:return 15;case 8:return 13;case 9:return 19;case 10:return 23;case 11:return 27;case 12:return 26;case 13:return 29;case 14:return 28;case 15:return 30;case 16:return 5;case 17:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:participant\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:title\b)/i,/^(?:,)/i,/^(?:[^\->:\n,]+)/i,/^(?:--)/i,/^(?:-)/i,/^(?:>>)/i,/^(?:>)/i,/^(?:[^#\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}}}();return i.lexer=n,t.prototype=i,i.Parser=t,new t}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=n,exports.Parser=n.Parser,exports.parse=function(){return n.parse.apply(n,arguments)},exports.main=function(e){e[1]||(console.log("Usage: "+e[0]+" FILE"),process.exit(1));var t=require("fs").readFileSync(require("path").normalize(e[1]),"utf8");return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main(process.argv.slice(1))),t.prototype=new Error,e.ParseError=t,n.parseError=function(e,i){throw new t(e,i)},e.parse=function(t){return n.yy=new e,n.parse(t)},this.Diagram=e}).call(this),"undefined"!=typeof jQuery&&function(e){e.fn.sequenceDiagram=function(t){return this.each(function(){var i=e(this),n=Diagram.parse(i.text());i.html(""),n.drawSVG(this,t)})}}(jQuery),t.registerFont({w:209,face:{"font-family":"daniel","font-weight":700,"font-stretch":"normal","units-per-em":"360","panose-1":"2 11 8 0 0 0 0 0 0 0",ascent:"288",descent:"-72","x-height":"7",bbox:"-92.0373 -310.134 632 184.967","underline-thickness":"3.51562","underline-position":"-21.6211","unicode-range":"U+0009-U+F002"},glyphs:{" ":{w:179},"\t":{w:179},"!":{d:"66,-306v9,3,18,11,19,24v-18,73,-20,111,-37,194v0,10,2,34,-12,34v-12,0,-18,-9,-18,-28v0,-85,23,-136,38,-214v1,-7,4,-10,10,-10xm25,-30v15,-1,28,34,5,35v-11,-1,-38,-36,-5,-35",w:115},'"':{d:"91,-214v-32,3,-25,-40,-20,-68v3,-16,7,-25,12,-27v35,13,14,56,8,95xm8,-231v4,-31,1,-40,18,-75v37,7,11,51,11,79v-3,3,-4,8,-5,13v-17,4,-16,-10,-24,-17",w:117},"#":{d:"271,-64v-30,26,-96,-7,-102,51v-6,2,-13,2,-24,-2v-2,-11,10,-21,2,-28v-14,5,-48,0,-48,22v0,23,-11,14,-29,10v-7,-6,6,-19,-1,-24r-32,4v-19,-8,-15,-24,5,-28r33,-6v4,0,24,-23,11,-27v-26,0,-63,14,-74,-10v3,-1,9,-17,16,-10v15,-8,81,4,89,-30v8,-14,16,-34,24,-38v23,9,24,38,5,49v37,24,55,-38,72,-43v19,10,20,23,-1,45v2,8,23,1,29,4v3,3,6,6,10,11v-14,13,-20,12,-45,12v-17,0,-16,17,-19,29v18,-7,49,3,67,-2v4,0,8,4,12,11xm161,-104v-30,-1,-44,10,-44,37v14,1,24,0,40,-5v0,-1,3,-10,8,-26v0,-4,-1,-6,-4,-6",w:285},$:{d:"164,-257v29,4,1,42,-3,50v5,5,38,13,41,24v8,4,6,15,-2,21v-18,3,-36,-17,-49,-17v-17,1,-31,40,-28,48v5,4,8,8,9,10v13,1,35,37,28,44v-10,21,-36,20,-65,28v-10,10,-12,40,-17,51v-9,-3,-28,1,-18,-17v0,-13,5,-24,-1,-35v-18,1,-59,-10,-42,-29v21,0,56,16,55,-16v5,-4,9,-18,9,-26v-14,-15,-55,-41,-53,-65v2,-33,56,-19,98,-26v10,-14,31,-43,38,-45xm93,-152v11,-10,15,-15,14,-29v-17,-3,-37,1,-43,6v10,12,20,19,29,23xm111,-103v-8,1,-11,12,-10,22v10,0,28,2,27,-8v0,-4,-13,-15,-17,-14",w:225},"%":{d:"181,-96v24,-7,67,-13,104,1v14,18,21,19,22,44v-13,43,-99,61,-146,36v-9,-9,-22,-11,-32,-29v0,-27,24,-53,52,-52xm139,-185v-9,68,-138,73,-131,-5v0,-3,3,-9,9,-17v13,1,27,1,17,-16v5,-39,63,0,93,-6v36,1,80,-9,102,11v15,32,12,32,-8,56v-16,21,-103,78,-152,125r-14,28v-23,11,-25,-7,-29,-20v34,-71,133,-98,171,-162v-13,-12,-52,-5,-61,1v0,1,1,3,3,5xm38,-190v0,34,55,29,70,8v0,-14,-20,-11,-32,-14v-14,-3,-24,-9,-40,-10v1,0,5,11,2,16xm172,-53v12,27,90,18,102,-5v-18,-7,-32,-10,-40,-10v-29,3,-57,-4,-62,15",w:308},"&":{d:"145,-82v17,-8,47,-15,71,-26v13,2,25,12,9,23v-23,7,-40,16,-53,27r0,6v13,8,30,21,36,38v0,8,-4,12,-11,12v-19,0,-43,-39,-59,-44v-30,12,-65,29,-97,32v-32,3,-45,-41,-23,-63v21,-20,52,-26,70,-48v-4,-31,-12,-47,9,-73v13,-16,20,-29,23,-39v15,-15,32,-22,51,-22v30,9,62,64,32,96v-2,3,-47,42,-69,48v-15,8,-11,9,0,22v6,7,10,11,11,11xm114,-138v25,-13,62,-38,74,-62v0,-9,-10,-31,-20,-29v-28,7,-60,42,-60,75v0,10,2,15,6,16xm99,-91v-18,10,-54,18,-59,45v26,5,61,-12,77,-22v-1,-5,-13,-23,-18,-23",w:253},"'":{d:"36,-182v-36,7,-34,-61,-17,-80v15,1,21,19,21,20r-1,-1v0,0,-1,12,-5,35v1,5,3,17,2,26",w:63},"(":{d:"130,-306v13,2,23,43,-1,43v-49,43,-77,77,-90,148v5,49,27,67,64,101v4,14,5,6,2,19r-15,0v-35,-17,-79,-58,-79,-120v0,-58,66,-176,119,-191",w:120},")":{d:"108,-138v-2,73,-48,120,-98,153v-17,-5,-16,-20,-6,-31v52,-64,73,-62,74,-135v1,-42,-40,-98,-58,-128v0,-5,-1,-12,-2,-22v18,-18,25,0,42,27v25,39,50,66,48,136",w:120},"*":{d:"121,-271v15,-5,36,-8,40,9v-5,10,-31,19,-47,31v0,11,34,43,14,53v-18,8,-24,-24,-34,-20v-4,10,-4,19,-12,41v-25,7,-15,-30,-17,-47v-13,-1,-17,9,-46,30r-10,0v-20,-32,37,-43,54,-64v-10,-11,-36,-33,-16,-51v3,0,14,8,33,24v8,-10,26,-39,32,-42v14,7,15,23,9,36",w:177},"+":{d:"163,-64v-7,22,-65,2,-77,21v-2,10,-6,21,-11,35v-20,4,-21,-12,-19,-29v3,-23,-44,6,-39,-27v-8,-22,36,-8,49,-18v8,-13,6,-36,24,-40v19,-4,14,32,11,39v18,3,19,2,54,8v2,1,5,5,8,11",w:170},",":{d:"25,63v-26,21,-48,-2,-22,-24v14,-12,35,-40,35,-69v3,-2,3,-11,12,-9v35,17,5,88,-25,102",w:97},"-":{d:"57,-94v19,4,55,-5,54,17v-15,23,-54,20,-91,15v-4,2,-13,-10,-11,-16v-1,-22,28,-15,48,-16",w:124},".":{d:"40,-48v21,20,21,44,-4,44v-33,0,-26,-24,-10,-44r14,0",w:67},"/":{d:"21,20v-22,-45,21,-95,41,-126v38,-57,115,-158,193,-201v2,0,4,3,7,11v11,29,-15,34,-25,55v-81,56,-189,208,-197,261r-19,0",w:275},0:{d:"78,-237v70,-47,269,-41,270,59v0,34,-11,53,-29,76v-13,35,-30,32,-85,64v-6,2,-10,6,-7,8v-73,14,-98,38,-173,1v-7,-13,-52,-48,-46,-88v9,-57,27,-75,70,-120xm123,-38v100,0,202,-46,195,-153v-32,-55,-144,-73,-211,-35v-16,34,-68,54,-53,108v6,25,1,22,-3,39v6,24,41,41,72,41",w:353},1:{d:"39,-208v0,-14,6,-59,29,-39v3,4,6,13,10,24r-22,128r8,87v-4,6,-9,3,-16,2v-44,-38,-9,-137,-9,-202",w:93},2:{d:"88,-35v47,-10,119,-24,168,-9v0,12,-23,13,-35,16v1,1,3,1,5,1v-74,8,-118,23,-194,23v-14,0,-20,-13,-21,-28v55,-40,83,-61,123,-104v26,-13,65,-67,71,-102v-1,-9,-11,-16,-22,-16v-20,-1,-120,29,-156,49v-10,-2,-30,-20,-10,-28v50,-21,111,-51,178,-48v25,10,44,22,36,39v12,30,-19,64,-34,83v-39,48,-37,39,-115,109v0,5,-3,8,-8,11v4,3,8,4,14,4",w:265},3:{d:"188,-282v34,-10,74,25,47,51v-19,32,-55,50,-92,70v28,14,116,25,108,70v8,14,-49,40,-63,48v-29,9,-130,22,-168,42v-6,-5,-19,-7,-12,-22v56,-36,175,-21,210,-76v-9,-20,-88,-42,-97,-33v-20,-1,-41,2,-56,-7r5,-21v56,-25,103,-36,137,-78v1,-1,2,-5,4,-11v-15,-14,-56,7,-79,0v-10,9,-73,22,-92,31v-11,-4,-28,-23,-13,-30v50,-22,96,-26,154,-37v0,-1,8,3,7,3",w:260},4:{d:"79,-249v-7,17,-29,75,-33,96v0,6,3,8,8,8v43,-2,111,6,141,-6v17,-47,20,-100,63,-148v9,4,16,7,21,10v-17,31,-44,95,-51,141v7,4,24,-4,23,10v-1,16,-29,12,-31,23v-10,22,-9,69,-7,103v-3,2,-7,5,-10,9v-47,-11,-23,-74,-16,-114v0,-4,-2,-6,-7,-6v-65,2,-89,13,-162,4v-22,-22,-2,-53,5,-76v16,-15,17,-57,35,-70v6,-1,21,11,21,16",w:267},5:{d:"185,-272v30,7,45,-8,53,18v1,16,-17,18,-34,14v0,0,-95,-11,-129,1v-6,9,-24,33,-29,54v76,10,171,5,214,47v11,11,22,30,5,52v-14,12,-30,14,-34,27v-26,11,-141,63,-157,60v-16,-2,-25,-19,-4,-27v48,-18,128,-39,170,-86v4,-14,-65,-41,-85,-41r-92,0v-10,-4,-66,-1,-57,-23v0,-23,23,-51,35,-83v11,-28,133,-10,144,-13",w:284},6:{d:"70,-64v9,-51,63,-74,123,-71v43,2,109,3,111,41r-25,47v0,1,1,2,2,3v-5,0,-39,10,-41,20v-15,3,-22,4,-22,11v-39,1,-77,20,-119,13v-42,-7,-35,-9,-77,-46v-56,-118,94,-201,176,-229v7,0,21,8,20,15v-2,17,-23,15,-43,24v-69,31,-119,72,-134,145v-5,25,36,68,78,64v59,-6,128,-18,153,-61v-7,-14,-13,-9,-32,-21v-67,-15,-118,-5,-150,43r0,12v-13,4,-17,-3,-20,-10",w:310},7:{d:"37,-228v33,-14,173,-17,181,-19v28,-1,24,31,9,45v-17,15,-45,49,-59,69v-17,26,-55,67,-61,113v-10,13,-9,14,-14,20v-33,-13,-20,-25,-11,-53v16,-48,73,-115,109,-156v2,-7,5,-14,-10,-12v-26,4,-54,6,-76,13v-23,-5,-83,31,-94,-9v2,-8,18,-19,26,-11",w:245},8:{d:"57,-236v40,-50,166,-51,213,-10v22,28,10,63,-22,78r-35,17v8,5,54,24,53,44v-5,14,-4,33,-18,42v-13,13,-35,18,-44,34v-60,27,-190,49,-194,-42v7,-41,17,-54,59,-70r0,-4v-32,-9,-73,-62,-26,-85v4,0,8,-2,14,-4xm142,-160v24,-2,160,-31,99,-72v-28,-18,-108,-33,-146,-5v-16,12,-28,30,-33,59v24,12,37,20,80,18xm41,-62v30,65,189,6,199,-37v3,-14,-60,-30,-74,-30v-70,0,-118,10,-125,67",w:290},9:{d:"11,-192v15,-49,119,-61,161,-23v16,15,27,55,11,79v-20,62,-51,79,-96,118v-10,4,-45,27,-50,6v9,-15,66,-52,98,-99v-7,-7,-8,-3,-25,0v-49,-11,-96,-25,-99,-81xm145,-131v7,-5,13,-34,13,-41v-2,-51,-104,-38,-114,-6v-2,10,37,35,46,35v23,1,43,-1,55,12",w:198},":":{d:"39,-125v15,-8,40,-1,40,15v0,15,-6,22,-19,22v-13,0,-29,-21,-21,-37xm66,-17v-8,27,-51,19,-46,-8v-1,-6,8,-22,14,-20v29,0,30,6,32,28",w:95},";":{d:"56,-93v2,-30,37,-22,40,2v0,2,-1,7,-3,15v-13,8,-15,6,-27,4xm64,-44v11,-11,30,-4,32,14v-21,39,-63,71,-92,85v-5,0,-11,-2,-18,-8v11,-23,36,-36,50,-61v11,-7,19,-20,28,-30",w:107},"<":{d:"166,-202v12,0,29,15,24,29v0,4,-119,64,-120,73v15,21,89,64,91,86v2,29,-18,12,-30,15v-27,-29,-59,-54,-95,-75v-18,-10,-25,-13,-24,-41",w:176},"=":{d:"125,-121v18,7,55,-9,69,14v0,17,-45,26,-135,26v-18,0,-27,-7,-27,-21v-1,-37,60,-5,93,-19xm138,-71v20,0,48,-1,50,16v-13,24,-86,32,-131,29v-29,-2,-43,-10,-43,-24v-7,-23,36,-14,39,-17v27,6,57,-4,85,-4",w:196},">":{d:"4,-14v20,-48,77,-59,118,-94v-16,-19,-58,-52,-81,-75v-11,-7,-15,-38,-1,-40v33,16,83,71,121,105v26,23,-6,35,-41,53v-29,16,-56,28,-73,54v-21,15,-16,20,-34,15v-3,0,-9,-16,-9,-18",w:174},"?":{d:"105,-291v57,-13,107,-4,107,39v0,67,-136,85,-155,137v-1,6,10,23,-4,23v-23,1,-33,-35,-23,-57v31,-41,124,-60,149,-103v-8,-21,-72,-5,-88,-1v-23,6,-59,39,-71,8v0,0,-1,0,1,-17v10,-4,45,-20,84,-29xm80,-25v-6,4,-8,39,-24,22v-24,3,-22,-21,-13,-35v17,-7,29,5,37,13",w:216},"@":{d:"218,-207v23,8,42,14,47,37v44,68,-27,137,-87,85r1,0v0,2,-59,19,-61,17v-35,0,-42,-47,-17,-68r0,-4v-19,-1,-45,37,-49,40v-37,76,58,72,121,62v11,-2,34,-13,36,3v-14,31,-69,31,-114,33v-51,2,-99,-41,-80,-92v2,-30,22,-40,42,-63v35,-20,91,-53,161,-50xm217,-101v23,0,35,-19,35,-41v0,-43,-75,-41,-102,-19v36,3,55,16,62,41v-6,5,-6,19,5,19xm127,-110v8,5,51,-15,28,-16v-4,0,-25,4,-28,16",w:291},A:{d:"97,-81v-23,-10,-39,38,-52,60v-8,6,-8,6,-22,18v-22,-7,-23,-37,-4,-49v7,-8,11,-15,15,-23r-1,1v-14,-26,23,-29,31,-40v1,-1,15,-29,26,-36v17,-31,39,-58,54,-92v16,-20,20,-51,41,-66v29,5,34,62,45,92v9,64,21,103,49,155v-3,25,-44,11,-54,0v-34,-12,-97,-29,-128,-20xm107,-118v20,6,80,10,111,17v6,-7,-4,-15,-7,-24v-11,-28,-9,-92,-30,-117v-9,9,-19,44,-34,55v-9,23,-27,40,-40,69",w:294},B:{d:"256,-179v41,10,115,34,91,91v-6,3,-14,12,-19,20v-37,19,-50,34,-63,25v-9,10,-12,11,-34,13r3,-3v-4,-4,-12,-4,-18,0v0,0,2,2,5,4v-21,14,-26,6,-44,15v-4,0,-7,-2,-8,-5v-6,11,-20,-5,-18,11v-36,4,-91,35,-114,4v-7,-62,-10,-138,4,-199v-1,-19,-37,2,-37,-27v0,-8,2,-13,6,-15v68,-31,231,-92,311,-39v8,12,12,20,12,25v-8,42,-32,49,-77,80xm79,-160v72,-17,135,-39,184,-70v20,-13,31,-23,31,-27v1,-6,-30,-13,-38,-12v-54,0,-116,13,-186,41v11,21,1,48,9,68xm262,-43v0,-4,3,-6,-4,-5v0,1,1,2,4,5xm211,-140v-34,7,-94,24,-139,15v-6,20,-4,56,-4,82v0,29,43,1,56,2v48,-11,108,-25,154,-48v20,-10,32,-17,32,-25v0,-18,-33,-26,-99,-26xm195,-20v6,1,6,-2,5,-7v-3,2,-7,2,-5,7",w:364},C:{d:"51,-114v-12,75,96,76,166,71r145,-10v9,2,9,5,9,18v-37,18,-85,28,-109,22v-18,10,-47,10,-71,10v-29,0,-68,1,-105,-11v-6,-1,-10,-3,-10,-8v-33,-13,-48,-33,-66,-59v-19,-114,146,-150,224,-177v35,0,88,-31,99,7v-1,29,-49,14,-76,28v-55,8,-115,35,-175,71v-13,8,-23,21,-31,38",w:376},D:{d:"312,-78v-2,1,-3,7,-10,5v6,-3,10,-4,10,-5xm4,-252v2,-27,83,-38,106,-39v130,-7,267,1,291,109v0,0,-2,8,-3,25v-5,9,-4,28,-23,34v-4,4,-2,5,-7,0v-3,3,-15,7,-5,10v0,0,-10,14,-13,2v-11,1,-8,5,-20,14v1,2,7,3,9,1v-4,13,-22,13,-11,4v0,-3,1,-6,-3,-5v-40,29,-103,38,-141,65v10,6,22,-7,34,-3v-41,20,-127,44,-171,46v-21,1,-47,-33,-11,-39v15,-2,43,-6,56,-11v-16,-101,-5,-130,9,-207v2,0,4,-1,6,-3v-16,-17,-91,38,-103,-3xm297,-69v-7,3,-17,8,-25,7v1,1,3,2,5,2v-4,2,-11,5,-23,9v4,-11,30,-21,43,-18xm240,-51v10,0,12,2,0,6r0,-6xm220,-36v-1,-3,4,-6,6,-3v0,1,-2,1,-6,3xm125,-48v16,6,137,-46,155,-53v29,-18,101,-44,82,-93v-21,-53,-84,-61,-168,-67v-20,7,-50,3,-77,8v33,54,-12,132,8,205xm159,-22v-4,-1,-15,-5,-15,2v7,-1,12,-2,15,-2",w:381},E:{d:"45,-219v-19,-36,34,-41,63,-36v44,-10,133,-8,194,-15v3,2,38,11,52,15v-73,19,-171,21,-246,38v-9,11,-16,32,-20,61v35,11,133,-6,183,3v1,6,2,7,3,14v-46,24,-118,16,-193,27v-15,13,-22,52,-22,66v60,1,121,-20,188,-20v22,10,53,-7,74,5v16,29,-23,26,-43,32v-73,4,-139,13,-216,27r-52,-10v-4,-22,23,-69,26,-98v-3,0,-10,-15,-12,-24v20,-12,34,-23,35,-67v2,-1,5,-5,5,-7v0,-4,-14,-11,-19,-11",w:353},F:{d:"270,-258v13,2,59,6,48,34v-78,-3,-143,1,-212,22v-10,16,-21,43,-24,69r145,-9v8,3,29,-3,16,21v-14,-1,-59,13,-60,7v-12,13,-67,18,-108,21v-2,1,-4,3,-7,6v-2,23,-8,43,-7,69v1,28,-30,11,-40,5r10,-80r-26,-14v5,-10,10,-33,28,-25v21,-3,15,-46,26,-59v-1,-3,-32,-13,-28,-24v2,-22,45,-16,59,-30v47,4,99,-14,151,-9v5,-3,25,-3,29,-4",w:236},G:{d:"311,-168v53,0,94,57,74,110v-31,37,-71,34,-136,52v-13,-7,-41,10,-57,7v-73,-1,-122,-17,-162,-59v-49,-51,-24,-80,5,-130v35,-61,138,-93,214,-106v16,4,42,-1,40,21v-5,40,-39,2,-73,21v-76,19,-162,65,-177,142v28,103,237,76,312,29v2,-3,3,-7,3,-13v-10,-35,-37,-43,-87,-45v-16,-13,-53,-9,-78,1v-4,-3,-5,-7,-5,-11v17,-29,73,-17,108,-24v12,4,18,5,19,5",w:391},H:{ d:"300,-268v18,12,19,32,4,51v-35,44,-34,140,-46,217v-1,5,-5,13,-11,12v-6,1,-19,-14,-18,-27r7,-106v-28,7,-76,22,-116,14v-18,2,-36,6,-55,3v-43,-8,-14,53,-33,75v-29,1,-26,-67,-21,-97v5,-31,28,-73,43,-98v2,2,7,3,14,3v13,33,-11,48,-13,78v61,4,118,2,176,2v8,0,13,-6,15,-20v4,-47,21,-87,54,-107",w:288},I:{d:"63,-266v34,10,-4,105,-8,128r-24,126v-2,2,-3,1,-9,6v-12,-10,-12,-15,-12,-47v0,-93,9,-156,28,-188v10,-17,19,-25,25,-25",w:79},J:{d:"235,-291v26,11,31,104,31,142v0,37,-2,95,-32,126v-33,34,-121,26,-167,1v-18,-11,-54,-29,-59,-59v0,-3,5,-15,16,-14v31,36,90,57,162,51v63,-30,56,-148,32,-226v-1,-16,11,-13,17,-21",w:282},K:{d:"212,-219v17,-5,80,-60,80,-19v0,9,-2,14,-5,16r-132,78v-34,23,-54,32,-21,50v39,21,74,23,124,41v5,2,7,5,7,9v-4,24,-55,15,-79,8v-67,-19,-98,-36,-116,-83v9,-24,38,-35,66,-61v7,-4,49,-30,76,-39xm47,-194v11,-20,11,-45,31,-55v2,2,4,3,6,0v29,39,-21,96,-18,128v-17,24,-15,62,-29,113v-4,3,-10,7,-19,11v-12,-13,-10,-28,-8,-53v3,-31,17,-79,37,-144",w:270},L:{d:"84,-43v58,0,179,-27,242,-4v3,17,-29,24,-40,26v-85,-4,-202,46,-268,3v-24,-16,-2,-33,-4,-57v26,-76,38,-108,86,-191v14,-7,26,-50,45,-32v6,22,5,31,-12,46v-20,39,-50,82,-67,142v-7,6,-19,46,-19,54v0,9,12,13,37,13",w:331},M:{d:"174,-236v-1,52,-11,92,-7,143v10,5,15,-12,22,-18v42,-55,90,-130,136,-174r15,-18v42,2,32,53,11,80v-12,58,-54,143,-34,210v0,3,-3,12,-9,10v-31,-5,-32,-57,-27,-92v4,-27,12,-58,25,-93v-5,-10,5,-19,6,-30v-46,44,-66,110,-129,172v-11,10,-18,15,-22,15v-34,6,-28,-103,-28,-152v-28,22,-65,119,-96,170v-9,15,-34,3,-31,-19v30,-64,91,-177,139,-229v12,-1,29,13,29,25",w:343},N:{d:"248,-20v-3,17,-37,18,-43,3v-24,-35,-53,-145,-80,-203v-32,40,-55,120,-92,174v-13,3,-26,-13,-27,-22r87,-171v4,-13,20,-57,42,-32v42,48,46,139,82,198v29,-45,46,-88,65,-153v12,-19,23,-42,38,-60v27,-1,14,18,4,44v-6,46,-32,68,-37,121v-15,29,-33,69,-39,101",w:307},O:{d:"240,-268v85,1,163,29,150,125v13,7,-12,18,-5,26v-23,63,-133,112,-228,124v-80,-16,-171,-56,-148,-153v11,-47,20,-43,53,-83v17,-9,39,-22,73,-29v45,-10,81,-10,105,-10xm363,-156v16,-51,-62,-85,-111,-79v-25,-11,-50,8,-81,0v-15,10,-70,16,-85,31v6,20,-27,24,-39,45v-42,75,40,128,115,128v56,0,209,-71,201,-125",w:383},P:{d:"70,-225v-7,-12,-36,16,-49,19v-4,0,-9,-5,-14,-17v21,-47,114,-55,172,-59v41,-3,132,33,99,87v-21,34,-72,59,-144,80v-2,16,-79,3,-74,46v3,25,-5,47,-10,68v-22,-1,-23,-29,-22,-56v2,-25,-20,-32,-8,-50v21,-5,10,-35,25,-57v6,-28,14,-48,25,-61xm71,-229v47,14,-2,50,-1,99v41,-3,113,-37,173,-76v5,-9,8,-14,8,-15v-28,-47,-125,-29,-180,-8",w:252},Q:{d:"374,-217v20,59,-11,127,-48,156r30,38v-1,6,-8,16,-14,9v-3,0,-19,-9,-47,-26v-72,35,-173,75,-236,12v-70,-40,-67,-213,26,-217r8,5v24,-20,72,-48,112,-38v21,-4,22,-1,50,-2v66,-2,94,20,119,63xm296,-88v13,5,61,-49,63,-84v4,-62,-54,-78,-119,-76v-14,-6,-49,5,-71,3v-42,16,-89,41,-93,94v-9,11,1,25,-7,38v-12,-19,-7,-67,-1,-88v-56,30,-37,137,19,155v27,17,92,19,119,0v12,-2,29,-9,52,-20v2,-2,3,-3,3,-6v-11,-12,-46,-27,-54,-56v0,-13,3,-19,9,-19v18,1,60,52,80,59",w:379},R:{d:"100,-275v96,-23,196,-10,208,78v-3,18,-17,52,-49,62v-14,20,-54,23,-79,40v-2,0,-14,2,-36,6v-40,8,-30,14,-3,33v37,27,52,30,118,55v16,6,31,23,12,27v-58,-2,-104,-29,-143,-61v-14,-3,-16,-15,-39,-27v-23,-19,-28,-12,-15,-38v63,-19,111,-15,163,-53v27,-20,43,-36,43,-49v0,-64,-120,-62,-173,-38v-9,4,-38,9,-40,18v-10,32,-16,70,-13,116v-10,21,-8,47,-6,75v2,31,-9,29,-27,22v-9,-55,5,-140,15,-190v-8,-6,-24,10,-24,-11v0,-34,16,-34,42,-55v2,-1,17,-4,46,-10",w:297},S:{d:"13,-3v-7,-3,-22,-18,-5,-22v68,-15,119,-32,154,-45v51,-19,39,-34,3,-53v-46,-25,-82,-30,-121,-64v-33,-29,-50,-35,-25,-58v37,-20,119,-29,181,-29v29,0,44,6,44,18v-9,26,-62,6,-104,14v-17,2,-72,6,-92,16v37,53,132,58,180,111v8,9,11,20,11,30v-4,17,-23,35,-42,34v-21,16,-17,1,-49,17v-14,7,-41,9,-56,20v-25,-3,-49,10,-79,11",w:234},T:{d:"141,-3v-36,-6,1,-49,-3,-79v10,-19,6,-35,15,-64r26,-85v-51,-9,-100,10,-141,14v-16,2,-30,-26,-11,-32v26,-8,143,-8,179,-19r12,6v67,-2,142,-1,200,-1v8,0,14,3,19,10v-18,16,-74,3,-103,14v-48,-4,-60,4,-113,7v-42,22,-36,130,-58,187v1,12,-9,44,-22,42",w:277},U:{d:"365,-262v13,56,-22,104,-36,141v-19,22,-30,38,-57,56v-4,18,-60,35,-78,50v-53,28,-142,0,-161,-34v-31,-56,-37,-108,-11,-164v17,-33,29,-50,48,-29v-2,2,-3,7,-4,13v-44,36,-38,149,7,174v30,26,55,19,102,4v56,-17,66,-34,120,-76v12,-24,56,-68,46,-122r0,-16v0,1,-1,3,-1,6v4,-13,11,-10,25,-3",w:368},V:{d:"246,-258v21,-22,31,-26,44,-8v1,1,-12,22,-28,35v-15,25,-41,38,-56,69v-13,15,-20,31,-28,57v-15,13,-11,29,-27,72v3,21,-5,24,-27,27v-33,-45,-54,-118,-84,-167v-5,-26,-18,-50,-25,-76v-3,-12,24,-8,29,-5v8,13,18,52,26,70r52,115v9,-2,4,-9,10,-21r25,-47v25,-44,46,-76,89,-121",w:234},W:{d:"31,-213v16,46,17,106,41,151v31,-35,49,-89,76,-127v30,-15,39,27,52,56v10,22,21,48,35,67v2,0,4,-1,5,-3v16,-28,50,-76,79,-121v14,-21,40,-63,64,-83r5,8v-30,58,-76,110,-97,173v-18,28,-25,37,-33,63v-11,1,-16,25,-30,15v-21,-31,-44,-89,-62,-131v0,-2,-1,-3,-5,-5v-17,11,-16,36,-31,50v-20,33,-20,84,-68,94v-24,-19,-23,-81,-39,-111v-1,-15,-29,-94,-10,-108v9,2,12,5,18,12",w:331},X:{d:"143,-183v43,-25,69,-36,126,-62v22,-10,86,-10,56,21v-51,3,-158,61,-154,64v10,15,41,30,50,52v27,17,46,60,70,82v9,14,-6,30,-24,20v-35,-43,-75,-100,-116,-132v-48,13,-100,47,-118,94v-1,49,-26,34,-27,4v-1,-26,13,-27,17,-48v22,-27,68,-55,90,-77v-9,-12,-60,-39,-79,-57v-6,-10,-6,-25,12,-25",w:312},Y:{d:"216,-240v19,-14,42,10,22,26v-54,66,-121,109,-156,197v-8,21,-11,15,-30,4v3,-37,27,-61,33,-76v12,-12,15,-19,32,-42v-8,-6,-40,5,-45,5v-48,-6,-69,-65,-56,-113v14,0,13,-1,24,7v2,33,12,75,42,73v36,-2,102,-57,134,-81",w:189},Z:{d:"60,-255v66,12,200,-34,240,21v-13,42,-63,62,-98,89v-19,15,-47,33,-82,55v-25,16,-47,32,-66,47v58,24,129,-6,208,-6v23,0,36,12,13,19v-33,2,-53,5,-86,10v-32,18,-88,15,-135,15v-9,-1,-55,-1,-48,-29v1,-24,30,-24,40,-41v64,-50,151,-86,208,-147v-38,-17,-155,12,-198,-4v0,0,-11,-33,4,-29",w:310},"[":{d:"72,-258r-15,250v30,4,55,-3,80,-6v7,-1,8,17,9,23v-28,15,-73,23,-121,21v-7,0,-10,-6,-10,-17v0,-60,25,-193,22,-288v0,-16,13,-20,33,-19v9,-3,34,-12,51,-12v16,0,15,16,19,29v-16,7,-48,10,-68,19",w:151},"\\":{d:"21,38v-20,-21,9,-72,13,-90v44,-78,113,-189,200,-253v2,0,5,4,7,12v11,31,-13,36,-24,58v-74,61,-174,219,-180,273r-16,0",w:257},"]":{d:"133,-258v-23,-13,-84,6,-85,-32v0,-10,5,-15,14,-15v0,0,30,2,90,7v10,1,15,13,15,36v2,7,-8,59,-13,112r-11,125v-9,48,9,90,-59,71v-20,-4,-39,-1,-59,-4v-5,-10,-25,-12,-14,-30v8,-3,61,-13,78,-8v14,1,8,-7,10,-17v15,-69,21,-166,34,-245",w:171},"^":{d:"68,-306v20,15,47,36,58,60v-1,4,0,7,-9,7v-26,0,-47,-38,-49,-32v-15,9,-41,50,-54,30v-2,-31,17,-23,33,-51v8,-9,15,-14,21,-14",w:135},_:{d:"11,15v-8,33,18,45,50,34r205,2r197,-5v11,-5,14,-9,7,-28v-95,-21,-258,-10,-376,-10v-25,0,-72,-3,-83,7",w:485},"`":{d:"75,-264v16,8,56,14,39,43v-30,-8,-65,-23,-105,-44v-1,-3,-3,-28,5,-25v16,5,44,17,61,26",w:129},a:{d:"124,-56v10,4,59,41,65,50v1,7,-6,17,-12,17r-60,-30v-22,2,-42,21,-65,19v-33,4,-68,-67,-15,-81v41,-27,96,-39,110,9v0,6,-4,12,-11,16v-33,-25,-67,-5,-88,12v10,16,61,-18,76,-12",w:196},b:{d:"80,-140v69,1,123,0,134,52v5,26,-71,71,-97,70v-11,11,-88,22,-94,22v-11,-3,-26,-18,-6,-24v19,-5,-2,-19,-1,-35v1,-18,11,-36,-5,-47v-6,-17,-6,-21,14,-32v6,-45,18,-89,28,-124v2,-7,8,-12,17,-15v5,3,10,11,16,28v-12,27,-13,63,-23,96v0,6,6,9,17,9xm87,-107v-40,-9,-31,31,-39,54v8,15,0,25,12,22v30,-8,60,-18,88,-32v39,-18,49,-33,-1,-42v-20,-4,-45,-7,-60,-2",w:217},c:{d:"128,-123v29,-7,37,29,12,33v-27,-4,-40,6,-79,25v-8,4,-13,11,-16,22v30,32,91,3,134,11v5,13,-8,26,-22,19v-51,25,-139,28,-150,-30v6,-50,69,-82,121,-80",w:194},d:{d:"224,-201v0,-35,-17,-111,24,-94v7,86,-2,119,0,197v-4,2,-8,21,-18,16v-62,-7,-154,-8,-185,29v6,17,28,26,51,26v16,0,100,-15,132,-18v7,5,-6,20,-10,22v-24,8,-122,42,-163,25v-32,-5,-62,-53,-36,-80v35,-37,118,-46,198,-43v1,-22,7,-49,7,-80",w:265},e:{d:"4,-57v0,-58,51,-71,110,-74v33,-1,45,16,59,35v1,14,2,39,-7,42v-24,-2,-73,13,-99,11v-2,2,-2,3,-2,3v0,3,12,8,37,15v21,0,69,9,31,22v-9,14,-34,6,-56,6v-27,-5,-73,-28,-73,-60xm123,-102v-22,2,-68,5,-65,26v24,-2,66,5,79,-6v-5,-13,-1,-13,-14,-20",w:182},f:{d:"6,-59v6,-29,53,-4,53,-43v0,-64,29,-118,84,-150v45,-25,167,-24,155,51v-1,2,-7,6,0,6r-10,2v-45,-58,-165,-39,-186,39v-7,26,-11,42,-9,62v44,8,95,-21,135,-7v-12,25,-39,21,-76,30v-19,5,-18,7,-54,19v-2,8,15,32,17,35v-6,25,-26,26,-40,-5r-15,-24v-41,10,-44,12,-54,-15",w:234},g:{d:"132,-97v30,27,21,75,30,117v-12,31,-11,66,-36,103v-32,46,-105,83,-167,39v-31,-21,-49,-29,-51,-75v-2,-37,77,-50,121,-57v37,-6,68,-10,95,-11v7,-6,3,-32,4,-46v0,0,-1,1,-1,2v0,-18,-5,-31,-14,-45v-44,5,-79,20,-94,-18v3,-54,73,-54,125,-50v12,7,12,13,4,25v-30,-11,-76,8,-90,20v23,3,50,-16,74,-4xm-34,121v60,53,168,1,159,-86v-47,-7,-93,24,-142,30v-12,7,-45,19,-42,29v0,10,8,19,25,27",w:188},h:{d:"100,-310v11,-2,10,19,11,20v-11,52,-40,133,-53,189v-6,30,-9,37,-9,47v27,0,113,-34,143,-34v42,0,31,47,39,79v0,4,-5,17,-16,16v4,2,11,3,4,6v-24,-1,-28,-34,-25,-64v-1,-1,-2,-3,-5,-5v-51,0,-110,38,-162,51v-9,1,-15,-15,-16,-23v17,-89,39,-141,71,-264v0,-9,6,-19,18,-18",w:251},i:{d:"62,-209v7,18,9,23,-5,38v-23,-6,-21,-18,-11,-36v2,0,8,-1,16,-2xm34,-7v-18,-21,-8,-73,-1,-106v7,-10,20,-8,23,6v-1,36,7,72,-2,104v-8,2,-8,0,-20,-4",w:80},j:{d:"88,-191v5,28,-18,40,-28,21v0,-20,12,-29,28,-21xm82,-99v28,-1,16,35,16,61v0,60,-19,150,-35,202v-12,8,-19,31,-35,16v-32,-7,-43,-19,-56,-44r2,-17v11,4,49,45,61,18v10,-55,27,-107,30,-171v0,-16,0,-59,17,-65",w:120},k:{d:"59,-66v33,26,114,37,155,62v8,-4,22,-2,19,-17v0,-4,-12,-11,-30,-24v-36,-25,-54,-22,-99,-33v14,-21,119,-13,103,-63r-16,-7r-123,47r25,-93v-3,-15,16,-49,18,-81v1,-15,-21,-14,-25,-3v-31,82,-49,168,-75,257v2,2,22,30,27,10v2,-5,4,-9,9,-11v4,-16,4,-15,12,-44",w:236},l:{d:"66,-300v21,-6,37,23,30,55v-10,51,-28,135,-28,208v0,11,6,36,-13,37v-29,-5,-30,-48,-25,-83r28,-177v-6,-17,1,-29,8,-40",w:102},m:{d:"348,-59v-2,21,0,57,3,73v-17,3,-30,-1,-32,-16v-8,-7,-5,-44,-13,-70v-35,3,-82,49,-111,70v-12,8,-40,4,-39,-15r2,-56v-1,-13,4,-28,-8,-29v-35,8,-79,72,-115,87v-6,2,-20,-18,-21,-22v1,-20,14,-105,39,-64r8,15v17,-14,72,-56,93,-54v27,3,49,40,43,80v24,-2,66,-55,124,-53v11,14,28,23,27,54",w:368},n:{d:"121,-136v37,6,62,54,62,111v0,32,-16,25,-31,17v-18,-30,-5,-45,-22,-85v-37,-13,-71,55,-92,65v-20,-3,-39,-39,-21,-62v2,-12,3,-15,11,-30v12,-8,20,11,29,12",w:194},o:{d:"108,-139v52,-24,104,18,104,63v0,59,-66,67,-114,83v-52,-2,-115,-50,-80,-105v23,-18,52,-35,90,-41xm45,-60v16,54,125,16,131,-23v-12,-59,-129,-8,-131,23",w:217},p:{d:"82,14v-10,12,-8,117,-24,142v-15,2,-19,0,-29,-13v0,-76,9,-113,22,-192v14,-27,35,-6,37,13v0,8,-3,21,-7,38v2,2,3,2,4,2v26,-9,116,-33,126,-72v-7,-17,-24,-33,-49,-31v-40,3,-116,13,-116,47v-5,7,-2,17,-16,20v-17,-12,-18,-20,-12,-38v8,-25,74,-61,110,-59v55,-15,113,15,118,70v-15,52,-84,79,-146,83v-5,0,-11,-4,-18,-10",w:251},q:{d:"144,-147v27,-8,89,-3,97,31v-9,29,-42,-4,-73,1v-32,6,-118,20,-111,49v0,7,13,13,21,13v21,0,78,-24,104,-34v2,0,9,8,22,21v1,1,1,2,1,5v-27,90,-22,70,-43,203v11,15,-15,54,-33,33v-6,-8,-10,-20,-3,-28v1,-72,5,-114,15,-172v-35,3,-35,10,-59,8v-41,-4,-98,-41,-56,-85v33,-34,59,-27,118,-45",w:248},r:{d:"242,-117v2,22,5,10,-14,23v-73,-7,-166,-23,-174,56v-8,6,-3,20,-8,36v-29,10,-40,-9,-33,-46v6,-31,7,-69,32,-55v58,-37,66,-42,175,-19v3,5,15,4,22,5",w:229},s:{d:"154,-151v19,1,27,24,13,32v-4,1,-22,4,-53,7v-16,8,-22,-2,-39,9v23,21,89,16,96,62v-13,24,-85,35,-124,42v-9,-3,-18,-3,-27,0v-6,-4,-21,-16,-8,-25v30,-6,83,-13,102,-24v-17,-16,-80,-33,-97,-48v-3,-2,-4,-7,-4,-15v-6,-6,3,-13,15,-18v22,-9,94,-23,126,-22",w:188},t:{d:"85,-150v10,-41,35,-126,65,-134v4,1,24,19,11,36v-17,22,-29,57,-36,104v26,8,50,-7,73,5v14,0,22,3,22,9v-1,19,-44,18,-57,23v-10,1,-46,0,-54,10v-10,24,-4,67,-20,98v-21,-3,-26,1,-26,-20v0,-9,2,-36,8,-81v-15,-13,-81,9,-77,-27v4,-38,71,6,91,-23",w:194},u:{d:"207,-136v-1,-2,11,-14,14,-13v6,0,10,7,10,22v-3,40,-23,56,-40,82v-13,19,-62,43,-93,43v-67,-2,-111,-75,-71,-133v26,-3,21,29,19,49v-1,27,26,44,57,42v41,-2,93,-55,104,-92",w:242},v:{d:"24,-127r52,71v42,-16,70,-54,124,-65v5,4,8,7,8,11v-8,19,-4,8,-33,32v0,1,-1,3,-1,5v-61,45,-93,68,-97,68v-40,-15,-50,-72,-68,-100v6,-14,10,-22,15,-22",w:214},w:{d:"15,-139v38,-2,27,57,45,86v30,2,67,-66,101,-78v26,6,36,69,60,78v47,-35,51,-54,119,-104v3,0,7,-2,15,-4v19,23,-9,28,-21,49v-33,28,-68,90,-107,109v-10,6,-52,-47,-72,-71v-20,17,-85,74,-97,73v-38,7,-41,-98,-52,-122v0,-1,3,-7,9,-16",w:325},x:{d:"95,-124v22,-13,78,-32,99,-31v16,0,23,6,23,18v0,22,-17,11,-49,21v-3,0,-45,20,-42,24v0,1,2,4,8,10v20,24,49,41,44,80v-35,3,-27,-9,-60,-44v-40,-43,-37,-26,-79,9v-1,1,-2,3,-3,8v-12,8,-28,10,-27,-11v-6,-8,45,-65,48,-65v-17,-21,-61,-52,-24,-68v9,0,48,37,62,49",w:223},y:{d:"44,-65v22,33,70,4,99,-8v5,-4,28,-15,41,-31r17,0v25,47,-26,70,-40,114v-5,4,-9,8,-10,21v-16,12,-11,33,-27,51v-5,18,-12,43,-23,71v-1,-1,-2,34,-18,29v-12,1,-22,-12,-22,-23v20,-70,24,-65,68,-177v-47,16,-111,8,-116,-39v-11,-13,-7,-62,8,-62v18,0,22,26,23,54",w:216},z:{d:"189,-43v9,-1,46,-6,41,12v0,7,-5,13,-15,14v-45,6,-148,24,-181,13v0,-3,-5,-8,-14,-15v5,-44,66,-46,90,-85v-15,-18,-84,21,-84,-14v0,-10,5,-17,14,-18v33,-3,79,-13,109,-3v4,-2,14,11,12,15v0,23,-26,51,-78,84v28,10,73,-3,106,-3",w:244},"{":{d:"94,-303v27,-9,90,-14,79,26v-20,17,-55,-5,-87,13v-4,1,-6,4,-6,8v33,42,31,44,7,85v-6,10,-13,16,-13,13v5,6,17,17,15,31r-33,78v7,35,28,49,57,63r49,0v7,42,-51,41,-86,20v-43,-13,-51,-51,-56,-89v-2,-25,25,-54,27,-71v-3,-4,-46,-5,-41,-21v2,-10,-3,-29,11,-25v2,0,51,-17,52,-38v4,-3,-25,-23,-25,-49v0,-41,8,-30,50,-44",w:179},"|":{d:"30,-308v26,5,14,50,15,80v5,78,-8,153,-3,225v-2,15,-1,31,-11,36v-8,-3,-25,-22,-25,-32r9,-183v0,-40,0,-78,1,-112v0,-4,9,-15,14,-14",w:63},"}":{d:"47,-298v34,-17,118,-18,112,36v6,25,-76,98,-69,103v4,16,39,7,44,28v7,34,-34,17,-37,39v8,29,49,83,23,123v-15,23,-43,26,-73,46v-34,8,-43,11,-49,-17v1,-15,30,-15,33,-20v24,-12,70,-27,55,-61v-14,-33,-37,-68,-19,-103v-46,-50,46,-100,60,-141v-10,-16,-68,6,-77,-12",w:143},"~":{d:"7,-254v2,-6,59,-50,67,-46v11,-1,35,19,46,26v5,0,27,-10,66,-31v21,8,-1,25,-7,38v-27,21,-48,31,-65,31v-24,-11,-37,-39,-65,-9v-7,7,-26,36,-42,11v3,-5,-3,-17,0,-20",w:199},"Ä":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm187,-259v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm90,-284v7,3,28,11,28,18v0,9,-9,18,-18,17v-17,0,-25,-24,-10,-35"},"Å":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm112,-239v-31,-17,-9,-61,29,-56v12,2,22,3,33,12v24,39,-30,62,-62,44xm119,-262v2,14,41,8,41,-4v0,-4,-8,-6,-24,-9v-10,-2,-17,10,-17,13"},"Ç":{d:"48,-108v-12,70,90,71,159,67r138,-9v9,-1,7,9,7,17v-37,16,-80,27,-103,21v-14,9,-40,3,-67,9v-30,0,-64,1,-100,-10v-6,-1,-10,-4,-10,-8v-32,-12,-46,-31,-63,-56v-16,-61,47,-103,83,-121v82,-42,118,-45,200,-60v21,-4,36,34,11,37v-90,11,-148,31,-225,77v-12,8,-23,20,-30,36xm172,18v29,4,47,14,53,35v-2,7,-14,31,-27,31v-28,7,-55,9,-84,14v-18,-5,-13,-32,7,-32v21,0,55,-5,69,-13v-16,-14,-63,10,-50,-35v9,-10,1,-27,23,-29v7,8,11,16,9,29",w:331},"É":{d:"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm133,-248v27,-11,48,-32,59,-14v3,11,-79,52,-88,53v-14,1,-16,-11,-12,-21v10,-4,23,-11,41,-18",w:252},"Ñ":{d:"224,-182v1,-17,15,-24,22,-38v20,0,13,10,3,33v-3,36,-25,52,-28,94v-10,24,-30,55,-29,82r-19,7v-32,-8,-36,-70,-58,-111v-2,-23,-7,-27,-19,-54v-28,36,-41,93,-71,133v-9,5,-20,-9,-20,-17r73,-149v9,-24,31,-5,36,7v19,41,31,98,53,139v22,-35,34,-69,50,-118v2,-3,3,-3,7,-8xm203,-257v22,-8,41,-24,65,-26v3,11,-8,9,-7,21v-26,20,-46,31,-59,31v-2,3,-49,-27,-49,-29v-11,0,-32,31,-46,32v-11,-2,-12,-21,-4,-23v4,-6,28,-30,48,-34v17,-4,43,28,52,28",w:219},"Ö":{d:"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm197,-229v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm101,-254v7,3,28,9,27,18v1,8,-8,17,-17,17v-18,0,-26,-24,-10,-35",w:273},"Ü":{d:"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-29,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm197,-227v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm101,-252v7,3,27,10,27,18v0,8,-9,18,-18,17v-18,-1,-24,-25,-9,-35",w:262},"á":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm32,-117v24,-3,85,-55,101,-32v3,11,-80,53,-89,53v-13,2,-14,-10,-12,-21",w:173},"à":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm99,-137v7,6,56,14,37,40v-28,-7,-62,-21,-100,-41v-2,-3,-2,-26,5,-23v16,4,42,17,58,24",w:173},"â":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm147,-97v-27,-6,-39,-26,-60,-37v-21,7,-38,46,-65,23v-2,-5,-3,-10,-4,-14v18,-4,43,-31,61,-42v28,5,40,21,62,36v12,8,18,17,18,25v0,6,-4,9,-12,9",w:173},"ä":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-32,5,-66,-64,-15,-77v39,-26,92,-36,104,9v0,6,-3,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm142,-119v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,28,2,28,21xm46,-144v7,3,28,9,27,18v1,8,-9,18,-18,17v-18,-1,-25,-25,-9,-35",w:173},"ã":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm114,-136v22,-8,41,-24,64,-26v3,11,-7,10,-7,21v-26,20,-45,30,-58,30v-3,3,-49,-26,-49,-28v-10,-1,-32,35,-51,31v-12,-32,8,-29,32,-51v24,-21,54,20,69,23",w:173},"å":{d:"118,-53v10,4,55,41,62,47v0,7,-5,16,-12,16r-57,-28v-20,3,-40,19,-61,18v-10,2,-43,-17,-42,-36v0,-14,7,-40,27,-41v39,-26,92,-36,104,9v0,6,-2,11,-9,15v-32,-24,-64,-6,-84,11v8,15,58,-17,72,-11xm54,-101v-37,-20,-9,-71,34,-65v13,1,25,3,38,13v27,45,-34,73,-72,52xm61,-128v4,20,48,7,49,-5v0,-5,-9,-7,-28,-10v-12,-2,-21,11,-21,15",w:173},"ç":{d:"108,-118v30,-6,56,21,25,33v-24,-6,-39,5,-75,23v-7,4,-12,12,-15,22v31,28,86,3,128,9v3,28,-29,16,-44,28v-53,15,-106,10,-120,-37v0,-48,62,-70,101,-78xm92,18v23,4,45,12,48,32v-2,6,-12,28,-25,28v-24,6,-50,10,-77,13v-16,-4,-11,-28,7,-29v17,-1,51,-4,63,-12v-14,-15,-57,10,-46,-32v9,-8,0,-25,21,-26v6,6,12,14,9,26",w:171},"é":{d:"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm76,-169v26,-11,48,-32,59,-14v3,10,-80,53,-89,53v-14,1,-14,-10,-12,-21v15,-7,16,-7,42,-18",w:161},"è":{d:"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm95,-166v7,6,54,14,37,40v-28,-7,-62,-21,-100,-41v-3,-3,-3,-26,5,-24v16,5,42,18,58,25",w:161},"ê":{d:"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10v-1,1,-2,3,-2,3v0,3,12,7,35,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-70,-26,-70,-58v0,-54,48,-65,104,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm145,-129v-27,-6,-39,-26,-60,-37v-8,0,-10,4,-14,10v-11,15,-51,34,-56,0v17,-4,44,-32,61,-43v28,5,41,21,63,36v12,8,17,17,17,25v0,6,-3,9,-11,9",w:161},"ë":{d:"108,-124v42,-3,70,39,50,73v-22,-1,-70,12,-94,10r-3,3v0,3,12,7,36,14v18,0,64,7,30,21v-10,14,-31,6,-53,6v-26,-7,-67,-27,-71,-58v7,-52,48,-65,105,-69xm130,-78v-2,-35,-66,-13,-77,3v16,6,62,6,77,-3xm140,-144v0,8,-4,12,-12,12v-18,0,-19,-19,-16,-33v18,-1,29,1,28,21xm44,-169v7,3,28,9,28,17v0,9,-9,18,-18,18v-18,0,-25,-24,-10,-35",w:161},"í":{d:"59,-98v20,4,15,53,10,95v-6,1,-11,2,-19,-4v1,-7,-12,-18,-10,-24v4,-22,-4,-65,19,-67xm50,-139v27,-11,49,-32,59,-14v3,11,-80,53,-89,53v-14,1,-14,-12,-11,-22v15,-7,14,-6,41,-17",w:105},"ì":{d:"57,-98v22,5,13,50,11,95v-7,1,-11,2,-20,-4v1,-7,-12,-18,-10,-24v4,-22,-2,-64,19,-67xm70,-139v14,10,54,14,37,41v-28,-7,-61,-22,-99,-42v-3,-2,-3,-25,5,-23v15,5,41,17,57,24",w:109},"î":{d:"72,-98v20,5,12,51,10,95v-6,2,-13,1,-20,-4v1,-8,-12,-18,-10,-24v4,-22,-3,-65,20,-67xm134,-94v-26,-7,-39,-25,-60,-37v-7,0,-9,4,-13,10v-14,15,-51,34,-56,-1v18,-4,45,-33,61,-43v27,6,40,22,62,37v12,8,18,17,18,25v0,6,-4,9,-12,9",w:143},"ï":{d:"55,-97v19,5,15,53,10,95v-17,5,-26,-14,-30,-28v6,-20,-3,-65,20,-67xm110,-118v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm14,-143v6,3,28,8,28,17v0,9,-9,18,-18,18v-18,0,-25,-24,-10,-35",w:107},"ñ":{d:"115,-129v34,6,59,50,59,105v0,31,-15,24,-30,17v-15,-29,-5,-42,-20,-81v-35,-13,-68,52,-88,61v-20,-4,-38,-36,-19,-59v0,-12,3,-14,10,-28v11,-8,18,11,27,12xm117,-166v22,-7,41,-23,64,-26v3,11,-7,10,-7,21v-26,20,-45,30,-58,30v-3,3,-49,-26,-49,-28v-10,-1,-32,35,-51,31v-5,-12,-8,-16,0,-23v4,-6,28,-29,48,-33v17,-3,43,28,53,28",w:171},"ó":{d:"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm49,-154v24,-3,85,-55,101,-32v3,11,-80,53,-89,53v-14,0,-13,-8,-12,-21",w:191},"ò":{d:"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm115,-181v14,10,51,13,37,40v-28,-7,-62,-21,-100,-41v-3,-2,-3,-26,5,-23v16,5,42,17,58,24",w:191},"ô":{d:"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm110,-177v-22,6,-38,45,-65,22v-2,-4,-3,-9,-4,-13v18,-4,43,-32,61,-43v27,6,40,21,62,36v12,9,18,17,18,25v1,11,-15,10,-23,7",w:191},"ö":{d:"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm161,-160v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm65,-185v7,3,28,9,28,18v0,7,-9,18,-18,17v-18,1,-25,-24,-10,-35",w:191},"õ":{d:"102,-132v50,-20,99,16,99,60v0,54,-60,64,-108,79v-50,-2,-110,-48,-76,-100v22,-17,49,-33,85,-39xm136,-104v-34,0,-91,27,-94,47v16,51,125,16,125,-22v0,-17,-10,-25,-31,-25xm58,-199v26,-21,54,18,69,22v4,0,15,-5,34,-13v22,-9,21,-16,31,-13v3,11,-9,9,-7,22v-26,20,-46,30,-59,30v-2,4,-49,-28,-49,-29v-11,0,-32,31,-46,32v-12,-3,-13,-21,-4,-23v4,-6,14,-15,31,-28",w:191},"ú":{d:"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm106,-174v26,-11,48,-32,59,-14v3,11,-81,53,-89,54v-13,1,-15,-12,-11,-22v15,-7,14,-7,41,-18",w:213},"ù":{d:"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm126,-166v7,6,56,14,37,40v-28,-7,-62,-22,-100,-42v-2,-3,-2,-26,5,-23v16,4,42,18,58,25",w:213},"û":{d:"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm172,-143v-27,-6,-39,-26,-60,-37v-8,0,-10,4,-14,10v-11,15,-49,35,-56,0v17,-4,44,-32,61,-43v27,6,41,21,63,36v12,9,17,17,17,25v0,6,-3,9,-11,9",w:213},"ü":{d:"196,-129v-1,-4,12,-13,15,-13v6,0,8,7,8,21v0,24,-7,25,-13,45v-7,7,-14,21,-24,29v-9,24,-61,45,-89,45v-63,0,-105,-72,-67,-126v24,-3,19,27,18,46v-1,26,23,42,54,40v38,-3,88,-51,98,-87xm168,-161v0,8,-3,13,-11,13v-17,0,-20,-19,-17,-34v18,-1,29,1,28,21xm72,-186v7,3,29,9,28,18v0,7,-9,18,-18,17v-18,1,-25,-24,-10,-35",w:213},"†":{d:"22,-286v15,6,5,-20,19,-19v9,-3,15,21,17,22v6,1,12,3,20,6v3,10,5,16,-9,16v-34,-10,-6,51,-34,52v-20,-7,11,-47,-15,-49v-14,3,-25,-5,-17,-24v7,-2,14,-4,19,-4",w:77},"°":{d:"106,-268v0,36,-35,38,-51,46v-48,5,-60,-58,-25,-78v33,-11,76,-9,76,32xm38,-257v16,7,39,2,38,-17v-13,-9,-28,-1,-32,11v-5,3,-7,0,-6,6",w:114},"¢":{d:"105,-188v13,-12,14,-18,26,-15v7,23,7,15,-3,49v6,0,18,14,17,20v-3,5,-12,19,-26,13v-14,1,-14,5,-16,21v10,10,46,-13,38,18v-9,17,-23,16,-54,20v-17,16,-4,55,-29,60v-37,-10,19,-64,-24,-71v-20,-10,-37,-47,-6,-62v23,-20,73,-4,77,-53xm65,-101v4,-9,7,-8,3,-13v-14,4,-22,10,-3,13",w:154},"£":{d:"153,-170v3,22,62,0,49,39v-18,6,-31,12,-58,9v-12,-1,-17,30,-23,39v19,26,50,56,91,35v9,-2,27,-13,27,4v0,27,-27,39,-58,42v-32,-5,-59,-19,-78,-39v-6,1,-35,44,-57,39v-25,0,-37,-15,-37,-46v0,-41,43,-53,73,-50v4,1,12,-18,12,-21v-7,-15,-49,0,-44,-30v-2,-31,31,-16,60,-19v16,-30,25,-119,93,-113v16,2,75,16,50,44v-4,5,-7,7,-12,8v-18,-12,-32,-18,-41,-18v-35,-1,-38,52,-47,77xm43,-45v4,5,12,-2,11,-9v-1,2,-12,1,-11,9",w:242},"§":{d:"141,-115v12,10,29,36,28,56v-4,68,-129,69,-152,16v-1,-12,-10,-22,8,-23v17,3,47,21,67,23v16,1,40,-8,38,-21v-8,-49,-119,-30,-117,-85v1,-28,15,-45,-3,-64v-1,-53,55,-61,103,-62v15,-5,6,-5,20,-2v16,17,23,27,23,30v-1,26,-29,7,-45,7v-21,0,-51,2,-62,17v19,14,87,8,97,43v18,14,16,57,-5,65xm64,-147r57,17v10,-28,-22,-43,-47,-44v-25,-1,-35,19,-10,27",w:174},"•":{d:"130,-114v0,47,-124,54,-120,-8r6,-31v44,-28,64,-34,104,0v8,6,10,20,10,39",w:139},"¶":{d:"121,-237v21,-9,44,-13,63,-1v-1,7,5,6,7,11r-4,190v-2,33,4,39,-15,40v-16,1,-10,-20,-10,-33r4,-161v0,-17,-1,-34,-16,-25v2,10,1,23,1,35v-9,46,-6,75,-15,156v-3,4,-7,5,-12,5v-17,-10,-3,-89,-10,-115v-43,14,-98,10,-101,-29v-4,-53,59,-63,104,-75v3,1,4,2,4,2xm95,-204v2,9,-30,50,1,50v35,0,23,-13,29,-43v0,-1,-2,-7,-4,-15v-12,-1,-14,2,-26,8",w:206},"ß":{d:"33,10v-29,4,-28,-32,-16,-70v18,-58,17,-137,56,-176v12,-24,46,-58,82,-43v20,8,47,24,47,54v0,30,-62,59,-67,90v33,23,56,33,63,63v-18,21,-22,36,-48,54v-24,17,-27,41,-53,16v-2,-19,7,-35,24,-42v15,-13,26,-22,34,-40v-13,-17,-78,-29,-56,-70v-3,-27,64,-54,66,-86v-8,-25,-41,-4,-52,8v-29,30,-47,83,-51,141v-17,25,-8,71,-29,101"},"®":{d:"75,-194v78,-29,116,9,130,84v-2,42,-22,47,-57,67v-74,20,-161,-19,-129,-110v6,-18,29,-34,57,-40xm46,-86v51,36,84,21,129,-15v7,-15,0,-39,-10,-49v-13,-37,-49,-26,-86,-18v-28,7,-49,46,-33,82xm72,-123v-5,-43,68,-57,75,-14v-17,26,-18,17,3,32v2,25,-25,18,-45,7r-4,-4v-1,8,-3,20,-12,24v-10,-3,-21,-34,-17,-45xm112,-135v-10,-1,-20,13,-9,14v6,-6,9,-11,9,-14",w:217},"©":{d:"102,-29v-74,5,-124,-84,-70,-140v22,-22,53,-35,97,-38v46,-4,88,49,74,100v0,44,-51,75,-101,78xm96,-66v42,-3,75,-23,75,-69v0,-23,-4,-38,-44,-38v-16,0,-33,6,-49,20v36,-4,55,-12,62,20v-5,16,-49,1,-50,21v10,15,53,-14,54,11v0,18,-14,27,-42,27v-22,1,-46,-11,-46,-31v0,-25,7,-39,20,-44v-1,-1,-2,-2,-3,-2v-51,22,-32,89,23,85",w:217},"™":{d:"213,-307v28,9,11,49,7,75v-1,4,-4,6,-11,6v-7,1,-11,-14,-11,-34v-14,-6,-34,34,-46,28v-2,0,-10,-9,-24,-27v-10,7,-3,36,-27,31v-15,-24,-3,-27,1,-48v-6,-7,-27,-1,-31,3v-3,14,-7,30,-11,51v-5,10,-29,9,-24,-12v-5,-8,1,-18,3,-35v-13,6,-33,2,-29,-18v20,-17,64,-17,100,-19v28,-1,29,30,45,39v11,-6,35,-32,58,-40",w:239},"´":{d:"52,-284v29,-11,50,-34,62,-14v3,12,-86,54,-94,56v-14,0,-16,-12,-12,-23v11,-5,25,-11,44,-19",w:120},"¨":{d:"124,-259v0,9,-4,13,-12,13v-18,0,-22,-21,-17,-35v19,-1,30,1,29,22xm23,-285v7,2,30,9,29,18v1,10,-9,19,-18,19v-19,0,-28,-26,-11,-37",w:136},"≠":{d:"48,-130v29,11,49,-57,60,-50v25,6,7,27,-1,46v22,5,29,7,21,22v-18,2,-48,-1,-50,15v9,8,53,-7,54,10v-4,22,-46,20,-72,24v-7,13,-18,32,-34,57v-8,6,-15,-3,-13,-14v-1,-9,15,-39,14,-45v-30,5,-24,-17,-13,-25v12,-1,36,4,29,-13v-14,0,-47,6,-36,-12v0,-18,27,-13,41,-15",w:140},"Æ":{d:"335,-259v0,30,-102,12,-122,34v10,21,2,79,16,100v24,-6,59,-13,86,-16v23,-2,32,21,13,26r-103,29v-3,22,-4,38,8,43v28,-5,60,-6,86,-14v5,-1,14,7,14,11v6,16,-90,40,-107,40v-29,0,-39,-19,-32,-46v-2,-4,0,-26,-9,-28v-29,2,-58,6,-88,6v-31,0,-40,74,-82,73v-18,-23,4,-37,12,-50v40,-65,112,-126,165,-207v20,-17,69,-11,112,-13v21,0,31,4,31,12xm123,-111v28,1,44,-2,67,-10v-4,-22,5,-49,-7,-65v-3,6,-65,61,-60,75",w:348},"Ø":{d:"76,-211v41,-13,100,-22,140,-3v26,-19,40,-29,44,-29v10,0,15,7,15,20v0,15,-23,23,-30,35v23,39,29,114,-21,139v-36,19,-102,35,-147,18v-14,-5,-29,29,-46,35v-25,-13,-19,-24,3,-56v-9,-17,-28,-27,-28,-60v0,-38,23,-72,70,-99xm107,-66v55,15,125,-12,123,-70v0,-16,-5,-25,-13,-29r-110,95r0,4xm39,-108v-1,3,17,31,22,27v8,-6,109,-90,123,-106v-15,-11,-43,1,-63,2v-33,10,-80,35,-82,77",w:270},"∞":{d:"322,-72v-4,22,-54,41,-76,41v-43,0,-83,-17,-114,-35v-46,19,-125,53,-128,-18v-1,-14,10,-22,13,-35v29,-10,62,-31,97,-4v37,28,47,5,75,-8v40,-19,73,-10,114,1v13,1,18,55,19,58xm228,-69v15,0,62,-12,61,-25v-19,-23,-89,-10,-105,11v0,2,1,4,2,4v28,6,42,10,42,10xm75,-102v-13,2,-41,4,-44,19v0,4,3,7,10,7v21,0,40,-6,54,-17v-9,-6,-16,-9,-20,-9",w:330},"±":{d:"93,-163v-7,46,76,-4,46,47v-14,6,-27,13,-38,8v-24,2,-14,28,-28,44r-14,0v-7,-12,-5,-15,-7,-33v-12,-7,-41,-1,-37,-24v2,-11,23,-17,36,-14r28,-38v4,0,9,4,14,10xm113,-27v-12,18,-58,27,-85,24v-16,2,-22,-23,-13,-36v28,-7,85,-11,98,12",w:151},"≤":{d:"73,-109v10,15,87,16,87,42v0,11,-5,16,-13,16v-36,-11,-69,-24,-109,-31v-18,-8,-18,-13,-9,-36v59,-56,93,-83,101,-83v16,0,18,17,14,28v-27,24,-42,35,-71,64xm10,-29v35,-12,117,-26,148,-3v1,2,-5,19,-8,18r-124,15v-16,2,-26,-18,-16,-30",w:168},"≥":{d:"115,-174v20,7,53,36,20,57v-19,11,-91,68,-82,59v-18,3,-25,-22,-13,-31v15,-10,14,-10,70,-51r-50,-37v-5,-4,-5,-27,4,-28v16,7,40,17,51,31xm14,-32v33,-10,86,-14,127,-10v12,12,5,23,-11,27v-49,9,-82,13,-99,13v-22,0,-24,-16,-17,-30",w:163},"¥":{d:"31,-248v30,-3,64,64,74,59v37,-22,77,-65,107,-82v20,-11,34,18,21,32v-28,19,-52,38,-70,57v-18,8,-40,21,-35,60v2,19,39,7,64,7v25,0,16,21,2,27v-36,16,-46,8,-68,18v6,11,101,-20,66,24v-21,11,-42,12,-75,20v-2,1,-5,6,-10,18v-8,3,-11,10,-24,8v-7,-17,-2,-18,-9,-26v-13,5,-39,3,-53,-2v-10,-17,-7,-27,0,-34v23,-1,45,1,64,-5v-11,-7,-28,-4,-64,-6v-13,-8,-15,-24,-6,-35v33,-2,102,9,76,-37v-14,-14,-33,-38,-60,-66v-10,-10,-8,-28,0,-37",w:219},"µ":{d:"123,-114v41,0,54,-9,127,-17v12,-2,20,-6,25,-12v5,-78,43,-127,119,-138v38,-5,46,23,55,48v-5,5,2,4,2,12v-2,47,-72,81,-129,95v-17,4,-12,32,-2,39v30,-5,24,0,99,4v14,9,14,20,-1,23v-17,3,-71,-1,-85,13v1,19,18,35,-3,47v-1,-6,-10,-7,-16,-5v-3,-3,-20,-37,-29,-41v-15,8,-50,22,-49,-9v1,-19,2,-27,28,-26v24,1,13,-12,8,-30v-22,1,-64,16,-111,23v-50,7,-17,47,-17,57v0,10,-5,15,-13,15v-20,-9,-27,-30,-33,-55v-20,-17,-52,8,-85,-6v-2,-10,-13,-26,4,-29v32,-6,41,-1,65,-7v-17,-74,-4,-173,69,-180v55,-20,130,8,131,65v-11,9,-10,2,-29,-11v-33,-23,-37,-26,-76,-25v-41,13,-69,38,-67,100v0,34,4,50,13,50xm317,-152v29,-6,106,-43,106,-71v0,-23,-24,-25,-42,-17v-31,1,-74,48,-64,88",w:462},"∂":{d:"456,-113v55,-37,119,-8,176,5v-19,37,-104,-5,-144,18v-5,64,-45,87,-130,87v-43,0,-70,-8,-96,-21v-54,15,-146,29,-209,10v-18,-11,-43,-26,-46,-53v-1,-9,28,-48,51,-46v55,-10,55,-8,101,-8v29,0,17,-26,23,-56v4,-19,4,-74,34,-49v4,42,-7,83,-10,124v0,4,-11,10,-34,17v-29,-1,-45,-4,-74,1v-10,2,-57,3,-52,18v30,43,132,30,190,18v2,-10,-7,-19,-5,-28v5,-36,31,-59,74,-56v27,2,71,4,70,35v-1,30,-37,41,-58,57v35,13,131,15,135,-23v2,-19,-5,-36,4,-50xm262,-85v0,3,13,28,19,25v7,0,48,-13,61,-29v-10,-17,-71,-17,-80,4",w:640},"∑":{d:"235,-95v-3,-59,120,-41,160,-28v3,-2,15,-3,14,4v1,3,-16,19,-21,18r-97,4v-25,5,-18,18,-23,56v-16,14,-25,24,-36,18v-83,32,-154,29,-212,-17v-45,-68,41,-114,107,-119v50,-4,59,66,22,85v-16,8,-61,10,-79,15v36,27,185,24,165,-36xm128,-119v-23,-3,-43,4,-53,15v13,5,46,-4,53,-15",w:414},"∏":{d:"243,-190v7,-18,27,-19,38,6v0,2,-5,8,-14,16v-8,-9,-27,-4,-24,-22xm221,-111v55,-7,60,22,45,64v5,23,17,47,-22,47v-35,0,-18,-40,-15,-70v-2,-19,-35,-13,-52,-18v-2,0,-13,1,-34,3v-4,0,-10,11,-13,31v-3,20,1,43,-11,54v-12,-4,-13,-5,-21,-3v-13,-13,-3,-25,-12,-41v7,-6,12,-22,10,-39v-23,-8,-79,15,-87,-21v12,-28,78,-4,101,-20r36,-96v8,-19,17,-28,27,-28v10,0,15,6,15,18v-6,32,-31,62,-38,109v25,10,47,-1,71,10",w:282},"π":{ d:"247,-240v-3,5,-14,12,-21,6v-41,5,-71,-4,-85,37v-6,7,-21,42,-25,61v28,12,104,-16,129,24v8,11,12,24,12,38v-7,17,-2,99,-40,68v-9,-23,-5,-47,-1,-73v3,-24,-40,-24,-50,-19v-4,0,-18,2,-44,6v-30,-6,-16,49,-33,58v-19,-11,-14,2,-29,-10v8,-71,20,-114,43,-170v-24,-2,-49,4,-73,7v-30,3,-32,-33,-7,-36r184,-22v17,-1,40,13,40,25",w:265},"∫":{d:"62,-151v-7,-70,20,-130,63,-150v28,1,39,10,70,23v20,8,6,33,-6,35v-29,-13,-45,-20,-49,-20v-20,-4,-45,51,-43,70v8,60,5,129,5,189v0,62,-27,93,-79,93v-37,-1,-71,-14,-63,-57v21,0,79,34,91,-2v16,-3,14,-64,21,-85v-2,-31,-1,-74,-10,-96",w:156},"ª":{d:"6,-265v1,-31,58,-53,80,-22v-11,14,25,28,25,36v-2,8,-15,12,-27,10v-22,-29,-68,19,-78,-24xm52,-281v-8,1,-24,10,-9,13v11,1,24,-10,9,-13",w:117},"º":{d:"13,-273v1,-31,56,-41,83,-18v36,8,14,48,-9,52v-35,6,-64,-5,-74,-34xm81,-269v-7,-7,-20,-11,-29,-6v5,13,13,11,29,6",w:128},"Ω":{d:"121,-111v9,16,43,-5,54,5v28,-4,62,8,81,-5v48,-33,166,-28,160,44v15,34,-51,53,-88,53v-34,0,-53,-21,-71,-37v-15,7,-32,-4,-28,-22v-26,-4,-93,-6,-108,8v8,17,5,37,12,54v-1,15,-18,15,-31,10v-9,-15,-20,-39,-19,-63v-20,-9,-73,15,-79,-18v4,-28,50,-11,77,-24v12,-99,36,-168,137,-178v35,5,64,20,67,57v0,13,-14,18,-20,5v-15,-35,-83,-31,-104,4v-26,20,-39,82,-40,107xm334,-45v15,2,51,-14,53,-22v-7,-20,-36,-31,-69,-29v-8,-1,-39,6,-37,14v-3,10,44,38,53,37",w:424},"æ":{d:"145,-44r33,7v2,42,-59,29,-85,16v-6,7,-35,24,-48,15v-19,2,-35,-21,-33,-37v2,-24,5,-19,28,-36v-6,-8,-45,3,-33,-21v21,-22,58,-12,85,-1v6,-5,35,-28,45,-15v20,-4,36,17,36,35v0,23,-4,21,-28,37xm111,-72v12,3,49,-16,19,-17v-5,0,-20,12,-19,17xm74,-50v-14,-4,-48,16,-19,17v4,1,19,-14,19,-17",w:184},"ø":{d:"76,-136v17,7,33,-8,51,0v9,-6,21,-13,36,-21v23,22,-13,31,3,50v11,13,4,21,14,35v-4,5,-1,14,-4,23v-14,23,-45,41,-84,39v-12,2,-29,28,-41,38v-2,-11,-34,-10,-15,-30v3,-7,5,-11,5,-11v-15,-24,-60,-54,-22,-89v23,-21,25,-32,57,-34xm102,-54v18,1,50,-19,30,-32v-12,7,-22,18,-30,32xm85,-92v-14,3,-26,8,-38,17v2,20,17,13,26,0v6,-8,12,-13,12,-17",w:188},"¿":{d:"181,-247v3,1,31,2,29,15v-4,22,-37,27,-41,4v1,-5,7,-20,12,-19xm161,-34v-45,-1,-105,19,-124,51v0,11,18,17,54,17v39,0,82,-13,112,4v-10,35,-58,31,-100,31v-47,0,-80,-10,-99,-31v-10,-56,22,-73,64,-90v8,-3,32,-9,74,-18v21,-15,7,-62,22,-92v-1,-5,-1,-11,4,-12v16,0,24,7,24,22v-8,30,-8,73,-17,111v-3,5,-7,7,-14,7",w:213},"¡":{d:"86,-197v8,16,-7,41,-24,25v-11,-11,-4,-16,-3,-29v13,0,15,-2,27,4xm46,-107v4,-8,11,-16,23,-7v19,26,-5,57,-6,87v-7,0,-5,18,-9,28v0,14,-17,52,-11,70v-2,7,-15,28,-25,12v-4,-6,-15,-7,-6,-16v2,-39,14,-96,34,-174",w:95},"¬":{d:"141,-99v47,7,103,-3,149,6v14,24,18,15,10,39v-10,34,-7,31,-26,76v-4,6,-15,8,-16,21v-4,2,-4,1,-13,5v-22,-33,-4,-33,16,-104v-5,-9,-28,-4,-38,-6r-183,4v-14,0,-41,-29,-17,-36v31,-9,82,5,118,-5",w:315},"√":{d:"364,-218v43,-21,80,-51,104,-32v-3,19,-24,21,-44,40v-41,15,-78,53,-136,78r-137,98v-20,16,-79,66,-91,68v-3,1,-25,-11,-24,-13v-4,-28,-43,-61,-30,-85v26,-15,42,19,58,32r295,-188v0,1,2,2,5,2",w:474},"ƒ":{d:"115,-262v-23,6,-39,63,-38,96v1,3,57,2,54,16v1,22,-45,15,-51,30v3,34,12,68,10,103v14,17,-18,53,-28,63v-48,8,-89,5,-95,-37v20,-5,77,21,83,-18v17,-29,-4,-61,0,-98v0,-5,-3,-10,-7,-17v-33,4,-43,-17,-25,-37v10,-4,27,5,27,-10v0,-43,15,-77,32,-109v12,-7,16,-22,38,-20v11,1,51,35,25,55v-9,1,-16,-17,-25,-17",w:145},"≈":{d:"133,-112v21,15,48,-30,78,-17v3,3,5,7,5,9v-8,30,-47,45,-76,45v-19,0,-64,-48,-90,-21r-29,20v-6,-1,-17,-16,-15,-32v24,-17,70,-42,107,-21v4,4,10,9,20,17xm138,-57v28,2,48,-25,76,-26v13,30,-21,42,-40,53v-41,24,-77,-15,-114,-23v-15,14,-46,32,-49,-1v-3,-9,27,-28,54,-30",w:223},"∆":{d:"18,-1v-24,-30,8,-48,25,-71v14,-19,34,-28,40,-56v20,-35,29,-14,57,4v9,39,43,62,57,102v0,16,-34,17,-50,14v-28,2,-72,4,-129,7xm139,-47r-22,-52v-12,-5,-12,15,-24,27v-7,6,-14,16,-23,28v23,1,36,-1,69,-3",w:199},"«":{d:"191,-64v16,6,87,37,53,63v-39,-9,-71,-28,-107,-40v-14,-13,-13,-34,10,-47v27,-15,48,-55,84,-62v9,-2,21,10,21,18r-13,21v-16,5,-44,22,-51,41v0,4,1,6,3,6xm71,-65v17,6,87,35,55,62v-39,-8,-66,-27,-108,-40v-14,-13,-13,-36,10,-46v23,-18,50,-56,84,-63v9,-2,21,10,21,18r-13,22v-20,6,-32,17,-51,37v0,3,-1,11,2,10",w:265},"»":{d:"120,-129v9,-33,48,-10,64,5v9,20,86,52,50,86v-36,11,-66,31,-107,40v-6,-7,-9,-13,-9,-17v-2,-13,50,-46,63,-46v11,-18,-33,-42,-48,-47xm1,-128v10,-33,46,-8,64,6v8,19,86,50,51,85v-40,13,-69,30,-108,40v-6,-7,-8,-12,-8,-16v-2,-14,50,-46,63,-47v7,-13,-9,-20,-19,-30v-10,-9,-20,-15,-30,-17",w:252},"…":{d:"244,-24v-1,21,-38,32,-41,3v-2,-19,23,-22,34,-17v0,7,0,15,7,14xm113,-24v0,-22,28,-21,38,-8v5,34,-39,40,-38,8xm35,-2v-10,-2,-36,-17,-18,-29v-1,-15,17,-17,31,-6v7,17,6,33,-13,35",w:258}," ":{w:179},"À":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm150,-268v14,10,54,14,37,41v-28,-7,-62,-22,-100,-42v-2,-3,-2,-26,5,-23v16,4,42,17,58,24"},"Ã":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm100,-285v26,-19,54,19,69,22v4,0,15,-5,34,-13v23,-9,22,-17,31,-12v3,11,-9,9,-7,21v-26,20,-46,30,-59,30v-3,3,-50,-26,-49,-29v-12,1,-31,35,-51,32v-3,-8,-5,-14,-5,-18v10,-9,16,-17,37,-33"},"Õ":{d:"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm116,-270v26,-19,54,19,69,22v4,0,15,-5,34,-13v23,-10,22,-16,31,-12v3,11,-8,9,-7,21v-45,28,-47,42,-88,16v-29,-19,-12,-20,-43,2v-8,5,-12,18,-23,15v-13,-3,-12,-20,-4,-23v4,-6,14,-15,31,-28",w:273},"Œ":{d:"247,-243v71,4,161,-7,245,-8v17,0,27,6,27,17v-8,27,-70,14,-104,23v-3,1,-52,0,-65,7r0,4v16,16,17,29,17,65v32,10,74,-14,99,16v-14,25,-76,17,-127,24v-17,18,-55,32,-75,51v85,0,128,-3,204,-11v15,-2,21,11,20,29v-78,24,-177,12,-270,24v-24,3,-24,-29,-48,-15v-46,7,-70,4,-105,-4v-19,-18,-42,-22,-52,-55v-10,-34,0,-47,12,-78v-18,-59,48,-78,105,-84v17,-18,103,-13,117,-5xm125,-45v76,-9,186,-43,209,-105v-26,-67,-137,-83,-217,-54v3,34,-45,25,-60,58v-41,48,5,108,68,101",w:492},"œ":{d:"185,-54v25,28,107,-17,104,33v-12,12,-60,14,-87,14v0,0,1,1,2,1v-11,1,-39,-9,-50,-17v-28,17,-75,32,-114,7v-22,-14,-34,-11,-34,-41v0,-36,33,-49,48,-75v29,-16,72,-3,95,11v12,-9,48,-27,59,-26v30,0,64,15,65,40v0,7,-6,20,-20,37v-29,1,-44,11,-68,16xm226,-106v-21,-7,-41,-2,-48,13v14,1,42,-7,48,-13xm132,-87v-21,-35,-94,11,-92,24v-2,14,43,21,61,21v25,0,36,-20,31,-45",w:295},"–":{d:"6,-66v-8,-72,79,-21,146,-39v37,-10,79,7,111,0v9,8,14,13,14,17v2,26,-72,13,-99,21v-83,4,-124,21,-172,1",w:282},"—":{d:"175,-106v86,-9,201,1,286,-1v11,6,13,11,6,30v-118,15,-246,10,-377,10v-25,0,-73,3,-82,-8r-2,-26v11,-13,32,-9,52,-7v38,3,84,-5,117,2",w:485},"“":{d:"66,-261v-21,5,-37,51,-22,77v0,4,-2,6,-7,6v-31,-9,-38,-62,-12,-94v12,-15,21,-28,31,-34v16,-1,19,24,22,34v10,-11,22,-32,43,-23v-2,8,4,16,5,19v-6,11,-51,53,-29,74v-12,21,-30,5,-33,-17v-6,-13,9,-28,2,-42",w:118},"”":{d:"120,-294v12,3,30,26,19,34v2,15,-40,70,-55,66v-40,-10,10,-51,14,-64v3,-3,8,-31,22,-36xm70,-306v14,3,26,34,16,49v-19,30,-31,45,-58,59v-12,-11,-33,-17,-7,-36v13,-19,36,-27,36,-59v0,-5,9,-13,13,-13",w:148},"‘":{d:"73,-262v-10,7,-41,39,-38,69v-15,13,-27,-16,-28,-28v-2,-20,51,-83,66,-83v20,0,25,41,0,42",w:95},"’":{d:"74,-300v13,31,-1,99,-44,101v-13,0,-19,-5,-19,-15v6,-10,31,-34,35,-59v2,-11,1,-32,11,-32v6,0,11,2,17,5",w:90},"÷":{d:"167,-158v-4,3,-7,9,-10,20v-23,4,-34,-8,-29,-31v14,-6,18,1,39,11xm78,-72v-53,11,-53,12,-69,-15v-1,-12,11,-17,22,-14v71,-13,151,-18,230,-24v11,1,21,16,23,28v-28,20,-90,11,-126,16v-36,5,-62,5,-80,9xm123,-40v19,-17,41,-1,41,17v0,13,-6,19,-17,19v-15,0,-29,-14,-24,-36",w:293},"◊":{d:"76,-158v48,-8,64,11,100,36v28,19,-5,39,-22,54v-15,13,-40,32,-48,49v-17,5,-12,0,-27,-16v-6,-6,-86,-31,-68,-53r2,-9v27,-23,48,-44,63,-61xm93,-65v12,-2,35,-31,41,-38v-5,-10,-16,-14,-34,-24v-12,12,-36,29,-40,44v19,11,30,18,33,18",w:199},"ÿ":{d:"118,85v-11,11,-11,38,-22,61v-2,-1,-2,31,-17,27v-11,0,-21,-10,-21,-22v20,-66,23,-61,64,-168v-22,1,-38,16,-58,4v-22,4,-51,-16,-51,-42v-11,-13,-7,-59,7,-58v16,1,21,24,22,51v21,33,66,5,94,-7v4,-3,26,-14,38,-29r17,0v23,44,-23,59,-34,102v-6,9,-13,9,-13,26v-15,6,-12,33,-27,48v0,2,1,4,1,7xm158,-136v0,8,-4,13,-12,13v-18,0,-21,-20,-16,-34v18,-1,29,1,28,21xm62,-161v7,3,28,9,27,18v1,8,-8,17,-17,17v-18,0,-26,-24,-10,-35",w:190},"Ÿ":{d:"176,-189v35,20,-25,54,-39,72v-26,34,-57,57,-74,104v-10,15,-4,14,-23,3r0,-10v19,-44,27,-46,50,-81v-9,-5,-24,4,-34,4v-38,0,-54,-50,-44,-87v21,-5,18,19,22,35v4,18,15,27,29,27v41,0,60,-39,113,-67xm153,-222v0,8,-3,12,-11,12v-18,0,-21,-19,-16,-33v18,-1,28,2,27,21xm57,-247v8,2,29,9,28,17v0,21,-37,24,-36,1v0,-7,2,-13,8,-18",w:135},"⁄":{d:"193,-305v7,6,17,31,3,41v-10,7,-12,13,-21,25v-79,56,-190,209,-197,260r-18,0v-23,-19,9,-70,15,-85v52,-83,121,-179,218,-241",w:120},"¤":{d:"308,-133r-200,16v-2,1,-6,4,-10,10v70,-2,144,-14,211,-8v3,0,8,4,13,8v-1,4,-3,9,-9,17v-57,11,-164,6,-219,25v26,32,112,25,173,25v9,0,35,2,35,19v0,9,-4,13,-12,14v-115,12,-146,23,-211,-19v-12,-4,-22,-9,-25,-27v-6,-29,-61,3,-43,-49v17,-1,36,7,42,-12v-32,7,-36,-39,-11,-40v29,14,63,-25,73,-30v52,-25,72,-44,142,-44v23,0,21,41,-1,39v-35,-3,-61,9,-102,31v2,2,5,4,8,4v18,-6,101,-9,115,-9v7,0,55,13,31,30",w:312},"€":{d:"308,-133r-200,16v-2,1,-6,4,-10,10v70,-2,144,-14,211,-8v3,0,8,4,13,8v-1,4,-3,9,-9,17v-57,11,-164,6,-219,25v26,32,112,25,173,25v9,0,35,2,35,19v0,9,-4,13,-12,14v-115,12,-146,23,-211,-19v-12,-4,-22,-9,-25,-27v-6,-29,-61,3,-43,-49v17,-1,36,7,42,-12v-32,7,-36,-39,-11,-40v29,14,63,-25,73,-30v52,-25,72,-44,142,-44v23,0,21,41,-1,39v-35,-3,-61,9,-102,31v2,2,5,4,8,4v18,-6,101,-9,115,-9v7,0,55,13,31,30",w:312},"‹":{d:"64,-107v9,17,86,17,87,43v0,11,-4,16,-13,16v-36,-11,-70,-22,-109,-31v-19,-4,-18,-14,-9,-36v59,-56,93,-84,101,-84v17,0,19,20,13,29",w:159},"›":{d:"41,-181v26,27,112,44,70,91r-82,60v-20,3,-25,-23,-13,-32r70,-51r-66,-46v-5,-6,-4,-28,5,-29v4,2,9,4,16,7",w:137},"":{d:"74,-74v-6,-24,-70,8,-68,-27v0,-6,6,-20,20,-18v44,6,45,-9,42,-49v7,-40,26,-114,90,-104v48,-2,63,-1,90,30v11,25,4,14,2,44v-7,17,-54,9,-49,-7r8,-21v-5,-13,-22,-9,-43,-11v-56,-6,-63,45,-67,92v-2,21,5,23,22,22v37,-1,80,-9,113,-1v13,31,-9,82,-22,106v-13,10,-26,-6,-22,-25r11,-46v0,-3,-2,-6,-6,-6v-19,0,-47,3,-83,9v-6,1,-9,4,-8,11r12,59v-1,9,-11,30,-23,18v-18,-18,-15,-59,-19,-76",w:272},"":{d:"43,-61v-21,4,-36,2,-39,-15v-4,-35,41,-8,34,-47v4,-59,12,-99,46,-124v11,-42,157,-47,149,13v1,7,-7,15,-13,15v-18,-7,-19,-26,-47,-23v-34,3,-65,6,-79,37v-12,27,-22,52,-21,91v13,9,31,-11,45,-4v32,-15,50,-6,94,-13v12,-30,19,-79,36,-133v1,-5,5,-8,12,-8v44,18,-18,106,-12,144v-9,22,-1,73,-16,104v2,28,-23,28,-37,16v1,-26,9,-48,11,-75v0,-6,-3,-9,-9,-9v-43,0,-83,8,-119,24v8,40,17,33,-7,56v-20,-9,-21,-19,-28,-49",w:283},"‡":{d:"102,-284v16,2,42,-2,33,18v-7,15,-42,1,-38,30v3,3,31,1,30,11v4,15,-29,19,-36,24v-2,18,-4,24,-16,29r-25,-26v-25,7,-53,3,-42,-25v4,-10,70,0,51,-22v-17,4,-41,12,-39,-15v-5,-16,39,-18,44,-20v4,-2,7,-10,10,-24v19,-3,23,6,28,20",w:145},"∙":{d:"57,-77v6,18,-7,21,-19,23v-34,6,-25,-40,-9,-43v18,-3,29,8,28,20",w:67},"‚":{d:"25,63v-26,21,-48,-2,-22,-24v14,-12,35,-40,35,-69v3,-2,3,-11,12,-9v35,17,5,88,-25,102",w:97},"„":{d:"25,63v-26,21,-48,-2,-22,-24v11,-9,36,-41,35,-69v3,-2,4,-12,12,-9v36,14,5,89,-25,102xm84,64v-24,20,-45,-1,-21,-24v21,-20,32,-35,35,-69v3,-2,3,-11,12,-9v36,17,9,86,-26,102",w:135},"‰":{d:"398,-131v58,-1,87,13,72,65v-1,30,-66,63,-99,65v-56,3,-99,-58,-62,-102v2,2,5,2,8,2v20,-16,51,-17,81,-30xm202,-279v33,0,94,-24,95,18v-7,31,-33,27,-54,55v-36,32,-71,74,-112,99v-18,18,-40,34,-51,58v-19,14,-25,37,-56,40v-17,2,-25,-29,-10,-40v15,-11,40,-37,52,-52r87,-72v-51,13,-100,6,-116,-27v1,-5,-6,-30,-9,-36v-3,-5,22,-41,27,-39v29,2,16,34,5,49v0,15,14,23,42,23v42,0,59,-31,28,-38v-17,-4,-53,3,-50,-23v0,-7,1,-12,4,-16v16,-9,36,4,49,5v0,0,23,-4,69,-4xm222,-118v33,-2,55,18,50,57v-29,36,-48,45,-96,50v-27,-5,-56,-17,-58,-51v13,-37,64,-43,104,-56xm335,-61v13,44,101,7,108,-31v-11,-3,-20,-4,-30,-4v-18,-1,-82,18,-78,35xm225,-244v-18,0,-29,-1,-46,3v7,15,6,28,0,43v15,-14,34,-30,46,-46xm164,-53v26,5,59,-10,76,-26v-17,-16,-49,2,-67,14v1,8,-8,6,-9,12",w:485},"Â":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm202,-219v-27,-6,-40,-26,-61,-37v-21,7,-39,46,-65,23v-2,-4,-3,-10,-4,-14v19,-4,43,-32,61,-43v27,6,40,22,62,37v12,8,18,17,18,25v0,6,-3,9,-11,9"},"Ê":{d:"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm199,-211v-27,-6,-39,-26,-60,-37v-21,7,-40,47,-65,22v-2,-7,-2,-7,-4,-13v18,-5,44,-31,61,-43v27,6,41,22,62,37v12,9,18,17,18,25v0,6,-4,9,-12,9",w:252},"Á":{d:"161,-217v20,53,23,124,54,170v-2,20,-34,9,-42,0v-27,-12,-78,-18,-101,-18v-26,6,-29,51,-54,63v-18,-4,-19,-30,-3,-38v5,-9,15,-16,8,-29v1,-12,23,-9,26,-19v6,-10,11,-20,20,-27r70,-121v12,-4,16,4,22,19xm82,-91v17,3,62,7,86,13v-13,-33,-13,-80,-29,-109v-15,30,-38,63,-57,96xm84,-250v31,-5,83,-53,100,-31v0,5,-11,15,-35,28v-16,5,-51,28,-53,25v-14,1,-16,-11,-12,-22"},"Ë":{d:"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-17,41,-17,51v55,0,112,-21,169,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-3,-21,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm191,-236v0,8,-4,13,-12,13v-17,0,-19,-19,-16,-34v18,-1,29,1,28,21xm95,-261v7,3,29,9,28,18v0,7,-9,17,-18,17v-18,0,-26,-25,-10,-35",w:252},"È":{d:"49,-160v1,-4,-10,-9,-15,-8v-15,-35,32,-30,57,-31r142,-8v2,1,30,7,40,10v-52,16,-133,17,-190,30v-7,9,-12,24,-15,47v26,10,102,-6,141,3v1,3,1,6,2,10v-36,18,-92,12,-149,21v-11,9,-16,41,-16,51v55,-1,111,-21,168,-13v15,-8,48,1,31,18v-53,16,-130,13,-198,29r-39,-8v-4,-19,17,-53,20,-76v-1,0,-7,-11,-9,-18v18,-7,22,-28,30,-57xm184,-236v6,9,5,13,0,23v-28,-7,-62,-21,-100,-41v-3,-2,-3,-27,5,-23v34,11,60,25,95,41",w:252},"Í":{d:"26,-5v-9,-6,-9,-12,-9,-36v0,-71,7,-119,21,-144v8,-13,14,-20,19,-20v28,19,-7,89,-10,120v-2,21,-8,47,-14,76v-2,1,-2,0,-7,4xm6,-233v31,-6,83,-53,101,-31v2,11,-80,53,-89,53v-14,1,-14,-11,-12,-22",w:104},"Î":{d:"53,-9v-15,7,-16,-3,-16,-32v0,-71,7,-119,21,-144v8,-13,14,-20,19,-20v28,19,-7,89,-10,120v-2,21,-8,47,-14,76xm137,-209v-27,-6,-40,-26,-61,-37v-8,0,-9,4,-13,10v-11,13,-50,37,-56,0v18,-5,43,-32,61,-43v28,5,40,21,62,36v12,9,18,17,18,25v0,6,-4,9,-11,9",w:144},"Ï":{d:"33,-5v-9,-6,-9,-12,-9,-36v0,-71,8,-119,22,-144v8,-13,14,-20,19,-20v27,20,-11,87,-10,120r-15,76v-1,1,-4,2,-7,4xm111,-222v0,8,-4,12,-12,12v-18,0,-19,-19,-16,-33v18,-1,29,1,28,21xm15,-247v8,2,29,9,28,17v0,21,-37,24,-36,1v0,-7,2,-13,8,-18",w:110},"Ì":{d:"33,-5v-9,-6,-9,-12,-9,-36v0,-71,8,-119,22,-144v8,-13,14,-20,19,-20v27,20,-11,87,-10,120r-15,76v-1,1,-4,2,-7,4xm72,-247v7,6,55,15,36,40v-28,-7,-61,-21,-99,-41v-3,-2,-3,-27,5,-23v18,3,41,17,58,24",w:111},"Ó":{d:"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm142,-250v27,-11,47,-32,59,-14v2,11,-80,53,-89,53v-13,1,-15,-11,-12,-21v10,-5,24,-11,42,-18",w:273},"Ô":{d:"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm157,-282v17,18,52,34,54,63v-24,12,-52,-36,-53,-29r-42,34v-23,-4,-6,-31,5,-34v1,1,27,-37,36,-34",w:273},"":{d:"231,-188v31,-74,91,-99,188,-116v28,1,6,39,1,51v-20,52,-100,91,-148,126v2,4,6,7,12,10v42,-42,181,-41,166,46v-1,8,-19,8,-28,5v-43,1,-168,42,-106,86v15,16,33,28,61,39v0,10,0,17,-6,22v-8,8,-35,26,-78,51v-52,7,-128,22,-154,-17v-23,-35,-99,-35,-117,-77v-29,-68,25,-149,75,-175v44,-23,89,5,135,13v14,-26,2,-39,-1,-64",w:461},"Ò":{d:"62,-184v78,-31,249,-50,238,74v-6,65,-102,105,-179,115v-77,-7,-152,-71,-101,-149v2,-5,24,-33,42,-40xm279,-120v14,-38,-47,-64,-85,-61v-20,-9,-41,7,-62,0v-11,7,-54,12,-66,24v0,20,-51,35,-38,66v-1,43,50,67,96,67v44,0,162,-55,155,-96xm161,-262v14,10,52,13,37,41v-28,-7,-62,-21,-100,-41v-3,-3,-3,-26,5,-24v16,5,42,17,58,24",w:273},"Ú":{d:"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm194,-265v3,-1,11,4,11,6v3,12,-81,52,-89,54v-14,0,-13,-9,-12,-22",w:262},"Û":{d:"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm150,-266v24,11,58,27,73,46v0,5,-3,6,-10,6v-28,2,-61,-30,-63,-25v-10,0,-57,40,-69,23v3,-10,-8,-15,8,-19v17,-1,34,-29,61,-31",w:262},"Ù":{d:"281,-202v6,67,-30,121,-71,152v-3,14,-47,26,-60,39v-41,20,-110,1,-125,-26v-24,-44,-28,-84,-8,-127v12,-26,23,-38,37,-22v-2,2,-3,5,-3,10v-34,26,-30,116,5,134v22,32,86,-1,109,-8v38,-28,104,-64,97,-149v2,-10,7,-8,19,-3xm151,-243v14,10,54,14,37,41v-28,-7,-61,-22,-99,-42v-3,-2,-4,-25,4,-23v16,5,42,17,58,24",w:262},"ı":{d:"43,-103v21,4,16,56,11,100v-7,2,-11,1,-20,-5v0,-7,-13,-18,-11,-25v4,-23,-3,-68,20,-70",w:80},"ˆ":{d:"144,-220v-29,0,-41,-27,-63,-39v-8,0,-11,5,-15,11v-17,12,-32,31,-54,13v-2,-5,-3,-9,-4,-14v20,-5,45,-33,64,-45v28,6,43,23,65,38v12,9,19,19,19,27v0,6,-4,9,-12,9",w:165},"˜":{d:"47,-300v26,-21,57,19,72,23v4,0,16,-5,36,-14v24,-10,22,-16,32,-13v3,12,-7,11,-7,23v-27,21,-48,32,-62,32v-3,2,-52,-27,-51,-31v-12,-2,-34,40,-54,33v-4,-13,-8,-18,1,-24v5,-7,16,-15,33,-29",w:186},"¯":{d:"63,-295v28,-7,73,10,105,7v11,1,6,8,5,19v-37,21,-72,11,-136,11v-23,0,-31,-14,-27,-36v12,-15,40,0,53,-1",w:183},"˘":{d:"65,-269v20,-11,45,-31,74,-36v20,30,-42,40,-59,66v-5,6,-11,8,-18,8v-8,-3,-45,-32,-51,-54v5,-24,14,-13,34,1",w:158},"˙":{d:"23,-302v15,-13,32,1,32,18v1,22,-36,29,-39,4v0,0,3,-7,7,-22",w:70},"˚":{d:"23,-225v-43,-24,-11,-85,41,-78v16,2,31,4,46,17v32,54,-41,86,-87,61xm33,-257v2,20,57,11,57,-6v0,-6,-11,-9,-33,-12v-14,-2,-24,13,-24,18",w:123},"¸":{d:"74,16v32,2,49,14,55,36v-3,7,-14,31,-29,33v-28,4,-57,11,-88,14v-19,-6,-13,-31,8,-33v20,-1,59,-5,73,-14v-17,-14,-68,8,-53,-37v9,-10,2,-28,24,-30v8,8,13,17,10,31",w:129},"˝":{d:"91,-249v15,-11,38,-53,57,-29v0,9,0,14,-3,23v-2,3,-20,22,-54,55v-5,5,-10,8,-16,8v-17,2,-6,-22,-7,-31v-1,0,-2,0,-4,1v-17,21,-29,31,-50,27v-5,-18,-3,-15,3,-27v23,-27,40,-46,48,-59v7,-12,31,3,29,9v-1,14,-3,24,-13,31v4,4,9,-1,10,-8",w:151},"˛":{d:"82,-5v-8,12,-16,55,-21,75v0,4,2,7,7,7v6,0,22,-7,50,-20v8,0,12,7,12,20v-2,22,-6,14,-27,30v-15,12,-26,16,-30,16v-47,-8,-59,-14,-56,-75v8,-27,12,-54,25,-77v19,-21,35,15,40,24",w:138},"ˇ":{d:"39,-286v33,46,63,-4,96,-16v6,0,9,6,9,19v0,24,-49,46,-77,46v-32,0,-52,-28,-59,-48v0,-25,23,-17,31,-1",w:153},"\r":{w:179}}}),function(){"use strict";function e(e){this.message=e}function n(t,i){if(!t)throw new e(i)}function r(e){return e.x+e.width/2}function a(e){return e.y+e.height/2}var o=Diagram.PLACEMENT,s=Diagram.LINETYPE,l=Diagram.ARROWTYPE,c={stroke:"#000","stroke-width":2},u={fill:"#fff"};e.prototype.toString=function(){return"AssertException: "+this.message},String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),t.fn.line=function(e,t,r,a){return n(i.all([e,r,t,a],i.isFinite),"x1,x2,y1,y2 must be numeric"),this.path("M{0},{1} L{2},{3}",e,t,r,a)},t.fn.wobble=function(e,t,r,a){n(i.all([e,r,t,a],i.isFinite),"x1,x2,y1,y2 must be numeric");var o=Math.sqrt((r-e)*(r-e)+(a-t)*(a-t))/25,s=Math.random(),l=Math.random(),c=Math.random()>.5?o:-o,u=Math.random()>.5?o:-o,d={x:(r-e)*s+e+c,y:(a-t)*s+t+u},h={x:(r-e)*l+e-c,y:(a-t)*l+t-u};return"C"+d.x+","+d.y+" "+h.x+","+h.y+" "+r+","+a},t.fn.text_bbox=function(e,t){var i;t._obj?i=this.print_center(0,0,e,t._obj,t["font-size"]):(i=this.text(0,0,e),i.attr(t));var n=i.getBBox();return i.remove(),n},t.fn.handRect=function(e,t,r,a){return n(i.all([e,t,r,a],i.isFinite),"x, y, w, h must be numeric"),this.path("M"+e+","+t+this.wobble(e,t,e+r,t)+this.wobble(e+r,t,e+r,t+a)+this.wobble(e+r,t+a,e,t+a)+this.wobble(e,t+a,e,t)).attr(u)},t.fn.handLine=function(e,t,r,a){return n(i.all([e,r,t,a],i.isFinite),"x1,x2,y1,y2 must be numeric"),this.path("M"+e+","+t+this.wobble(e,t,r,a))},t.fn.print_center=function(e,i,n,r,a,o){var s=this.print(e,i,n,r,a,"baseline",o),l=s.getBBox(),c=e-l.x-l.width/2,u=i-l.y-l.height/2,d=new t.matrix;return d.translate(c,u),s.attr("path",t.mapPath(s.attr("path"),d))};var d=function(e){this.init(e)};i.extend(d.prototype,{init:function(e){this.diagram=e,this._paper=void 0,this._font=void 0,this._title=void 0,this._actors_height=0,this._signals_height=0;var t=this.arrow_types={};t[l.FILLED]="block",t[l.OPEN]="open";var i=this.line_types={};i[s.SOLID]="",i[s.DOTTED]="-"},init_paper:function(e){this._paper=new t(e,320,200)},init_font:function(){},draw_line:function(e,t,i,n){return this._paper.line(e,t,i,n)},draw_rect:function(e,t,i,n){return this._paper.rect(e,t,i,n)},draw:function(e){var t=this.diagram;this.init_paper(e),this.init_font(),this.layout();var i=this._title?this._title.height:0;this._paper.setStart(),this._paper.setSize(t.width,t.height);var n=10+i;this.draw_title(),this.draw_actors(n),this.draw_signals(n+this._actors_height),this._paper.setFinish()},layout:function(){function e(e,t,i){n(t>e,"a must be less than or equal to b"),0>e?(t=s[t],t.x=Math.max(i-t.width/2,t.x)):t>=s.length?(e=s[e],e.padding_right=Math.max(i,e.padding_right)):(e=s[e],e.distances[t]=Math.max(i,e.distances[t]?e.distances[t]:0))}var t=this.diagram,r=this._paper,a=this._font,s=t.actors,l=t.signals;if(t.width=0,t.height=0,t.title){var c=this._title={},u=r.text_bbox(t.title,a);c.text_bb=u,c.message=t.title,c.width=u.width+10,c.height=u.height+10,c.x=10,c.y=10,t.width+=c.width,t.height+=c.height}i.each(s,function(e){var t=r.text_bbox(e.name,a);e.text_bb=t,e.x=0,e.y=0,e.width=t.width+40,e.height=t.height+40,e.distances=[],e.padding_right=0,this._actors_height=Math.max(e.height,this._actors_height)},this),i.each(l,function(t){var i,n,s=r.text_bbox(t.message,a);t.text_bb=s,t.width=s.width,t.height=s.height;var l=0;if("Signal"==t.type)t.width+=20,t.height+=20,t.isSelf()?(i=t.actorA.index,n=i+1,t.width+=20):(i=Math.min(t.actorA.index,t.actorB.index),n=Math.max(t.actorA.index,t.actorB.index));else{if("Note"!=t.type)throw new Error("Unhandled signal type:"+t.type);if(t.width+=30,t.height+=30,l=20,t.placement==o.LEFTOF)n=t.actor.index,i=n-1;else if(t.placement==o.RIGHTOF)i=t.actor.index,n=i+1;else if(t.placement==o.OVER&&t.hasManyActors())i=Math.min(t.actor[0].index,t.actor[1].index),n=Math.max(t.actor[0].index,t.actor[1].index),l=-40;else if(t.placement==o.OVER)return i=t.actor.index,e(i-1,i,t.width/2),e(i,i+1,t.width/2),void(this._signals_height+=t.height)}e(i,n,t.width+l),this._signals_height+=t.height},this);var d=0;return i.each(s,function(e){e.x=Math.max(d,e.x),i.each(e.distances,function(t,i){void 0!==t&&(i=s[i],t=Math.max(t,e.width/2,i.width/2),i.x=Math.max(i.x,e.x+e.width/2+t-i.width/2))}),d=e.x+e.width+e.padding_right},this),t.width=Math.max(d,t.width),t.width+=20,t.height+=20+2*this._actors_height+this._signals_height,this},draw_title:function(){var e=this._title;e&&this.draw_text_box(e,e.message,0,5,this._font)},draw_actors:function(e){var t=e;i.each(this.diagram.actors,function(e){this.draw_actor(e,t,this._actors_height),this.draw_actor(e,t+this._actors_height+this._signals_height,this._actors_height);var i=r(e);this.draw_line(i,t+this._actors_height-10,i,t+this._actors_height+10+this._signals_height).attr(c)},this)},draw_actor:function(e,t,i){e.y=t,e.height=i,this.draw_text_box(e,e.name,10,10,this._font)},draw_signals:function(e){var t=e;i.each(this.diagram.signals,function(e){"Signal"==e.type?e.isSelf()?this.draw_self_signal(e,t):this.draw_signal(e,t):"Note"==e.type&&this.draw_note(e,t),t+=e.height},this)},draw_self_signal:function(e,t){n(e.isSelf(),"signal must be a self signal");var a=e.text_bb,o=r(e.actorA),s=o+20+5-a.x,l=t+e.height/2;this.draw_text(s,l,e.message,this._font);var u,d=i.extend({},c,{"stroke-dasharray":this.line_types[e.linetype]}),h=t+5,p=h+e.height-5;u=this.draw_line(o,h,o+20,h),u.attr(d),u=this.draw_line(o+20,h,o+20,p),u.attr(d),u=this.draw_line(o+20,p,o,p),d["arrow-end"]=this.arrow_types[e.arrowtype]+"-wide-long",u.attr(d)},draw_signal:function(e,t){var i=r(e.actorA),n=r(e.actorB),a=(n-i)/2+i,o=t+5+10;this.draw_text(a,o,e.message,this._font),o=t+e.height-5-5;var s=this.draw_line(i,o,n,o);s.attr(c),s.attr({"arrow-end":this.arrow_types[e.arrowtype]+"-wide-long","stroke-dasharray":this.line_types[e.linetype]})},draw_note:function(e,t){e.y=t;var i=e.hasManyActors()?e.actor[0]:e.actor,n=r(i);switch(e.placement){case o.RIGHTOF:e.x=n+10;break;case o.LEFTOF:e.x=n-10-e.width;break;case o.OVER:if(e.hasManyActors()){var a=r(e.actor[1]);e.x=n-20,e.width=a+20-e.x}else e.x=n-e.width/2;break;default:throw new Error("Unhandled note placement:"+e.placement)}this.draw_text_box(e,e.message,10,5,this._font)},draw_text:function(e,t,i,n){var r,a=this._paper,o=n||{};o._obj?r=a.print_center(e,t,i,o._obj,o["font-size"]):(r=a.text(e,t,i),r.attr(o));var s=r.getBBox();a.rect(s.x,s.y,s.width,s.height).attr({fill:"#fff",stroke:"none"}),r.toFront()},draw_text_box:function(e,t,i,n,o){var s=e.x+i,l=e.y+i,u=e.width-2*i,d=e.height-2*i;this.draw_rect(s,l,u,d).attr(c),s=r(e),l=a(e),this.draw_text(s,l,t,o)}});var h=function(e){this.init(e)};i.extend(h.prototype,d.prototype,{init_font:function(){this._font={"font-size":16,"font-family":"Andale Mono, monospace"}}});var p=function(e){this.init(e)};i.extend(p.prototype,d.prototype,{init_font:function(){this._font={"font-size":16,"font-family":"daniel"},this._font._obj=this._paper.getFont("daniel")},draw_line:function(e,t,i,n){return this._paper.handLine(e,t,i,n)},draw_rect:function(e,t,i,n){return this._paper.handRect(e,t,i,n)}});var f={simple:h,hand:p};Diagram.prototype.drawSVG=function(e,t){var n={theme:"hand"};if(t=i.defaults(t||{},n),!(t.theme in f))throw new Error("Unsupported theme: "+t.theme);new f[t.theme](this).draw(e)}}()}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/css/css",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e){for(var t={},i=0;i*\/]/.test(i)?n(null,"select-op"):"."==i&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?n("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(i)?n(null,i):"u"==i&&e.match(/rl(-prefix)?\(/)||"d"==i&&e.match("omain(")||"r"==i&&e.match("egexp(")?(e.backUp(1),t.tokenize=o,n("property","word")):/[\w\\\-]/.test(i)?(e.eatWhile(/[\w\\\-]/),n("property","word")):n(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),n("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?n("variable-2","variable-definition"):n("variable-2","variable")):e.match(/^\w+-/)?n("meta","meta"):void 0}function a(e){return function(t,i){for(var r,a=!1;null!=(r=t.next());){if(r==e&&!a){")"==e&&t.backUp(1);break}a=!a&&"\\"==r}return(r==e||!a&&")"!=e)&&(i.tokenize=null),n("string","string")}}function o(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=a(")"),n(null,"(")}function s(e,t,i){this.type=e,this.indent=t,this.prev=i}function l(e,t,i){return e.context=new s(i,t.indentation()+m,e.context),i}function c(e){return e.context=e.context.prev,e.context.type}function u(e,t,i){return E[i.context.type](e,t,i)}function d(e,t,i,n){for(var r=n||1;r>0;r--)i.context=i.context.prev;return u(e,t,i)}function h(e){var t=e.current().toLowerCase();f=T.hasOwnProperty(t)?"atom":C.hasOwnProperty(t)?"keyword":"variable"}i.propertyKeywords||(i=e.resolveMode("text/css"));var p,f,m=t.indentUnit,g=i.tokenHooks,v=i.documentTypes||{},y=i.mediaTypes||{},_=i.mediaFeatures||{},b=i.propertyKeywords||{},w=i.nonStandardPropertyKeywords||{},x=i.fontProperties||{},k=i.counterDescriptors||{},C=i.colorKeywords||{},T=i.valueKeywords||{},S=i.allowNested,E={};return E.top=function(e,t,i){if("{"==e)return l(i,t,"block");if("}"==e&&i.context.prev)return c(i);if(/@(media|supports|(-moz-)?document)/.test(e))return l(i,t,"atBlock");if(/@(font-face|counter-style)/.test(e))return i.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return l(i,t,"at");if("hash"==e)f="builtin";else if("word"==e)f="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return l(i,t,"interpolation");if(":"==e)return"pseudo";if(S&&"("==e)return l(i,t,"parens")}return i.context.type},E.block=function(e,t,i){if("word"==e){var n=t.current().toLowerCase();return b.hasOwnProperty(n)?(f="property","maybeprop"):w.hasOwnProperty(n)?(f="string-2","maybeprop"):S?(f=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(f+=" error","maybeprop")}return"meta"==e?"block":S||"hash"!=e&&"qualifier"!=e?E.top(e,t,i):(f="error","block")},E.maybeprop=function(e,t,i){return":"==e?l(i,t,"prop"):u(e,t,i)},E.prop=function(e,t,i){if(";"==e)return c(i);if("{"==e&&S)return l(i,t,"propBlock");if("}"==e||"{"==e)return d(e,t,i);if("("==e)return l(i,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t.current())){if("word"==e)h(t);else if("interpolation"==e)return l(i,t,"interpolation")}else f+=" error";return"prop"},E.propBlock=function(e,t,i){return"}"==e?c(i):"word"==e?(f="property","maybeprop"):i.context.type},E.parens=function(e,t,i){return"{"==e||"}"==e?d(e,t,i):")"==e?c(i):"("==e?l(i,t,"parens"):("word"==e&&h(t),"parens")},E.pseudo=function(e,t,i){return"word"==e?(f="variable-3",i.context.type):u(e,t,i)},E.atBlock=function(e,t,i){if("("==e)return l(i,t,"atBlock_parens");if("}"==e)return d(e,t,i);if("{"==e)return c(i)&&l(i,t,S?"block":"top");if("word"==e){var n=t.current().toLowerCase();f="only"==n||"not"==n||"and"==n||"or"==n?"keyword":v.hasOwnProperty(n)?"tag":y.hasOwnProperty(n)?"attribute":_.hasOwnProperty(n)?"property":b.hasOwnProperty(n)?"property":w.hasOwnProperty(n)?"string-2":T.hasOwnProperty(n)?"atom":"error"}return i.context.type},E.atBlock_parens=function(e,t,i){return")"==e?c(i):"{"==e||"}"==e?d(e,t,i,2):E.atBlock(e,t,i)},E.restricted_atBlock_before=function(e,t,i){return"{"==e?l(i,t,"restricted_atBlock"):"word"==e&&"@counter-style"==i.stateArg?(f="variable","restricted_atBlock_before"):u(e,t,i)},E.restricted_atBlock=function(e,t,i){return"}"==e?(i.stateArg=null,c(i)):"word"==e?(f="@font-face"==i.stateArg&&!x.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==i.stateArg&&!k.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},E.keyframes=function(e,t,i){return"word"==e?(f="variable","keyframes"):"{"==e?l(i,t,"top"):u(e,t,i)},E.at=function(e,t,i){ return";"==e?c(i):"{"==e||"}"==e?d(e,t,i):("word"==e?f="tag":"hash"==e&&(f="builtin"),"at")},E.interpolation=function(e,t,i){return"}"==e?c(i):"{"==e||";"==e?d(e,t,i):("variable"!=e&&(f="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:"top",stateArg:null,context:new s("top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var i=(t.tokenize||r)(e,t);return i&&"object"==typeof i&&(p=i[1],i=i[0]),f=i,t.state=E[t.state](p,e,t),f},indent:function(e,t){var i=e.context,n=t&&t.charAt(0),r=i.indent;return"prop"!=i.type||"}"!=n&&")"!=n||(i=i.prev),!i.prev||("}"!=n||"block"!=i.type&&"top"!=i.type&&"interpolation"!=i.type&&"restricted_atBlock"!=i.type)&&(")"!=n||"parens"!=i.type&&"atBlock_parens"!=i.type)&&("{"!=n||"at"!=i.type&&"atBlock"!=i.type)||(r=i.indent-m,i=i.prev),r},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});var r=["domain","regexp","url","url-prefix"],a=t(r),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],s=t(o),l=["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"],c=t(l),u=["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-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","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-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","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","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","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","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","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","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","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"],d=t(u),h=["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"],p=t(h),f=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],m=t(f),g=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],v=t(g),y=["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"],_=t(y),b=["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","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","column","compact","condensed","contain","content","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","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","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","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","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","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","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","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-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","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","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","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","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","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","x-large","x-small","xor","xx-large","xx-small"],w=t(b),x=r.concat(o).concat(l).concat(u).concat(h).concat(y).concat(b);e.registerHelper("hintWords","css",x),e.defineMIME("text/css",{documentTypes:a,mediaTypes:s,mediaFeatures:c,propertyKeywords:d,nonStandardPropertyKeywords:p,fontProperties:m,counterDescriptors:v,colorKeywords:_,valueKeywords:w,tokenHooks:{"<":function(e,t){return!!e.match("!--")&&(t.tokenize=n,n(e,t))},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=i,i(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:s,mediaFeatures:c,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:_,valueKeywords:w,fontProperties:m,allowNested:!0,tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=i,i(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/)&&[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"}),e.defineMIME("text/x-less",{mediaTypes:s,mediaFeatures:c,propertyKeywords:d,nonStandardPropertyKeywords:p,colorKeywords:_,valueKeywords:w,fontProperties:m,allowNested:!0,tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=i,i(e,t)):["operator","operator"]},"@":function(e){return!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/sass/sass",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("sass",function(e){function t(e,t){var i=e.peek();return")"===i?(e.next(),t.tokenizer=s,"operator"):"("===i?(e.next(),e.eatSpace(),"operator"):"'"===i||'"'===i?(t.tokenizer=n(e.next()),"string"):(t.tokenizer=n(")",!1),"string")}function i(e,t){return function(i,n){return i.sol()&&i.indentation()<=e?(n.tokenizer=s,s(i,n)):(t&&i.skipTo("*/")?(i.next(),i.next(),n.tokenizer=s):i.skipToEnd(),"comment")}}function n(e,t){function i(n,a){var o=n.next(),l=n.peek(),c=n.string.charAt(n.pos-2);return"\\"!==o&&l===e||o===e&&"\\"!==c?(o!==e&&t&&n.next(),a.tokenizer=s,"string"):"#"===o&&"{"===l?(a.tokenizer=r(i),n.next(),"operator"):"string"}return null==t&&(t=!0),i}function r(e){return function(t,i){return"}"===t.peek()?(t.next(),i.tokenizer=e,"operator"):s(t,i)}}function a(t){if(0==t.indentCount){t.indentCount++;var i=t.scopes[0].offset,n=i+e.indentUnit;t.scopes.unshift({offset:n})}}function o(e){1!=e.scopes.length&&e.scopes.shift()}function s(e,l){var c=e.peek();if(e.match("/*"))return l.tokenizer=i(e.indentation(),!0),l.tokenizer(e,l);if(e.match("//"))return l.tokenizer=i(e.indentation(),!1),l.tokenizer(e,l);if(e.match("#{"))return l.tokenizer=r(s),"operator";if('"'===c||"'"===c)return e.next(),l.tokenizer=n(c),"string";if(l.cursorHalf){if("#"===c&&(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/)))return e.peek()||(l.cursorHalf=0),"number";if(e.match(/^-?[0-9\.]+/))return e.peek()||(l.cursorHalf=0),"number";if(e.match(/^(px|em|in)\b/))return e.peek()||(l.cursorHalf=0),"unit";if(e.match(u))return e.peek()||(l.cursorHalf=0),"keyword";if(e.match(/^url/)&&"("===e.peek())return l.tokenizer=t,e.peek()||(l.cursorHalf=0),"atom";if("$"===c)return e.next(),e.eatWhile(/[\w-]/),e.peek()||(l.cursorHalf=0),"variable-3";if("!"===c)return e.next(),e.peek()||(l.cursorHalf=0),e.match(/^[\w]+/)?"keyword":"operator";if(e.match(h))return e.peek()||(l.cursorHalf=0),"operator";if(e.eatWhile(/[\w-]/))return e.peek()||(l.cursorHalf=0),"attribute";if(!e.peek())return l.cursorHalf=0,null}else{if("."===c){if(e.next(),e.match(/^[\w-]+/))return a(l),"atom";if("#"===e.peek())return a(l),"atom"}if("#"===c){if(e.next(),e.match(/^[\w-]+/))return a(l),"atom";if("#"===e.peek())return a(l),"atom"}if("$"===c)return e.next(),e.eatWhile(/[\w-]/),"variable-2";if(e.match(/^-?[0-9\.]+/))return"number";if(e.match(/^(px|em|in)\b/))return"unit";if(e.match(u))return"keyword";if(e.match(/^url/)&&"("===e.peek())return l.tokenizer=t,"atom";if("="===c&&e.match(/^=[\w-]+/))return a(l),"meta";if("+"===c&&e.match(/^\+[\w-]+/))return"variable-3";if("@"===c&&e.match(/@extend/)&&(e.match(/\s*[\w]/)||o(l)),e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return a(l),"meta";if("@"===c)return e.next(),e.eatWhile(/[\w-]/),"meta";if(e.eatWhile(/[\w-]/))return e.match(/ *: *[\w-\+\$#!\("']/,!1)?"propery":e.match(/ *:/,!1)?(a(l),l.cursorHalf=1,"atom"):e.match(/ *,/,!1)?"atom":(a(l),"atom");if(":"===c)return e.match(p)?"keyword":(e.next(),l.cursorHalf=1,"operator")}return e.match(h)?"operator":(e.next(),null)}function l(t,i){t.sol()&&(i.indentCount=0);var n=i.tokenizer(t,i),r=t.current();if("@return"!==r&&"}"!==r||o(i),null!==n){for(var a=t.pos-r.length,s=a+e.indentUnit*i.indentCount,l=[],c=0;c","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],h=function(e){return new RegExp("^"+e.join("|"))}(d),p=/^::?[a-zA-Z_][\w\-]*/;return{startState:function(){return{tokenizer:s,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(e,t){var i=l(e,t);return t.lastToken={style:i,content:e.current()},i},indent:function(e){return e.scopes[0].offset}}}),e.defineMIME("text/x-sass","sass")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/shell/shell",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("shell",function(){function e(e,t){for(var i=t.split(" "),n=0;n1&&e.eat("$");var r=e.next(),a=/\w/;return"{"===r&&(a=/[^}]/),"("===r?(t.tokens[0]=i(")"),n(e,t)):(/\d/.test(r)||(e.eatWhile(a),e.eat("}")),t.tokens.shift(),"def")};return{startState:function(){return{tokens:[]}},token:function(e,t){return n(e,t)},lineComment:"#",fold:"brace"}}),e.defineMIME("text/x-sh","shell")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/sql/sql",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("sql",function(t,i){"use strict";function n(e,t){var i=e.next();if(f[i]){var n=f[i](e,t);if(!1!==n)return n}if(1==p.hexNumber&&("0"==i&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==i||"X"==i)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(1==p.binaryNumber&&(("b"==i||"B"==i)&&e.match(/^'[01]+'/)||"0"==i&&e.match(/^b[01]+/)))return"number";if(i.charCodeAt(0)>47&&i.charCodeAt(0)<58)return e.match(/^[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?/),1==p.decimallessFloat&&e.eat("."),"number";if("?"==i&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==i||'"'==i&&p.doubleQuote)return t.tokenize=r(i),t.tokenize(e,t);if((1==p.nCharCast&&("n"==i||"N"==i)||1==p.charsetCast&&"_"==i&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(/^[\(\),\;\[\]]/.test(i))return null;if(p.commentSlashSlash&&"/"==i&&e.eat("/"))return e.skipToEnd(),"comment";if(p.commentHash&&"#"==i||"-"==i&&e.eat("-")&&(!p.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==i&&e.eat("*"))return t.tokenize=a,t.tokenize(e,t);if("."!=i){if(h.test(i))return e.eatWhile(h),null;if("{"==i&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var o=e.current().toLowerCase();return m.hasOwnProperty(o)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":c.hasOwnProperty(o)?"atom":u.hasOwnProperty(o)?"builtin":d.hasOwnProperty(o)?"keyword":l.hasOwnProperty(o)?"string-2":null}return 1==p.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":1==p.ODBCdotTable&&e.match(/^[a-zA-Z_]+/)?"variable-2":void 0}function r(e){return function(t,i){for(var r,a=!1;null!=(r=t.next());){if(r==e&&!a){i.tokenize=n;break}a=!a&&"\\"==r}return"string"}}function a(e,t){for(;;){if(!e.skipTo("*")){e.skipToEnd();break}if(e.next(),e.eat("/")){t.tokenize=n;break}}return"comment"}function o(e,t,i){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:i}}function s(e){e.indent=e.context.indent,e.context=e.context.prev}var l=i.client||{},c=i.atoms||{false:!0,true:!0,null:!0},u=i.builtin||{},d=i.keywords||{},h=i.operatorChars||/^[*+\-%<>!=&|~^]/,p=i.support||{},f=i.hooks||{},m=i.dateSQL||{date:!0,time:!0,timestamp:!0};return{startState:function(){return{tokenize:n,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),e.eatSpace())return null;var i=t.tokenize(e,t);if("comment"==i)return i;t.context&&null==t.context.align&&(t.context.align=!0);var n=e.current();return"("==n?o(e,t,")"):"["==n?o(e,t,"]"):t.context&&t.context.type==n&&s(t),i},indent:function(i,n){var r=i.context;if(!r)return e.Pass;var a=n.charAt(0)==r.type;return r.align?r.col+(a?0:1):r.indent+(a?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:p.commentSlashSlash?"//":p.commentHash?"#":null}}),function(){"use strict";function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function i(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function n(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}function r(e){for(var t={},i=e.split(" "),n=0;n!=]/,dateSQL:r("date time timestamp"),support:r("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:r("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:r(a+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered"),builtin:r("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:r("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:r("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":i}}),e.defineMIME("text/x-mysql",{name:"sql",client:r("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:r(a+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group groupby_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"), builtin:r("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:r("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:r("date time timestamp"),support:r("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":i,"`":t,"\\":n}}),e.defineMIME("text/x-mariadb",{name:"sql",client:r("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:r(a+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:r("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:r("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:r("date time timestamp"),support:r("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":i,"`":t,"\\":n}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:r("use select from using consistency where limit first reversed first and in insert into values using consistency ttl update set delete truncate begin batch apply create keyspace with columnfamily primary key index on drop alter type add any one quorum all local_quorum each_quorum"),builtin:r("ascii bigint blob boolean counter decimal double float int text timestamp uuid varchar varint"),atoms:r("false true"),operatorChars:/^[<>=]/,dateSQL:{},support:r("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:r("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:r("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:r("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least lenght lenghtb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*+\-%<>!=~]/,dateSQL:r("date time timestamp"),support:r("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:r("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external false fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger true unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with"),builtin:r("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype"),atoms:r("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:r("date timestamp"),support:r("ODBCdotTable doubleQuote binaryNumber hexNumber")})}()}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/clike/clike",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e){for(var t={},i=e.split(" "),n=0;n!?|\/]/;return{startState:function(e){return{tokenize:null,context:new o((e||0)-u,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var i=t.context;if(e.sol()&&(null==i.align&&(i.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;c=null;var r=(t.tokenize||n)(e,t);if("comment"==r||"meta"==r)return r;if(null==i.align&&(i.align=!0),";"!=c&&":"!=c&&","!=c||"statement"!=i.type)if("{"==c)s(t,e.column(),"}");else if("["==c)s(t,e.column(),"]");else if("("==c)s(t,e.column(),")");else if("}"==c){for(;"statement"==i.type;)i=l(t);for("}"==i.type&&(i=l(t));"statement"==i.type;)i=l(t)}else c==i.type?l(t):_&&(("}"==i.type||"top"==i.type)&&";"!=c||"statement"==i.type&&"newstatement"==c)&&s(t,e.column(),"statement");else l(t);return t.startOfLine=!1,r},indent:function(t,i){if(t.tokenize!=n&&null!=t.tokenize)return e.Pass;var r=t.context,a=i&&i.charAt(0);"statement"==r.type&&"}"==a&&(r=r.prev);var o=a==r.type;return"statement"==r.type?r.indented+("{"==a?0:d):!r.align||h&&")"==r.type?")"!=r.type||o?r.indented+(o?0:u):r.indented+d:r.column+(o?0:1)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});var l="auto if break int case long char register continue return default short do sizeof double static else struct entry switch extern typedef float union for unsigned goto while enum void const signed volatile";o(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:t(l),blockKeywords:t("case do else for if switch while struct"),atoms:t("null"),hooks:{"#":i},modeProps:{fold:["brace","include"]}}),o(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:t(l+" asm dynamic_cast namespace reinterpret_cast try bool explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),blockKeywords:t("catch class do else finally for if struct switch try while"),atoms:t("true false null"),hooks:{"#":i,u:n,U:n,L:n,R:n},modeProps:{fold:["brace","include"]}}),o("text/x-java",{name:"clike",keywords:t("abstract assert boolean break byte case catch char class const continue default do double else enum extends final finally float for goto if implements import instanceof int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while"),blockKeywords:t("catch class do else finally for if switch try while"),atoms:t("true false null"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"}},modeProps:{fold:["brace","import"]}}),o("text/x-csharp",{name:"clike",keywords:t("abstract as base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),blockKeywords:t("catch class do else finally for foreach if struct switch try while"),builtin:t("Boolean Byte Char DateTime DateTimeOffset Decimal Double Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),atoms:t("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=r,r(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),o("text/x-scala",{name:"clike",keywords:t("abstract case catch class def do else extends false final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try trye type val var while with yield _ : = => <- <: <% >: # @ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:t("catch class do else finally for forSome if match switch try while"),atoms:t("true false null"),indentStatements:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=s,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"}}}),o(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:t("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4 sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),blockKeywords:t("for while do if else struct"),builtin:t("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:t("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),hooks:{"#":i},modeProps:{fold:["brace","include"]}}),o("text/x-nesc",{name:"clike",keywords:t(l+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),blockKeywords:t("case do else for if switch while struct"),atoms:t("null"),hooks:{"#":i},modeProps:{fold:["brace","include"]}}),o("text/x-objectivec",{name:"clike",keywords:t(l+"inline restrict _Bool _Complex _Imaginery BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),atoms:t("YES NO NULL NILL ON OFF"),hooks:{"@":function(e){return e.eatWhile(/[\w\$]/),"keyword"},"#":i},modeProps:{fold:"brace"}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/xml/xml",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("xml",function(t,i){function n(e,t){function i(i){return t.tokenize=i,i(e,t)}var n=e.next();if("<"==n)return e.eat("!")?e.eat("[")?e.match("CDATA[")?i(o("atom","]]>")):null:e.match("--")?i(o("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),i(s(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=o("meta","?>"),"meta"):(k=e.eat("/")?"closeTag":"openTag",t.tokenize=r,"tag bracket");if("&"==n){var a;return a=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),a?"atom":"error"}return e.eatWhile(/[^&<]/),null}function r(e,t){var i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=n,k=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return k="equals",null;if("<"==i){t.tokenize=n,t.state=d,t.tagName=t.tagStart=null;var r=t.tokenize(e,t);return r?r+" tag error":"tag error"}return/[\'\"]/.test(i)?(t.tokenize=a(i),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function a(e){var t=function(t,i){for(;!t.eol();)if(t.next()==e){i.tokenize=r;break}return"string"};return t.isInAttribute=!0,t}function o(e,t){return function(i,r){for(;!i.eol();){if(i.match(t)){r.tokenize=n;break}i.next()}return e}}function s(e){return function(t,i){for(var r;null!=(r=t.next());){if("<"==r)return i.tokenize=s(e+1),i.tokenize(t,i);if(">"==r){if(1==e){i.tokenize=n;break}return i.tokenize=s(e-1),i.tokenize(t,i)}}return"meta"}}function l(e,t,i){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=i,(T.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function c(e){e.context&&(e.context=e.context.prev)}function u(e,t){for(var i;;){if(!e.context)return;if(i=e.context.tagName,!T.contextGrabbers.hasOwnProperty(i)||!T.contextGrabbers[i].hasOwnProperty(t))return;c(e)}}function d(e,t,i){return"openTag"==e?(i.tagStart=t.column(),h):"closeTag"==e?p:d}function h(e,t,i){return"word"==e?(i.tagName=t.current(),C="tag",g):(C="error",h)}function p(e,t,i){if("word"==e){var n=t.current();return i.context&&i.context.tagName!=n&&T.implicitlyClosed.hasOwnProperty(i.context.tagName)&&c(i),i.context&&i.context.tagName==n?(C="tag",f):(C="tag error",m)}return C="error",m}function f(e,t,i){return"endTag"!=e?(C="error",f):(c(i),d)}function m(e,t,i){return C="error",f(e,t,i)}function g(e,t,i){if("word"==e)return C="attribute",v;if("endTag"==e||"selfcloseTag"==e){var n=i.tagName,r=i.tagStart;return i.tagName=i.tagStart=null,"selfcloseTag"==e||T.autoSelfClosers.hasOwnProperty(n)?u(i,n):(u(i,n),i.context=new l(i,n,r==i.indented)),d}return C="error",g}function v(e,t,i){return"equals"==e?y:(T.allowMissing||(C="error"),g(e,t,i))}function y(e,t,i){return"string"==e?_:"word"==e&&T.allowUnquoted?(C="string",g):(C="error",g(e,t,i))}function _(e,t,i){return"string"==e?_:g(e,t,i)}var b=t.indentUnit,w=i.multilineTagIndentFactor||1,x=i.multilineTagIndentPastTag;null==x&&(x=!0);var k,C,T=i.htmlMode?{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}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1},S=i.alignCDATA;return{startState:function(){return{tokenize:n,state:d,indented:0,tagName:null,tagStart:null,context:null}},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;k=null;var i=t.tokenize(e,t);return(i||k)&&"comment"!=i&&(C=null,t.state=t.state(k||i,e,t),C&&(i="error"==C?i+" error":C)),i},indent:function(t,i,a){var o=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+b;if(o&&o.noIndent)return e.Pass;if(t.tokenize!=r&&t.tokenize!=n)return a?a.match(/^(\s*)/)[0].length:0;if(t.tagName)return x?t.tagStart+t.tagName.length+2:t.tagStart+b*w;if(S&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:i.htmlMode?"html":"xml",helperType:i.htmlMode?"html":"xml"}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/javascript/javascript",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("javascript",function(t,i){function n(e){for(var t,i=!1,n=!1;null!=(t=e.next());){if(!i){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}i=!i&&"\\"==t}}function r(e,t,i){return me=e,ge=i,t}function a(e,t){var i=e.next();if('"'==i||"'"==i)return t.tokenize=o(i),t.tokenize(e,t);if("."==i&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return r("number","number");if("."==i&&e.match(".."))return r("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(i))return r(i);if("="==i&&e.eat(">"))return r("=>","operator");if("0"==i&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),r("number","number");if(/\d/.test(i))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),r("number","number");if("/"==i)return e.eat("*")?(t.tokenize=s,s(e,t)):e.eat("/")?(e.skipToEnd(),r("comment","comment")):"operator"==t.lastType||"keyword c"==t.lastType||"sof"==t.lastType||/^[\[{}\(,;:]$/.test(t.lastType)?(n(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),r("regexp","string-2")):(e.eatWhile(Ce),r("operator","operator",e.current()));if("`"==i)return t.tokenize=l,l(e,t);if("#"==i)return e.skipToEnd(),r("error","error");if(Ce.test(i))return e.eatWhile(Ce),r("operator","operator",e.current());if(xe.test(i)){e.eatWhile(xe);var a=e.current(),c=ke.propertyIsEnumerable(a)&&ke[a];return c&&"."!=t.lastType?r(c.type,c.style,a):r("variable","variable",a)}}function o(e){return function(t,i){var n,o=!1;if(_e&&"@"==t.peek()&&t.match(Te))return i.tokenize=a,r("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||o);)o=!o&&"\\"==n;return o||(i.tokenize=a),r("string","string")}}function s(e,t){for(var i,n=!1;i=e.next();){if("/"==i&&n){t.tokenize=a;break}n="*"==i}return r("comment","comment")}function l(e,t){for(var i,n=!1;null!=(i=e.next());){if(!n&&("`"==i||"$"==i&&e.eat("{"))){t.tokenize=a;break}n=!n&&"\\"==i}return r("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var i=e.string.indexOf("=>",e.start);if(!(i<0)){for(var n=0,r=!1,a=i-1;a>=0;--a){var o=e.string.charAt(a),s=Se.indexOf(o);if(s>=0&&s<3){if(!n){++a;break}if(0==--n)break}else if(s>=3&&s<6)++n;else if(xe.test(o))r=!0;else{if(/["'\/]/.test(o))return;if(r&&!n){++a;break}}}r&&!n&&(t.fatArrowAt=a)}}function u(e,t,i,n,r,a){this.indented=e,this.column=t,this.type=i,this.prev=r,this.info=a,null!=n&&(this.align=n)}function d(e,t){for(var i=e.localVars;i;i=i.next)if(i.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var i=n.vars;i;i=i.next)if(i.name==t)return!0}function h(e,t,i,n,r){var a=e.cc;for(Ae.state=e,Ae.stream=r,Ae.marked=null,Ae.cc=a,Ae.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((a.length?a.pop():be?x:w)(i,n)){for(;a.length&&a[a.length-1].lex;)a.pop()();return Ae.marked?Ae.marked:"variable"==i&&d(e,n)?"variable-2":t}}}function p(){for(var e=arguments.length-1;e>=0;e--)Ae.cc.push(arguments[e])}function f(){return p.apply(null,arguments),!0}function m(e){function t(t){for(var i=t;i;i=i.next)if(i.name==e)return!0;return!1}var n=Ae.state;if(n.context){if(Ae.marked="def",t(n.localVars))return;n.localVars={name:e,next:n.localVars}}else{if(t(n.globalVars))return;i.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}function g(){Ae.state.context={prev:Ae.state.context,vars:Ae.state.localVars},Ae.state.localVars=Ie}function v(){Ae.state.localVars=Ae.state.context.vars,Ae.state.context=Ae.state.context.prev}function y(e,t){var i=function(){var i=Ae.state,n=i.indented;if("stat"==i.lexical.type)n=i.lexical.indented;else for(var r=i.lexical;r&&")"==r.type&&r.align;r=r.prev)n=r.indented;i.lexical=new u(n,Ae.stream.column(),e,null,i.lexical,t)};return i.lex=!0,i}function _(){var e=Ae.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function b(e){function t(i){return i==e?f():";"==e?p():f(t)}return t}function w(e,t){return"var"==e?f(y("vardef",t.length),q,b(";"),_):"keyword a"==e?f(y("form"),x,w,_):"keyword b"==e?f(y("form"),w,_):"{"==e?f(y("}"),B,_):";"==e?f():"if"==e?("else"==Ae.state.lexical.info&&Ae.state.cc[Ae.state.cc.length-1]==_&&Ae.state.cc.pop()(),f(y("form"),x,w,_,Y)):"function"==e?f(ee):"for"==e?f(y("form"),K,w,_):"variable"==e?f(y("stat"),O):"switch"==e?f(y("form"),x,y("}","switch"),b("{"),B,_,_):"case"==e?f(x,b(":")):"default"==e?f(b(":")):"catch"==e?f(y("form"),g,b("("),te,b(")"),w,_,v):"module"==e?f(y("form"),g,oe,v,_):"class"==e?f(y("form"),ie,_):"export"==e?f(y("form"),se,_):"import"==e?f(y("form"),le,_):p(y("stat"),x,b(";"),_)}function x(e){return C(e,!1)}function k(e){ return C(e,!0)}function C(e,t){if(Ae.state.fatArrowAt==Ae.stream.start){var i=t?L:M;if("("==e)return f(g,y(")"),z(H,")"),_,b("=>"),i,v);if("variable"==e)return p(g,H,b("=>"),i,v)}var n=t?A:E;return Ee.hasOwnProperty(e)?f(n):"function"==e?f(ee,n):"keyword c"==e?f(t?S:T):"("==e?f(y(")"),T,pe,b(")"),_,n):"operator"==e||"spread"==e?f(t?k:x):"["==e?f(y("]"),de,_,n):"{"==e?F(P,"}",null,n):"quasi"==e?p(I,n):f()}function T(e){return e.match(/[;\}\)\],]/)?p():p(x)}function S(e){return e.match(/[;\}\)\],]/)?p():p(k)}function E(e,t){return","==e?f(x):A(e,t,!1)}function A(e,t,i){var n=0==i?E:A,r=0==i?x:k;return"=>"==e?f(g,i?L:M,v):"operator"==e?/\+\+|--/.test(t)?f(n):"?"==t?f(x,b(":"),r):f(r):"quasi"==e?p(I,n):";"!=e?"("==e?F(k,")","call",n):"."==e?f(N,n):"["==e?f(y("]"),T,b("]"),_,n):void 0:void 0}function I(e,t){return"quasi"!=e?p():"${"!=t.slice(t.length-2)?f(I):f(x,D)}function D(e){if("}"==e)return Ae.marked="string-2",Ae.state.tokenize=l,f(I)}function M(e){return c(Ae.stream,Ae.state),p("{"==e?w:x)}function L(e){return c(Ae.stream,Ae.state),p("{"==e?w:k)}function O(e){return":"==e?f(_,w):p(E,b(";"),_)}function N(e){if("variable"==e)return Ae.marked="property",f()}function P(e,t){return"variable"==e||"keyword"==Ae.style?(Ae.marked="property",f("get"==t||"set"==t?R:j)):"number"==e||"string"==e?(Ae.marked=_e?"property":Ae.style+" property",f(j)):"jsonld-keyword"==e?f(j):"["==e?f(x,b("]"),j):void 0}function R(e){return"variable"!=e?p(j):(Ae.marked="property",f(ee))}function j(e){return":"==e?f(k):"("==e?p(ee):void 0}function z(e,t){function i(n){if(","==n){var r=Ae.state.lexical;return"call"==r.info&&(r.pos=(r.pos||0)+1),f(e,i)}return n==t?f():f(b(t))}return function(n){return n==t?f():p(e,i)}}function F(e,t,i){for(var n=3;n!?|~^]/,Te=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Se="([{}])",Ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Ae={state:null,column:null,marked:null,cc:null},Ie={name:"this",next:{name:"arguments"}};return _.lex=!0,{startState:function(e){var t={tokenize:a,lastType:"sof",cc:[],lexical:new u((e||0)-ve,0,"block",!1),localVars:i.localVars,context:i.localVars&&{vars:i.localVars},indented:0};return i.globalVars&&"object"==typeof i.globalVars&&(t.globalVars=i.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=s&&e.eatSpace())return null;var i=t.tokenize(e,t);return"comment"==me?i:(t.lastType="operator"!=me||"++"!=ge&&"--"!=ge?me:"incdec",h(t,i,me,ge,e))},indent:function(t,n){if(t.tokenize==s)return e.Pass;if(t.tokenize!=a)return 0;var r=n&&n.charAt(0),o=t.lexical;if(!/^\s*else\b/.test(n))for(var l=t.cc.length-1;l>=0;--l){var c=t.cc[l];if(c==_)o=o.prev;else if(c!=Y)break}"stat"==o.type&&"}"==r&&(o=o.prev),ye&&")"==o.type&&"stat"==o.prev.type&&(o=o.prev);var u=o.type,d=r==u;return"vardef"==u?o.indented+("operator"==t.lastType||","==t.lastType?o.info+1:0):"form"==u&&"{"==r?o.indented:"form"==u?o.indented+ve:"stat"==u?o.indented+(fe(t,n)?ye||ve:0):"switch"!=o.info||d||0==i.doubleIndentSwitch?o.align?o.column+(d?0:1):o.indented+(d?0:ve):o.indented+(/^(?:case|default)\b/.test(n)?ve:2*ve)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:be?null:"/*",blockCommentEnd:be?null:"*/",lineComment:be?null:"//",fold:"brace",helperType:be?"json":"javascript",jsonldMode:_e,jsonMode:be}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/htmlmixed/htmlmixed",["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(e){e.defineMode("htmlmixed",function(t,i){function n(e,t){var i=t.htmlState.tagName;i&&(i=i.toLowerCase());var n=s.token(e,t.htmlState);if("script"==i&&/\btag\b/.test(n)&&">"==e.current()){var r=e.string.slice(Math.max(0,e.pos-100),e.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);r=r?r[1]:"",r&&/[\"\']/.test(r.charAt(0))&&(r=r.slice(1,r.length-1));for(var u=0;u"==e.current()&&(t.token=o,t.localMode=l,t.localState=l.startState(s.indent(t.htmlState,"")));return n}function r(e,t,i){var n=e.current(),r=n.search(t);return r>-1?e.backUp(n.length-r):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n)),i}function a(e,t){return e.match(/^<\/\s*script\s*>/i,!1)?(t.token=n,t.localState=t.localMode=null,null):r(e,/<\/\s*script\s*>/,t.localMode.token(e,t.localState))}function o(e,t){return e.match(/^<\/\s*style\s*>/i,!1)?(t.token=n,t.localState=t.localMode=null,null):r(e,/<\/\s*style\s*>/,l.token(e,t.localState))}var s=e.getMode(t,{name:"xml",htmlMode:!0,multilineTagIndentFactor:i.multilineTagIndentFactor,multilineTagIndentPastTag:i.multilineTagIndentPastTag}),l=e.getMode(t,"css"),c=[],u=i&&i.scriptTypes;if(c.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:e.getMode(t,"javascript")}),u)for(var d=0;d\w/,!1)&&(t.tokenize=i([[["->",null]],[[/[\w]+/,"variable"]]],n)),"variable-2";for(var r=!1;!e.eol()&&(r||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!r&&e.match(n)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}r="\\"==e.next()&&!r}return"string"}var a="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",o="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",s="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[a,o,s].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var l={name:"clike",helperType:"php",keywords:t(a),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),atoms:t(o),builtin:t(s),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){if(e.match(/<",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=n('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=n(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",function(t,i){function n(e,t){var i=t.curMode==a;if(e.sol()&&t.pending&&'"'!=t.pending&&"'"!=t.pending&&(t.pending=null),i)return i&&null==t.php.tokenize&&e.match("?>")?(t.curMode=r,t.curState=t.html,"meta"):a.token(e,t.curState);if(e.match(/^<\?\w*/))return t.curMode=a,t.curState=t.php,"meta";if('"'==t.pending||"'"==t.pending){for(;!e.eol()&&e.next()!=t.pending;);var n="string"}else if(t.pending&&e.pos/.test(s)?t.pending=o[0]:t.pending={end:e.pos,style:n},e.backUp(s.length-l)),n}var r=e.getMode(t,"text/html"),a=e.getMode(t,l);return{startState:function(){var t=e.startState(r),n=e.startState(a);return{html:t,php:n,curMode:i.startOpen?a:r,curState:i.startOpen?n:t,pending:null}},copyState:function(t){var i,n=t.html,o=e.copyState(r,n),s=t.php,l=e.copyState(a,s);return i=t.curMode==r?o:l,{html:o,php:l,curMode:t.curMode,curState:i,pending:t.pending}},token:n,indent:function(e,t){return e.curMode!=a&&/^\s*<\//.test(t)||e.curMode==a&&/^\?>/.test(t)?r.indent(e.html,t):e.curMode.indent(e.curState,t)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",l)}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/meta",["../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj"]},{name:"CoffeeScript",mime:"text/x-coffeescript",mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history).md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy"]},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Jade",mime:"text/x-jade",mode:"jade",ext:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"Jinja2",mime:"null",mode:"jinja2"},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"kotlin",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NTriples",mime:"text/n-triples",mode:"ntriples",ext:["nt"]},{name:"Objective C",mime:"text/x-objectivec",mode:"clike",ext:["m","mm"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mime:"application/x-httpd-php",mode:"php",ext:["php","php3","php4","php5","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["py","pyw"]},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mime:"text/x-sh",mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"]},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"SmartyMixed",mime:"text/x-smarty",mode:"smartymixed"},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"MariaDB",mime:"text/x-mariadb",mode:"sql"},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki ",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"YAML",mime:"text/x-yaml",mode:"yaml",ext:["yaml"],alias:["yml"] },{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]}];for(var t=0;t-1&&t.substring(r+1,t.length);if(a)return e.findModeByExtension(a)},e.findModeByName=function(t){t=t.toLowerCase();for(var i=0;i=0?(t.indentationDiff<4&&(t.indentation-=t.indentationDiff),t.list=null):!1!==t.list&&t.indentation>0?(t.list=null,t.listDepth=Math.floor(t.indentation/4)):!1!==t.list&&(t.list=!1,t.listDepth=0);var s=null;if(t.indentationDiff>=4)return t.indentation-=4,e.skipToEnd(),T;if(e.eatSpace())return null;if(s=e.match(H))return t.header=s[0].length<=6?s[0].length:6,i.highlightFormatting&&(t.formatting="header"),t.f=t.inline,d(t);if(t.prevLineHasContent&&(s=e.match(W)))return t.header="="==s[0].charAt(0)?1:2,i.highlightFormatting&&(t.formatting="header"),t.f=t.inline,d(t);if(e.eat(">"))return t.indentation++,t.quote=a?1:t.quote+1,i.highlightFormatting&&(t.formatting="quote"),e.eatSpace(),d(t);if("["===e.peek())return r(e,t,v);if(e.match(B,!0))return D;if((!t.prevLineHasContent||o)&&(e.match(U,!1)||e.match($,!1))){var l=null;return e.match(U,!0)?l="ul":(e.match($,!0),l="ol"),t.indentation+=4,t.list=!0,t.listDepth++,i.taskLists&&e.match(q,!1)&&(t.taskList=!0),t.f=t.inline,i.highlightFormatting&&(t.formatting=["list","list-"+l]),d(t)}return i.fencedCodeBlocks&&e.match(/^```[ \t]*([\w+#]*)/,!0)?(t.localMode=n(RegExp.$1),t.localMode&&(t.localState=t.localMode.startState()),t.f=t.block=c,i.highlightFormatting&&(t.formatting="code-block"),t.code=!0,d(t)):r(e,t,t.inline)}function l(e,t){var i=x.token(e,t.htmlState);return(w&&null===t.htmlState.tagStart&&!t.htmlState.context||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=p,t.block=s,t.htmlState=null),i}function c(e,t){return e.sol()&&e.match("```",!1)?(t.localMode=t.localState=null,t.f=t.block=u,null):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),T)}function u(e,t){e.match("```"),t.block=s,t.f=p,i.highlightFormatting&&(t.formatting="code-block"),t.code=!0;var n=d(t);return t.code=!1,n}function d(e){var t=[];if(e.formatting){t.push(L),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var n=0;n=e.quote?t.push(L+"-"+e.formatting[n]+"-"+e.quote):t.push("error"))}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref)return t.push(R),t.length?t.join(" "):null;if(e.strong&&t.push(z),e.em&&t.push(j),e.strikethrough&&t.push(F),e.linkText&&t.push(P),e.code&&t.push(T),e.header&&(t.push(C),t.push(C+"-"+e.header)),e.quote&&(t.push(S),!i.maxBlockquoteDepth||i.maxBlockquoteDepth>=e.quote?t.push(S+"-"+e.quote):t.push(S+"-"+i.maxBlockquoteDepth)),!1!==e.list){var r=(e.listDepth-1)%3;r?1===r?t.push(A):t.push(I):t.push(E)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function h(e,t){if(e.match(V,!0))return d(t)}function p(t,n){var r=n.text(t,n);if(void 0!==r)return r;if(n.list)return n.list=null,d(n);if(n.taskList){return"x"!==t.match(q,!0)[1]?n.taskOpen=!0:n.taskClosed=!0,i.highlightFormatting&&(n.formatting="task"),n.taskList=!1,d(n)}if(n.taskOpen=!1,n.taskClosed=!1,n.header&&t.match(/^#+$/,!0))return i.highlightFormatting&&(n.formatting="header"),d(n);var o=t.sol(),s=t.next();if("\\"===s&&(t.next(),i.highlightFormatting)){var c=d(n);return c?c+" formatting-escape":"formatting-escape"}if(n.linkTitle){n.linkTitle=!1;var u=s;"("===s&&(u=")"),u=(u+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");var h="^\\s*(?:[^"+u+"\\\\]+|\\\\\\\\|\\\\.)"+u;if(t.match(new RegExp(h),!0))return R}if("`"===s){var p=n.formatting;i.highlightFormatting&&(n.formatting="code");var g=d(n),v=t.pos;t.eatWhile("`");var y=1+t.pos-v;return n.code?y===k?(n.code=!1,g):(n.formatting=p,d(n)):(k=y,n.code=!0,d(n))}if(n.code)return d(n);if("!"===s&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return t.match(/\[[^\]]*\]/),n.inline=n.f=m,M;if("["===s&&t.match(/.*\](\(.*\)| ?\[.*\])/,!1))return n.linkText=!0,i.highlightFormatting&&(n.formatting="link"),d(n);if("]"===s&&n.linkText&&t.match(/\(.*\)| ?\[.*\]/,!1)){i.highlightFormatting&&(n.formatting="link");var c=d(n);return n.linkText=!1,n.inline=n.f=m,c}if("<"===s&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){n.f=n.inline=f,i.highlightFormatting&&(n.formatting="link");var c=d(n);return c?c+=" ":c="",c+O}if("<"===s&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){n.f=n.inline=f,i.highlightFormatting&&(n.formatting="link");var c=d(n);return c?c+=" ":c="",c+N}if("<"===s&&t.match(/^\w/,!1)){if(-1!=t.string.indexOf(">")){/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(t.string.substring(1,t.string.indexOf(">")))&&(n.md_inside=!0)}return t.backUp(1),n.htmlState=e.startState(x),a(t,n,l)}if("<"===s&&t.match(/^\/\w*?>/))return n.md_inside=!1,"tag";var _=!1;if(!i.underscoresBreakWords&&"_"===s&&"_"!==t.peek()&&t.match(/(\w)/,!1)){var b=t.pos-2;if(b>=0){var w=t.string.charAt(b);"_"!==w&&w.match(/(\w)/,!1)&&(_=!0)}}if("*"===s||"_"===s&&!_)if(o&&" "===t.peek());else{if(n.strong===s&&t.eat(s)){i.highlightFormatting&&(n.formatting="strong");var g=d(n);return n.strong=!1,g}if(!n.strong&&t.eat(s))return n.strong=s,i.highlightFormatting&&(n.formatting="strong"),d(n);if(n.em===s){i.highlightFormatting&&(n.formatting="em");var g=d(n);return n.em=!1,g}if(!n.em)return n.em=s,i.highlightFormatting&&(n.formatting="em"),d(n)}else if(" "===s&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return d(n);t.backUp(1)}if(i.strikethrough)if("~"===s&&t.eatWhile(s)){if(n.strikethrough){i.highlightFormatting&&(n.formatting="strikethrough");var g=d(n);return n.strikethrough=!1,g}if(t.match(/^[^\s]/,!1))return n.strikethrough=!0,i.highlightFormatting&&(n.formatting="strikethrough"),d(n)}else if(" "===s&&t.match(/^~~/,!0)){if(" "===t.peek())return d(n);t.backUp(2)}return" "===s&&(t.match(/ +$/,!1)?n.trailingSpace++:n.trailingSpace&&(n.trailingSpaceNewLine=!0)),d(n)}function f(e,t){if(">"===e.next()){t.f=t.inline=p,i.highlightFormatting&&(t.formatting="link");var n=d(t);return n?n+=" ":n="",n+O}return e.match(/^[^>]+/,!0),O}function m(e,t){if(e.eatSpace())return null;var n=e.next();return"("===n||"["===n?(t.f=t.inline=g("("===n?")":"]"),i.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,d(t)):"error"}function g(e){return function(t,n){if(t.next()===e){n.f=n.inline=p,i.highlightFormatting&&(n.formatting="link-string");var r=d(n);return n.linkHref=!1,r}return t.match(b(e),!0)&&t.backUp(1),n.linkHref=!0,d(n)}}function v(e,t){return e.match(/^[^\]]*\]:/,!1)?(t.f=y,e.next(),i.highlightFormatting&&(t.formatting="link"),t.linkText=!0,d(t)):r(e,t,p)}function y(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=_,i.highlightFormatting&&(t.formatting="link");var n=d(t);return t.linkText=!1,n}return e.match(/^[^\]]+/,!0),P}function _(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=p,R)}function b(e){return G[e]||(e=(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),G[e]=new RegExp("^(?:[^\\\\]|\\\\.)*?("+e+")")),G[e]}var w=e.modes.hasOwnProperty("xml"),x=e.getMode(t,w?{name:"xml",htmlMode:!0}:"text/plain");void 0===i.highlightFormatting&&(i.highlightFormatting=!1),void 0===i.maxBlockquoteDepth&&(i.maxBlockquoteDepth=0),void 0===i.underscoresBreakWords&&(i.underscoresBreakWords=!0),void 0===i.fencedCodeBlocks&&(i.fencedCodeBlocks=!1),void 0===i.taskLists&&(i.taskLists=!1),void 0===i.strikethrough&&(i.strikethrough=!1);var k=0,C="header",T="comment",S="quote",E="variable-2",A="variable-3",I="keyword",D="hr",M="tag",L="formatting",O="link",N="link",P="link",R="string",j="em",z="strong",F="strikethrough",B=/^([*\-=_])(?:\s*\1){2,}\s*$/,U=/^[*\-+]\s+/,$=/^[0-9]+\.\s+/,q=/^\[(x| )\](?=\s)/,H=/^#+/,W=/^(?:\={1,}|-{1,})$/,V=/^[^#!\[\]*_\\<>` "'(~]+/,G=[],Y={startState:function(){return{f:s,prevLineHasContent:!1,thisLineHasContent:!1,block:s,htmlState:null,indentation:0,inline:p,text:h,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,em:!1,strong:!1,header:0,taskList:!1,list:!1,listDepth:0,quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1}},copyState:function(t){return{f:t.f,prevLineHasContent:t.prevLineHasContent,thisLineHasContent:t.thisLineHasContent,block:t.block,htmlState:t.htmlState&&e.copyState(x,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkTitle:t.linkTitle,em:t.em,strong:t.strong,strikethrough:t.strikethrough,header:t.header,taskList:t.taskList,list:t.list,listDepth:t.listDepth,quote:t.quote,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside}},token:function(e,t){if(t.formatting=!1,e.sol()){var i=!!t.header;if(t.header=0,e.match(/^\s*$/,!0)||i)return t.prevLineHasContent=!1,o(t),i?this.token(e,t):null;t.prevLineHasContent=t.thisLineHasContent,t.thisLineHasContent=!0,t.taskList=!1,t.code=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.f=t.block;var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length,r=4*Math.floor((n-t.indentation)/4);r>4&&(r=4);var a=t.indentation+r;if(t.indentationDiff=a-t.indentation,t.indentation=a,n>0)return null}return t.f(e,t)},innerMode:function(e){return e.block==l?{state:e.htmlState,mode:x}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:Y}},blankLine:o,getType:d,fold:"markdown"};return Y},"xml"),e.defineMIME("text/x-markdown","markdown")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/mode/overlay",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.overlayMode=function(t,i,n){return{startState:function(){return{base:e.startState(t),overlay:e.startState(i),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(n){return{base:e.copyState(t,n.base),overlay:e.copyState(i,n.overlay),basePos:n.basePos,baseCur:null,overlayPos:n.overlayPos,overlayCur:null}},token:function(e,r){return(e!=r.streamSeen||Math.min(r.basePos,r.overlayPos)]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i)&&"]("!=e.string.slice(e.start-2,e.start)?(t.combineTokens=!0,"link"):(e.next(),null)},blankLine:n},o={underscoresBreakWords:!1,taskLists:!0,fencedCodeBlocks:!0,strikethrough:!0};for(var s in i)o[s]=i[s];return o.name="markdown",e.defineMIME("gfmBase",o),e.overlayMode(e.getMode(t,"gfmBase"),a)},"markdown")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/http/http",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("http",function(){function e(e,t){return e.skipToEnd(),t.cur=o,"error"}function t(t,n){return t.match(/^HTTP\/\d\.\d/)?(n.cur=i,"keyword"):t.match(/^[A-Z]+/)&&/[ \t]/.test(t.peek())?(n.cur=r,"keyword"):e(t,n)}function i(t,i){var r=t.match(/^\d+/);if(!r)return e(t,i);i.cur=n;var a=Number(r[0]);return a>=100&&a<200?"positive informational":a>=200&&a<300?"positive success":a>=300&&a<400?"positive redirect":a>=400&&a<500?"negative client-error":a>=500&&a<600?"negative server-error":"error"}function n(e,t){return e.skipToEnd(),t.cur=o,null}function r(e,t){return e.eatWhile(/\S/),t.cur=a,"string-2"}function a(t,i){return t.match(/^HTTP\/\d\.\d$/)?(i.cur=o,"keyword"):e(t,i)}function o(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function s(e){return e.skipToEnd(),null}return{token:function(e,t){var i=t.cur;return i!=o&&i!=s&&e.eatSpace()?null:i(e,t)},blankLine:function(e){e.cur=s},startState:function(){return{cur:t}}}}),e.defineMIME("message/http","http")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/go/go",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("go",function(e){function t(e,t){var r=e.next();if('"'==r||"'"==r||"`"==r)return t.tokenize=i(r),t.tokenize(e,t);if(/[\d\.]/.test(r))return"."==r?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==r?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(r))return s=r,null;if("/"==r){if(e.eat("*"))return t.tokenize=n,n(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(d.test(r))return e.eatWhile(d),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var a=e.current();return c.propertyIsEnumerable(a)?("case"!=a&&"default"!=a||(s="case"),"keyword"):u.propertyIsEnumerable(a)?"atom":"variable"}function i(e){return function(i,n){for(var r,a=!1,o=!1;null!=(r=i.next());){if(r==e&&!a){o=!0;break}a=!a&&"\\"==r}return(o||!a&&"`"!=e)&&(n.tokenize=t),"string"}}function n(e,i){for(var n,r=!1;n=e.next();){if("/"==n&&r){i.tokenize=t;break}r="*"==n}return"comment"}function r(e,t,i,n,r){this.indented=e,this.column=t,this.type=i,this.align=n,this.prev=r}function a(e,t,i){return e.context=new r(e.indented,t,i,null,e.context)}function o(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}var s,l=e.indentUnit,c={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0},u={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},d=/[+\-*&^%:=<>!|\/]/;return{startState:function(e){return{tokenize:null,context:new r((e||0)-l,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,i){var n=i.context;if(e.sol()&&(null==n.align&&(n.align=!1),i.indented=e.indentation(),i.startOfLine=!0,"case"==n.type&&(n.type="}")),e.eatSpace())return null;s=null;var r=(i.tokenize||t)(e,i);return"comment"==r?r:(null==n.align&&(n.align=!0),"{"==s?a(i,e.column(),"}"):"["==s?a(i,e.column(),"]"):"("==s?a(i,e.column(),")"):"case"==s?n.type="case":"}"==s&&"}"==n.type?n=o(i):s==n.type&&o(i),i.startOfLine=!1,r)},indent:function(e,i){if(e.tokenize!=t&&null!=e.tokenize)return 0;var n=e.context,r=i&&i.charAt(0);if("case"==n.type&&/^(?:case|default)\b/.test(i))return e.context.type="}",n.indented;var a=r==n.type;return n.align?n.column+(a?0:1):n.indented+(a?0:l)},electricChars:"{}):",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),e.defineMIME("text/x-go","go")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../clike/clike")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/dart/dart",["../../lib/codemirror","../clike/clike"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},i=0;ii&&"coffee"==t.scope.type?"indent":n0&&s(e,t)}if(e.eatSpace())return null;var o=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=a,t.tokenize(e,t);if("#"===o)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var l=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(l=!0),e.match(/^-?\d+\.\d*/)&&(l=!0),e.match(/^-?\.\d+/)&&(l=!0),l)return"."==e.peek()&&e.backUp(1),"number";var m=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(m=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(m=!0),e.match(/^-?0(?![\dx])/i)&&(m=!0),m)return"number"}if(e.match(y))return t.tokenize=r(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(_)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=r(e.current(),!0,"string-2"),t.tokenize(e,t);e.backUp(1)}return e.match(u)||e.match(f)?"operator":e.match(d)?"punctuation":e.match(w)?"atom":e.match(v)?"keyword":e.match(h)?"variable":e.match(p)?"property":(e.next(),c)}function r(e,i,r){return function(a,o){for(;!a.eol();)if(a.eatWhile(/[^'"\/\\]/),a.eat("\\")){if(a.next(),i&&a.eol())return r}else{if(a.match(e))return o.tokenize=n,r;a.eat(/['"\/]/)}return i&&(t.singleLineStringErrors?r=c:o.tokenize=n),r}}function a(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=n;break}e.eatWhile("#")}return"comment"}function o(t,i,n){n=n||"coffee";for(var r=0,a=!1,o=null,s=i.scope;s;s=s.prev)if("coffee"===s.type||"}"==s.type){r=s.offset+e.indentUnit;break}"coffee"!==n?(a=null,o=t.column()+t.current().length):i.scope.align&&(i.scope.align=!1),i.scope={offset:r,type:n,prev:i.scope,align:a,alignOffset:o}}function s(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var i=e.indentation(),n=!1,r=t.scope;r;r=r.prev)if(i===r.offset){n=!0;break}if(!n)return!0;for(;t.scope.prev&&t.scope.offset!==i;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}function l(e,t){var i=t.tokenize(e,t),n=e.current();if("."===n)return i=t.tokenize(e,t),n=e.current(),/^\.[\w$]+$/.test(n)?"variable":c;"return"===n&&(t.dedent=!0),("->"!==n&&"=>"!==n||t.lambda||e.peek())&&"indent"!==i||o(e,t);var r="[({".indexOf(n);if(-1!==r&&o(e,t,"])}".slice(r,r+1)),m.exec(n)&&o(e,t),"then"==n&&s(e,t),"dedent"===i&&s(e,t))return c;if(-1!==(r="])}".indexOf(n))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==n&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),i}var c="error",u=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,d=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,h=/^[_A-Za-z$][_A-Za-z$0-9]*/,p=/^(@|this\.)[_A-Za-z$][_A-Za-z$0-9]*/,f=i(["and","or","not","is","isnt","in","instanceof","typeof"]),m=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],g=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],v=i(m.concat(g));m=i(m);var y=/^('{3}|\"{3}|['\"])/,_=/^(\/{3}|\/)/,b=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],w=i(b);return{startState:function(e){return{tokenize:n,scope:{offset:e||0,type:"coffee",prev:null,align:!1},lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var i=null===t.scope.align&&t.scope;i&&e.sol()&&(i.align=!1);var n=l(e,t);return i&&n&&"comment"!=n&&(i.align=!0),t.lastToken={style:n,content:e.current()},e.eol()&&e.lambda&&(t.lambda=!1),n},indent:function(e,t){if(e.tokenize!=n)return 0;var i=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==i.type&&i.prev;)i=i.prev;var a=r&&i.type===t.charAt(0);return i.align?i.alignOffset-(a?1:0):(a?i.prev:i).offset},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-coffeescript","coffeescript")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/nginx/nginx",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("nginx",function(e){function t(e){for(var t={},i=e.split(" "),n=0;n*\/]/.test(s)?i(null,"select-op"):/[;{}:\[\]]/.test(s)?i(null,s):(e.eatWhile(/[\w\\\-]/),i("variable","variable")):i(null,"compare"):void i(null,"compare")}function r(e,t){for(var r,a=!1;null!=(r=e.next());){if(a&&"/"==r){t.tokenize=n;break}a="*"==r}return i("comment","comment")}function a(e,t){for(var r,a=0;null!=(r=e.next());){if(a>=2&&">"==r){t.tokenize=n;break}a="-"==r?a+1:0}return i("comment","comment")}function o(e){return function(t,r){for(var a,o=!1;null!=(a=t.next())&&(a!=e||o);)o=!o&&"\\"==a;return o||(r.tokenize=n),i("string","string")}}var s,l=t("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),c=t("http mail events server types location upstream charset_map limit_except if geo map"),u=t("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),d=e.indentUnit;return{startState:function(e){return{tokenize:n,baseIndent:e||0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;s=null;var i=t.tokenize(e,t),n=t.stack[t.stack.length-1];return"hash"==s&&"rule"==n?i="atom":"variable"==i&&("rule"==n?i="number":n&&"@media{"!=n||(i="tag")),"rule"==n&&/^[\{\};]$/.test(s)&&t.stack.pop(),"{"==s?"@media"==n?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==s?t.stack.pop():"@media"==s?t.stack.push("@media"):"{"==n&&"comment"!=s&&t.stack.push("rule"),i},indent:function(e,t){var i=e.stack.length;return/^\}/.test(t)&&(i-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+i*d},electricChars:"}"}}),e.defineMIME("text/nginx","text/x-nginx-conf")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/python/python",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){ return new RegExp("^(("+e.join(")|(")+"))\\b")}function i(e){return e.scopes[e.scopes.length-1]}var n=t(["and","or","not","is"]),r=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],a=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"],o={builtins:["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"],keywords:["exec","print"]},s={builtins:["ascii","bytes","exec","print"],keywords:["nonlocal","False","True","None"]};e.registerHelper("hintWords","python",r.concat(a)),e.defineMode("python",function(l,c){function u(e,t){if(e.sol()&&"py"==i(t).type){var n=i(t).offset;if(e.eatSpace()){var r=e.indentation();return r>n?p(e,t,"py"):r0&&f(e,t)&&(a+=" "+g),a}return d(e,t)}function d(e,t){if(e.eatSpace())return null;if("#"==e.peek())return e.skipToEnd(),"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^\d+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var r=!1;if(e.match(/^0x[0-9a-f]+/i)&&(r=!0),e.match(/^0b[01]+/i)&&(r=!0),e.match(/^0o[0-7]+/i)&&(r=!0),e.match(/^[1-9]\d*(e[\+\-]?\d+)?/)&&(e.eat(/J/i),r=!0),e.match(/^0(?![\dx])/i)&&(r=!0),r)return e.eat(/L/i),"number"}return e.match(S)?(t.tokenize=h(e.current()),t.tokenize(e,t)):e.match(b)||e.match(_)?null:e.match(y)||e.match(w)||e.match(n)?"operator":e.match(v)?null:e.match(E)?"keyword":e.match(A)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(x)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),g)}function h(e){function t(t,r){for(;!t.eol();)if(t.eatWhile(/[^'"\\]/),t.eat("\\")){if(t.next(),i&&t.eol())return n}else{if(t.match(e))return r.tokenize=u,n;t.eat(/['"]/)}if(i){if(c.singleLineStringErrors)return g;r.tokenize=u}return n}for(;"rub".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var i=1==e.length,n="string";return t.isString=!0,t}function p(e,t,n){var r=0,a=null;if("py"==n)for(;"py"!=i(t).type;)t.scopes.pop();r=i(t).offset+("py"==n?l.indentUnit:k),"py"==n||e.match(/^(\s|#.*)*$/,!1)||(a=e.column()+1),t.scopes.push({offset:r,type:n,align:a})}function f(e,t){for(var n=e.indentation();i(t).offset>n;){if("py"!=i(t).type)return!0;t.scopes.pop()}return i(t).offset!=n}function m(e,t){var n=t.tokenize(e,t),r=e.current();if("."==r)return n=e.match(x,!1)?null:g,null==n&&"meta"==t.lastStyle&&(n="meta"),n;if("@"==r)return c.version&&3==parseInt(c.version,10)?e.match(x,!1)?"meta":"operator":e.match(x,!1)?"meta":g;"variable"!=n&&"builtin"!=n||"meta"!=t.lastStyle||(n="meta"),"pass"!=r&&"return"!=r||(t.dedent+=1),"lambda"==r&&(t.lambda=!0),":"!=r||t.lambda||"py"!=i(t).type||p(e,t,"py");var a=1==r.length?"[({".indexOf(r):-1;if(-1!=a&&p(e,t,"])}".slice(a,a+1)),-1!=(a="])}".indexOf(r))){if(i(t).type!=r)return g;t.scopes.pop()}return t.dedent>0&&e.eol()&&"py"==i(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),n}var g="error",v=c.singleDelimiters||new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),y=c.doubleOperators||new RegExp("^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),_=c.doubleDelimiters||new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),b=c.tripleDelimiters||new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");if(c.version&&3==parseInt(c.version,10))var w=c.singleOperators||new RegExp("^[\\+\\-\\*/%&|\\^~<>!@]"),x=c.identifiers||new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");else var w=c.singleOperators||new RegExp("^[\\+\\-\\*/%&|\\^~<>!]"),x=c.identifiers||new RegExp("^[_A-Za-z][_A-Za-z0-9]*");var k=c.hangingIndent||l.indentUnit,C=r,T=a;if(void 0!=c.extra_keywords&&(C=C.concat(c.extra_keywords)),void 0!=c.extra_builtins&&(T=T.concat(c.extra_builtins)),c.version&&3==parseInt(c.version,10)){C=C.concat(s.keywords),T=T.concat(s.builtins);var S=new RegExp("^(([rb]|(br))?('{3}|\"{3}|['\"]))","i")}else{C=C.concat(o.keywords),T=T.concat(o.builtins);var S=new RegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}var E=t(C),A=t(T);return{startState:function(e){return{tokenize:u,scopes:[{offset:e||0,type:"py",align:null}],lastStyle:null,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var i=t.errorToken;i&&(t.errorToken=!1);var n=m(e,t);t.lastStyle=n;var r=e.current();return r&&n&&(t.lastToken=r),e.eol()&&t.lambda&&(t.lambda=!1),i?n+" "+g:n},indent:function(t,n){if(t.tokenize!=u)return t.tokenize.isString?e.Pass:0;var r=i(t),a=n&&n.charAt(0)==r.type;return null!=r.align?r.align-(a?1:0):a&&t.scopes.length>1?t.scopes[t.scopes.length-2].offset:r.offset},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-python","python");e.defineMIME("text/x-cython",{name:"python",extra_keywords:function(e){return e.split(" ")}("by cdef cimport cpdef ctypedef enum exceptextern gil include nogil property publicreadonly struct union DEF IF ELIF ELSE")})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/perl/perl",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t){return e.string.charAt(e.pos+(t||0))}function i(e,t){if(t){var i=e.pos-t;return e.string.substr(i>=0?i:0,t)}return e.string.substr(0,e.pos-1)}function n(e,t){var i=e.string.length,n=i-e.pos+1;return e.string.substr(e.pos,t&&t=(i=e.string.length-1)?e.pos=i:e.pos=n}e.defineMode("perl",function(){function e(e,t,i,n,r){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var a,s=!1,l=0;a=e.next();){if(a===i[l]&&!s)return void 0!==i[++l]?(t.chain=i[l],t.style=n,t.tail=r):r&&e.eatWhile(r),t.tokenize=o,n;s=!s&&"\\"==a}return n},t.tokenize(e,t)}function a(e,t,i){return t.tokenize=function(e,t){return e.string==i&&(t.tokenize=o),e.skipToEnd(),"string"},t.tokenize(e,t)}function o(o,u){if(o.eatSpace())return null;if(u.chain)return e(o,u,u.chain,u.style,u.tail);if(o.match(/^\-?[\d\.]/,!1)&&o.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(o.match(/^<<(?=\w)/))return o.eatWhile(/\w/),a(o,u,o.current().substr(2));if(o.sol()&&o.match(/^\=item(?!\w)/))return a(o,u,"=cut");var d=o.next();if('"'==d||"'"==d){if(i(o,3)=="<<"+d){var h=o.pos;o.eatWhile(/\w/);var p=o.current().substr(1);if(p&&o.eat(d))return a(o,u,p);o.pos=h}return e(o,u,[d],"string")}if("q"==d){var f=t(o,-2);if(!f||!/\w/.test(f))if("x"==(f=t(o,0))){if("("==(f=t(o,1)))return r(o,2),e(o,u,[")"],l,c);if("["==f)return r(o,2),e(o,u,["]"],l,c);if("{"==f)return r(o,2),e(o,u,["}"],l,c);if("<"==f)return r(o,2),e(o,u,[">"],l,c);if(/[\^'"!~\/]/.test(f))return r(o,1),e(o,u,[o.eat(f)],l,c)}else if("q"==f){if("("==(f=t(o,1)))return r(o,2),e(o,u,[")"],"string");if("["==f)return r(o,2),e(o,u,["]"],"string");if("{"==f)return r(o,2),e(o,u,["}"],"string");if("<"==f)return r(o,2),e(o,u,[">"],"string");if(/[\^'"!~\/]/.test(f))return r(o,1),e(o,u,[o.eat(f)],"string")}else if("w"==f){if("("==(f=t(o,1)))return r(o,2),e(o,u,[")"],"bracket");if("["==f)return r(o,2),e(o,u,["]"],"bracket");if("{"==f)return r(o,2),e(o,u,["}"],"bracket");if("<"==f)return r(o,2),e(o,u,[">"],"bracket");if(/[\^'"!~\/]/.test(f))return r(o,1),e(o,u,[o.eat(f)],"bracket")}else if("r"==f){if("("==(f=t(o,1)))return r(o,2),e(o,u,[")"],l,c);if("["==f)return r(o,2),e(o,u,["]"],l,c);if("{"==f)return r(o,2),e(o,u,["}"],l,c);if("<"==f)return r(o,2),e(o,u,[">"],l,c);if(/[\^'"!~\/]/.test(f))return r(o,1),e(o,u,[o.eat(f)],l,c)}else if(/[\^'"!~\/(\[{<]/.test(f)){if("("==f)return r(o,1),e(o,u,[")"],"string");if("["==f)return r(o,1),e(o,u,["]"],"string");if("{"==f)return r(o,1),e(o,u,["}"],"string");if("<"==f)return r(o,1),e(o,u,[">"],"string");if(/[\^'"!~\/]/.test(f))return e(o,u,[o.eat(f)],"string")}}if("m"==d){var f=t(o,-2);if((!f||!/\w/.test(f))&&(f=o.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(f))return e(o,u,[f],l,c);if("("==f)return e(o,u,[")"],l,c);if("["==f)return e(o,u,["]"],l,c);if("{"==f)return e(o,u,["}"],l,c);if("<"==f)return e(o,u,[">"],l,c)}}if("s"==d){var f=/[\/>\]})\w]/.test(t(o,-2));if(!f&&(f=o.eat(/[(\[{<\^'"!~\/]/)))return"["==f?e(o,u,["]","]"],l,c):"{"==f?e(o,u,["}","}"],l,c):"<"==f?e(o,u,[">",">"],l,c):"("==f?e(o,u,[")",")"],l,c):e(o,u,[f,f],l,c)}if("y"==d){var f=/[\/>\]})\w]/.test(t(o,-2));if(!f&&(f=o.eat(/[(\[{<\^'"!~\/]/)))return"["==f?e(o,u,["]","]"],l,c):"{"==f?e(o,u,["}","}"],l,c):"<"==f?e(o,u,[">",">"],l,c):"("==f?e(o,u,[")",")"],l,c):e(o,u,[f,f],l,c)}if("t"==d){var f=/[\/>\]})\w]/.test(t(o,-2));if(!f&&(f=o.eat("r"))&&(f=o.eat(/[(\[{<\^'"!~\/]/)))return"["==f?e(o,u,["]","]"],l,c):"{"==f?e(o,u,["}","}"],l,c):"<"==f?e(o,u,[">",">"],l,c):"("==f?e(o,u,[")",")"],l,c):e(o,u,[f,f],l,c)}if("`"==d)return e(o,u,[d],"variable-2");if("/"==d)return/~\s*$/.test(i(o))?e(o,u,[d],l,c):"operator";if("$"==d){var h=o.pos;if(o.eatWhile(/\d/)||o.eat("{")&&o.eatWhile(/\d/)&&o.eat("}"))return"variable-2";o.pos=h}if(/[$@%]/.test(d)){var h=o.pos;if(o.eat("^")&&o.eat(/[A-Z]/)||!/[@$%&]/.test(t(o,-2))&&o.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var f=o.current();if(s[f])return"variable-2"}o.pos=h}if(/[$@%&]/.test(d)&&(o.eatWhile(/[\w$\[\]]/)||o.eat("{")&&o.eatWhile(/[\w$\[\]]/)&&o.eat("}"))){var f=o.current();return s[f]?"variable-2":"variable"}if("#"==d&&"$"!=t(o,-2))return o.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)){var h=o.pos;if(o.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),s[o.current()])return"operator";o.pos=h}if("_"==d&&1==o.pos){if("_END__"==n(o,6))return e(o,u,["\0"],"comment");if("_DATA__"==n(o,7))return e(o,u,["\0"],"variable-2");if("_C__"==n(o,7))return e(o,u,["\0"],"string")}if(/\w/.test(d)){var h=o.pos;if("{"==t(o,-2)&&("}"==t(o,0)||o.eatWhile(/\w/)&&"}"==t(o,0)))return"string";o.pos=h}if(/[A-Z]/.test(d)){var m=t(o,-2),h=o.pos;if(o.eatWhile(/[A-Z_]/),!/[\da-z]/.test(t(o,0))){var f=s[o.current()];return f?(f[1]&&(f=f[0]),":"!=m?1==f?"keyword":2==f?"def":3==f?"atom":4==f?"operator":5==f?"variable-2":"meta":"meta"):"meta"}o.pos=h}if(/[a-zA-Z_]/.test(d)){var m=t(o,-2);o.eatWhile(/\w/);var f=s[o.current()];return f?(f[1]&&(f=f[0]),":"!=m?1==f?"keyword":2==f?"def":3==f?"atom":4==f?"operator":5==f?"variable-2":"meta":"meta"):"meta"}return null}var s={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},l="string-2",c=/[goseximacplud]/;return{startState:function(){return{tokenize:o,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||o)(e,t)},lineComment:"#"}}),e.registerHelper("wordChars","perl",/[\w$]/),e.defineMIME("text/x-perl","perl")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/lua/lua",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("lua",function(e,t){function i(e){return new RegExp("^(?:"+e.join("|")+")$","i")}function n(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function r(e,t){var i=e.next();return"-"==i&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=a(n(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==i||"'"==i?(t.cur=o(i))(e,t):"["==i&&/[\[=]/.test(e.peek())?(t.cur=a(n(e),"string"))(e,t):/\d/.test(i)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(i)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function a(e,t){return function(i,n){for(var a,o=null;null!=(a=i.next());)if(null==o)"]"==a&&(o=0);else if("="==a)++o;else{if("]"==a&&o==e){n.cur=r;break}o=null}return t}}function o(e){return function(t,i){for(var n,a=!1;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(i.cur=r),"string"}}var s=e.indentUnit,l=i(t.specials||[]),c=i(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),u=i(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),d=i(["function","if","repeat","do","\\(","{"]),h=i(["end","until","\\)","}"]),p=function(e){return new RegExp("^(?:"+e.join("|")+")","i")}(["end","until","\\)","}","else","elseif"]);return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:r}},token:function(e,t){if(e.eatSpace())return null;var i=t.cur(e,t),n=e.current();return"variable"==i&&(u.test(n)?i="keyword":c.test(n)?i="builtin":l.test(n)&&(i="variable-2")),"comment"!=i&&"string"!=i&&(d.test(n)?++t.indentDepth:h.test(n)&&--t.indentDepth),i},indent:function(e,t){var i=p.test(t);return e.basecol+s*(e.indentDepth-(i?1:0))},lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),e.defineMIME("text/x-lua","lua")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/r/r",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("r",function(e){function t(e){for(var t=e.split(" "),i={},n=0;n=!&|~$:]/;return{startState:function(){return{tokenize:i,ctx:{type:"top",indent:-e.indentUnit,align:!1},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(null==t.ctx.align&&(t.ctx.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var i=t.tokenize(e,t);"comment"!=i&&null==t.ctx.align&&(t.ctx.align=!0);var n=t.ctx.type;return";"!=o&&"{"!=o&&"}"!=o||"block"!=n||a(t),"{"==o?r(t,"}",e):"("==o?(r(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==o?r(t,"]",e):"block"==o?r(t,"block",e):o==n&&a(t),t.afterIdent="variable"==i||"keyword"==i,i},indent:function(t,n){if(t.tokenize!=i)return 0;var r=n&&n.charAt(0),a=t.ctx,o=r==a.type;return"block"==a.type?a.indent+("{"==r?0:e.indentUnit):a.align?a.column+(o?0:1):a.indent+(o?0:e.indentUnit)},lineComment:"#"}}),e.defineMIME("text/x-rsrc","r")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/ruby/ruby",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("ruby",function(e){function t(e){for(var t={},i=0,n=e.length;i]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==r&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==r)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(r))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=r||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(r))return c=r,null;if("-"==r&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(r)){var v=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=r||v||(c="."),"operator"}return null}return c="|",null}function r(e){return e||(e=1),function(t,i){if("}"==t.peek()){if(1==e)return i.tokenize.pop(),i.tokenize[i.tokenize.length-1](t,i);i.tokenize[i.tokenize.length-1]=r(e-1)}else"{"==t.peek()&&(i.tokenize[i.tokenize.length-1]=r(e+1));return n(t,i)}}function a(){var e=!1;return function(t,i){return e?(i.tokenize.pop(),i.tokenize[i.tokenize.length-1](t,i)):(e=!0,n(t,i))}}function o(e,t,i,n){return function(o,s){var l,c=!1;for("read-quoted-paused"===s.context.type&&(s.context=s.context.prev,o.eat("}"));null!=(l=o.next());){if(l==e&&(n||!c)){s.tokenize.pop();break}if(i&&"#"==l&&!c){if(o.eat("{")){"}"==e&&(s.context={prev:s.context,type:"read-quoted-paused"}),s.tokenize.push(r());break}if(/[@\$]/.test(o.peek())){s.tokenize.push(a());break}}c=!c&&"\\"==l}return t}}function s(e){return function(t,i){return t.match(e)?i.tokenize.pop():t.skipToEnd(),"string"}}function l(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}var c,u=t(["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"]),d=t(["def","class","case","for","while","module","then","catch","loop","proc","begin"]),h=t(["end","until"]),p={"[":"]","{":"}","(":")"};return{startState:function(){return{tokenize:[n],indented:0,context:{type:"top",indented:-e.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){e.sol()&&(t.indented=e.indentation());var i,n=t.tokenize[t.tokenize.length-1](e,t),r=c;if("ident"==n){var a=e.current();n="."==t.lastTok?"property":u.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(a)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable","keyword"==n&&(r=a,d.propertyIsEnumerable(a)?i="indent":h.propertyIsEnumerable(a)?i="dedent":"if"!=a&&"unless"!=a||e.column()!=e.indentation()?"do"==a&&t.context.indented0?e.cmdState[e.cmdState.length-1]:null}function i(e){var t=e.cmdState.pop();t&&t.closeBracket()}function n(e){for(var t=e.cmdState,i=t.length-1;i>=0;i--){var n=t[i];if("DEFAULT"!=n.name)return n}return{styleIdentifier:function(){return null}}}function r(e,t,i){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=i,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}function a(e,t){e.f=t}function o(i,r){var o;if(i.match(/^\\[a-zA-Z@]+/)){var u=i.current().slice(1);return o=c[u]||c.DEFAULT,o=new o,e(r,o),a(r,l),o.style}if(i.match(/^\\[$&%#{}_]/))return"tag";if(i.match(/^\\[,;!\/\\]/))return"tag";if(i.match("\\["))return a(r,function(e,t){return s(e,t,"\\]")}),"keyword";if(i.match("$$"))return a(r,function(e,t){return s(e,t,"$$")}),"keyword";if(i.match("$"))return a(r,function(e,t){return s(e,t,"$")}),"keyword";var d=i.next();return"%"==d?(i.skipToEnd(),"comment"):"}"==d||"]"==d?(o=t(r))?(o.closeBracket(d),a(r,l),"bracket"):"error":"{"==d||"["==d?(o=c.DEFAULT,o=new o,e(r,o),"bracket"):/\d/.test(d)?(i.eatWhile(/[\w.%]/),"atom"):(i.eatWhile(/[\w\-_]/),o=n(r),"begin"==o.name&&(o.argument=i.current()),o.styleIdentifier())}function s(e,t,i){if(e.eatSpace())return null;if(e.match(i))return a(t,o),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variable-2";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var n=e.next();return"{"==n||"}"==n||"["==n||"]"==n||"("==n||")"==n?"bracket":"%"==n?(e.skipToEnd(),"comment"):"error"}function l(e,n){var r,s=e.peek();return"{"==s||"["==s?(r=t(n),r.openBracket(s),e.eat(s),a(n,o),"bracket"):/[ \t\r]/.test(s)?(e.eat(s),null):(a(n,o),i(n),o(e,n))}var c={};return c.importmodule=r("importmodule","tag",["string","builtin"]),c.documentclass=r("documentclass","tag",["","atom"]),c.usepackage=r("usepackage","tag",["atom"]),c.begin=r("begin","tag",["atom"]),c.end=r("end","tag",["atom"]),c.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:o}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=o,e.cmdState.length=0},lineComment:"%"}}),e.defineMIME("text/x-stex","stex"),e.defineMIME("text/x-latex","stex")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../python/python"),require("../stex/stex"),require("../../addon/mode/overlay")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/rst/rst",["../../lib/codemirror","../python/python","../stex/stex","../../addon/mode/overlay"],e):e(CodeMirror)}(function(e){e.defineMode("rst",function(t,i){var n=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,r=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,a=/^``[^`\s](?:[^`]*[^`\s])``/,o=/^(?:[\d]+(?:[\.,]\d+)*)/,s=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,l=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,c=new RegExp("^[Hh][Tt][Tt][Pp][Ss]?://(?:[\\d\\w.-]+)\\.(?:\\w{2,6})(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*"),u={token:function(e){if(e.match(n)&&e.match(/\W+|$/,!1))return"strong";if(e.match(r)&&e.match(/\W+|$/,!1))return"em";if(e.match(a)&&e.match(/\W+|$/,!1))return"string-2";if(e.match(o))return"number";if(e.match(s))return"positive";if(e.match(l))return"negative";if(e.match(c))return"link";for(;!(null==e.next()||e.match(n,!1)||e.match(r,!1)||e.match(a,!1)||e.match(o,!1)||e.match(s,!1)||e.match(l,!1)||e.match(c,!1)););return null}},d=e.getMode(t,i.backdrop||"rst-base");return e.overlayMode(d,u,!0)},"python","stex"),e.defineMode("rst-base",function(t){function i(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,i){return void 0!==t[i]?t[i]:e})}function n(t,i){var a=null;if(t.sol()&&t.match(Y,!1))u(i,l,{mode:p,local:e.startState(p)});else if(t.sol()&&t.match(C))u(i,r),a="meta";else if(t.sol()&&t.match(k))u(i,n),a="header";else if(h(i)==P||t.match(P,!1))switch(d(i)){case 0:u(i,n,c(P,1)),t.match(/^:/),a="meta";break;case 1:u(i,n,c(P,2)), t.match(y),a="keyword",t.current().match(/^(?:math|latex)/)&&(i.tmp_stex=!0);break;case 2:u(i,n,c(P,3)),t.match(/^:`/),a="meta";break;case 3:if(i.tmp_stex&&(i.tmp_stex=void 0,i.tmp={mode:f,local:e.startState(f)}),i.tmp){if("`"==t.peek()){u(i,n,c(P,4)),i.tmp=void 0;break}a=i.tmp.mode.token(t,i.tmp.local);break}u(i,n,c(P,4)),t.match(x),a="string";break;case 4:u(i,n,c(P,5)),t.match(/^`/),a="meta";break;case 5:u(i,n,c(P,6)),t.match(g);break;default:u(i,n)}else if(h(i)==R||t.match(R,!1))switch(d(i)){case 0:u(i,n,c(R,1)),t.match(/^`/),a="meta";break;case 1:u(i,n,c(R,2)),t.match(x),a="string";break;case 2:u(i,n,c(R,3)),t.match(/^`:/),a="meta";break;case 3:u(i,n,c(R,4)),t.match(y),a="keyword";break;case 4:u(i,n,c(R,5)),t.match(/^:/),a="meta";break;case 5:u(i,n,c(R,6)),t.match(g);break;default:u(i,n)}else if(h(i)==j||t.match(j,!1))switch(d(i)){case 0:u(i,n,c(j,1)),t.match(/^:/),a="meta";break;case 1:u(i,n,c(j,2)),t.match(y),a="keyword";break;case 2:u(i,n,c(j,3)),t.match(/^:/),a="meta";break;case 3:u(i,n,c(j,4)),t.match(g);break;default:u(i,n)}else if(h(i)==D||t.match(D,!1))switch(d(i)){case 0:u(i,n,c(D,1)),t.match(B),a="variable-2";break;case 1:u(i,n,c(D,2)),t.match(/^_?_?/)&&(a="link");break;default:u(i,n)}else if(t.match(M))u(i,n),a="quote";else if(t.match(L))u(i,n),a="quote";else if(t.match(O))u(i,n),t.peek()&&!t.peek().match(/^\W$/)||(a="link");else if(h(i)==N||t.match(N,!1))switch(d(i)){case 0:!t.peek()||t.peek().match(/^\W$/)?u(i,n,c(N,1)):t.match(N);break;case 1:u(i,n,c(N,2)),t.match(/^`/),a="link";break;case 2:u(i,n,c(N,3)),t.match(x);break;case 3:u(i,n,c(N,4)),t.match(/^`_/),a="link";break;default:u(i,n)}else t.match(G)?u(i,o):t.next()&&u(i,n);return a}function r(t,i){var o=null;if(h(i)==E||t.match(E,!1))switch(d(i)){case 0:u(i,r,c(E,1)),t.match(B),o="variable-2";break;case 1:u(i,r,c(E,2)),t.match(U);break;case 2:u(i,r,c(E,3)),t.match($),o="keyword";break;case 3:u(i,r,c(E,4)),t.match(q),o="meta";break;default:u(i,n)}else if(h(i)==S||t.match(S,!1))switch(d(i)){case 0:u(i,r,c(S,1)),t.match(z),o="keyword",t.current().match(/^(?:math|latex)/)?i.tmp_stex=!0:t.current().match(/^python/)&&(i.tmp_py=!0);break;case 1:u(i,r,c(S,2)),t.match(F),o="meta",(t.match(/^latex\s*$/)||i.tmp_stex)&&(i.tmp_stex=void 0,u(i,l,{mode:f,local:e.startState(f)}));break;case 2:u(i,r,c(S,3)),(t.match(/^python\s*$/)||i.tmp_py)&&(i.tmp_py=void 0,u(i,l,{mode:p,local:e.startState(p)}));break;default:u(i,n)}else if(h(i)==T||t.match(T,!1))switch(d(i)){case 0:u(i,r,c(T,1)),t.match(H),t.match(W),o="link";break;case 1:u(i,r,c(T,2)),t.match(V),o="meta";break;default:u(i,n)}else t.match(A)?(u(i,n),o="quote"):t.match(I)?(u(i,n),o="quote"):(t.eatSpace(),t.eol()?u(i,n):(t.skipToEnd(),u(i,a),o="comment"));return o}function a(e,t){return s(e,t,"comment")}function o(e,t){return s(e,t,"meta")}function s(e,t,i){return e.eol()||e.eatSpace()?(e.skipToEnd(),i):(u(t,n),null)}function l(e,t){return t.ctx.mode&&t.ctx.local?e.sol()?(e.eatSpace()||u(t,n),null):t.ctx.mode.token(e,t.ctx.local):(u(t,n),null)}function c(e,t,i,n){return{phase:e,stage:t,mode:i,local:n}}function u(e,t,i){e.tok=t,e.ctx=i||{}}function d(e){return e.ctx.stage||0}function h(e){return e.ctx.phase}var p=e.getMode(t,"python"),f=e.getMode(t,"stex"),m="(?:\\s*|\\W|$)",g=new RegExp(i("^{0}",m)),v="(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",y=new RegExp(i("^{0}",v)),_=i("(?:{0}|`{1}`)",v,"(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)"),b="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",w="(?:[^\\`]+)",x=new RegExp(i("^{0}",w)),k=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),C=new RegExp(i("^\\.\\.{0}","\\s+")),T=new RegExp(i("^_{0}:{1}|^__:{1}",_,m)),S=new RegExp(i("^{0}::{1}",_,m)),E=new RegExp(i("^\\|{0}\\|{1}{2}::{3}",b,"\\s+",_,m)),A=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]{1}",_,m)),I=new RegExp(i("^\\[{0}\\]{1}",_,m)),D=new RegExp(i("^\\|{0}\\|",b)),M=new RegExp(i("^\\[(?:\\d+|#{0}?|\\*)]_",_)),L=new RegExp(i("^\\[{0}\\]_",_)),O=new RegExp(i("^{0}__?",_)),N=new RegExp(i("^`{0}`_",w)),P=new RegExp(i("^:{0}:`{1}`{2}",v,w,m)),R=new RegExp(i("^`{1}`:{0}:{2}",v,w,m)),j=new RegExp(i("^:{0}:{1}",v,m)),z=new RegExp(i("^{0}",_)),F=new RegExp(i("^::{0}",m)),B=new RegExp(i("^\\|{0}\\|",b)),U=new RegExp(i("^{0}","\\s+")),$=new RegExp(i("^{0}",_)),q=new RegExp(i("^::{0}",m)),H=new RegExp("^_"),W=new RegExp(i("^{0}|_",_)),V=new RegExp(i("^:{0}",m)),G=new RegExp("^::\\s*$"),Y=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");return{startState:function(){return{tok:n,ctx:c(void 0,0)}},copyState:function(t){var i=t.ctx,n=t.tmp;return i.local&&(i={mode:i.mode,local:e.copyState(i.mode,i.local)}),n&&(n={mode:n.mode,local:e.copyState(n.mode,n.local)}),{tok:t.tok,ctx:i,tmp:n}},innerMode:function(e){return e.tmp?{state:e.tmp.local,mode:e.tmp.mode}:e.ctx.mode?{state:e.ctx.local,mode:e.ctx.mode}:null},token:function(e,t){return t.tok(e,t)}}},"python","stex"),e.defineMIME("text/x-rst","rst")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/smarty/smarty",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("smarty",function(e){"use strict";var t={rightDelimiter:"}",leftDelimiter:"{",smartyVersion:2};e.hasOwnProperty("leftDelimiter")&&(t.leftDelimiter=e.leftDelimiter),e.hasOwnProperty("rightDelimiter")&&(t.rightDelimiter=e.rightDelimiter),e.hasOwnProperty("smartyVersion")&&3===e.smartyVersion&&(t.smartyVersion=3);var i,n=["debug","extends","function","include","literal"],r={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/},a={cont:function(e,t){return i=t,e},chain:function(e,t,i){return t.tokenize=i,i(e,t)}},o={tokenizer:function(e,n){if(e.match(t.leftDelimiter,!0)){if(e.eat("*"))return a.chain(e,n,o.inBlock("comment","*"+t.rightDelimiter));n.depth++;var r=e.eol(),s=/\s/.test(e.peek());return 3===t.smartyVersion&&"{"===t.leftDelimiter&&(r||s)?(n.depth--,null):(n.tokenize=o.smarty,i="startTag","tag")}return e.next(),null},smarty:function(e,s){if(e.match(t.rightDelimiter,!0))return 3===t.smartyVersion?--s.depth<=0&&(s.tokenize=o.tokenizer):s.tokenize=o.tokenizer,a.cont("tag",null);if(e.match(t.leftDelimiter,!0))return s.depth++,a.cont("tag","startTag");var l=e.next();if("$"==l)return e.eatWhile(r.validIdentifier),a.cont("variable-2","variable");if("|"==l)return a.cont("operator","pipe");if("."==l)return a.cont("operator","property");if(r.stringChar.test(l))return s.tokenize=o.inAttribute(l),a.cont("string","string");if(r.operatorChars.test(l))return e.eatWhile(r.operatorChars),a.cont("operator","operator");if("["==l||"]"==l)return a.cont("bracket","bracket");if("("==l||")"==l)return a.cont("bracket","operator");if(/\d/.test(l))return e.eatWhile(/\d/),a.cont("number","number");if("variable"==s.last){if("@"==l)return e.eatWhile(r.validIdentifier),a.cont("property","property");if("|"==l)return e.eatWhile(r.validIdentifier),a.cont("qualifier","modifier")}else{if("pipe"==s.last)return e.eatWhile(r.validIdentifier),a.cont("qualifier","modifier");if("whitespace"==s.last)return e.eatWhile(r.validIdentifier),a.cont("attribute","modifier")}if("property"==s.last)return e.eatWhile(r.validIdentifier),a.cont("property",null);if(/\s/.test(l))return i="whitespace",null;var c="";"/"!=l&&(c+=l);for(var u=null;u=e.eat(r.validIdentifier);)c+=u;for(var d=0,h=n.length;d]*"+o)},c={chain:function(e,t,i){return t.tokenize=i,i(e,t)},cleanChain:function(e,t,i){return t.tokenize=null,t.localState=null,t.localMode=null,"string"==typeof i?i||null:i(e,t)},maybeBackup:function(e,t,i){var n=e.current(),r=n.search(t);return r>-1?e.backUp(n.length-r):n.match(/<\/?$/)&&(e.backUp(n.length),e.match(t,!1)||e.match(n[0])),i}},u={html:function(e,t){var i=t.htmlMixedState.htmlState.context&&t.htmlMixedState.htmlState.context.tagName?t.htmlMixedState.htmlState.context.tagName:null;return!t.inLiteral&&e.match(l.htmlHasLeftDelimeter,!1)&&null===i?(t.tokenize=u.smarty,t.localMode=r,t.localState=r.startState(n.indent(t.htmlMixedState,"")),c.maybeBackup(e,a.leftDelimiter,r.token(e,t.localState))):!t.inLiteral&&e.match(a.leftDelimiter,!1)?(t.tokenize=u.smarty,t.localMode=r,t.localState=r.startState(n.indent(t.htmlMixedState,"")),c.maybeBackup(e,a.leftDelimiter,r.token(e,t.localState))):n.token(e,t.htmlMixedState)},smarty:function(e,t){if(e.match(a.leftDelimiter,!1)){if(e.match(l.smartyComment,!1))return c.chain(e,t,u.inBlock("comment","*"+a.rightDelimiter))}else if(e.match(a.rightDelimiter,!1))return e.eat(a.rightDelimiter),t.tokenize=u.html,t.localMode=n,t.localState=t.htmlMixedState,"tag";return c.maybeBackup(e,a.rightDelimiter,r.token(e,t.localState))},inBlock:function(e,t){return function(i,n){for(;!i.eol();){if(i.match(t)){c.cleanChain(i,n,"");break}i.next()}return e}}};return{startState:function(){var e=n.startState();return{token:u.html,localMode:null,localState:null,htmlMixedState:e,tokenize:null,inLiteral:!1}},copyState:function(t){var i=null,a=t.tokenize||t.token;return t.localState&&(i=e.copyState(a!=u.html?r:n,t.localState)),{token:t.token,tokenize:t.tokenize,localMode:t.localMode,localState:i,htmlMixedState:e.copyState(n,t.htmlMixedState),inLiteral:t.inLiteral}},token:function(e,t){if(e.match(a.leftDelimiter,!1)){if(!t.inLiteral&&e.match(l.literalOpen,!0))return t.inLiteral=!0,"keyword";if(t.inLiteral&&e.match(l.literalClose,!0))return t.inLiteral=!1,"keyword"}return t.inLiteral&&t.localState!=t.htmlMixedState&&(t.tokenize=u.html,t.localMode=n,t.localState=t.htmlMixedState),(t.tokenize||t.token)(e,t)},indent:function(t,i){return t.localMode==r||t.inLiteral&&!t.localMode||l.hasLeftDelimeter.test(i)?e.Pass:n.indent(t.htmlMixedState,i)},innerMode:function(e){return{state:e.localState||e.htmlMixedState,mode:e.localMode||n}}}},"htmlmixed","smarty"),e.defineMIME("text/x-smarty","smartymixed")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/vb/vb",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("vb",function(e,t){function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}function n(e,t){t.currentIndent++}function r(e,t){t.currentIndent--}function a(e,t){if(e.eatSpace())return null;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var i=!1;if(e.match(/^\d*\.\d+F?/i)?i=!0:e.match(/^\d+\.\d*F?/)?i=!0:e.match(/^\.\d+F?/)&&(i=!0),i)return e.eat(/J/i),"number";var a=!1;if(e.match(/^&H[0-9a-f]+/i)?a=!0:e.match(/^&O[0-7]+/i)?a=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),a=!0):e.match(/^0(?![\dx])/i)&&(a=!0),a)return e.eat(/L/i),"number"}return e.match(k)?(t.tokenize=o(e.current()),t.tokenize(e,t)):e.match(p)||e.match(h)?null:e.match(d)||e.match(c)||e.match(y)?"operator":e.match(u)?null:e.match(A)?(n(e,t),t.doInCurrentLine=!0,"keyword"):e.match(C)?(t.doInCurrentLine?t.doInCurrentLine=!1:n(e,t),"keyword"):e.match(T)?"keyword":e.match(E)?(r(e,t),r(e,t),"keyword"):e.match(S)?(r(e,t),"keyword"):e.match(x)?"keyword":e.match(w)?"keyword":e.match(f)?"variable":(e.next(),l)}function o(e){var i=1==e.length;return function(n,r){for(;!n.eol();){if(n.eatWhile(/[^'"]/),n.match(e))return r.tokenize=a,"string";n.eat(/['"]/)}if(i){if(t.singleLineStringErrors)return l;r.tokenize=a}return"string"}}function s(e,t){var i=t.tokenize(e,t),a=e.current();if("."===a)return i=t.tokenize(e,t),a=e.current(),"variable"===i?"variable":l;var o="[({".indexOf(a);return-1!==o&&n(e,t),"dedent"===I&&r(e,t)?l:(o="])}".indexOf(a),-1!==o&&r(e,t)?l:i)}var l="error",c=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),u=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),d=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),h=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),p=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),f=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),m=["class","module","sub","enum","select","while","if","function","get","set","property","try"],g=["else","elseif","case","catch"],v=["next","loop"],y=i(["and","or","not","xor","in"]),_=["as","dim","break","continue","optional","then","until","goto","byval","byref","new","handles","property","return","const","private","protected","friend","public","shared","static","true","false"],b=["integer","string","double","decimal","boolean","short","char","float","single"],w=i(_),x=i(b),k='"',C=i(m),T=i(g),S=i(v),E=i(["end"]),A=i(["do"]),I=null;return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:a,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var i=s(e,t);return t.lastToken={style:i,content:e.current()},i},indent:function(t,i){var n=i.replace(/^\s+|\s+$/g,"");return n.match(S)||n.match(E)||n.match(T)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit}}}),e.defineMIME("text/x-vb","vb")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/vbscript/vbscript",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("vbscript",function(e,t){function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}function n(e,t){t.currentIndent++}function r(e,t){t.currentIndent--}function a(e,t){if(e.eatSpace())return"space";if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(U))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var i=!1;if(e.match(/^\d*\.\d+/i)?i=!0:e.match(/^\d+\.\d*/)?i=!0:e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var a=!1;if(e.match(/^&H[0-9a-f]+/i)?a=!0:e.match(/^&O[0-7]+/i)?a=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),a=!0):e.match(/^0(?![\dx])/i)&&(a=!0),a)return e.eat(/L/i),"number"}return e.match(N)?(t.tokenize=o(e.current()),t.tokenize(e,t)):e.match(u)||e.match(c)||e.match(v)?"operator":e.match(d)?null:e.match(h)?"bracket":e.match(B)?(t.doInCurrentLine=!0,"keyword"):e.match(F)?(n(e,t),t.doInCurrentLine=!0,"keyword"):e.match(P)?(t.doInCurrentLine?t.doInCurrentLine=!1:n(e,t),"keyword"):e.match(R)?"keyword":e.match(z)?(r(e,t),r(e,t),"keyword"):e.match(j)?(t.doInCurrentLine?t.doInCurrentLine=!1:r(e,t),"keyword"):e.match(I)?"keyword":e.match(D)?"atom":e.match(O)?"variable-2":e.match(M)?"builtin":e.match(L)?"variable-2":e.match(p)?"variable":(e.next(),l)}function o(e){var i=1==e.length;return function(n,r){for(;!n.eol();){if(n.eatWhile(/[^'"]/),n.match(e))return r.tokenize=a,"string";n.eat(/['"]/)}if(i){if(t.singleLineStringErrors)return l;r.tokenize=a}return"string"}}function s(e,t){var i=t.tokenize(e,t),n=e.current();return"."===n?(i=t.tokenize(e,t),n=e.current(),!i||"variable"!==i.substr(0,8)&&"builtin"!==i&&"keyword"!==i?l:("builtin"!==i&&"keyword"!==i||(i="variable"),A.indexOf(n.substr(1))>-1&&(i="variable-2"),i)):i}var l="error",c=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),u=new RegExp("^((<>)|(<=)|(>=))"),d=new RegExp("^[\\.,]"),h=new RegExp("^[\\(\\)]"),p=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),f=["class","sub","select","while","if","function","property","with","for"],m=["else","elseif","case"],g=["next","loop","wend"],v=i(["and","or","not","xor","is","mod","eqv","imp"]),y=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],_=["true","false","nothing","empty","null"],b=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],w=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],x=["WScript","err","debug","RegExp"],k=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],C=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],T=["server","response","request","session","application"],S=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],E=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],A=C.concat(k);x=x.concat(w),e.isASP&&(x=x.concat(T),A=A.concat(E,S));var I=i(y),D=i(_),M=i(b),L=i(x),O=i(A),N='"',P=i(f),R=i(m),j=i(g),z=i(["end"]),F=i(["do"]),B=i(["on error resume next","exit"]),U=i(["rem"]);return{electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:a,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var i=s(e,t);return t.lastToken={style:i,content:e.current()},"space"===i&&(i=null),i},indent:function(t,i){var n=i.replace(/^\s+|\s+$/g,"");return n.match(j)||n.match(z)||n.match(R)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit}}}),e.defineMIME("text/vbscript","vbscript")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/velocity/velocity",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("velocity",function(){function e(e){for(var t={},i=e.split(" "),n=0;nh.length&&"."==e.string.charAt(e.pos-h.length-1)&&i.lastTokenWasBuiltin?"builtin":(i.lastTokenWasBuiltin=!1,null)}return i.lastTokenWasBuiltin=!1,i.inString?(i.inString=!1,"string"):i.inParams?t(e,i,n(d)):void 0}function n(e){return function(t,n){for(var r,a=!1,o=!1;null!=(r=t.next());){if(r==e&&!a){o=!0;break}if('"'==e&&"$"==t.peek()&&!a){n.inString=!0,o=!0;break}a=!a&&"\\"==r}return o&&(n.tokenize=i),"string"}}function r(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=i;break}r="*"==n}return"comment"}function a(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=i;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}var o=e("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),s=e("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),l=e("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),c=/[+\-*&%=<>!?:\/|]/;return{startState:function(){return{tokenize:i,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}}),e.defineMIME("text/velocity","velocity")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/xquery/xquery",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMode("xquery",function(){function e(e,t,i){return _=e,b=i,t}function t(e,t,i){return t.tokenize=i,i(e,t)}function i(i,s){var h=i.next(),f=!1,g=m(i);if("<"==h){if(i.match("!--",!0))return t(i,s,l);if(i.match("![CDATA",!1))return s.tokenize=c,e("tag","tag");if(i.match("?",!1))return t(i,s,u);var _=i.eat("/");i.eatSpace();for(var b,x="";b=i.eat(/[^\s\u00a0=<>\"\'\/?]/);)x+=b;return t(i,s,o(x,_))}if("{"==h)return v(s,{type:"codeblock"}),e("",null);if("}"==h)return y(s),e("",null);if(d(s))return">"==h?e("tag","tag"):"/"==h&&i.eat(">")?(y(s),e("tag","tag")):e("word","variable");if(/\d/.test(h))return i.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),e("number","atom");if("("===h&&i.eat(":"))return v(s,{type:"comment"}),t(i,s,n);if(g||'"'!==h&&"'"!==h){if("$"===h)return t(i,s,a);if(":"===h&&i.eat("="))return e("operator","keyword");if("("===h)return v(s,{type:"paren"}),e("",null);if(")"===h)return y(s),e("",null);if("["===h)return v(s,{type:"bracket"}),e("",null);if("]"===h)return y(s),e("",null);var k=w.propertyIsEnumerable(h)&&w[h];if(g&&'"'===h)for(;'"'!==i.next(););if(g&&"'"===h)for(;"'"!==i.next(););k||i.eatWhile(/[\w\$_-]/);var C=i.eat(":");!i.eat(":")&&C&&i.eatWhile(/[\w\$_-]/),i.match(/^[ \t]*\(/,!1)&&(f=!0);var T=i.current();return k=w.propertyIsEnumerable(T)&&w[T],f&&!k&&(k={type:"function_call",style:"variable def"}),p(s)?(y(s),e("word","variable",T)):("element"!=T&&"attribute"!=T&&"axis_specifier"!=k.type||v(s,{type:"xmlconstructor"}),k?e(k.type,k.style,T):e("word","variable",T))}return t(i,s,r(h))}function n(t,i){for(var n,r=!1,a=!1,o=0;n=t.next();){if(")"==n&&r){if(!(o>0)){y(i);break}o--}else":"==n&&a&&o++;r=":"==n,a="("==n}return e("comment","comment")}function r(t,n){return function(a,o){var s;if(f(o)&&a.current()==t)return y(o),n&&(o.tokenize=n),e("string","string");if(v(o,{type:"string",name:t,tokenize:r(t,n)}),a.match("{",!1)&&h(o))return o.tokenize=i,e("string","string");for(;s=a.next();){if(s==t){y(o),n&&(o.tokenize=n);break}if(a.match("{",!1)&&h(o))return o.tokenize=i,e("string","string")}return e("string","string")}}function a(t,n){var r=/[\w\$_-]/;if(t.eat('"')){for(;'"'!==t.next(););t.eat(":")}else t.eatWhile(r),t.match(":=",!1)||t.eat(":");return t.eatWhile(r),n.tokenize=i,e("variable","variable")}function o(t,n){return function(r,a){return r.eatSpace(),n&&r.eat(">")?(y(a),a.tokenize=i,e("tag","tag")):(r.eat("/")||v(a,{type:"tag",name:t,tokenize:i}),r.eat(">")?(a.tokenize=i,e("tag","tag")):(a.tokenize=s,e("tag","tag")))}}function s(n,a){var o=n.next();return"/"==o&&n.eat(">")?(h(a)&&y(a),d(a)&&y(a),e("tag","tag")):">"==o?(h(a)&&y(a),e("tag","tag")):"="==o?e("",null):'"'==o||"'"==o?t(n,a,r(o,s)):(h(a)||v(a,{type:"attribute",tokenize:s}),n.eat(/[a-zA-Z_:]/),n.eatWhile(/[-a-zA-Z0-9_:.]/),n.eatSpace(),(n.match(">",!1)||n.match("/",!1))&&(y(a),a.tokenize=i),e("attribute","attribute"))}function l(t,n){for(var r;r=t.next();)if("-"==r&&t.match("->",!0))return n.tokenize=i,e("comment","comment")}function c(t,n){for(var r;r=t.next();)if("]"==r&&t.match("]",!0))return n.tokenize=i,e("comment","comment")}function u(t,n){for(var r;r=t.next();)if("?"==r&&t.match(">",!0))return n.tokenize=i,e("comment","comment meta")}function d(e){return g(e,"tag")}function h(e){return g(e,"attribute")}function p(e){return g(e,"xmlconstructor")}function f(e){return g(e,"string")}function m(e){return'"'===e.current()?e.match(/^[^\"]+\"\:/,!1):"'"===e.current()&&e.match(/^[^\"]+\'\:/,!1)}function g(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function v(e,t){e.stack.push(t)}function y(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||i}var _,b,w=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("keyword a"),i=e("keyword b"),n=e("keyword c"),r=e("operator"),a={type:"atom",style:"atom"},o={type:"punctuation",style:null},s={type:"axis_specifier",style:"qualifier"},l={if:t,switch:t,while:t,for:t,else:i,then:i,try:i,finally:i,catch:i,element:n,attribute:n,let:n,implements:n,import:n,module:n,namespace:n,return:n,super:n,this:n,throws:n,where:n,private:n,",":o,null:a,"fn:false()":a,"fn:true()":a},c=["after","ancestor","ancestor-or-self","and","as","ascending","assert","attribute","before","by","case","cast","child","comment","declare","default","define","descendant","descendant-or-self","descending","document","document-node","element","else","eq","every","except","external","following","following-sibling","follows","for","function","if","import","in","instance","intersect","item","let","module","namespace","node","node","of","only","or","order","parent","precedes","preceding","preceding-sibling","processing-instruction","ref","return","returns","satisfies","schema","schema-element","self","some","sortby","stable","text","then","to","treat","typeswitch","union","variable","version","where","xquery","empty-sequence"],u=0,d=c.length;u",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"],u=0,d=p.length;ui.keyCol)return e.skipToEnd(),"string";if(i.literal&&(i.literal=!1),e.sol()){if(i.keyCol=0,i.pair=!1,i.pairStart=!1,e.match(/---/))return"def";if(e.match(/\.\.\./))return"def";if(e.match(/\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==n?i.inlinePairs++:"}"==n?i.inlinePairs--:"["==n?i.inlineList++:i.inlineList--,"meta";if(i.inlineList>0&&!r&&","==n)return e.next(),"meta";if(i.inlinePairs>0&&!r&&","==n)return i.keyCol=0,i.pair=!1,i.pairStart=!1,e.next(),"meta";if(i.pairStart){if(e.match(/^\s*(\||\>)\s*/))return i.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==i.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(i.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(t))return"keyword"}return!i.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(i.pair=!0,i.keyCol=e.indentation(),"atom"):i.pair&&e.match(/^:\s*/)?(i.pairStart=!0,"meta"):(i.pairStart=!1,i.escaped="\\"==n,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}}}}),e.defineMIME("text/x-yaml","yaml")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/erlang/erlang",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineMIME("text/x-erlang","erlang"),e.defineMode("erlang",function(t){"use strict";function i(e,t){if(t.in_string)return t.in_string=!a(e),u(t,e,"string");if(t.in_atom)return t.in_atom=!o(e), u(t,e,"atom");if(e.eatSpace())return u(t,e,"whitespace");if(!f(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return c(e.current(),S)?u(t,e,"type"):u(t,e,"attribute");var i=e.next();if("%"==i)return e.skipToEnd(),u(t,e,"comment");if(":"==i)return u(t,e,"colon");if("?"==i)return e.eatSpace(),e.eatWhile(F),u(t,e,"macro");if("#"==i)return e.eatSpace(),e.eatWhile(F),u(t,e,"record");if("$"==i)return"\\"!=e.next()||e.match(B)?u(t,e,"number"):u(t,e,"error");if("."==i)return u(t,e,"dot");if("'"==i){if(!(t.in_atom=!o(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),u(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return u(t,e,"function")}return u(t,e,"atom")}if('"'==i)return t.in_string=!a(e),u(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(i))return e.eatWhile(F),u(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(i)){if(e.eatWhile(F),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),u(t,e,"fun");var s=e.current();return c(s,E)?u(t,e,"keyword"):c(s,D)?u(t,e,"operator"):e.match(/\s*\(/,!1)?!c(s,z)||":"==f(t).token&&"erlang"!=f(t,2).token?c(s,j)?u(t,e,"guard"):u(t,e,"function"):u(t,e,"builtin"):c(s,D)?u(t,e,"operator"):":"==l(e)?"erlang"==s?u(t,e,"builtin"):u(t,e,"function"):c(s,["true","false"])?u(t,e,"boolean"):c(s,["true","false"])?u(t,e,"boolean"):u(t,e,"atom")}var d=/[0-9]/,h=/[0-9a-zA-Z]/;return d.test(i)?(e.eatWhile(d),e.eat("#")?e.eatWhile(h)||e.backUp(1):e.eat(".")&&(e.eatWhile(d)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(d)||e.backUp(2):e.eatWhile(d)||e.backUp(1)):e.backUp(1)),u(t,e,"number")):n(e,O,N)?u(t,e,"open_paren"):n(e,P,R)?u(t,e,"close_paren"):r(e,A,I)?u(t,e,"separator"):r(e,M,L)?u(t,e,"operator"):u(t,e,null)}function n(e,t,i){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),c(e.current(),i))return!0;e.backUp(e.current().length-1)}return!1}function r(e,t,i){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;0>":return y(e,{i:["<<"]});case"end":return y(e,{i:["begin","case","fun","if","receive","try"]});case",":return y(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return y(e,{r:["when"],m:["try","if","case","receive"]});case";":return y(e,{E:["case","fun","if","receive","try","when"]});case"catch":return y(e,{e:["try"]});case"of":return y(e,{e:["case"]});case"after":return y(e,{e:["receive","try"]});default:return e}}function y(e,t){for(var i in t)for(var n=e.length-1,r=t[i],a=n-1;-1"==s.token?c(l.token,["receive","case","if","try"])?l.column+a+a:l.column+a:c(s.token,N)?s.column+s.token.length:(r=x(i),T(r)?r.column+a:0):0}function b(e){var t=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return T(t)&&0===t.index?t[0]:""}function w(e){var t=e.tokenStack.slice(0,-1),i=C(t,"type",["open_paren"]);return!!T(t[i])&&t[i]}function x(e){var t=e.tokenStack,i=C(t,"type",["open_paren","separator","keyword"]),n=C(t,"type",["operator"]);return T(i)&&T(n)&&i,;]/,I=["->",";",","],D=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],M=/[\+\-\*\/<>=\|:!]/,L=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],O=/[<\(\[\{]/,N=["<<","(","[","{"],P=/[>\)\]\}]/,R=["}","]",")",">>"],j=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],z=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],F=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,B=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;return{startState:function(){return{tokenStack:[],in_string:!1,in_atom:!1}},token:function(e,t){return i(e,t)},indent:function(e,t){return _(e,t)},lineComment:"%"}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../javascript/javascript"),require("../css/css"),require("../htmlmixed/htmlmixed")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/mode/jade/jade",["../../lib/codemirror","../javascript/javascript","../css/css","../htmlmixed/htmlmixed"],e):e(CodeMirror)}(function(e){e.defineMode("jade",function(t){function i(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=Q.startState(),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}function n(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var i=Q.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),i||!0}}function r(e,t){if(t.javaScriptArguments){if(0===t.javaScriptArgumentsDepth&&"("!==e.peek())return void(t.javaScriptArguments=!1);if("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth)return void(t.javaScriptArguments=!1);return Q.token(e,t.jsState)||!0}}function a(e){if(e.match(/^yield\b/))return"keyword"}function o(e){if(e.match(/^(?:doctype) *([^\n]+)?/))return G}function s(e,t){if(e.match("#{"))return t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"}function l(e,t){if(t.isInterpolating){if("}"===e.peek()){if(--t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"puncutation"}else"{"===e.peek()&&t.interpolationNesting++;return Q.token(e,t.jsState)||!0}}function c(e,t){if(e.match(/^case\b/))return t.javaScriptLine=!0,V}function u(e,t){if(e.match(/^when\b/))return t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,V}function d(e){if(e.match(/^default\b/))return V}function h(e,t){if(e.match(/^extends?\b/))return t.restOfLine="string",V}function p(e,t){if(e.match(/^append\b/))return t.restOfLine="variable",V}function f(e,t){if(e.match(/^prepend\b/))return t.restOfLine="variable",V}function m(e,t){if(e.match(/^block\b *(?:(prepend|append)\b)?/))return t.restOfLine="variable",V}function g(e,t){if(e.match(/^include\b/))return t.restOfLine="string",V}function v(e,t){if(e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include"))return t.isIncludeFiltered=!0,V}function y(e,t){if(t.isIncludeFiltered){var i=E(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",i}}function _(e,t){if(e.match(/^mixin\b/))return t.javaScriptLine=!0,V}function b(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match(/^\+#{/,!1)?(e.next(),t.mixinCallAfter=!0,s(e,t)):void 0}function w(e,t){if(t.mixinCallAfter)return t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0}function x(e,t){if(e.match(/^(if|unless|else if|else)\b/))return t.javaScriptLine=!0,V}function k(e,t){if(e.match(/^(- *)?(each|for)\b/))return t.isEach=!0,V}function C(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,V;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return"variable"}}}function T(e,t){if(e.match(/^while\b/))return t.javaScriptLine=!0,V}function S(e,t){var i;if(i=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))return t.lastTag=i[1].toLowerCase(),"script"===t.lastTag&&(t.scriptType="application/javascript"),"tag"}function E(i,n){if(i.match(/^:([\w\-]+)/)){var r;return t&&t.innerModes&&(r=t.innerModes(i.current().substring(1))),r||(r=i.current().substring(1)),"string"==typeof r&&(r=e.getMode(t,r)),B(i,n,r),"atom"}}function A(e,t){if(e.match(/^(!?=|-)/))return t.javaScriptLine=!0,"punctuation"}function I(e){if(e.match(/^#([\w-]+)/))return Y}function D(e){if(e.match(/^\.([\w-]+)/))return K}function M(e,t){if("("==e.peek())return e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"}function L(e,t){if(t.isAttrs){if(X[e.peek()]&&t.attrsNest.push(X[e.peek()]),t.attrsNest[t.attrsNest.length-1]===e.peek())t.attrsNest.pop();else if(e.eat(")"))return t.isAttrs=!1,"punctuation";if(t.inAttributeName&&e.match(/^[^=,\)!]+/))return"="!==e.peek()&&"!"!==e.peek()||(t.inAttributeName=!1,t.jsState=Q.startState(),"script"===t.lastTag&&"type"===e.current().trim().toLowerCase()?t.attributeIsType=!0:t.attributeIsType=!1),"attribute";var i=Q.token(e,t.jsState);if(t.attributeIsType&&"string"===i&&(t.scriptType=e.current().toString()),0===t.attrsNest.length&&("string"===i||"variable"===i||"keyword"===i))try{return Function("","var x "+t.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),t.inAttributeName=!0,t.attrValue="",e.backUp(e.current().length),L(e,t)}catch(e){}return t.attrValue+=e.current(),i||!0}}function O(e,t){if(e.match(/^&attributes\b/))return t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"}function N(e){if(e.sol()&&e.eatSpace())return"indent"}function P(e,t){if(e.match(/^ *\/\/(-)?([^\n]*)/))return t.indentOf=e.indentation(),t.indentToken="comment","comment"}function R(e){if(e.match(/^: */))return"colon"}function j(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(B(e,t,"htmlmixed"),t.innerModeForLine=!0,U(e,t,!0)):void 0}function z(e,t){if(e.eat(".")){var i=null;return"script"===t.lastTag&&-1!=t.scriptType.toLowerCase().indexOf("javascript")?i=t.scriptType.toLowerCase().replace(/"|'/g,""):"style"===t.lastTag&&(i="css"),B(e,t,i),"dot"}}function F(e){return e.next(),null}function B(i,n,r){r=e.mimeModes[r]||r,r=t.innerModes?t.innerModes(r)||r:r,r=e.mimeModes[r]||r,r=e.getMode(t,r),n.indentOf=i.indentation(),r&&"null"!==r.name?n.innerMode=r:n.indentToken="string"}function U(e,t,i){if(e.indentation()>t.indentOf||t.innerModeForLine&&!e.sol()||i)return t.innerMode?(t.innerState||(t.innerState=t.innerMode.startState?t.innerMode.startState(e.indentation()):{}),e.hideFirstChars(t.indentOf+2,function(){return t.innerMode.token(e,t.innerState)||!0})):(e.skipToEnd(),t.indentToken);e.sol()&&(t.indentOf=1/0,t.indentToken=null,t.innerMode=null,t.innerState=null)}function $(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var i=t.restOfLine;return t.restOfLine="",i}}function q(){return new i}function H(e){return e.copy()}function W(e,t){var i=U(e,t)||$(e,t)||l(e,t)||y(e,t)||C(e,t)||L(e,t)||n(e,t)||r(e,t)||w(e,t)||a(e,t)||o(e,t)||s(e,t)||c(e,t)||u(e,t)||d(e,t)||h(e,t)||p(e,t)||f(e,t)||m(e,t)||g(e,t)||v(e,t)||_(e,t)||b(e,t)||x(e,t)||k(e,t)||T(e,t)||S(e,t)||E(e,t)||A(e,t)||I(e,t)||D(e,t)||M(e,t)||O(e,t)||N(e,t)||j(e,t)||P(e,t)||R(e,t)||z(e,t)||F(e,t);return!0===i?null:i}var V="keyword",G="meta",Y="builtin",K="qualifier",X={"{":"}","(":")","[":"]"},Q=e.getMode(t,"javascript");return i.prototype.copy=function(){var t=new i;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.intpolationNesting,t.jsState=e.copyState(Q,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t},{startState:q,copyState:H,token:W}}),e.defineMIME("text/x-jade","jade")}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/edit/trailingspace",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.defineOption("showTrailingSpace",!1,function(t,i,n){n==e.Init&&(n=!1),n&&!i?t.removeOverlay("trailingspace"):!n&&i&&t.addOverlay({token:function(e){for(var t=e.string.length,i=t;i&&/\s/.test(e.string.charAt(i-1));--i);return i>e.pos?(e.pos=i,null):(e.pos=t,"trailingspace")},name:"trailingspace"})})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/dialog/dialog",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t,i){var n,r=e.getWrapperElement();return n=r.appendChild(document.createElement("div")),n.className=i?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?n.innerHTML=t:n.appendChild(t),n}function i(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(n,r,a){function o(e){if("string"==typeof e)d.value=e;else{if(c)return;c=!0,l.parentNode.removeChild(l),u.focus(),a.onClose&&a.onClose(l)}}a||(a={}),i(this,null);var s,l=t(this,n,a.bottom),c=!1,u=this,d=l.getElementsByTagName("input")[0];return d?(a.value&&(d.value=a.value,d.select()),a.onInput&&e.on(d,"input",function(e){a.onInput(e,d.value,o)}),a.onKeyUp&&e.on(d,"keyup",function(e){a.onKeyUp(e,d.value,o)}),e.on(d,"keydown",function(t){a&&a.onKeyDown&&a.onKeyDown(t,d.value,o)||((27==t.keyCode||!1!==a.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),o()),13==t.keyCode&&r(d.value,t))}),!1!==a.closeOnBlur&&e.on(d,"blur",o),d.focus()):(s=l.getElementsByTagName("button")[0])&&(e.on(s,"click",function(){o(),u.focus()}),!1!==a.closeOnBlur&&e.on(s,"blur",o),s.focus()),o}),e.defineExtension("openConfirm",function(n,r,a){function o(){c||(c=!0,s.parentNode.removeChild(s),u.focus())}i(this,null);var s=t(this,n,a&&a.bottom),l=s.getElementsByTagName("button"),c=!1,u=this,d=1;l[0].focus();for(var h=0;h-1)return u=i(l,c,u),{from:n(a.line,u),to:n(a.line,u+o.length)}}else{var l=e.getLine(a.line).slice(a.ch),c=s(l),u=c.indexOf(t);if(u>-1)return u=i(l,c,u)+a.ch,{from:n(a.line,u),to:n(a.line,u+o.length)}}}:this.matches=function(){};else{var c=o.split("\n");this.matches=function(t,i){var r=l.length-1;if(t){if(i.line-(l.length-1)=1;--u,--o)if(l[u]!=s(e.getLine(o)))return;var d=e.getLine(o),h=d.length-c[0].length;if(s(d.slice(h))!=l[0])return;return{from:n(o,h),to:a}}if(!(i.line+(l.length-1)>e.lastLine())){var d=e.getLine(i.line),h=d.length-c[0].length;if(s(d.slice(h))==l[0]){for(var p=n(i.line,h),o=i.line+1,u=1;ui))return n;--n}}}var n=e.Pos;t.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){function t(e){var t=n(e,0);return i.pos={from:t,to:t},i.atOccurrence=!1,!1}for(var i=this,r=this.doc.clipPos(e?this.pos.from:this.pos.to);;){if(this.pos=this.matches(e,r))return this.atOccurrence=!0,this.pos.match||!0;if(e){if(!r.line)return t(0);r=n(r.line-1,this.doc.getLine(r.line-1).length)}else{var a=this.doc.lineCount();if(r.line==a-1)return t(a);r=n(r.line+1,0)}}},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to),this.pos.to=n(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,i,n){return new t(this.doc,e,i,n)}),e.defineDocExtension("getSearchCursor",function(e,i,n){return new t(this,e,i,n)}),e.defineExtension("selectMatches",function(t,i){for(var n=[],r=this.getSearchCursor(t,this.getCursor("from"),i);r.findNext()&&!(e.cmpPos(r.to(),this.getCursor("to"))>0);)n.push({anchor:r.from(),head:r.to()});n.length&&this.setSelections(n,0)})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/search/search",["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var i=e.exec(t.string);if(i&&i.index==t.pos)return t.pos+=i[0].length,"searching";i?t.pos=i.index:t.skipToEnd()}}}function i(){this.posFrom=this.posTo=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new i)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function a(e,t,i){return e.getSearchCursor(t,i,r(t))}function o(e,t,i,n,r){e.openDialog?e.openDialog(t,r,{value:n}):r(prompt(i,n))}function s(e,t,i,n){e.openConfirm?e.openConfirm(t,n):confirm(i)&&n[0]()}function l(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(e){}return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function c(e,i){var a=n(e);if(a.query)return u(e,i);o(e,p,"Search for:",e.getSelection(),function(n){e.operation(function(){n&&!a.query&&(a.query=l(n),e.removeOverlay(a.overlay,r(a.query)),a.overlay=t(a.query,r(a.query)),e.addOverlay(a.overlay),e.showMatchesOnScrollbar&&(a.annotate&&(a.annotate.clear(),a.annotate=null),a.annotate=e.showMatchesOnScrollbar(a.query,r(a.query))),a.posFrom=a.posTo=e.getCursor(),u(e,i))})})}function u(t,i){t.operation(function(){var r=n(t),o=a(t,r.query,i?r.posFrom:r.posTo);(o.find(i)||(o=a(t,r.query,i?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0)),o.find(i)))&&(t.setSelection(o.from(),o.to()),t.scrollIntoView({from:o.from(),to:o.to()}),r.posFrom=o.from(),r.posTo=o.to())})}function d(e){e.operation(function(){var t=n(e);t.query&&(t.query=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function h(e,t){e.getOption("readOnly")||o(e,f,"Replace:",e.getSelection(),function(i){i&&(i=l(i),o(e,m,"Replace with:","",function(n){if(t)e.operation(function(){for(var t=a(e,i);t.findNext();)if("string"!=typeof i){var r=e.getRange(t.from(),t.to()).match(i);t.replace(n.replace(/\$(\d)/g,function(e,t){return r[t]}))}else t.replace(n)});else{d(e);var r=a(e,i,e.getCursor()),o=function(){var t,n=r.from();!(t=r.findNext())&&(r=a(e,i),!(t=r.findNext())||n&&r.from().line==n.line&&r.from().ch==n.ch)||(e.setSelection(r.from(),r.to()),e.scrollIntoView({from:r.from(),to:r.to()}),s(e,g,"Replace?",[function(){l(t)},o]))},l=function(e){r.replace("string"==typeof i?n:n.replace(/\$(\d)/g,function(t,i){return e[i]})),o()};o()}}))})}var p='Search: (Use /re/ syntax for regexp search)',f='Replace: (Use /re/ syntax for regexp search)',m='With: ',g="Replace? ";e.commands.find=function(e){d(e),c(e)},e.commands.findNext=c,e.commands.findPrev=function(e){c(e,!0)},e.commands.clearSearch=d,e.commands.replace=h,e.commands.replaceAll=function(e){h(e,!0)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/scroll/annotatescrollbar",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){function i(e){clearTimeout(n.doRedraw),n.doRedraw=setTimeout(function(){n.redraw()},e)}this.cm=e,this.options=t,this.buttonHeight=t.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();var n=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(n.doUpdate),n.doUpdate=setTimeout(function(){n.computeScale()&&i(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),!1!==t.listenForChanges&&e.on("change",this.changeHandler=function(){i(250)})}e.defineExtension("annotateScrollbar",function(e){return"string"==typeof e&&(e={className:e}),new t(this,e)}),e.defineOption("scrollButtonHeight",0),t.prototype.computeScale=function(){var e=this.cm,t=(e.getWrapperElement().clientHeight-e.display.barHeight-2*this.buttonHeight)/e.heightAtLine(e.lastLine()+1,"local");if(t!=this.hScale)return this.hScale=t,!0},t.prototype.update=function(e){this.annotations=e,this.redraw()},t.prototype.redraw=function(e){!1!==e&&this.computeScale();var t=this.cm,i=this.hScale,n=document.createDocumentFragment(),r=this.annotations;if(t.display.barWidth)for(var a,o=0;oc+.9);)s=r[++o],c=t.charCoords(s.to,"local").bottom*i;if(c!=l){var u=Math.max(c-l,3),d=n.appendChild(document.createElement("div"));d.style.cssText="position: absolute; right: 0px; width: "+Math.max(t.display.barWidth-1,2)+"px; top: "+(l+this.buttonHeight)+"px; height: "+u+"px",d.className=this.options.className}}this.div.textContent="",this.div.appendChild(n)},t.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("change",this.changeHandler),this.div.parentNode.removeChild(this.div)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../scroll/annotatescrollbar")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/search/matchesonscrollbar",["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,i,n){this.cm=e;var r={listenForChanges:!1};for(var a in n)r[a]=n[a];r.className||(r.className="CodeMirror-search-match"),this.annotation=e.annotateScrollbar(r),this.query=t,this.caseFold=i,this.gap={from:e.firstLine(),to:e.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var o=this;e.on("change",this.changeHandler=function(e,t){o.onChange(t)})}function i(e,t,i){return e<=t?e:Math.max(t,e+i)}e.defineExtension("showMatchesOnScrollbar",function(e,i,n){return"string"==typeof n&&(n={className:n}),n||(n={}),new t(this,e,i,n)});t.prototype.findMatches=function(){if(this.gap){for(var t=0;t=this.gap.to)break;i.to.line>=this.gap.from&&this.matches.splice(t--,1)}for(var n=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),this.caseFold);n.findNext();){var i={from:n.from(),to:n.to()};if(i.from.line>=this.gap.to)break;if(this.matches.splice(t++,0,i),this.matches.length>1e3)break}this.gap=null}},t.prototype.onChange=function(t){var n=t.from.line,r=e.changeEnd(t).line,a=r-t.to.line;if(this.gap?(this.gap.from=Math.min(i(this.gap.from,n,a),t.from.line),this.gap.to=Math.max(i(this.gap.to,n,a),t.from.line)):this.gap={from:t.from.line,to:r+1},a)for(var o=0;o=e.max))return e.ch=0,e.text=e.cm.getLine(++e.line),!0}function a(e){if(!(e.line<=e.min))return e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0}function o(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(r(e))continue;return}{if(n(e,t+1)){var i=e.text.lastIndexOf("/",t),a=i>-1&&!/\S/.test(e.text.slice(i+1,t));return e.ch=t+1,a?"selfClose":"regular"}e.ch=t+1}}}function s(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(a(e))continue;return}if(n(e,t+1)){f.lastIndex=t,e.ch=t;var i=f.exec(e.text);if(i&&i.index==t)return i}else e.ch=t}}function l(e){for(;;){f.lastIndex=e.ch;var t=f.exec(e.text);if(!t){if(r(e))continue;return}{if(n(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(a(e))continue;return}{if(n(e,t+1)){var i=e.text.lastIndexOf("/",t),r=i>-1&&!/\S/.test(e.text.slice(i+1,t));return e.ch=t+1,r?"selfClose":"regular"}e.ch=t}}}function u(e,t){for(var i=[];;){var n,r=l(e),a=e.line,s=e.ch-(r?r[0].length:0);if(!r||!(n=o(e)))return;if("selfClose"!=n)if(r[1]){for(var c=i.length-1;c>=0;--c)if(i[c]==r[2]){i.length=c;break}if(c<0&&(!t||t==r[2]))return{tag:r[2],from:h(a,s),to:h(e.line,e.ch)}}else i.push(r[2])}}function d(e,t){for(var i=[];;){var n=c(e);if(!n)return;if("selfClose"!=n){var r=e.line,a=e.ch,o=s(e);if(!o)return;if(o[1])i.push(o[2]);else{for(var l=i.length-1;l>=0;--l)if(i[l]==o[2]){i.length=l;break}if(l<0&&(!t||t==o[2]))return{tag:o[2],from:h(e.line,e.ch),to:h(r,a)}}}else s(e)}}var h=e.Pos,p="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",f=new RegExp("<(/?)(["+p+"][A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*)","g");e.registerHelper("fold","xml",function(e,t){for(var n=new i(e,t.line,0);;){var r,a=l(n);if(!a||n.line!=t.line||!(r=o(n)))return;if(!a[1]&&"selfClose"!=r){var t=h(n.line,n.ch),s=u(n,a[2]);return s&&{from:t,to:s.from}}}}),e.findMatchingTag=function(e,n,r){var a=new i(e,n.line,n.ch,r);if(-1!=a.text.indexOf(">")||-1!=a.text.indexOf("<")){var l=o(a),c=l&&h(a.line,a.ch),p=l&&s(a);if(l&&p&&!(t(a,n)>0)){var f={from:h(a.line,a.ch),to:c,tag:p[2]};return"selfClose"==l?{open:f,close:null,at:"open"}:p[1]?{open:d(a,p[2]),close:f,at:"close"}:(a=new i(e,c.line,c.ch,r),{open:f,close:u(a,p[2]),at:"open"})}}},e.findEnclosingTag=function(e,t,n){for(var r=new i(e,t.line,t.ch,n);;){var a=d(r);if(!a)break;var o=new i(e,t.line,t.ch,n),s=u(o,a.tag);if(s)return{open:a,close:s}}},e.scanForClosingTag=function(e,t,n,r){return u(new i(e,t.line,t.ch,r?{from:0,to:r}:null),n)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../fold/xml-fold")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/edit/closetag",["../../lib/codemirror","../fold/xml-fold"],e):e(CodeMirror)}(function(e){function t(t){if(t.getOption("disableInput"))return e.Pass;for(var i=t.listSelections(),n=[],l=0;lc.ch&&(v=v.slice(0,v.length-u.end+c.ch));var y=v.toLowerCase();if(!v||"string"==u.type&&(u.end!=c.ch||!/[\"\']/.test(u.string.charAt(u.string.length-1))||1==u.string.length)||"tag"==u.type&&"closeTag"==h.type||u.string.indexOf("/")==u.string.length-1||m&&r(m,y)>-1||a(t,v,c,h,!0))return e.Pass;var _=g&&r(g,y)>-1;n[l]={indent:_,text:">"+(_?"\n\n":"")+"",newPos:_?e.Pos(c.line+1,0):e.Pos(c.line,c.ch+1)}}for(var l=i.length-1;l>=0;l--){var b=n[l];t.replaceRange(b.text,i[l].head,i[l].anchor,"+insert");var w=t.listSelections().slice(0);w[l]={head:b.newPos,anchor:b.newPos},t.setSelections(w),b.indent&&(t.indentLine(b.newPos.line,null,!0),t.indentLine(b.newPos.line+1,null,!0))}}function i(t,i){for(var n=t.listSelections(),r=[],o=i?"/":"";else{if("htmlmixed"!=t.getMode().name||"css"!=u.mode.name)return e.Pass;r[s]=o+"style>"}else{if(!d.context||!d.context.tagName||a(t,d.context.tagName,l,d))return e.Pass;r[s]=o+d.context.tagName+">"}}t.replaceSelections(r),n=t.listSelections();for(var s=0;s'"]=function(e){return t(e)}),i.addKeyMap(o)}});var o=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],s=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];e.commands.closeTag=function(e){return i(e)}}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/fold/foldcode",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(t,r,a,o){function s(e){var i=l(t,r);if(!i||i.to.line-i.from.linet.firstLine();)r=e.Pos(r.line-1,0),u=s(!1);if(u&&!u.cleared&&"unfold"!==o){var d=i(t,a);e.on(d,"mousedown",function(t){h.clear(),e.e_preventDefault(t)});var h=t.markText(u.from,u.to,{replacedWith:d,clearOnEnter:!0,__isFold:!0});h.on("clear",function(i,n){e.signal(t,"unfold",t,i,n)}),e.signal(t,"fold",t,u.from,u.to)}}function i(e,t){var i=n(e,t,"widget");if("string"==typeof i){var r=document.createTextNode(i);i=document.createElement("span"),i.appendChild(r),i.className="CodeMirror-foldmarker"}return i}function n(e,t,i){if(t&&void 0!==t[i])return t[i];var n=e.options.foldOptions;return n&&void 0!==n[i]?n[i]:r[i]}e.newFoldFunction=function(e,i){return function(n,r){t(n,r,{rangeFinder:e,widget:i})}},e.defineExtension("foldCode",function(e,i,n){t(this,e,i,n)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),i=0;i=s&&(i=r(a.indicatorOpen))}e.setGutterMarker(t,a.gutter,i),++o})}function o(e){var t=e.getViewport(),i=e.state.foldGutter;i&&(e.operation(function(){a(e,t.from,t.to)}),i.from=t.from,i.to=t.to)}function s(e,t,i){var n=e.state.foldGutter;if(n){var r=n.options;i==r.gutter&&e.foldCode(d(t,0),r.rangeFinder)}}function l(e){var t=e.state.foldGutter;if(t){var i=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){o(e)},i.foldOnChangeTimeSpan||600)}}function c(e){var t=e.state.foldGutter;if(t){var i=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var i=e.getViewport();t.from==t.to||i.from-t.to>20||t.from-i.to>20?o(e):e.operation(function(){i.fromt.to&&(a(e,t.to,i.to),t.to=i.to)})},i.updateViewportTimeSpan||400)}}function u(e,t){var i=e.state.foldGutter;if(i){var n=t.line;n>=i.from&&no)s=l;else if(/\S/.test(u))break}return s?{from:e.Pos(i.line,r.length),to:e.Pos(s,t.getLine(s).length)}:void 0}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/fold/brace-fold",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.registerHelper("fold","brace",function(t,i){function n(n){for(var r=i.ch,l=0;;){var c=r<=0?-1:s.lastIndexOf(n,r-1);if(-1!=c){if(1==l&&ct.lastLine())return null;var n=t.getTokenAt(e.Pos(i,1));if(/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(i,n.end+1))),"keyword"!=n.type||"import"!=n.string)return null;for(var r=i,a=Math.min(t.lastLine(),i+10);r<=a;++r){var o=t.getLine(r),s=o.indexOf(";");if(-1!=s)return{startCh:n.end,end:e.Pos(r,s)}}}var r,i=i.line,a=n(i);if(!a||n(i-1)||(r=n(i-2))&&r.end.line==i-1)return null;for(var o=a.end;;){var s=n(o.line+1);if(null==s)break;o=s.end}return{from:t.clipPos(e.Pos(i,a.startCh+1)),to:o}}),e.registerHelper("fold","include",function(t,i){function n(i){if(it.lastLine())return null;var n=t.getTokenAt(e.Pos(i,1));return/\S/.test(n.string)||(n=t.getTokenAt(e.Pos(i,n.end+1))),"meta"==n.type&&"#include"==n.string.slice(0,8)?n.start+8:void 0}var i=i.line,r=n(i);if(null==r||null!=n(i-1))return null;for(var a=i;;){if(null==n(a+1))break;++a}return{from:e.Pos(i,r+1),to:t.clipPos(e.Pos(a))}})}),function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define("public/lib/editormd/lib/codemirror/addon/fold/markdown-fold",["../../lib/codemirror"],e):e(CodeMirror)}(function(e){e.registerHelper("fold","markdown",function(t,i){function n(i){var n=t.getTokenTypeAt(e.Pos(i,0));return n&&/\bheader\b/.test(n)}function r(e,t,i){var r=t&&t.match(/^#+/);return r&&n(e)?r[0].length:(r=i&&i.match(/^[=\-]+\s*$/),r&&n(e+1)?"="==i[0]?1:2:a)}var a=100,o=t.getLine(i.line),s=t.getLine(i.line+1),l=r(i.line,o,s);if(l!==a){for(var c=t.lastLine(),u=i.line,d=t.getLine(u+2);u=i.ch+1)return/\bstring2?\b/.test(s);o.start=o.pos}}function n(n,r){for(var s={name:"autoCloseBrackets",Backspace:function(i){if(i.getOption("disableInput"))return e.Pass;for(var r=i.listSelections(),a=0;a=0;a--){var l=r[a].head;i.replaceRange("",o(l.line,l.ch-1),o(l.line,l.ch+1))}}},l="",c=0;c1&&r.indexOf(t)>=0&&s.getRange(o(m.line,m.ch-2),m)==t+t&&(m.ch<=2||s.getRange(o(m.line,m.ch-3),o(m.line,m.ch-2))!=t))p="addFour";else if('"'==t||"'"==t){if(e.isWordChar(u)||!i(s,m,t))return e.Pass;p="both"}else{if(!(s.getLine(m.line).length==m.ch||l.indexOf(u)>=0||a.test(u)))return e.Pass;p="both"}else p="surround";if(c){if(c!=p)return e.Pass}else c=p}s.operation(function(){if("skip"==c)s.execCommand("goCharRight");else if("skipThree"==c)for(var e=0;e<3;e++)s.execCommand("goCharRight");else if("surround"==c){for(var i=s.getSelections(),e=0;e=t.minChars&&e.addOverlay(t.overlay=o(d,!1,t.style))}})}function r(e,t,i){if(null!==e.getRange(t,i).match(/^\w+$/)){if(t.ch>0){var n={line:t.line,ch:t.ch-1},r=e.getRange(n,t);if(null===r.match(/\W/))return!1}if(i.cha',ucwords:'Aa'},toolbarIconsClass:{undo:"fa-undo",redo:"fa-repeat",bold:"fa-bold",del:"fa-strikethrough",italic:"fa-italic",quote:"fa-quote-left",uppercase:"fa-font",h1:i.classPrefix+"bold",h2:i.classPrefix+"bold",h3:i.classPrefix+"bold",h4:i.classPrefix+"bold",h5:i.classPrefix+"bold",h6:i.classPrefix+"bold","list-ul":"fa-list-ul","list-ol":"fa-list-ol",hr:"fa-minus",link:"fa-link","reference-link":"fa-anchor",image:"fa-picture-o",code:"fa-code","preformatted-text":"fa-file-code-o","code-block":"fa-file-code-o",table:"fa-table",datetime:"fa-clock-o",emoji:"fa-smile-o","html-entities":"fa-copyright",pagebreak:"fa-newspaper-o","goto-line":"fa-terminal",watch:"fa-eye-slash",unwatch:"fa-eye",preview:"fa-desktop",search:"fa-search",fullscreen:"fa-arrows-alt",clear:"fa-eraser",help:"fa-question-circle",info:"fa-info-circle"},toolbarIconTexts:{},lang:{name:"zh-cn",description:"开源在线Markdown编辑器
    Open source online Markdown editor.",tocTitle:"目录",toolbar:{undo:"撤销(Ctrl+Z)",redo:"重做(Ctrl+Y)",bold:"粗体",del:"删除线",italic:"斜体",quote:"引用",ucwords:"将每个单词首字母转成大写",uppercase:"将所选转换成大写",lowercase:"将所选转换成小写",h1:"标题1",h2:"标题2",h3:"标题3",h4:"标题4",h5:"标题5",h6:"标题6","list-ul":"无序列表","list-ol":"有序列表",hr:"横线",link:"链接","reference-link":"引用链接",image:"添加图片",code:"行内代码","preformatted-text":"预格式文本 / 代码块(缩进风格)","code-block":"代码块(多语言风格)",table:"添加表格",datetime:"日期时间",emoji:"Emoji表情","html-entities":"HTML实体字符",pagebreak:"插入分页符","goto-line":"跳转到行",watch:"关闭实时预览",unwatch:"开启实时预览",preview:"全窗口预览HTML(按 Shift + ESC还原)",fullscreen:"全屏(按ESC还原)",clear:"清空",search:"搜索",help:"使用帮助",info:"关于"+i.title},buttons:{enter:"确定",cancel:"取消",close:"关闭"},dialog:{link:{title:"添加链接",url:"链接地址",urlTitle:"链接标题",urlEmpty:"错误:请填写链接地址。"},referenceLink:{title:"添加引用链接",name:"引用名称",url:"链接地址",urlId:"链接ID",urlTitle:"链接标题",nameEmpty:"错误:引用链接的名称不能为空。",idEmpty:"错误:请填写引用链接的ID。",urlEmpty:"错误:请填写引用链接的URL地址。"},image:{title:"添加图片",url:"图片地址",link:"图片链接",alt:"图片描述",uploadButton:"本地上传",imageURLEmpty:"错误:图片地址不能为空。",uploadFileEmpty:"错误:上传的图片不能为空。",formatNotAllowed:"错误:只允许上传图片文件,允许上传的图片文件格式有:"},preformattedText:{title:"添加预格式文本或代码块",emptyAlert:"错误:请填写预格式文本或代码的内容。"},codeBlock:{title:"添加代码块",selectLabel:"代码语言:",selectDefaultText:"请选择代码语言",otherLanguage:"其他语言",unselectedLanguageAlert:"错误:请选择代码所属的语言类型。",codeEmptyAlert:"错误:请填写代码内容。"},htmlEntities:{title:"HTML 实体字符"},help:{title:"使用帮助"}}}},i.classNames={tex:i.classPrefix+"tex"},i.dialogZindex=99999,i.$katex=null,i.$marked=null,i.$CodeMirror=null,i.$prettyPrint=null;var r,a;i.prototype=i.fn={state:{watching:!1,loaded:!1,preview:!1,fullscreen:!1},init:function(r,a){a=a||{},"object"==typeof r&&(a=r);var o=this.classPrefix=i.classPrefix,l=this.settings=e.extend(!0,i.defaults,a);r="object"==typeof r?l.id:r;var c=this.editor=e("#"+r);this.id=r,this.lang=l.lang;var u=this.classNames={textarea:{html:o+"html-textarea",markdown:o+"markdown-textarea"}};l.pluginPath=""===l.pluginPath?l.path+"../plugins/":l.pluginPath,this.state.watching=!!l.watch,c.hasClass("editormd")||c.addClass("editormd"),c.css({ width:"number"==typeof l.width?l.width+"px":l.width,height:"number"==typeof l.height?l.height+"px":l.height}),l.autoHeight&&c.css("height","auto");var d=this.markdownTextarea=c.children("textarea");d.length<1&&(c.append(""),d=this.markdownTextarea=c.children("textarea")),d.addClass(u.textarea.markdown).attr("placeholder",l.placeholder),void 0!==d.attr("name")&&""!==d.attr("name")||d.attr("name",""!==l.name?l.name:r+"-markdown-doc");var h=[l.readOnly?"":'',l.saveHTMLToTextarea?'':"",'
    ','
    ','
    '].join("\n");return c.append(h).addClass(o+"vertical"),""!==l.theme&&c.addClass(o+"theme-"+l.theme),this.mask=c.children("."+o+"mask"),this.containerMask=c.children("."+o+"container-mask"),""!==l.markdown&&d.val(l.markdown),""!==l.appendMarkdown&&d.val(d.val()+l.appendMarkdown),this.htmlTextarea=c.children("."+u.textarea.html),this.preview=c.children("."+o+"preview"),this.previewContainer=this.preview.children("."+o+"preview-container"),""!==l.previewTheme&&this.preview.addClass(o+"preview-theme-"+l.previewTheme),"function"==typeof define&&define.amd&&(void 0!==n&&(i.$katex=n),l.searchReplace&&!l.readOnly&&(i.loadCSS(l.path+"codemirror/addon/dialog/dialog"),i.loadCSS(l.path+"codemirror/addon/search/matchesonscrollbar"))),"function"==typeof define&&define.amd||!l.autoLoadModules?(void 0!==s&&(i.$CodeMirror=s),void 0!==t&&(i.$marked=t),this.setCodeMirror().setToolbar().loadedDisplay()):this.loadQueues(),this},loadQueues:function(){var e=this,n=this.settings,r=n.path,a=function(){if(i.isIE8)return void e.loadedDisplay();n.flowChart||n.sequenceDiagram?i.loadScript(r+"raphael.min",function(){i.loadScript(r+"underscore.min",function(){!n.flowChart&&n.sequenceDiagram?i.loadScript(r+"sequence-diagram.min",function(){e.loadedDisplay()}):n.flowChart&&!n.sequenceDiagram?i.loadScript(r+"flowchart.min",function(){i.loadScript(r+"jquery.flowchart.min",function(){e.loadedDisplay()})}):n.flowChart&&n.sequenceDiagram&&i.loadScript(r+"flowchart.min",function(){i.loadScript(r+"jquery.flowchart.min",function(){i.loadScript(r+"sequence-diagram.min",function(){e.loadedDisplay()})})})})}):e.loadedDisplay()};return i.loadCSS(r+"codemirror/codemirror.min"),n.searchReplace&&!n.readOnly&&(i.loadCSS(r+"codemirror/addon/dialog/dialog"),i.loadCSS(r+"codemirror/addon/search/matchesonscrollbar")),n.codeFold&&i.loadCSS(r+"codemirror/addon/fold/foldgutter"),i.loadScript(r+"codemirror/codemirror.min",function(){i.$CodeMirror=s,i.loadScript(r+"codemirror/modes.min",function(){i.loadScript(r+"codemirror/addons.min",function(){if(e.setCodeMirror(),"gfm"!==n.mode&&"markdown"!==n.mode)return e.loadedDisplay(),!1;e.setToolbar(),i.loadScript(r+"marked.min",function(){i.$marked=t,n.previewCodeHighlight?i.loadScript(r+"prettify.min",function(){a()}):a()})})})}),this},setTheme:function(e){var t=this.editor,i=this.settings.theme,n=this.classPrefix+"theme-";return t.removeClass(n+i).addClass(n+e),this.settings.theme=e,this},setEditorTheme:function(e){var t=this.settings;return t.editorTheme=e,"default"!==e&&i.loadCSS(t.path+"codemirror/theme/"+t.editorTheme),this.cm.setOption("theme",e),this},setCodeMirrorTheme:function(e){return this.setEditorTheme(e),this},setPreviewTheme:function(e){var t=this.preview,i=this.settings.previewTheme,n=this.classPrefix+"preview-theme-";return t.removeClass(n+i).addClass(n+e),this.settings.previewTheme=e,this},setCodeMirror:function(){var e=this.settings,t=this.editor;"default"!==e.editorTheme&&i.loadCSS(e.path+"codemirror/theme/"+e.editorTheme);var n={mode:e.mode,theme:e.editorTheme,tabSize:e.tabSize,dragDrop:!1,autofocus:e.autoFocus,autoCloseTags:e.autoCloseTags,readOnly:!!e.readOnly&&"nocursor",indentUnit:e.indentUnit,lineNumbers:e.lineNumbers,lineWrapping:e.lineWrapping,extraKeys:{"Ctrl-Q":function(e){e.foldCode(e.getCursor())}},foldGutter:e.codeFold,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:e.matchBrackets,indentWithTabs:e.indentWithTabs,styleActiveLine:e.styleActiveLine,styleSelectedText:e.styleSelectedText,autoCloseBrackets:e.autoCloseBrackets,showTrailingSpace:e.showTrailingSpace,highlightSelectionMatches:!!e.matchWordHighlight&&{showToken:"onselected"!==e.matchWordHighlight&&/\w/}};return this.codeEditor=this.cm=i.$CodeMirror.fromTextArea(this.markdownTextarea[0],n),this.codeMirror=this.cmElement=t.children(".CodeMirror"),""!==e.value&&this.cm.setValue(e.value),this.codeMirror.css({fontSize:e.fontSize,width:e.watch?"50%":"100%"}),e.autoHeight&&(this.codeMirror.css("height","auto"),this.cm.setOption("viewportMargin",1/0)),e.lineNumbers||this.codeMirror.find(".CodeMirror-gutters").css("border-right","none"),this},getCodeMirrorOption:function(e){return this.cm.getOption(e)},setCodeMirrorOption:function(e,t){return this.cm.setOption(e,t),this},addKeyMap:function(e,t){return this.cm.addKeyMap(e,t),this},removeKeyMap:function(e){return this.cm.removeKeyMap(e),this},gotoLine:function(t){var i=this.settings;if(!i.gotoLine)return this;var n=this.cm,r=(this.editor,n.lineCount()),a=this.preview;if("string"==typeof t&&("last"===t&&(t=r),"first"===t&&(t=1)),"number"!=typeof t)return alert("Error: The line number must be an integer."),this;if((t=parseInt(t)-1)>r)return alert("Error: The line number range 1-"+r),this;n.setCursor({line:t,ch:0});var o=n.getScrollInfo(),s=o.clientHeight,l=n.charCoords({line:t,ch:0},"local");if(n.scrollTo(null,(l.top+l.bottom-s)/2),i.watch){var c=this.codeMirror.find(".CodeMirror-scroll")[0],u=e(c).height(),d=c.scrollTop,h=d/c.scrollHeight;0===d?a.scrollTop(0):d+u>=c.scrollHeight-16?a.scrollTop(a[0].scrollHeight):a.scrollTop(a[0].scrollHeight*h)}return n.focus(),this},extend:function(){return void 0!==arguments[1]&&("function"==typeof arguments[1]&&(arguments[1]=e.proxy(arguments[1],this)),this[arguments[0]]=arguments[1]),"object"==typeof arguments[0]&&void 0===arguments[0].length&&e.extend(!0,this,arguments[0]),this},set:function(t,i){return void 0!==i&&"function"==typeof i&&(i=e.proxy(i,this)),this[t]=i,this},config:function(t,i){var n=this.settings;return"object"==typeof t&&(n=e.extend(!0,n,t)),"string"==typeof t&&(n[t]=i),this.settings=n,this.recreate(),this},on:function(t,i){var n=this.settings;return void 0!==n["on"+t]&&(n["on"+t]=e.proxy(i,this)),this},off:function(e){var t=this.settings;return void 0!==t["on"+e]&&(t["on"+e]=function(){}),this},showToolbar:function(t){var i=this.settings;return i.readOnly?this:(i.toolbar&&(this.toolbar.length<1||""===this.toolbar.find("."+this.classPrefix+"menu").html())&&this.setToolbar(),i.toolbar=!0,this.toolbar.show(),this.resize(),e.proxy(t||function(){},this)(),this)},hideToolbar:function(t){return this.settings.toolbar=!1,this.toolbar.hide(),this.resize(),e.proxy(t||function(){},this)(),this},setToolbarAutoFixed:function(t){var i=this.state,n=this.editor,r=this.toolbar,a=this.settings;void 0!==t&&(a.toolbarAutoFixed=t);var o=function(){var t=e(window),i=t.scrollTop();if(!a.toolbarAutoFixed)return!1;i-n.offset().top>10&&i
      ';t.append(a),r=this.toolbar=t.children("."+n+"toolbar")}if(!e.toolbar)return r.hide(),this;r.show();for(var o="function"==typeof e.toolbarIcons?e.toolbarIcons():"string"==typeof e.toolbarIcons?i.toolbarModes[e.toolbarIcons]:e.toolbarIcons,s=r.find("."+this.classPrefix+"menu"),l="",c=!1,u=0,d=o.length;u|';else{var p=/h(\d)/.test(h),f=h;"watch"!==h||e.watch||(f="unwatch");var m=e.lang.toolbar[f],g=e.toolbarIconTexts[f],v=e.toolbarIconsClass[f];m=void 0===m?"":m,g=void 0===g?"":g,v=void 0===v?"":v;var y=c?'
    • ':"
    • ";void 0!==e.toolbarCustomIcons[h]&&"function"!=typeof e.toolbarCustomIcons[h]?y+=e.toolbarCustomIcons[h]:(y+='',y+=''+(p?h.toUpperCase():""===v?g:"")+"",y+=""),y+="
    • ",l=c?y+l:l+y}}return s.html(l),s.find('[title="Lowercase"]').attr("title",e.lang.toolbar.lowercase),s.find('[title="ucwords"]').attr("title",e.lang.toolbar.ucwords),this.setToolbarHandler(),this.setToolbarAutoFixed(),this},dialogLockScreen:function(){return e.proxy(i.dialogLockScreen,this)(),this},dialogShowMask:function(t){return e.proxy(i.dialogShowMask,this)(t),this},getToolbarHandles:function(e){var t=this.toolbarHandlers=i.toolbarHandlers;return e&&void 0!==toolbarIconHandlers[e]?t[e]:t},setToolbarHandler:function(){var t=this,n=this.settings;if(!n.toolbar||n.readOnly)return this;var r=this.toolbar,a=this.cm,o=this.classPrefix,s=this.toolbarIcons=r.find("."+o+"menu > li > a"),l=this.getToolbarHandles();return s.bind(i.mouseOrTouch("click","touchend"),function(i){var r=e(this).children(".fa"),o=r.attr("name"),s=a.getCursor(),c=a.getSelection();if(""!==o)return t.activeIcon=r,void 0!==l[o]?e.proxy(l[o],t)(a):void 0!==n.toolbarHandlers[o]&&e.proxy(n.toolbarHandlers[o],t)(a,r,s,c),"link"!==o&&"reference-link"!==o&&"image"!==o&&"code-block"!==o&&"preformatted-text"!==o&&"watch"!==o&&"preview"!==o&&"search"!==o&&"fullscreen"!==o&&"info"!==o&&a.focus(),!1}),this},createDialog:function(t){return e.proxy(i.createDialog,this)(t)},createInfoDialog:function(){var e=this,t=this.editor,n=this.classPrefix,r=['
      ','
      ','

      '+i.title+"v"+i.version+"

      ","

      "+this.lang.description+"

      ",'

      '+i.homePage+'

      ','

      Copyright © 2015 Pandao, The MIT License.

      ',"
      ",'',"
      "].join("\n");t.append(r);var a=this.infoDialog=t.children("."+n+"dialog-info");return a.find("."+n+"dialog-close").bind(i.mouseOrTouch("click","touchend"),function(){e.hideInfoDialog()}),a.css("border",i.isIE8?"1px solid #ddd":"").css("z-index",i.dialogZindex).show(),this.infoDialogPosition(),this},infoDialogPosition:function(){var t=this.infoDialog,i=function(){t.css({top:(e(window).height()-t.height())/2+"px",left:(e(window).width()-t.width())/2+"px"})};return i(),e(window).resize(i),this},showInfoDialog:function(){e("html,body").css("overflow-x","hidden");var t=this.editor,n=this.settings,r=this.infoDialog=t.children("."+this.classPrefix+"dialog-info");return r.length<1&&this.createInfoDialog(),this.lockScreen(!0),this.mask.css({opacity:n.dialogMaskOpacity,backgroundColor:n.dialogMaskBgColor}).show(),r.css("z-index",i.dialogZindex).show(),this.infoDialogPosition(),this},hideInfoDialog:function(){return e("html,body").css("overflow-x",""),this.infoDialog.hide(),this.mask.hide(),this.lockScreen(!1),this},lockScreen:function(e){return i.lockScreen(e),this.resize(),this},recreate:function(){var e=this.editor,t=this.settings;return this.codeMirror.remove(),this.setCodeMirror(),t.readOnly||(e.find(".editormd-dialog").length>0&&e.find(".editormd-dialog").remove(),t.toolbar&&(this.getToolbarHandles(),this.setToolbar())),this.loadedDisplay(!0),this},previewCodeHighlight:function(){var e=this.settings,t=this.previewContainer;return e.previewCodeHighlight&&(t.find("pre").addClass("prettyprint linenums"),void 0!==prettyPrint&&prettyPrint()),this},katexRender:function(){return null===r?this:(this.previewContainer.find("."+i.classNames.tex).each(function(){var t=e(this);i.$katex.render(t.text(),t[0]),t.find(".katex").css("font-size","1.6em")}),this)},flowChartAndSequenceDiagramRender:function(){var t=this,n=this.settings,r=this.previewContainer;if(i.isIE8)return this;if(n.flowChart){if(null===a)return this;r.find(".flowchart").flowChart()}n.sequenceDiagram&&r.find(".sequence-diagram").sequenceDiagram({theme:"simple"});var o=t.preview,s=t.codeMirror,l=s.find(".CodeMirror-scroll"),c=l.height(),u=l.scrollTop(),d=u/l[0].scrollHeight,h=0;o.find(".markdown-toc-list").each(function(){h+=e(this).height()});var p=o.find(".editormd-toc-menu").height();return p=p||0,0===u?o.scrollTop(0):u+c>=l[0].scrollHeight-16?o.scrollTop(o[0].scrollHeight):o.scrollTop((o[0].scrollHeight+h+p)*d),this},registerKeyMaps:function(t){var n=this,r=this.cm,a=this.settings,o=i.toolbarHandlers,s=a.disabledKeyMaps;if(t=t||null){for(var l in t)if(e.inArray(l,s)<0){var c={};c[l]=t[l],r.addKeyMap(t)}}else{for(var u in i.keyMaps){var d=i.keyMaps[u],h="string"==typeof d?e.proxy(o[d],n):e.proxy(d,n);if(e.inArray(u,["F9","F10","F11"])<0&&e.inArray(u,s)<0){var p={};p[u]=h,r.addKeyMap(p)}}e(window).keydown(function(t){var i={120:"F9",121:"F10",122:"F11"};if(e.inArray(i[t.keyCode],s)<0)switch(t.keyCode){case 120:return e.proxy(o.watch,n)(),!1;case 121:return e.proxy(o.preview,n)(),!1;case 122:return e.proxy(o.fullscreen,n)(),!1}})}return this},bindScrollEvent:function(){var t=this,n=this.preview,r=this.settings,a=this.codeMirror,o=i.mouseOrTouch;if(!r.syncScrolling)return this;var s=function(){a.find(".CodeMirror-scroll").bind(o("scroll","touchmove"),function(i){var a=e(this).height(),o=e(this).scrollTop(),s=o/e(this)[0].scrollHeight,l=0;n.find(".markdown-toc-list").each(function(){l+=e(this).height()});var c=n.find(".editormd-toc-menu").height();c=c||0,0===o?n.scrollTop(0):o+a>=e(this)[0].scrollHeight-16?n.scrollTop(n[0].scrollHeight):n.scrollTop((n[0].scrollHeight+l+c)*s),e.proxy(r.onscroll,t)(i)})},l=function(){a.find(".CodeMirror-scroll").unbind(o("scroll","touchmove"))},c=function(){n.bind(o("scroll","touchmove"),function(i){var n=e(this).height(),o=e(this).scrollTop(),s=o/e(this)[0].scrollHeight,l=a.find(".CodeMirror-scroll");0===o?l.scrollTop(0):o+n>=e(this)[0].scrollHeight?l.scrollTop(l[0].scrollHeight):l.scrollTop(l[0].scrollHeight*s),e.proxy(r.onpreviewscroll,t)(i)})},u=function(){n.unbind(o("scroll","touchmove"))};return a.bind({mouseover:s,mouseout:l,touchstart:s,touchend:l}),"single"===r.syncScrolling?this:(n.bind({mouseover:c,mouseout:u,touchstart:c,touchend:u}),this)},bindChangeEvent:function(){var e=this,t=this.cm,i=this.settings;return i.syncScrolling?(t.on("change",function(t,n){i.watch&&e.previewContainer.css("padding",i.autoHeight?"20px 20px 50px 40px":"20px"),r=setTimeout(function(){clearTimeout(r),e.save(),r=null},i.delay)}),this):this},loadedDisplay:function(t){t=t||!1;var i=this,n=this.editor,r=this.preview,a=this.settings;return this.containerMask.hide(),this.save(),a.watch&&r.show(),n.data("oldWidth",n.width()).data("oldHeight",n.height()),this.resize(),this.registerKeyMaps(),e(window).resize(function(){i.resize()}),this.bindScrollEvent().bindChangeEvent(),t||e.proxy(a.onload,this)(),this.state.loaded=!0,this},width:function(e){return this.editor.css("width","number"==typeof e?e+"px":e),this.resize(),this},height:function(e){return this.editor.css("height","number"==typeof e?e+"px":e),this.resize(),this},resize:function(t,i){t=t||null,i=i||null;var n=this.state,r=this.editor,a=this.preview,o=this.toolbar,s=this.settings,l=this.codeMirror;if(t&&r.css("width","number"==typeof t?t+"px":t),!s.autoHeight||n.fullscreen||n.preview?(i&&r.css("height","number"==typeof i?i+"px":i),n.fullscreen&&r.height(e(window).height()),s.toolbar&&!s.readOnly?l.css("margin-top",o.height()+1).height(r.height()-o.height()):l.css("margin-top",0).height(r.height())):(r.css("height","auto"),l.css("height","auto")),s.watch)if(l.width(r.width()/2),a.width(n.preview?r.width():r.width()/2),this.previewContainer.css("padding",s.autoHeight?"20px 20px 50px 40px":"20px"),s.toolbar&&!s.readOnly?a.css("top",o.height()+1):a.css("top",0),!s.autoHeight||n.fullscreen||n.preview){var c=s.toolbar&&!s.readOnly?r.height()-o.height():r.height();a.height(c)}else a.height("");else l.width(r.width()),a.hide();return n.loaded&&e.proxy(s.onresize,this)(),this},save:function(){if(null===r)return this;var t=this,o=this.state,s=this.settings,l=this.cm,c=l.getValue(),u=this.previewContainer;if("gfm"!==s.mode&&"markdown"!==s.mode)return this.markdownTextarea.val(c),this;var d=i.$marked,h=this.markdownToC=[],p=this.markedRendererOptions={toc:s.toc,tocm:s.tocm,tocStartLevel:s.tocStartLevel,pageBreak:s.pageBreak,taskList:s.taskList,emoji:s.emoji,tex:s.tex,atLink:s.atLink,emailLink:s.emailLink,flowChart:s.flowChart,sequenceDiagram:s.sequenceDiagram,previewCodeHighlight:s.previewCodeHighlight},f=this.markedOptions={renderer:i.markedRenderer(h,p),gfm:!0,tables:!0,breaks:!0,pedantic:!1,sanitize:!s.htmlDecode,smartLists:!0,smartypants:!0,image_Remote_URL:s.image_Remote_URL};d.setOptions(f);var m=i.$marked(c,f);if(m=i.filterHTMLTags(m,s.htmlDecode),this.markdownTextarea.text(c),l.save(),s.saveHTMLToTextarea&&this.htmlTextarea.text(m),s.watch||!s.watch&&o.preview){if(u.html(m),this.previewCodeHighlight(),s.toc){var g=""===s.tocContainer?u:e(s.tocContainer),v=g.find("."+this.classPrefix+"toc-menu");g.attr("previewContainer",""===s.tocContainer?"true":"false"),""!==s.tocContainer&&v.length>0&&v.remove(),i.markdownToCRenderer(h,g,s.tocDropdown,s.tocStartLevel),(s.tocDropdown||g.find("."+this.classPrefix+"toc-menu").length>0)&&i.tocDropdownMenu(g,""!==s.tocTitle?s.tocTitle:this.lang.tocTitle),""!==s.tocContainer&&u.find(".markdown-toc").css("border","none")}s.tex&&(!i.kaTeXLoaded&&s.autoLoadModules?i.loadKaTeX(function(){i.$katex=n,i.kaTeXLoaded=!0,t.katexRender()}):(i.$katex=n,this.katexRender())),(s.flowChart||s.sequenceDiagram)&&(a=setTimeout(function(){clearTimeout(a),t.flowChartAndSequenceDiagramRender(),a=null},10)),o.loaded&&e.proxy(s.onchange,this)()}return this},focus:function(){return this.cm.focus(),this},setCursor:function(e){return this.cm.setCursor(e),this},getCursor:function(){return this.cm.getCursor()},setSelection:function(e,t){return this.cm.setSelection(e,t),this},getSelection:function(){return this.cm.getSelection()},setSelections:function(e){return this.cm.setSelections(e),this},getSelections:function(){return this.cm.getSelections()},replaceSelection:function(e){return this.cm.replaceSelection(e),this},insertValue:function(e){return this.replaceSelection(e),this},appendMarkdown:function(e){var t=(this.settings,this.cm);return t.setValue(t.getValue()+e),this},setMarkdown:function(e){return this.cm.setValue(e||this.settings.markdown),this},getMarkdown:function(){return this.cm.getValue()},getValue:function(){return this.cm.getValue()},setValue:function(e){return this.cm.setValue(e),this},clear:function(){return this.cm.setValue(""),this},getHTML:function(){return this.settings.saveHTMLToTextarea?this.htmlTextarea.val():(alert("Error: settings.saveHTMLToTextarea == false"),!1)},getTextareaSavedHTML:function(){return this.getHTML()},getPreviewedHTML:function(){return this.settings.watch?this.previewContainer.html():(alert("Error: settings.watch == false"),!1)},watch:function(t){var i=this.settings;if(e.inArray(i.mode,["gfm","markdown"])<0)return this;if(this.state.watching=i.watch=!0,this.preview.show(),this.toolbar){var n=i.toolbarIconsClass.watch,a=i.toolbarIconsClass.unwatch,o=this.toolbar.find(".fa[name=watch]");o.parent().attr("title",i.lang.toolbar.watch),o.removeClass(a).addClass(n)}return this.codeMirror.css("border-right","1px solid #ddd").width(this.editor.width()/2),r=0,this.save().resize(),i.onwatch||(i.onwatch=t||function(){}),e.proxy(i.onwatch,this)(),this},unwatch:function(t){var i=this.settings;if(this.state.watching=i.watch=!1,this.preview.hide(),this.toolbar){var n=i.toolbarIconsClass.watch,r=i.toolbarIconsClass.unwatch,a=this.toolbar.find(".fa[name=watch]");a.parent().attr("title",i.lang.toolbar.unwatch),a.removeClass(n).addClass(r)}return this.codeMirror.css("border-right","none").width(this.editor.width()),this.resize(),i.onunwatch||(i.onunwatch=t||function(){}),e.proxy(i.onunwatch,this)(),this},show:function(t){t=t||function(){};var i=this;return this.editor.show(0,function(){e.proxy(t,i)()}),this},hide:function(t){t=t||function(){};var i=this;return this.editor.hide(0,function(){e.proxy(t,i)()}),this},previewing:function(){var t=this,n=this.editor,r=this.preview,a=this.toolbar,o=this.settings,s=this.codeMirror,l=this.previewContainer;if(e.inArray(o.mode,["gfm","markdown"])<0)return this;o.toolbar&&a&&(a.toggle(),a.find(".fa[name=preview]").toggleClass("active")),s.toggle();var c=function(e){e.shiftKey&&27===e.keyCode&&t.previewed()};"none"===s.css("display")?(this.state.preview=!0,this.state.fullscreen&&r.css("background","#fff"),n.find("."+this.classPrefix+"preview-close-btn").show().bind(i.mouseOrTouch("click","touchend"),function(){t.previewed()}),o.watch?l.css("padding",""):this.save(),l.addClass(this.classPrefix+"preview-active"),r.show().css({position:"",top:0,width:n.width(),height:o.autoHeight&&!this.state.fullscreen?"auto":n.height()}),this.state.loaded&&e.proxy(o.onpreviewing,this)(),e(window).bind("keyup",c)):(e(window).unbind("keyup",c),this.previewed())},previewed:function(){var t=this.editor,n=this.preview,r=this.toolbar,a=this.settings,o=this.previewContainer,s=t.find("."+this.classPrefix+"preview-close-btn");return this.state.preview=!1,this.codeMirror.show(),a.toolbar&&r.show(),n[a.watch?"show":"hide"](),s.hide().unbind(i.mouseOrTouch("click","touchend")),o.removeClass(this.classPrefix+"preview-active"),a.watch&&o.css("padding","20px"),n.css({background:null,position:"absolute",width:t.width()/2,height:a.autoHeight&&!this.state.fullscreen?"auto":t.height()-r.height(),top:a.toolbar?r.height():0}),this.state.loaded&&e.proxy(a.onpreviewed,this)(),this},fullscreen:function(){var t=this,i=this.state,n=this.editor,r=(this.preview,this.toolbar),a=this.settings,o=this.classPrefix+"fullscreen";r&&r.find(".fa[name=fullscreen]").parent().toggleClass("active");var s=function(e){e.shiftKey||27!==e.keyCode||i.fullscreen&&t.fullscreenExit()};return n.hasClass(o)?(e(window).unbind("keyup",s),this.fullscreenExit()):(i.fullscreen=!0,e("html,body").css("overflow","hidden"),n.css({width:e(window).width(),height:e(window).height()}).addClass(o),this.resize(),e.proxy(a.onfullscreen,this)(),e(window).bind("keyup",s)),this},fullscreenExit:function(){var t=this.editor,i=this.settings,n=this.toolbar,r=this.classPrefix+"fullscreen";return this.state.fullscreen=!1,n&&n.find(".fa[name=fullscreen]").parent().removeClass("active"),e("html,body").css("overflow",""),t.css({width:t.data("oldWidth"),height:t.data("oldHeight")}).removeClass(r),this.resize(),e.proxy(i.onfullscreenExit,this)(),this},executePlugin:function(t,n){var r=this,a=this.cm;return n=this.settings.pluginPath+n,"function"==typeof define?void 0===this[t]?(alert("Error: "+t+" plugin is not found, you are not load this plugin."),this):(this[t](a),this):(e.inArray(n,i.loadFiles.plugin)<0?i.loadPlugin(n,function(){i.loadPlugins[t]=r[t],r[t](a)}):e.proxy(i.loadPlugins[t],this)(a),this)},search:function(e){var t=this.settings;return t.searchReplace?(t.readOnly||this.cm.execCommand(e||"find"),this):(alert("Error: settings.searchReplace == false"),this)},searchReplace:function(){return this.search("replace"),this},searchReplaceAll:function(){return this.search("replaceAll"),this}},i.fn.init.prototype=i.fn,i.dialogLockScreen=function(){(this.settings||{dialogLockScreen:!0}).dialogLockScreen&&(e("html,body").css("overflow","hidden"),this.resize())},i.dialogShowMask=function(t){var i=this.editor,n=this.settings||{dialogShowMask:!0};t.css({top:(e(window).height()-t.height())/2+"px",left:(e(window).width()-t.width())/2+"px"}),n.dialogShowMask&&i.children("."+this.classPrefix+"mask").css("z-index",parseInt(t.css("z-index"))-1).show()},i.toolbarHandlers={undo:function(){this.cm.undo()},redo:function(){this.cm.redo()},bold:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();e.replaceSelection("**"+i+"**"),""===i&&e.setCursor(t.line,t.ch+2)},del:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();e.replaceSelection("~~"+i+"~~"),""===i&&e.setCursor(t.line,t.ch+2)},italic:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();e.replaceSelection("*"+i+"*"),""===i&&e.setCursor(t.line,t.ch+1)},quote:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("> "+i),e.setCursor(t.line,t.ch+2)):e.replaceSelection("> "+i)},ucfirst:function(){var e=this.cm,t=e.getSelection(),n=e.listSelections();e.replaceSelection(i.firstUpperCase(t)),e.setSelections(n)},ucwords:function(){var e=this.cm,t=e.getSelection(),n=e.listSelections();e.replaceSelection(i.wordsFirstUpperCase(t)),e.setSelections(n)},uppercase:function(){var e=this.cm,t=e.getSelection(),i=e.listSelections();e.replaceSelection(t.toUpperCase()),e.setSelections(i)},lowercase:function(){var e=this.cm,t=(e.getCursor(),e.getSelection()),i=e.listSelections();e.replaceSelection(t.toLowerCase()),e.setSelections(i)},h1:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("# "+i),e.setCursor(t.line,t.ch+2)):e.replaceSelection("# "+i)},h2:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("## "+i),e.setCursor(t.line,t.ch+3)):e.replaceSelection("## "+i)},h3:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("### "+i),e.setCursor(t.line,t.ch+4)):e.replaceSelection("### "+i)},h4:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("#### "+i),e.setCursor(t.line,t.ch+5)):e.replaceSelection("#### "+i)},h5:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("##### "+i),e.setCursor(t.line,t.ch+6)):e.replaceSelection("##### "+i)},h6:function(){var e=this.cm,t=e.getCursor(),i=e.getSelection();0!==t.ch?(e.setCursor(t.line,0),e.replaceSelection("###### "+i),e.setCursor(t.line,t.ch+7)):e.replaceSelection("###### "+i)},"list-ul":function(){var e=this.cm,t=(e.getCursor(),e.getSelection());if(""===t)e.replaceSelection("- "+t);else{for(var i=t.split("\n"),n=0,r=i.length;n'}else{var l=e.match(g),c=e.match(f);if(l)for(var u=0,d=l.length;u'}else{if(!c){var p="+1"===r?"plus1":r;return p="black_large_square"===p?"black_square":p,p="moon"===p?"waxing_gibbous_moon":p,':'+r+':'}for(var v=0,y=c.length;v'}}}});return e},l.atLink=function(t){return u.test(t)?(a.atLink&&(t=t.replace(h,function(e,t,i,n){return e.replace(/@/g,"_#_@_#_")}),t=t.replace(u,function(e,t){return''+e+""}).replace(/_#_@_#_/g,"@")),a.emailLink&&(t=t.replace(p,function(t,i,n,r,a){return!i&&e.inArray(a,"jpg|jpeg|png|gif|webp|ico|icon|pdf".split("|"))<0?''+t+"":t})),t):t},l.link=function(e,t,i){if(this.options.sanitize){try{var n=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===n.indexOf("javascript:"))return""}var r=''+i.replace(/@/g,"@")+""):(t&&(r+=' title="'+t+'"'),r+=">"+i+"")},l.heading=function(e,i,n){var r=e,a=/\s*\]*)\>(.*)\<\/a\>\s*/;if(a.test(e)){var s=[];e=e.split(/\]+)\>([^\>]*)\<\/a\>/);for(var l=0,c=e.length;l';return f+='',f+='',f+=a?this.atLink(this.emoji(r)):this.atLink(this.emoji(e)),f+=""},l.pageBreak=function(e){return v.test(e)&&a.pageBreak&&(e='
      '),e},l.paragraph=function(e){var t=/\$\$(.*)\$\$/g.test(e),n=/^\$\$(.*)\$\$$/.test(e),r=n?' class="'+i.classNames.tex+'"':"",o=a.tocm?/^(\[TOC\]|\[TOCM\])$/.test(e):/^\[TOC\]$/.test(e),s=/^\[TOCM\]$/.test(e);e=!n&&t?e.replace(/(\$\$([^\$]*)\$\$)+/g,function(e,t){return''+t.replace(/\$/g,"")+""}):n?e.replace(/\$/g,""):e;var l='
      '+e+"
      ";return o?s?'
      '+l+"

      ":l:v.test(e)?this.pageBreak(e):""+this.atLink(this.emoji(e))+"

      \n"},l.code=function(e,t,n){return"seq"===t||"sequence"===t?'
      '+e+"
      ":"flow"===t?'
      '+e+"
      ":"math"===t||"latex"===t||"katex"===t?'

      '+e+"

      ":s.Renderer.prototype.code.apply(this,arguments)},l.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' style="text-align:'+t.align+'">':"<"+i+">")+this.atLink(this.emoji(e))+"\n"},l.listitem=function(e){return a.taskList&&/^\s*\[[x\s]\]\s*/.test(e)?(e=e.replace(/^\s*\[\s\]\s*/,' ').replace(/^\s*\[x\]\s*/,' '),'
    • '+this.atLink(this.emoji(e))+"
    • "):"
    • "+this.atLink(this.emoji(e))+"
    • "},l},i.markdownToCRenderer=function(e,t,i,n){var r="",a=0,o=this.classPrefix;n=n||1;for(var s=0,l=e.length;sa?"":u"):"",r+='
    • '+c+"
        ",a=u)}var d=t.find(".markdown-toc");if(d.length<1&&"false"===t.attr("previewContainer")){var h='
        ';h=i?'
        '+h+"
        ":h,t.html(h),d=t.find(".markdown-toc")}return i&&d.wrap('

        '),d.html('
          ').children(".markdown-toc-list").html(r.replace(/\r?\n?\\<\/ul\>/g,"")),d},i.tocDropdownMenu=function(t,i){i=i||"Table of Contents";var n=400,r=t.find("."+this.classPrefix+"toc-menu");return r.each(function(){var t=e(this),r=t.children(".markdown-toc"),a='',o=''+a+i+"",s=r.children("ul"),l=s.find("li");r.append(o),l.first().before("
        • "+i+" "+a+"

        • "),t.mouseover(function(){s.show(),l.each(function(){var t=e(this),i=t.children("ul");if(""===i.html()&&i.remove(),i.length>0&&""!==i.html()){var r=t.children("a").first();r.children(".fa").length<1&&r.append(e(a).css({float:"right",paddingTop:"4px"}))}t.mouseover(function(){i.css("z-index",n).show(),n+=1}).mouseleave(function(){i.hide()})})}).mouseleave(function(){s.hide()})}),r},i.filterHTMLTags=function(t,i){if("string"!=typeof t&&(t=new String(t)),"string"!=typeof i)return t;for(var n=i.split("|"),r=n[0].split(","),a=n[1],o=0,s=r.length;o]*)>([^>]*)","igm"),"")}if(void 0!==a){var c=/\<(\w+)\s*([^\>]*)\>([^\>]*)\<\/(\w+)\>/gi;t="*"===a?t.replace(c,function(e,t,i,n,r){return"<"+t+">"+n+""}):"on*"===a?t.replace(c,function(t,i,n,r,a){var o=e("<"+i+">"+r+""),s=e(t)[0].attributes,l={};e.each(s,function(e,t){'"'!==t.nodeName&&(l[t.nodeName]=t.nodeValue)}),e.each(l,function(e){0===e.indexOf("on")&&delete l[e]}),o.attr(l);var c=void 0!==o[1]?e(o[1]).text():"";return o[0].outerHTML+c}):t.replace(c,function(t,i,n,r){var o=a.split(","),s=e(t);return s.html(r),e.each(o,function(e){s.attr(o[e],null)}),s[0].outerHTML})}return t},i.markdownToHTML=function(r,a){var o={gfm:!0,toc:!0,tocm:!1,tocStartLevel:1,tocTitle:"目录",tocDropdown:!1,tocContainer:"",markdown:"",markdownSourceCode:!1,htmlDecode:!1,autoLoadKaTeX:!0,pageBreak:!0,atLink:!0,emailLink:!0,tex:!1,taskList:!1,emoji:!1,flowChart:!1,sequenceDiagram:!1,previewCodeHighlight:!0};i.$marked=t;var s=e("#"+r),l=s.settings=e.extend(!0,o,a||{}),c=s.find("textarea");c.length<1&&(s.append(""),c=s.find("textarea"));var u=""===l.markdown?c.val():l.markdown,d=[],h={toc:l.toc,tocm:l.tocm,tocStartLevel:l.tocStartLevel,taskList:l.taskList,emoji:l.emoji,tex:l.tex,pageBreak:l.pageBreak,atLink:l.atLink,emailLink:l.emailLink,flowChart:l.flowChart,sequenceDiagram:l.sequenceDiagram,previewCodeHighlight:l.previewCodeHighlight},p={renderer:i.markedRenderer(d,h),gfm:l.gfm,tables:!0,breaks:!0,pedantic:!1,sanitize:!l.htmlDecode,smartLists:!0,smartypants:!0,image_Remote_URL:l.image_Remote_URL};u=new String(u);var f=t(u,p);f=i.filterHTMLTags(f,l.htmlDecode),l.markdownSourceCode?c.text(u):c.remove(),s.addClass("markdown-body "+this.classPrefix+"html-preview").append(f);var m=""!==l.tocContainer?e(l.tocContainer):s;if(""!==l.tocContainer&&m.attr("previewContainer",!1),l.toc&&(s.tocContainer=this.markdownToCRenderer(d,m,l.tocDropdown,l.tocStartLevel),(l.tocDropdown||s.find("."+this.classPrefix+"toc-menu").length>0)&&this.tocDropdownMenu(s,l.tocTitle),""!==l.tocContainer&&s.find(".editormd-toc-menu, .editormd-markdown-toc").remove()),l.previewCodeHighlight&&(s.find("pre").addClass("prettyprint linenums"),prettyPrint()),i.isIE8||(l.flowChart&&s.find(".flowchart").flowChart(),l.sequenceDiagram&&s.find(".sequence-diagram").sequenceDiagram({theme:"simple"})),l.tex){var g=function(){s.find("."+i.classNames.tex).each(function(){var t=e(this);n.render(t.html().replace(/</g,"<").replace(/>/g,">"),t[0]),t.find(".katex").css("font-size","1.6em")})};!l.autoLoadKaTeX||i.$katex||i.kaTeXLoaded?g():this.loadKaTeX(function(){i.$katex=n,i.kaTeXLoaded=!0,g()})}return s.getMarkdown=function(){return c.val()},s},i.themes=["default","dark"],i.previewThemes=["default","dark"],i.editorThemes=["default","3024-day","3024-night","ambiance","ambiance-mobile","base16-dark","base16-light","blackboard","cobalt","eclipse","elegant","erlang-dark","lesser-dark","mbo","mdn-like","midnight","monokai","neat","neo","night","paraiso-dark","paraiso-light","pastel-on-dark","rubyblue","solarized","the-matrix","tomorrow-night-eighties","twilight","vibrant-ink","xq-dark","xq-light"],i.loadPlugins={},i.loadFiles={js:[],css:[],plugin:[]},i.loadPlugin=function(e,t,n){t=t||function(){},this.loadScript(e,function(){i.loadFiles.plugin.push(e),t()},n)},i.loadCSS=function(e,t,n){n=n||"head",t=t||function(){};var r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.onload=r.onreadystatechange=function(){i.loadFiles.css.push(e),t()},r.href=e+".css","head"===n?document.getElementsByTagName("head")[0].appendChild(r):document.body.appendChild(r)},i.isIE="Microsoft Internet Explorer"==navigator.appName,i.isIE8=i.isIE&&"8."==navigator.appVersion.match(/8./i),i.loadScript=function(e,t,n){n=n||"head",t=t||function(){};var r=null;r=document.createElement("script"),r.id=e.replace(/[\./]+/g,"-"),r.type="text/javascript",r.src=e+".js",i.isIE8?r.onreadystatechange=function(){r.readyState&&("loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,i.loadFiles.js.push(e),t()))}:r.onload=function(){i.loadFiles.js.push(e),t()}},i.katexURL={css:"//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min",js:"//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min"},i.kaTeXLoaded=!1,i.loadKaTeX=function(e){i.loadCSS(i.katexURL.css,function(){i.loadScript(i.katexURL.js,e||function(){})})},i.lockScreen=function(t){e("html,body").css("overflow",t?"hidden":"")},i.createDialog=function(t){var n={name:"",width:420,height:240,title:"",drag:!0,closed:!0,content:"",mask:!0,maskStyle:{backgroundColor:"#fff",opacity:.1},lockScreen:!0,footer:!0,buttons:!1};t=e.extend(!0,n,t);var r=this,a=this.editor,o=i.classPrefix,s=(new Date).getTime(),l=""===t.name?o+"dialog-"+s:t.name,c=i.mouseOrTouch,u='
          ';""!==t.title&&(u+='
          ",u+=''+t.title+"",u+="
          "),t.closed&&(u+=''),u+='
          '+t.content,(t.footer||"string"==typeof t.footer)&&(u+='"),u+="
          ",u+='
          ',u+='
          ',u+="
          ",a.append(u);var d=a.find("."+l);d.lockScreen=function(i){return t.lockScreen&&(e("html,body").css("overflow",i?"hidden":""),r.resize()),d},d.showMask=function(){return t.mask&&a.find("."+o+"mask").css(t.maskStyle).css("z-index",i.dialogZindex-1).show(),d},d.hideMask=function(){return t.mask&&a.find("."+o+"mask").hide(),d},d.loading=function(e){return d.find("."+o+"dialog-mask")[e?"show":"hide"](),d},d.lockScreen(!0).showMask(),d.show().css({zIndex:i.dialogZindex,border:i.isIE8?"1px solid #ddd":"",width:"number"==typeof t.width?t.width+"px":t.width,height:"number"==typeof t.height?t.height+"px":t.height});var h=function(){d.css({top:(e(window).height()-d.height())/2+"px",left:(e(window).width()-d.width())/2+"px"})};if(h(),e(window).resize(h),d.children("."+o+"dialog-close").bind(c("click","touchend"),function(){d.hide().lockScreen(!1).hideMask()}),"object"==typeof t.buttons){var p=d.footer=d.find("."+o+"dialog-footer");for(var f in t.buttons){var m=t.buttons[f],g=o+f+"-btn";p.append('"),m[1]=e.proxy(m[1],d),p.children("."+g).bind(c("click","touchend"),m[1])}}if(""!==t.title&&t.drag){var v,y,_=d.children("."+o+"dialog-header");t.mask||_.bind(c("click","touchend"),function(){i.dialogZindex+=2,d.css("z-index",i.dialogZindex)}),_.mousedown(function(e){e=e||window.event,v=e.clientX-parseInt(d[0].style.left),y=e.clientY-parseInt(d[0].style.top),document.onmousemove=x});var b=function(e){e.removeClass(o+"user-unselect").off("selectstart")},w=function(e){e.addClass(o+"user-unselect").on("selectstart",function(e){return!1})},x=function(t){t=t||window.event;var i,n,r=parseInt(d[0].style.left),a=parseInt(d[0].style.top);r>=0?r+d.width()<=e(window).width()?i=t.clientX-v:(i=e(window).width()-d.width(),document.onmousemove=null):(i=0,document.onmousemove=null),a>=0?n=t.clientY-y:(n=0,document.onmousemove=null),document.onselectstart=function(){return!1},w(e("body")),w(d),d[0].style.left=i+"px",d[0].style.top=n+"px"};document.onmouseup=function(){b(e("body")),b(d),document.onselectstart=null,document.onmousemove=null},_.touchDraggable=function(){var t=null,i=function(i){var n=i.originalEvent,r=e(this).parent().position();t={x:n.changedTouches[0].pageX-r.left,y:n.changedTouches[0].pageY-r.top}},n=function(i){i.preventDefault();var n=i.originalEvent;e(this).parent().css({top:n.changedTouches[0].pageY-t.y,left:n.changedTouches[0].pageX-t.x})};this.bind("touchstart",i).bind("touchmove",n)},_.touchDraggable()}return i.dialogZindex+=2,d},i.mouseOrTouch=function(e,t){e=e||"click",t=t||"touchend";var i=e;try{document.createEvent("TouchEvent"),i=t}catch(e){}return i},i.dateFormat=function(e){e=e||"";var t=function(e){return e<10?"0"+e:e},i=new Date,n=i.getFullYear(),r=n.toString().slice(2,4),a=t(i.getMonth()+1),o=t(i.getDate()),s=i.getDay(),l=t(i.getHours()),c=t(i.getMinutes()),u=t(i.getSeconds()),d=t(i.getMilliseconds()),h="",p=r+"-"+a+"-"+o,f=n+"-"+a+"-"+o,m=l+":"+c+":"+u;switch(e){case"UNIX Time":h=i.getTime();break;case"UTC":h=i.toUTCString();break;case"yy":h=r;break;case"year":case"yyyy":h=n;break;case"month":case"mm":h=a;break;case"cn-week-day":case"cn-wd":h="星期"+["日","一","二","三","四","五","六"][s];break;case"week-day":case"wd":h=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][s];break;case"day":case"dd":h=o;break;case"hour":case"hh":h=l;break;case"min":case"ii":h=c;break;case"second":case"ss":h=u;break;case"ms":h=d;break;case"yy-mm-dd":h=p;break;case"yyyy-mm-dd":h=f;break;case"yyyy-mm-dd h:i:s ms":case"full + ms":h=f+" "+m+" "+d;break;case"full":case"yyyy-mm-dd h:i:s":default:h=f+" "+m}return h},i}()}),define("modules/console/expdesktop/model/document/controller",["jquery","editormd"],function(e,t){function i(e,t){this.element=e,this.options=t}var n={init:function(){var i={htmlDecode:"style,script,iframe",tocm:!0,emoji:!1,taskList:!0,tex:!0,flowChart:!0,sequenceDiagram:!0,tocStartLevel:1};e.extend(this.options,i),t.markdownToHTML(this.element,this.options);var n=e("#"+this.element).find("pre");n.prepend(""),n.on("mouseover",function(){e(this).find("i").show()}),n.on("mouseout",function(){e(this).find("i").hide()})}};return e.extend(i.prototype,n),i}),function(){window.UMEDITOR_HOME_URL="/static/public/lib/ueditor/";var e=window.UMEDITOR_HOME_URL||function(){function e(){this.documentURL=self.document.URL||self.location.href,this.separator="/",this.separatorPattern=/\\|\//g,this.currentDir="./",this.currentDirPattern=/^[.]\/]/,this.path=this.documentURL,this.stack=[],this.push(this.documentURL)}function t(){var t=e.getProtocol(this.path||"");t?(this.protocol=t,this.localSeparator=/\\|\//.exec(this.path.replace(t,""))[0],this.stack=[]):(t=/\\|\//.exec(this.path))&&(this.localSeparator=t[0])}function i(){var t=this.path.replace(this.currentDirPattern,"");e.hasProtocol(this.path)&&(t=t.replace(this.protocol,"")),t=t.split(this.localSeparator),t.length=t.length-1;for(var i,n=0,r=t.length,a=this.stack;n-1,mac:e.indexOf("macintosh")>-1,quirks:"BackCompat"==document.compatMode};i.gecko="Gecko"==navigator.product&&!i.webkit&&!i.opera&&!i.ie;var n=0;if(i.ie){var r=e.match(/(?:msie\s([\w.]+))/),a=e.match(/(?:trident.*rv:([\w.]+))/);n=r&&a&&r[1]&&a[1]?Math.max(1*r[1],1*a[1]):r&&r[1]?1*r[1]:a&&a[1]?1*a[1]:0,i.ie11Compat=11==document.documentMode,i.ie9Compat=9==document.documentMode,i.ie8=!!document.documentMode,i.ie8Compat=8==document.documentMode,i.ie7Compat=7==n&&!document.documentMode||7==document.documentMode,i.ie6Compat=n<7||i.quirks,i.ie9above=n>8,i.ie9below=n<9}if(i.gecko){var o=e.match(/rv:([\d\.]+)/);o&&(o=o[1].split("."),n=1e4*o[0]+100*(o[1]||0)+1*(o[2]||0))}return/chrome\/(\d+\.\d)/i.test(e)&&(i.chrome=+RegExp.$1),/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(e)&&!/chrome/i.test(e)&&(i.safari=+(RegExp.$1||RegExp.$2)),i.opera&&(n=parseFloat(t.version())),i.webkit&&(n=parseFloat(e.match(/ applewebkit\/(\d+)/)[1])),i.version=n,i.isCompatible=!i.mobile&&(i.ie&&n>=6||i.gecko&&n>=10801||i.opera&&n>=9.5||i.air&&n>=1||i.webkit&&n>=522||!1),i}(),ie=browser.ie,webkit=browser.webkit,gecko=browser.gecko,opera=browser.opera,utils=UM.utils={each:function(e,t,i){if(null!=e)if(e.length===+e.length){for(var n=0,r=e.length;n=i&&e===t)return n=r,!1}),n},removeItem:function(e,t){for(var i=0,n=e.length;i'](?:(amp|lt|quot|gt|#39|nbsp);)?/g,function(e,t){return t?e:{"<":"<","&":"&",'"':""",">":">","'":"'"}[e]}):""},html:function(e){return e?e.replace(/&((g|l|quo)t|amp|#39);/g,function(e){return{"<":"<","&":"&",""":'"',">":">","'":"'"}[e]}):""},cssStyleToDomStyle:function(){var e=document.createElement("div").style,t={float:void 0!=e.cssFloat?"cssFloat":void 0!=e.styleFloat?"styleFloat":"float"};return function(e){return t[e]||(t[e]=e.toLowerCase().replace(/-./g,function(e){return e.charAt(1).toUpperCase()}))}}(),loadFile:function(){function e(e,i){try{for(var n,r=0;n=t[r++];)if(n.doc===e&&n.url==(i.src||i.href))return n}catch(e){return null}}var t=[];return function(i,n,r){var a=e(i,n);if(a)return void(a.ready?r&&r():a.funs.push(r));if(t.push({doc:i,url:n.src||n.href,funs:[r]}),!i.body){var o=[];for(var s in n)"tag"!=s&&o.push(s+'="'+n[s]+'"');return void i.write("<"+n.tag+" "+o.join(" ")+" >")}if(!n.id||!i.getElementById(n.id)){var l=i.createElement(n.tag);delete n.tag;for(var s in n)l.setAttribute(s,n[s]);l.onload=l.onreadystatechange=function(){if(!this.readyState||/loaded|complete/.test(this.readyState)){if(a=e(i,n),a.funs.length>0){a.ready=1;for(var t;t=a.funs.pop();)t()}l.onload=l.onreadystatechange=null}},l.onerror=function(){throw Error("The load "+(n.href||n.src)+" fails,check the url settings of file umeditor.config.js ")},i.getElementsByTagName("head")[0].appendChild(l)}}}(),isEmptyObject:function(e){if(null==e)return!0;if(this.isArray(e)||this.isString(e))return 0===e.length;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},fixColor:function(e,t){if(/color/i.test(e)&&/rgba?/.test(t)){var i=t.split(",");if(i.length>3)return"";t="#";for(var n,r=0;n=i[r++];)n=parseInt(n.replace(/[^\d]/gi,""),10).toString(16),t+=1==n.length?"0"+n:n;t=t.toUpperCase()}return t},clone:function(e,t){var i;t=t||{};for(var n in e)e.hasOwnProperty(n)&&(i=e[n],"object"==typeof i?(t[n]=utils.isArray(i)?[]:{},utils.clone(e[n],t[n])):t[n]=i);return t},transUnitToPx:function(e){if(!/(pt|cm)/.test(e))return e;var t;switch(e.replace(/([\d.]+)(\w+)/,function(i,n,r){e=n,t=r}),t){case"cm":e=25*parseFloat(e);break;case"pt":e=Math.round(96*parseFloat(e)/72)}return e+(e?"px":"")},cssRule:browser.ie&&11!=browser.version?function(e,t,i){var n,r;i=i||document,n=i.indexList?i.indexList:i.indexList={};var a;if(n[e])a=i.styleSheets[n[e]];else{if(void 0===t)return"";a=i.createStyleSheet("",r=i.styleSheets.length),n[e]=r}if(void 0===t)return a.cssText;a.cssText=t||""}:function(e,t,i){i=i||document;var n,r=i.getElementsByTagName("head")[0];if(!(n=i.getElementById(e))){if(void 0===t)return"";n=i.createElement("style"),n.id=e,r.appendChild(n)}if(void 0===t)return n.innerHTML;""!==t?n.innerHTML=t:r.removeChild(n)}};utils.each(["String","Function","Array","Number","RegExp","Object"],function(e){UM.utils["is"+e]=function(t){return Object.prototype.toString.apply(t)=="[object "+e+"]"}});var EventBase=UM.EventBase=function(){};EventBase.prototype={addListener:function(e,t){e=utils.trim(e).split(" ");for(var i,n=0;i=e[n++];)getListener(this,i,!0).push(t)},removeListener:function(e,t){e=utils.trim(e).split(" ");for(var i,n=0;i=e[n++];)utils.removeItem(getListener(this,i)||[],t)},fireEvent:function(){var e=arguments[0];e=utils.trim(e).split(" ");for(var t,i=0;t=e[i++];){var n,r,a,o=getListener(this,t);if(o)for(a=o.length;a--;)if(o[a]){if(!0===(r=o[a].apply(this,arguments)))return r;void 0!==r&&(n=r)}(r=this["on"+t.toLowerCase()])&&(n=r.apply(this,arguments))}return n}};var dtd=dom.dtd=function(){function e(e){for(var t in e)e[t.toUpperCase()]=e[t];return e}var t=utils.extend2,i=e({isindex:1,fieldset:1}),n=e({input:1,button:1,select:1,textarea:1,label:1}),r=t(e({a:1}),n),a=t({iframe:1},r),o=e({hr:1,ul:1,menu:1,div:1,blockquote:1,noscript:1,table:1,center:1,address:1,dir:1,pre:1,h5:1,dl:1,h4:1,noframes:1,h6:1,ol:1,h1:1,h3:1,h2:1}),s=e({ins:1,del:1,script:1,style:1}),l=t(e({b:1,acronym:1,bdo:1,var:1,"#":1,abbr:1,code:1,br:1,i:1,cite:1,kbd:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,dfn:1,span:1}),s),c=t(e({sub:1,img:1,embed:1,object:1,sup:1,basefont:1,map:1,applet:1,font:1,big:1,small:1}),l),u=t(e({p:1}),c),d=t(e({iframe:1}),c,n),h=e({img:1,embed:1,noscript:1,br:1,kbd:1,center:1,button:1,basefont:1,h5:1,h4:1,samp:1,h6:1,ol:1,h1:1,h3:1,h2:1,form:1,font:1,"#":1,select:1,menu:1,ins:1,abbr:1,label:1,code:1,table:1,script:1,cite:1,input:1,iframe:1,strong:1,textarea:1,noframes:1,big:1,small:1,span:1,hr:1,sub:1,bdo:1,var:1,div:1,object:1,sup:1,strike:1,dir:1,map:1,dl:1,applet:1,del:1,isindex:1,fieldset:1,ul:1,b:1,acronym:1,a:1,blockquote:1,i:1,u:1,s:1,tt:1,address:1,q:1,pre:1,p:1,em:1,dfn:1}),p=t(e({a:0}),d),f=e({tr:1}),m=e({"#":1}),g=t(e({param:1}),h),v=t(e({form:1}),i,a,o,u),y=e({li:1,ol:1,ul:1}),_=e({style:1,script:1}),b=e({base:1,link:1,meta:1,title:1}),w=t(b,_),x=e({head:1,body:1}),k=e({html:1}),C=e({address:1,blockquote:1,center:1,dir:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,isindex:1,menu:1,noframes:1,ol:1,p:1,pre:1,table:1,ul:1}),T=e({area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1});return e({$nonBodyContent:t(k,x,b),$block:C,$inline:p,$inlineWithA:t(e({a:1}),p),$body:t(e({script:1,style:1}),C),$cdata:e({script:1,style:1}),$empty:T,$nonChild:e({iframe:1,textarea:1}),$listItem:e({dd:1,dt:1,li:1}),$list:e({ul:1,ol:1,dl:1}),$isNotEmpty:e({table:1,ul:1,ol:1,dl:1,iframe:1,area:1,base:1,col:1,hr:1,img:1,embed:1,input:1,link:1,meta:1,param:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1}),$removeEmpty:e({a:1,abbr:1,acronym:1,address:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,var:1}),$removeEmptyBlock:e({p:1,div:1}),$tableContent:e({caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1,table:1}),$notTransContent:e({pre:1,script:1,style:1,textarea:1}),html:x,head:w,style:m,script:m,body:v,base:{},link:{},meta:{},title:m,col:{},tr:e({td:1,th:1}),img:{},embed:{},colgroup:e({thead:1,col:1,tbody:1,tr:1,tfoot:1}),noscript:v,td:v,br:{},th:v,center:v,kbd:p,button:t(u,o),basefont:{},h5:p,h4:p,samp:p,h6:p,ol:y,h1:p,h3:p,option:m,h2:p,form:t(i,a,o,u),select:e({optgroup:1,option:1}),font:p,ins:p,menu:y,abbr:p,label:p,table:e({thead:1,col:1,tbody:1,tr:1,colgroup:1,caption:1,tfoot:1}),code:p,tfoot:f,cite:p,li:v,input:{},iframe:v,strong:p,textarea:m,noframes:v,big:p,small:p,span:e({"#":1,br:1,b:1,strong:1,u:1,i:1,em:1,sub:1,sup:1,strike:1,span:1}),hr:p,dt:p,sub:p,optgroup:e({option:1}),param:{},bdo:p,var:p,div:v,object:g,sup:p,dd:v,strike:p,area:{},dir:y,map:t(e({area:1,form:1,p:1}),i,s,o),applet:g,dl:e({dt:1,dd:1}),del:p,isindex:{},fieldset:t(e({legend:1}),h),thead:f,ul:y,acronym:p,b:p,a:t(e({a:1}),d),blockquote:t(e({td:1,tr:1,tbody:1,li:1}),v),caption:p,i:p,u:p,tbody:f,s:p,address:t(a,u),tt:p,legend:p,q:p,pre:t(l,r),p:t(e({a:1}),p),em:p,dfn:p})}(),attrFix=ie&&browser.version<9?{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder"}:{tabindex:"tabIndex",readonly:"readOnly"},styleBlock=utils.listToMap(["-webkit-box","-moz-box","block","list-item","table","table-row-group","table-header-group","table-footer-group","table-row","table-column-group","table-column","table-cell","table-caption"]),domUtils=dom.domUtils={NODE_ELEMENT:1,NODE_DOCUMENT:9,NODE_TEXT:3,NODE_COMMENT:8,NODE_DOCUMENT_FRAGMENT:11,POSITION_IDENTICAL:0,POSITION_DISCONNECTED:1,POSITION_FOLLOWING:2,POSITION_PRECEDING:4,POSITION_IS_CONTAINED:8,POSITION_CONTAINS:16,fillChar:ie&&"6"==browser.version?"\ufeff":"​",keys:{8:1,46:1,16:1,17:1,18:1,37:1,38:1,39:1,40:1,13:1},breakParent:function(e,t){var i,n,r,a=e,o=e;do{for(a=a.parentNode,n?(i=a.cloneNode(!1),i.appendChild(n),n=i,i=a.cloneNode(!1),i.appendChild(r),r=i):(n=a.cloneNode(!1),r=n.cloneNode(!1));i=o.previousSibling;)n.insertBefore(i,n.firstChild);for(;i=o.nextSibling;)r.appendChild(i);o=a}while(t!==a);return i=t.parentNode,i.insertBefore(n,t),i.insertBefore(r,t),i.insertBefore(e,r),domUtils.remove(t),e},trimWhiteTextNode:function(e){function t(t){for(var i;(i=e[t])&&3==i.nodeType&&domUtils.isWhitespace(i);)e.removeChild(i)}t("firstChild"),t("lastChild")},getPosition:function(e,t){if(e===t)return 0;var i,n=[e],r=[t];for(i=e;i=i.parentNode;){if(i===t)return 10;n.push(i)}for(i=t;i=i.parentNode;){if(i===e)return 20;r.push(i)}if(n.reverse(),r.reverse(),n[0]!==r[0])return 1;for(var a=-1;a++,n[a]===r[a];);for(e=n[a],t=r[a];e=e.nextSibling;)if(e===t)return 4;return 2},getNodeIndex:function(e,t){for(var i=e,n=0;i=i.previousSibling;)t&&3==i.nodeType?i.nodeType!=i.nextSibling.nodeType&&n++:n++;return n},inDoc:function(e,t){return 10==domUtils.getPosition(e,t)},findParent:function(e,t,i){if(e&&!domUtils.isBody(e))for(e=i?e:e.parentNode;e;){if(!t||t(e)||domUtils.isBody(e))return t&&!t(e)&&domUtils.isBody(e)?null:e;e=e.parentNode}return null},findParentByTagName:function(e,t,i,n){return t=utils.listToMap(utils.isArray(t)?t:[t]),domUtils.findParent(e,function(e){ return t[e.tagName]&&!(n&&n(e))},i)},findParents:function(e,t,i,n){for(var r=t&&(i&&i(e)||!i)?[e]:[];e=domUtils.findParent(e,i);)r.push(e);return n?r:r.reverse()},insertAfter:function(e,t){return e.parentNode.insertBefore(t,e.nextSibling)},remove:function(e,t){var i,n=e.parentNode;if(n){if(t&&e.hasChildNodes())for(;i=e.firstChild;)n.insertBefore(i,e);n.removeChild(e)}return e},getNextDomNode:function(e,t,i,n){return getDomNode(e,"firstChild","nextSibling",t,i,n)},getPreDomNode:function(e,t,i,n){return getDomNode(e,"lastChild","previousSibling",t,i,n)},isBookmarkNode:function(e){return 1==e.nodeType&&e.id&&/^_baidu_bookmark_/i.test(e.id)},getWindow:function(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getCommonAncestor:function(e,t){if(e===t)return e;for(var i=[e],n=[t],r=e,a=-1;r=r.parentNode;){if(r===t)return r;i.push(r)}for(r=t;r=r.parentNode;){if(r===e)return r;n.push(r)}for(i.reverse(),n.reverse();a++,i[a]===n[a];);return 0==a?null:i[a-1]},clearEmptySibling:function(e,t,i){function n(e,t){for(var i;e&&!domUtils.isBookmarkNode(e)&&(domUtils.isEmptyInlineElement(e)||!new RegExp("[^\t\n\r"+domUtils.fillChar+"]").test(e.nodeValue));)i=e[t],domUtils.remove(e),e=i}!t&&n(e.nextSibling,"nextSibling"),!i&&n(e.previousSibling,"previousSibling")},split:function(e,t){var i=e.ownerDocument;if(browser.ie&&t==e.nodeValue.length){var n=i.createTextNode("");return domUtils.insertAfter(e,n)}var r=e.splitText(t);if(browser.ie8){var a=i.createTextNode("");domUtils.insertAfter(r,a),domUtils.remove(a)}return r},isWhitespace:function(e){return!new RegExp("[^ \t\n\r"+domUtils.fillChar+"]").test(e.nodeValue)},getXY:function(e){for(var t=0,i=0;e.offsetParent;)i+=e.offsetTop,t+=e.offsetLeft,e=e.offsetParent;return{x:t,y:i}},isEmptyInlineElement:function(e){if(1!=e.nodeType||!dtd.$removeEmpty[e.tagName])return 0;for(e=e.firstChild;e;){if(domUtils.isBookmarkNode(e))return 0;if(1==e.nodeType&&!domUtils.isEmptyInlineElement(e)||3==e.nodeType&&!domUtils.isWhitespace(e))return 0;e=e.nextSibling}return 1},isBlockElm:function(e){return 1==e.nodeType&&(dtd.$block[e.tagName]||styleBlock[domUtils.getComputedStyle(e,"display")])&&!dtd.$nonChild[e.tagName]},getElementsByTagName:function(e,t,i){if(i&&utils.isString(i)){var n=i;i=function(e){var t=!1;return $.each(utils.trim(n).replace(/[ ]{2,}/g," ").split(" "),function(i,n){if($(e).hasClass(n))return t=!0,!1}),t}}t=utils.trim(t).replace(/[ ]{2,}/g," ").split(" ");for(var r,a=[],o=0;r=t[o++];)for(var s,l=e.getElementsByTagName(r),c=0;s=l[c++];)i&&!i(s)||a.push(s);return a},unSelectable:ie&&browser.ie9below||browser.opera?function(e){e.onselectstart=function(){return!1},e.onclick=e.onkeyup=e.onkeydown=function(){return!1},e.unselectable="on",e.setAttribute("unselectable","on");for(var t,i=0;t=e.all[i++];)switch(t.tagName.toLowerCase()){case"iframe":case"textarea":case"input":case"select":break;default:t.unselectable="on",e.setAttribute("unselectable","on")}}:function(e){e.style.MozUserSelect=e.style.webkitUserSelect=e.style.msUserSelect=e.style.KhtmlUserSelect="none"},removeAttributes:function(e,t){t=utils.isArray(t)?t:utils.trim(t).replace(/[ ]{2,}/g," ").split(" ");for(var i,n=0;i=t[n++];){switch(i=attrFix[i]||i){case"className":e[i]="";break;case"style":e.style.cssText="",!browser.ie&&e.removeAttributeNode(e.getAttributeNode("style"))}e.removeAttribute(i)}},createElement:function(e,t,i){return domUtils.setAttributes(e.createElement(t),i)},setAttributes:function(e,t){for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];switch(i){case"class":e.className=n;break;case"style":e.style.cssText=e.style.cssText+";"+n;break;case"innerHTML":e[i]=n;break;case"value":e.value=n;break;default:e.setAttribute(attrFix[i]||i,n)}}return e},getComputedStyle:function(e,t){return utils.transUnitToPx(utils.fixColor(t,$(e).css(t)))},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},removeStyle:function(e,t){browser.ie?("color"==t&&(t="(^|;)"+t),e.style.cssText=e.style.cssText.replace(new RegExp(t+"[^:]*:[^;]+;?","ig"),"")):e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(utils.cssStyleToDomStyle(t)),e.style.cssText||domUtils.removeAttributes(e,["style"])},getStyle:function(e,t){var i=e.style[utils.cssStyleToDomStyle(t)];return utils.fixColor(t,i)},setStyle:function(e,t,i){e.style[utils.cssStyleToDomStyle(t)]=i,utils.trim(e.style.cssText)||this.removeAttributes(e,"style")},removeDirtyAttr:function(e){for(var t,i=0,n=e.getElementsByTagName("*");t=n[i++];)t.removeAttribute("_moz_dirty");e.removeAttribute("_moz_dirty")},getChildCount:function(e,t){var i=0,n=e.firstChild;for(t=t||function(){return 1};n;)t(n)&&i++,n=n.nextSibling;return i},isEmptyNode:function(e){return!e.firstChild||0==domUtils.getChildCount(e,function(e){return!domUtils.isBr(e)&&!domUtils.isBookmarkNode(e)&&!domUtils.isWhitespace(e)})},isBr:function(e){return 1==e.nodeType&&"BR"==e.tagName},isEmptyBlock:function(e,t){if(1!=e.nodeType)return 0;if(t=t||new RegExp("[ \t\r\n"+domUtils.fillChar+"]","g"),e[browser.ie?"innerText":"textContent"].replace(t,"").length>0)return 0;for(var i in dtd.$isNotEmpty)if(e.getElementsByTagName(i).length)return 0;return 1},isCustomeNode:function(e){return 1==e.nodeType&&e.getAttribute("_ue_custom_node_")},fillNode:function(e,t){var i=browser.ie?e.createTextNode(domUtils.fillChar):e.createElement("br");t.innerHTML="",t.appendChild(i)},isBoundaryNode:function(e,t){for(var i;!domUtils.isBody(e);)if(i=e,e=e.parentNode,i!==e[t])return!1;return!0},isFillChar:function(e,t){return 3==e.nodeType&&!e.nodeValue.replace(new RegExp((t?"^":"")+domUtils.fillChar),"").length},isBody:function(e){return $(e).hasClass("edui-body-container")}},fillCharReg=new RegExp(domUtils.fillChar,"g");!function(){function e(e){e.collapsed=e.startContainer&&e.endContainer&&e.startContainer===e.endContainer&&e.startOffset==e.endOffset}function t(e){return!e.collapsed&&1==e.startContainer.nodeType&&e.startContainer===e.endContainer&&e.endOffset-e.startOffset==1}function i(t,i,n,r){return 1==i.nodeType&&(dtd.$empty[i.tagName]||dtd.$nonChild[i.tagName])&&(n=domUtils.getNodeIndex(i)+(t?0:1),i=i.parentNode),t?(r.startContainer=i,r.startOffset=n,r.endContainer||r.collapse(!0)):(r.endContainer=i,r.endOffset=n,r.startContainer||r.collapse(!1)),e(r),r}function n(e,t){try{if(o&&domUtils.inDoc(o,e))if(o.nodeValue.replace(fillCharReg,"").length)o.nodeValue=o.nodeValue.replace(fillCharReg,"");else{var i=o.parentNode;for(domUtils.remove(o);i&&domUtils.isEmptyInlineElement(i)&&(browser.safari?!(domUtils.getPosition(i,t)&domUtils.POSITION_CONTAINS):!i.contains(t));)o=i.parentNode,domUtils.remove(i),i=o}}catch(e){}}function r(e,t){var i;for(e=e[t];e&&domUtils.isFillChar(e);)i=e[t],domUtils.remove(e),e=i}function a(e,t){var i,n,r=e.startContainer,a=e.endContainer,o=e.startOffset,s=e.endOffset,l=e.document,c=l.createDocumentFragment();if(1==r.nodeType&&(r=r.childNodes[o]||(i=r.appendChild(l.createTextNode("")))),1==a.nodeType&&(a=a.childNodes[s]||(n=a.appendChild(l.createTextNode("")))),r===a&&3==r.nodeType)return c.appendChild(l.createTextNode(r.substringData(o,s-o))),t&&(r.deleteData(o,s-o),e.collapse(!0)),c;for(var u,d,h=c,p=domUtils.findParents(r,!0),f=domUtils.findParents(a,!0),m=0;p[m]==f[m];)m++;for(var g,v=m;g=p[v];v++){for(u=g.nextSibling,g==r?i||(3==e.startContainer.nodeType?(h.appendChild(l.createTextNode(r.nodeValue.slice(o))),t&&r.deleteData(o,r.nodeValue.length-o)):h.appendChild(t?r:r.cloneNode(!0))):(d=g.cloneNode(!1),h.appendChild(d));u&&u!==a&&u!==f[v];)g=u.nextSibling,h.appendChild(t?u:u.cloneNode(!0)),u=g;h=d}h=c,p[m]||(h.appendChild(p[m-1].cloneNode(!1)),h=h.firstChild);for(var y,v=m;y=f[v];v++){if(u=y.previousSibling,y==a?n||3!=e.endContainer.nodeType||(h.appendChild(l.createTextNode(a.substringData(0,s))),t&&a.deleteData(0,s)):(d=y.cloneNode(!1),h.appendChild(d)),v!=m||!p[m])for(;u&&u!==r;)y=u.previousSibling,h.insertBefore(t?u:u.cloneNode(!0),h.firstChild),u=y;h=d}return t&&e.setStartBefore(f[m]?p[m]?f[m]:p[m-1]:f[m-1]).collapse(!0),i&&domUtils.remove(i),n&&domUtils.remove(n),c}var o,s=0,l=domUtils.fillChar,c=dom.Range=function(e,t){var i=this;i.startContainer=i.startOffset=i.endContainer=i.endOffset=null,i.document=e,i.collapsed=!0,i.body=t};c.prototype={deleteContents:function(){var e;return this.collapsed||a(this,1),browser.webkit&&(e=this.startContainer,3!=e.nodeType||e.nodeValue.length||(this.setStartBefore(e).collapse(!0),domUtils.remove(e))),this},inFillChar:function(){var e=this.startContainer;return!(!this.collapsed||3!=e.nodeType||e.nodeValue.replace(new RegExp("^"+domUtils.fillChar),"").length+1!=e.nodeValue.length)},setStart:function(e,t){return i(!0,e,t,this)},setEnd:function(e,t){return i(!1,e,t,this)},setStartAfter:function(e){return this.setStart(e.parentNode,domUtils.getNodeIndex(e)+1)},setStartBefore:function(e){return this.setStart(e.parentNode,domUtils.getNodeIndex(e))},setEndAfter:function(e){return this.setEnd(e.parentNode,domUtils.getNodeIndex(e)+1)},setEndBefore:function(e){return this.setEnd(e.parentNode,domUtils.getNodeIndex(e))},setStartAtFirst:function(e){return this.setStart(e,0)},setStartAtLast:function(e){return this.setStart(e,3==e.nodeType?e.nodeValue.length:e.childNodes.length)},setEndAtFirst:function(e){return this.setEnd(e,0)},setEndAtLast:function(e){return this.setEnd(e,3==e.nodeType?e.nodeValue.length:e.childNodes.length)},selectNode:function(e){return this.setStartBefore(e).setEndAfter(e)},selectNodeContents:function(e){return this.setStart(e,0).setEndAtLast(e)},cloneRange:function(){var e=this;return new c(e.document).setStart(e.startContainer,e.startOffset).setEnd(e.endContainer,e.endOffset)},collapse:function(e){var t=this;return e?(t.endContainer=t.startContainer,t.endOffset=t.startOffset):(t.startContainer=t.endContainer,t.startOffset=t.endOffset),t.collapsed=!0,t},shrinkBoundary:function(e){function t(e){return 1==e.nodeType&&!domUtils.isBookmarkNode(e)&&!dtd.$empty[e.tagName]&&!dtd.$nonChild[e.tagName]}for(var i,n=this,r=n.collapsed;1==n.startContainer.nodeType&&(i=n.startContainer.childNodes[n.startOffset])&&t(i);)n.setStart(i,0);if(r)return n.collapse(!0);if(!e)for(;1==n.endContainer.nodeType&&n.endOffset>0&&(i=n.endContainer.childNodes[n.endOffset-1])&&t(i);)n.setEnd(i,i.childNodes.length);return n},trimBoundary:function(e){this.txtToElmBoundary();var t=this.startContainer,i=this.startOffset,n=this.collapsed,r=this.endContainer;if(3==t.nodeType){if(0==i)this.setStartBefore(t);else if(i>=t.nodeValue.length)this.setStartAfter(t);else{var a=domUtils.split(t,i);t===r?this.setEnd(a,this.endOffset-i):t.parentNode===r&&(this.endOffset+=1),this.setStartBefore(a)}if(n)return this.collapse(!0)}return e||(i=this.endOffset,r=this.endContainer,3==r.nodeType&&(0==i?this.setEndBefore(r):(i=i.nodeValue.length&&e["set"+t.replace(/(\w)/,function(e){return e.toUpperCase()})+"After"](i):e["set"+t.replace(/(\w)/,function(e){return e.toUpperCase()})+"Before"](i))}return!e&&this.collapsed||(t(this,"start"),t(this,"end")),this},insertNode:function(e){var t=e,i=1;11==e.nodeType&&(t=e.firstChild,i=e.childNodes.length),this.trimBoundary(!0);var n=this.startContainer,r=this.startOffset,a=n.childNodes[r];return a?n.insertBefore(e,a):n.appendChild(e),t.parentNode===this.endContainer&&(this.endOffset=this.endOffset+i),this.setStartBefore(t)},setCursor:function(e,t){return this.collapse(!e).select(t)},createBookmark:function(e,t){var i,n=this.document.createElement("span");return n.style.cssText="display:none;line-height:0px;",n.appendChild(this.document.createTextNode("‍")),n.id="_baidu_bookmark_start_"+(t?"":s++),this.collapsed||(i=n.cloneNode(!0),i.id="_baidu_bookmark_end_"+(t?"":s++)),this.insertNode(n),i&&this.collapse().insertNode(i).setEndBefore(i),this.setStartAfter(n),{start:e?n.id:n,end:i?e?i.id:i:null,id:e}},moveToBookmark:function(e){var t=e.id?this.document.getElementById(e.start):e.start,i=e.end&&e.id?this.document.getElementById(e.end):e.end;return this.setStartBefore(t),domUtils.remove(t),i?(this.setEndBefore(i),domUtils.remove(i)):this.collapse(!0),this},adjustmentBoundary:function(){if(!this.collapsed){for(;!domUtils.isBody(this.startContainer)&&this.startOffset==this.startContainer[3==this.startContainer.nodeType?"nodeValue":"childNodes"].length&&this.startContainer[3==this.startContainer.nodeType?"nodeValue":"childNodes"].length;)this.setStartAfter(this.startContainer);for(;!domUtils.isBody(this.endContainer)&&!this.endOffset&&this.endContainer[3==this.endContainer.nodeType?"nodeValue":"childNodes"].length;)this.setEndBefore(this.endContainer)}return this},getClosedNode:function(){var e;if(!this.collapsed){var i=this.cloneRange().adjustmentBoundary().shrinkBoundary();if(t(i)){var n=i.startContainer.childNodes[i.startOffset];n&&1==n.nodeType&&(dtd.$empty[n.tagName]||dtd.$nonChild[n.tagName])&&(e=n)}}return e},select:browser.ie?function(e,t){var i;this.collapsed||this.shrinkBoundary();var a=this.getClosedNode();if(a&&!t){try{i=this.document.body.createControlRange(),i.addElement(a),i.select()}catch(e){}return this}var s,c=this.createBookmark(),u=c.start;if(i=this.document.body.createTextRange(),i.moveToElementText(u),i.moveStart("character",1),this.collapsed){if(!e&&3!=this.startContainer.nodeType){var d=this.document.createTextNode(l),h=this.document.createElement("span");h.appendChild(this.document.createTextNode(l)),u.parentNode.insertBefore(h,u),u.parentNode.insertBefore(d,u),n(this.document,d),o=d,r(h,"previousSibling"),r(u,"nextSibling"),i.moveStart("character",-1),i.collapse(!0)}}else{var p=this.document.body.createTextRange();s=c.end,p.moveToElementText(s),i.setEndPoint("EndToEnd",p)}this.moveToBookmark(c),h&&domUtils.remove(h);try{i.select()}catch(e){}return this}:function(e){var t,i=domUtils.getWindow(this.document),a=i.getSelection();if(browser.gecko?this.body.focus():i.focus(),a){if(a.removeAllRanges(),this.collapsed&&!e){var s=this.startContainer,c=s;1==s.nodeType&&(c=s.childNodes[this.startOffset]),3==s.nodeType&&this.startOffset||(c?c.previousSibling&&3==c.previousSibling.nodeType:s.lastChild&&3==s.lastChild.nodeType)||(t=this.document.createTextNode(l),this.insertNode(t),n(this.document,t),r(t,"previousSibling"),r(t,"nextSibling"),o=t,this.setStart(t,browser.webkit?1:0).collapse(!0))}var u=this.document.createRange();if(this.collapsed&&browser.opera&&1==this.startContainer.nodeType){var c=this.startContainer.childNodes[this.startOffset];if(c){for(;c&&domUtils.isBlockElm(c)&&1==c.nodeType&&c.childNodes[0];)c=c.childNodes[0];c&&this.setStartBefore(c).collapse(!0)}else(c=this.startContainer.lastChild)&&domUtils.isBr(c)&&this.setStartBefore(c).collapse(!0)}!function(e){function t(t,i,n){3==t.nodeType&&t.nodeValue.length ');this.cloneRange().insertNode(e.get(0));var t=$(window).scrollTop(),i=$(window).height(),n=e.offset().top;(nt+i)&&(n>t+i?window.scrollTo(0,n-i+e.height()):window.scrollTo(0,t-n)),e.remove()},getOffset:function(){var e=this.createBookmark(),t=$(e.start).css("display","inline-block").offset();return this.moveToBookmark(e),t}}}(),function(){function e(e,t){var i=domUtils.getNodeIndex;e=e.duplicate(),e.collapse(t);var n=e.parentElement();if(!n.hasChildNodes())return{container:n,offset:0};for(var r,a,o=n.children,s=e.duplicate(),l=0,c=o.length-1,u=-1;l<=c;){u=Math.floor((l+c)/2),r=o[u],s.moveToElementText(r);var d=s.compareEndPoints("StartToStart",e);if(d>0)c=u-1;else{if(!(d<0))return{container:n,offset:i(r)};l=u+1}}if(-1==u){if(s.moveToElementText(n),s.setEndPoint("StartToStart",e),a=s.text.replace(/(\r\n|\r)/g,"\n").length,o=n.childNodes,!a)return r=o[o.length-1],{container:r,offset:r.nodeValue.length};for(var h=o.length;a>0;)a-=o[--h].nodeValue.length;return{container:o[h],offset:-a}}if(s.collapse(d>0),s.setEndPoint(d>0?"StartToStart":"EndToStart",e),!(a=s.text.replace(/(\r\n|\r)/g,"\n").length))return dtd.$empty[r.tagName]||dtd.$nonChild[r.tagName]?{container:n,offset:i(r)+(d>0?0:1)}:{container:r,offset:d>0?0:r.childNodes.length};for(;a>0;)try{var p=r;r=r[d>0?"previousSibling":"nextSibling"],a-=r.nodeValue.length}catch(e){return{container:n,offset:i(p)}}return{container:r,offset:d>0?-a:r.nodeValue.length+a}}function t(t,i){if(t.item)i.selectNode(t.item(0));else{var n=e(t,!0);i.setStart(n.container,n.offset),0!=t.compareEndPoints("StartToEnd",t)&&(n=e(t,!1),i.setEnd(n.container,n.offset))}return i}function i(e,t){var i;try{i=e.getNative(t).createRange()}catch(e){return null}var n=i.item?i.item(0):i.parentElement();return(n.ownerDocument||n)===e.document?i:null}(dom.Selection=function(e,t){var n=this;n.document=e,n.body=t,browser.ie9below&&$(t).on("beforedeactivate",function(){n._bakIERange=n.getIERange()}).on("activate",function(){try{var e=i(n);e&&n.rangeInBody(e)||!n._bakIERange||n._bakIERange.select()}catch(e){}n._bakIERange=null})}).prototype={hasNativeRange:function(){var e;if(!browser.ie||browser.ie9above){var t=this.getNative();if(!t.rangeCount)return!1;e=t.getRangeAt(0)}else e=i(this);return this.rangeInBody(e)},getNative:function(e){var t=this.document;try{return t?browser.ie9below||e?t.selection:domUtils.getWindow(t).getSelection():null}catch(e){return null}},getIERange:function(e){var t=i(this,e);return t&&this.rangeInBody(t,e)||!this._bakIERange?t:this._bakIERange},rangeInBody:function(e,t){var i=browser.ie9below||t?e.item?e.item():e.parentElement():e.startContainer;return i===this.body||domUtils.inDoc(i,this.body)},cache:function(){this.clear(),this._cachedRange=this.getRange(),this._cachedStartElement=this.getStart(),this._cachedStartElementPath=this.getStartElementPath()},getStartElementPath:function(){if(this._cachedStartElementPath)return this._cachedStartElementPath;var e=this.getStart();return e?domUtils.findParents(e,!0,null,!0):[]},clear:function(){this._cachedStartElementPath=this._cachedRange=this._cachedStartElement=null},isFocus:function(){return this.hasNativeRange()},getRange:function(){function e(e){for(var t=i.body.firstChild,n=e.collapsed;t&&t.firstChild;)e.setStart(t,0),t=t.firstChild;e.startContainer||e.setStart(i.body,0),n&&e.collapse(!0)}var i=this;if(null!=i._cachedRange)return this._cachedRange;var n=new dom.Range(i.document,i.body);if(browser.ie9below){var r=i.getIERange();if(r&&this.rangeInBody(r))try{t(r,n)}catch(t){e(n)}else e(n)}else{var a=i.getNative();if(a&&a.rangeCount&&i.rangeInBody(a.getRangeAt(0))){var o=a.getRangeAt(0),s=a.getRangeAt(a.rangeCount-1);n.setStart(o.startContainer,o.startOffset).setEnd(s.endContainer,s.endOffset),n.collapsed&&domUtils.isBody(n.startContainer)&&!n.startOffset&&e(n)}else{if(this._bakRange&&(this._bakRange.startContainer===this.body||domUtils.inDoc(this._bakRange.startContainer,this.body)))return this._bakRange;e(n)}}return this._bakRange=n},getStart:function(){if(this._cachedStartElement)return this._cachedStartElement;var e,t,i,n,r=browser.ie9below?this.getIERange():this.getRange();if(browser.ie9below){if(!r)return this.document.body.firstChild;if(r.item)return r.item(0);for(e=r.duplicate(),e.text.length>0&&e.moveStart("character",1),e.collapse(1),t=e.parentElement(),n=i=r.parentElement();i=i.parentNode;)if(i==t){t=n;break}}else if(t=r.startContainer,1==t.nodeType&&t.hasChildNodes()&&(t=t.childNodes[Math.min(t.childNodes.length-1,r.startOffset)]),3==t.nodeType)return t.parentNode;return t},getText:function(){var e,t;return this.isFocus()&&(e=this.getNative())?(t=browser.ie9below?e.createRange():e.getRangeAt(0),browser.ie9below?t.text:t.toString()):""}}}(),function(){function e(e,t){var i;if(t.textarea)if(utils.isString(t.textarea)){for(var n,r=0,a=domUtils.getElementsByTagName(e,"textarea");n=a[r++];)if(n.id=="umeditor_textarea_"+t.options.textarea){i=n;break}}else i=t.textarea;i||(e.appendChild(i=domUtils.createElement(document,"textarea",{name:t.options.textarea,id:"umeditor_textarea_"+t.options.textarea,style:"display:none"})),t.textarea=i),i.value=t.hasContents()?t.options.allHtmlEnabled?t.getAllHtml():t.getContent(null,null,!0):""}function t(e){for(var t in UM.plugins)-1==e.options.excludePlugins.indexOf(t)&&(UM.plugins[t].call(e),e.plugins[t]=1);e.langIsReady=!0,e.fireEvent("langReady")}function i(e){for(var t in e)return t}var n,r=0,a=UM.Editor=function(e){var n=this;n.uid=r++,EventBase.call(n),n.commands={},n.options=utils.extend(utils.clone(e||{}),UMEDITOR_CONFIG,!0),n.shortcutkeys={},n.inputRules=[],n.outputRules=[],n.setOpt({isShow:!0,initialContent:"",initialStyle:"",autoClearinitialContent:!1,textarea:"editorValue",focus:!1,focusInEnd:!0,autoClearEmptyNode:!0,fullscreen:!1,readonly:!1,zIndex:999,enterTag:"p",lang:"zh-cn",langPath:n.options.UMEDITOR_HOME_URL+"lang/",theme:"default",themePath:n.options.UMEDITOR_HOME_URL+"themes/",allHtmlEnabled:!1,autoSyncData:!0,autoHeightEnabled:!0,excludePlugins:""}),n.plugins={},utils.isEmptyObject(UM.I18N)?utils.loadFile(document,{src:n.options.langPath+n.options.lang+"/"+n.options.lang+".js",tag:"script",type:"text/javascript",defer:"defer"},function(){t(n)}):(n.options.lang=i(UM.I18N),t(n))};a.prototype={ready:function(e){var t=this;e&&(t.isReady?e.apply(t):t.addListener("ready",e))},setOpt:function(e,t){var i={};utils.isString(e)?i[e]=t:i=e,utils.extend(this.options,i,!0)},getOpt:function(e){return this.options[e]||""},destroy:function(){var e=this;e.fireEvent("destroy");var t=e.container.parentNode;t===document.body&&(t=e.container);var i=e.textarea;i?i.style.display="":(i=document.createElement("textarea"),t.parentNode.insertBefore(i,t)),i.style.width=e.body.offsetWidth+"px",i.style.height=e.body.offsetHeight+"px",i.value=e.getContent(),i.id=e.key,t.contains(i)&&$(i).insertBefore(t),t.innerHTML="",domUtils.remove(t),UM.clearCache(e.id);for(var n in e)e.hasOwnProperty(n)&&delete this[n]},initialCont:function(e){if(e){if(e.getAttribute("name")&&(this.options.textarea=e.getAttribute("name")),e&&/script|textarea/gi.test(e.tagName)){var t=document.createElement("div");e.parentNode.insertBefore(t,e),this.options.initialContent=UM.htmlparser(e.value||e.innerHTML||this.options.initialContent).toHtml(),e.className&&(t.className=e.className),e.style.cssText&&(t.style.cssText=e.style.cssText),/textarea/i.test(e.tagName)?(this.textarea=e,this.textarea.style.display="none"):(e.parentNode.removeChild(e),e.id&&(t.id=e.id)),e=t,e.innerHTML=""}return e}return null},render:function(e){var t=this,i=t.options,n=function(t){return parseInt($(e).css(t))};if(utils.isString(e)&&(e=document.getElementById(e)),e){this.id=e.getAttribute("id"),UM.setEditor(this),utils.cssRule("edui-style-body",t.options.initialStyle,document),e=this.initialCont(e),e.className+=" edui-body-container",i.initialFrameWidth?i.minFrameWidth=i.initialFrameWidth:i.minFrameWidth=i.initialFrameWidth=$(e).width()||UM.defaultWidth,i.initialFrameHeight?i.minFrameHeight=i.initialFrameHeight:i.initialFrameHeight=i.minFrameHeight=$(e).height()||UM.defaultHeight,e.style.width=/%$/.test(i.initialFrameWidth)?"100%":i.initialFrameWidth-n("padding-left")-n("padding-right")+"px";var r=/%$/.test(i.initialFrameHeight)?"100%":i.initialFrameHeight-n("padding-top")-n("padding-bottom");this.options.autoHeightEnabled?(e.style.minHeight=r+"px",e.style.height="",browser.ie&&browser.version<=6&&(e.style.height=r,e.style.setExpression("height","this.scrollHeight <= "+r+' ? "'+r+'px" : "auto"'))):$(e).height(r),e.style.zIndex=i.zIndex,this._setup(e)}},_setup:function(t){var i=this,n=i.options;t.contentEditable=!0,document.body.spellcheck=!1,i.document=document,i.window=document.defaultView||document.parentWindow,i.body=t,i.$body=$(t),i.selection=new dom.Selection(document,i.body),i._isEnabled=!1;var r;browser.gecko&&(r=this.selection.getNative())&&r.removeAllRanges(),this._initEvents();for(var a=t.parentNode;a&&!domUtils.isBody(a);a=a.parentNode)if("FORM"==a.tagName){i.form=a,i.options.autoSyncData?$(t).on("blur",function(){e(a,i)}):$(a).on("submit",function(){e(this,i)});break}if(n.initialContent)if(n.autoClearinitialContent){var o=i.execCommand;i.execCommand=function(){return i.fireEvent("firstBeforeExecCommand"),o.apply(i,arguments)},this._setDefaultContent(n.initialContent)}else this.setContent(n.initialContent,!1,!0);domUtils.isEmptyNode(i.body)&&(i.body.innerHTML="

          "+(browser.ie?"":"
          ")+"

          "),n.focus&&setTimeout(function(){i.focus(i.options.focusInEnd),!i.options.autoClearinitialContent&&i._selectionChange()},0),i.container||(i.container=t.parentNode),i._bindshortcutKeys(),i.isReady=1,i.fireEvent("ready"),n.onready&&n.onready.call(i),browser.ie&&!browser.ie9above||$(i.body).on("blur focus",function(e){var t=i.selection.getNative();if("blur"==e.type)t.rangeCount>0&&(i._bakRange=t.getRangeAt(0));else{try{i._bakRange&&t.addRange(i._bakRange)}catch(e){}i._bakRange=null}}),!n.isShow&&i.setHide(),n.readonly&&i.setDisabled()},sync:function(t){var i=this,n=t?document.getElementById(t):domUtils.findParent(i.body.parentNode,function(e){return"FORM"==e.tagName},!0);n&&e(n,i)},setHeight:function(e,t){!t&&(this.options.initialFrameHeight=e),this.options.autoHeightEnabled?($(this.body).css({"min-height":e+"px"}),browser.ie&&browser.version<=6&&this.container&&(this.container.style.height=e,this.container.style.setExpression("height","this.scrollHeight <= "+e+' ? "'+e+'px" : "auto"'))):$(this.body).height(e),this.fireEvent("resize")},setWidth:function(e){this.$container&&this.$container.width(e),$(this.body).width(e-1*$(this.body).css("padding-left").replace("px","")-1*$(this.body).css("padding-right").replace("px","")),this.fireEvent("resize")},addshortcutkey:function(e,t){var i={};t?i[e]=t:i=e,utils.extend(this.shortcutkeys,i)},_bindshortcutKeys:function(){var e=this,t=this.shortcutkeys;e.addListener("keydown",function(i,n){var r=n.keyCode||n.which;for(var a in t)for(var o,s=t[a].split(","),l=0;o=s[l++];){o=o.split(":");var c=o[0],u=o[1];(/^(ctrl)(\+shift)?\+(\d+)$/.test(c.toLowerCase())||/^(\d+)$/.test(c))&&(("ctrl"==RegExp.$1?n.ctrlKey||n.metaKey:0)&&(""!=RegExp.$2?n[RegExp.$2.slice(1)+"Key"]:1)&&r==RegExp.$3||r==RegExp.$1)&&(-1!=e.queryCommandState(a,u)&&e.execCommand(a,u),domUtils.preventDefault(n))}})},getContent:function(e,t,i,n,r){var a=this;if(e&&utils.isFunction(e)&&(t=e,e=""),t?!t():!this.hasContents())return"";a.fireEvent("beforegetcontent");var o=UM.htmlparser(a.body.innerHTML,n);return a.filterOutputRule(o),a.fireEvent("aftergetcontent",o),o.toHtml(r)},getAllHtml:function(){var e=this,t=[];if(e.fireEvent("getAllHtml",t),browser.ie&&browser.version>8){var i="";utils.each(e.document.styleSheets,function(e){i+=e.href?'':""}),utils.each(e.document.getElementsByTagName("script"),function(e){i+=e.outerHTML})}return""+(e.options.charset?'':"")+(i||e.document.getElementsByTagName("head")[0].innerHTML)+t.join("\n")+""+e.getContent(null,null,!0)+""},getPlainTxt:function(){var e=new RegExp(domUtils.fillChar,"g"),t=this.body.innerHTML.replace(/[\n\r]/g,"");return t=t.replace(/<(p|div)[^>]*>(| )<\/\1>/gi,"\n").replace(//gi,"\n").replace(/<[^>/]+>/g,"").replace(/(\n)?<\/([^>]+)>/g,function(e,t,i){return dtd.$block[i]?"\n":t||""}),t.replace(e,"").replace(/\u00a0/g," ").replace(/ /g," ")},getContentTxt:function(){var e=new RegExp(domUtils.fillChar,"g");return this.body[browser.ie?"innerText":"textContent"].replace(e,"").replace(/\u00a0/g," ")},setContent:function(t,i,n){var r=this;r.fireEvent("beforesetcontent",t);var a=UM.htmlparser(t);if(r.filterInputRule(a),t=a.toHtml(),r.body.innerHTML=(i?r.body.innerHTML:"")+t,"p"==r.options.enterTag){var o,s=this.body.firstChild;if(!s||1==s.nodeType&&(dtd.$cdata[s.tagName]||function(e){return"DIV"==e.tagName&&e.getAttribute("cdata_tag")}(s)||domUtils.isCustomeNode(s))&&s===this.body.lastChild)this.body.innerHTML="

          "+(browser.ie?" ":"
          ")+"

          "+this.body.innerHTML;else for(var l=r.document.createElement("p");s;){for(;s&&(3==s.nodeType||1==s.nodeType&&dtd.p[s.tagName]&&!dtd.$cdata[s.tagName]);)o=s.nextSibling,l.appendChild(s),s=o;if(l.firstChild){if(!s){r.body.appendChild(l);break}s.parentNode.insertBefore(l,s),l=r.document.createElement("p")}s=s.nextSibling}}r.fireEvent("aftersetcontent"),r.fireEvent("contentchange"),!n&&r._selectionChange(),r._bakRange=r._bakIERange=r._bakNativeRange=null;var c;browser.gecko&&(c=this.selection.getNative())&&c.removeAllRanges(),r.options.autoSyncData&&r.form&&e(r.form,r)},focus:function(e){try{var t=this,i=t.selection.getRange();e?i.setStartAtLast(t.body.lastChild).setCursor(!1,!0):i.select(!0),this.fireEvent("focus")}catch(e){}},blur:function(){var e=this.selection.getNative();e.empty?e.empty():e.removeAllRanges(),this.fireEvent("blur")},isFocus:function(){return!0===this.fireEvent("isfocus")||this.selection.isFocus()},_initEvents:function(){var e=this,t=e.body,i=function(){e._proxyDomEvent.apply(e,arguments)};$(t).on("click contextmenu mousedown keydown keyup keypress mouseup mouseover mouseout selectstart",i).on("focus blur",i).on("mouseup keydown",function(t){"keydown"==t.type&&(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)||2!=t.button&&e._selectionChange(250,t)})},_proxyDomEvent:function(e){return this.fireEvent(e.type.replace(/^on/,""),e)},_selectionChange:function(e,t){var i,r,a=this,o=!1;if(browser.ie&&browser.version<9&&t&&"mouseup"==t.type){this.selection.getRange().collapsed||(o=!0,i=t.clientX,r=t.clientY)}clearTimeout(n),n=setTimeout(function(){if(a.selection.getNative()){var e;if(o&&"None"==a.selection.getNative().type){e=a.document.body.createTextRange();try{e.moveToPoint(i,r)}catch(t){e=null}}var n;e&&(n=a.selection.getIERange,a.selection.getIERange=function(){return e}),a.selection.cache(),n&&(a.selection.getIERange=n),a.selection._cachedRange&&a.selection._cachedStartElement&&(a.fireEvent("beforeselectionchange"),a.fireEvent("selectionchange",!!t),a.fireEvent("afterselectionchange"),a.selection.clear())}},e||50)},_callCmdFn:function(e,t){t=Array.prototype.slice.call(t,0);var i,n,r=t.shift().toLowerCase();return i=this.commands[r]||UM.commands[r],n=i&&i[e],i&&n||"queryCommandState"!=e?n?n.apply(this,[r].concat(t)):void 0:0},execCommand:function(e){if(!this.isFocus()){var t=this.selection._bakRange;t?t.select():this.focus(!0)} e=e.toLowerCase();var i,n=this,r=n.commands[e]||UM.commands[e];return r&&r.execCommand?(r.notNeedUndo||n.__hasEnterExecCommand?(i=this._callCmdFn("execCommand",arguments),!n.__hasEnterExecCommand&&!r.ignoreContentChange&&!n._ignoreContentChange&&n.fireEvent("contentchange")):(n.__hasEnterExecCommand=!0,-1!=n.queryCommandState.apply(n,arguments)&&(n.fireEvent("saveScene"),n.fireEvent("beforeexeccommand",e),i=this._callCmdFn("execCommand",arguments),!r.ignoreContentChange&&!n._ignoreContentChange&&n.fireEvent("contentchange"),n.fireEvent("afterexeccommand",e),n.fireEvent("saveScene")),n.__hasEnterExecCommand=!1),!n.__hasEnterExecCommand&&!r.ignoreContentChange&&!n._ignoreContentChange&&n._selectionChange(),i):null},queryCommandState:function(e){try{return this._callCmdFn("queryCommandState",arguments)}catch(e){return 0}},queryCommandValue:function(e){try{return this._callCmdFn("queryCommandValue",arguments)}catch(e){return null}},hasContents:function(e){if(e)for(var t,i=0;t=e[i++];)if(this.body.getElementsByTagName(t).length>0)return!0;if(!domUtils.isEmptyBlock(this.body))return!0;for(e=["div"],i=0;t=e[i++];)for(var n,r=domUtils.getElementsByTagName(this.body,t),a=0;n=r[a++];)if(domUtils.isCustomeNode(n))return!0;return!1},reset:function(){this.fireEvent("reset")},isEnabled:function(){return 1!=this._isEnabled},setEnabled:function(){var e,t=this;if(t.body.contentEditable=!0,t.lastBk){e=t.selection.getRange();try{e.moveToBookmark(t.lastBk),delete t.lastBk}catch(i){e.setStartAtFirst(t.body).collapse(!0)}e.select(!0)}t.bkqueryCommandState&&(t.queryCommandState=t.bkqueryCommandState,delete t.bkqueryCommandState),t._bkproxyDomEvent&&(t._proxyDomEvent=t._bkproxyDomEvent,delete t._bkproxyDomEvent),t.fireEvent("setEnabled")},enable:function(){return this.setEnabled()},setDisabled:function(e,t){var i=this;i.body.contentEditable=!1,i._except=e?utils.isArray(e)?e:[e]:[],i.lastBk||(i.lastBk=i.selection.getRange().createBookmark(!0)),i.bkqueryCommandState||(i.bkqueryCommandState=i.queryCommandState,i.queryCommandState=function(e){return-1!=utils.indexOf(i._except,e)?i.bkqueryCommandState.apply(i,arguments):-1}),t||i._bkproxyDomEvent||(i._bkproxyDomEvent=i._proxyDomEvent,i._proxyDomEvent=function(){return!1}),i.fireEvent("selectionchange"),i.fireEvent("setDisabled",i._except)},disable:function(e){return this.setDisabled(e)},_setDefaultContent:function(){function e(){var t=this;t.document.getElementById("initContent")&&(t.body.innerHTML="

          "+(ie?"":"
          ")+"

          ",t.removeListener("firstBeforeExecCommand focus",e),setTimeout(function(){t.focus(),t._selectionChange()},0))}return function(t){var i=this;i.body.innerHTML='

          '+t+"

          ",i.addListener("firstBeforeExecCommand focus",e)}}(),setShow:function(){var e=this,t=e.selection.getRange();if("none"==e.container.style.display){try{t.moveToBookmark(e.lastBk),delete e.lastBk}catch(i){t.setStartAtFirst(e.body).collapse(!0)}setTimeout(function(){t.select(!0)},100),e.container.style.display=""}},show:function(){return this.setShow()},setHide:function(){var e=this;e.lastBk||(e.lastBk=e.selection.getRange().createBookmark(!0)),e.container.style.display="none"},hide:function(){return this.setHide()},getLang:function(e){var t=UM.I18N[this.options.lang];if(!t)throw Error("not import language file");e=(e||"").split(".");for(var i,n=0;(i=e[n++])&&(t=t[i]););return t},getContentLength:function(e,t){var i=this.getContent(!1,!1,!0).length;if(e){t=(t||[]).concat(["hr","img","iframe"]),i=this.getContentTxt().replace(/[\t\r\n]+/g,"").length;for(var n,r=0;n=t[r++];)i+=this.body.getElementsByTagName(n).length}return i},addInputRule:function(e,t){e.ignoreUndo=t,this.inputRules.push(e)},filterInputRule:function(e,t){for(var i,n=0;i=this.inputRules[n++];)t&&i.ignoreUndo||i.call(this,e)},addOutputRule:function(e,t){e.ignoreUndo=t,this.outputRules.push(e)},filterOutputRule:function(e,t){for(var i,n=0;i=this.outputRules[n++];)t&&i.ignoreUndo||i.call(this,e)}},utils.inherits(a,EventBase)}();var filterWord=UM.filterWord=function(){function e(e){return/(class="?Mso|style="[^"]*\bmso\-|w:WordDocument|<(v|o):|lang=)/gi.test(e)}function t(e){return e=e.replace(/[\d.]+\w+/g,function(e){return utils.transUnitToPx(e)})}function i(e){return e.replace(/[\t\r\n]+/g," ").replace(//gi,"").replace(/]*>[\s\S]*?.<\/v:shape>/gi,function(e){if(browser.opera)return"";try{if(/Bitmap/i.test(e))return"";var i=e.match(/width:([ \d.]*p[tx])/i)[1],n=e.match(/height:([ \d.]*p[tx])/i)[1],r=e.match(/src=\s*"([^"]*)"/i)[1];return''}catch(e){return""}}).replace(/<\/?div[^>]*>/g,"").replace(/v:\w+=(["']?)[^'"]+\1/g,"").replace(/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|xml|meta|link|style|\w+:\w+)(?=[\s\/>]))[^>]*>/gi,"").replace(/

          ]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi,"

          $1

          ").replace(/\s+(class|lang|align)\s*=\s*(['"]?)([\w-]+)\2/gi,function(e,t,i,n){return"class"==t&&"MsoListParagraph"==n?e:""}).replace(/<(font|span)[^>]*>(\s*)<\/\1>/gi,function(e,t,i){return i.replace(/[\t\r\n ]+/g," ")}).replace(/(<[a-z][^>]*)\sstyle=(["'])([^\2]*?)\2/gi,function(e,i,n,r){for(var a,o=[],s=r.replace(/^\s+|\s+$/,"").replace(/'/g,"'").replace(/"/gi,"'").split(/;\s*/g),l=0;a=s[l];l++){var c,u,d=a.split(":");if(2==d.length){if(c=d[0].toLowerCase(),u=d[1].toLowerCase(),/^(background)\w*/.test(c)&&0==u.replace(/(initial|\s)/g,"").length||/^(margin)\w*/.test(c)&&/^0\w+$/.test(u))continue;switch(c){case"mso-padding-alt":case"mso-padding-top-alt":case"mso-padding-right-alt":case"mso-padding-bottom-alt":case"mso-padding-left-alt":case"mso-margin-alt":case"mso-margin-top-alt":case"mso-margin-right-alt":case"mso-margin-bottom-alt":case"mso-margin-left-alt":case"mso-height":case"mso-width":case"mso-vertical-align-alt":/1&&(e(s,c,!0),t(s,c)),i(u,s,l,c);break;case"text":n(o,s);break;case"element":r(o,s,l,c);break;case"comment":a(o,s)}return s}function n(e,t){"pre"==e.parentNode.tagName?t.push(e.data):t.push(d[e.parentNode.tagName]?utils.html(e.data):e.data.replace(/[ ]{2}/g,"  "))}function r(n,r,a,o){var s="";if(n.attrs){s=[];var l=n.attrs;for(var c in l)s.push(c+(void 0!==l[c]?'="'+(u[c]?utils.html(l[c]).replace(/["]/g,function(e){return"""}):utils.unhtml(l[c]))+'"':""));s=s.join(" ")}if(r.push("<"+n.tagName+(s?" "+s:"")+(dtd.$empty[n.tagName]?"/":"")+">"),a&&!dtd.$inlineWithA[n.tagName]&&"pre"!=n.tagName&&n.children&&n.children.length&&(o=e(r,o,!0),t(r,o)),n.children&&n.children.length)for(var d,h=0;d=n.children[h++];)a&&"element"==d.type&&!dtd.$inlineWithA[d.tagName]&&h>1&&(e(r,o),t(r,o)),i(d,r,a,o);dtd.$empty[n.tagName]||(a&&!dtd.$inlineWithA[n.tagName]&&"pre"!=n.tagName&&n.children&&n.children.length&&(o=e(r,o),t(r,o)),r.push(""))}function a(e,t){t.push("\x3c!--"+e.data+"--\x3e")}function o(e,t){var i;if("element"==e.type&&e.getAttr("id")==t)return e;if(e.children&&e.children.length)for(var n,r=0;n=e.children[r++];)if(i=o(n,t))return i}function s(e,t,i){if("element"==e.type&&e.tagName==t&&i.push(e),e.children&&e.children.length)for(var n,r=0;n=e.children[r++];)s(n,t,i)}function l(e,t){if(e.children&&e.children.length)for(var i,n=0;i=e.children[n];)l(i,t),i.parentNode&&(i.children&&i.children.length&&t(i),i.parentNode&&n++);else t(e)}var c=UM.uNode=function(e){this.type=e.type,this.data=e.data,this.tagName=e.tagName,this.parentNode=e.parentNode,this.attrs=e.attrs||{},this.children=e.children},u={href:1,src:1,_src:1,_href:1,cdata_data:1},d={style:1,script:1},h=" ",p="\n";c.createElement=function(e){return/[<>]/.test(e)?UM.htmlparser(e).children[0]:new c({type:"element",children:[],tagName:e})},c.createText=function(e,t){return new UM.uNode({type:"text",data:t?e:utils.unhtml(e||"")})},c.prototype={toHtml:function(e){var t=[];return i(this,t,e,0),t.join("")},innerHTML:function(e){if("element"!=this.type||dtd.$empty[this.tagName])return this;if(utils.isString(e)){if(this.children)for(var t,i=0;t=this.children[i++];)t.parentNode=null;this.children=[];for(var t,n=UM.htmlparser(e),i=0;t=n.children[i++];)this.children.push(t),t.parentNode=this;return this}var n=new UM.uNode({type:"root",children:this.children});return n.toHtml()},innerText:function(e,t){if("element"!=this.type||dtd.$empty[this.tagName])return this;if(e){if(this.children)for(var i,n=0;i=this.children[n++];)i.parentNode=null;return this.children=[],this.appendChild(c.createText(e,t)),this}return this.toHtml().replace(/<[^>]+>/g,"")},getData:function(){return"element"==this.type?"":this.data},firstChild:function(){return this.children?this.children[0]:null},lastChild:function(){return this.children?this.children[this.children.length-1]:null},previousSibling:function(){for(var e,t=this.parentNode,i=0;e=t.children[i];i++)if(e===this)return 0==i?null:t.children[i-1]},nextSibling:function(){for(var e,t=this.parentNode,i=0;e=t.children[i++];)if(e===this)return t.children[i]},replaceChild:function(e,t){if(this.children){e.parentNode&&e.parentNode.removeChild(e);for(var i,n=0;i=this.children[n];n++)if(i===t)return this.children.splice(n,1,e),t.parentNode=null,e.parentNode=this,e}},appendChild:function(e){if("root"==this.type||"element"==this.type&&!dtd.$empty[this.tagName]){this.children||(this.children=[]),e.parentNode&&e.parentNode.removeChild(e);for(var t,i=0;t=this.children[i];i++)if(t===e){this.children.splice(i,1);break}return this.children.push(e),e.parentNode=this,e}},insertBefore:function(e,t){if(this.children){e.parentNode&&e.parentNode.removeChild(e);for(var i,n=0;i=this.children[n];n++)if(i===t)return this.children.splice(n,0,e),e.parentNode=this,e}},insertAfter:function(e,t){if(this.children){e.parentNode&&e.parentNode.removeChild(e);for(var i,n=0;i=this.children[n];n++)if(i===t)return this.children.splice(n+1,0,e),e.parentNode=this,e}},removeChild:function(e,t){if(this.children)for(var i,n=0;i=this.children[n];n++)if(i===e){if(this.children.splice(n,1),i.parentNode=null,t&&i.children&&i.children.length)for(var r,a=0;r=i.children[a];a++)this.children.splice(n+a,0,r),r.parentNode=this;return i}},getAttr:function(e){return this.attrs&&this.attrs[e.toLowerCase()]},setAttr:function(e,t){if(!e)return void delete this.attrs;if(this.attrs||(this.attrs={}),utils.isObject(e))for(var i in e)e[i]?this.attrs[i.toLowerCase()]=e[i]:delete this.attrs[i];else t?this.attrs[e.toLowerCase()]=t:delete this.attrs[e]},hasAttr:function(e){var t=this.getAttr(e);return null!==t&&void 0!==t},getIndex:function(){for(var e,t=this.parentNode,i=0;e=t.children[i];i++)if(e===this)return i;return-1},getNodeById:function(e){var t;if(this.children&&this.children.length)for(var i,n=0;i=this.children[n++];)if(t=o(i,e))return t},getNodesByTagName:function(e){e=utils.trim(e).replace(/[ ]{2,}/g," ").split(" ");var t=[],i=this;return utils.each(e,function(e){if(i.children&&i.children.length)for(var n,r=0;n=i.children[r++];)s(n,e,t)}),t},getStyle:function(e){var t=this.getAttr("style");if(!t)return"";var i=new RegExp("(^|;)\\s*"+e+":([^;]+)","i"),n=t.match(i);return n&&n[0]?n[2]:""},setStyle:function(e,t){function i(e,t){var i=new RegExp("(^|;)\\s*"+e+":([^;]+;?)","gi");n=n.replace(i,"$1"),t&&(n=e+":"+utils.unhtml(t)+";"+n)}var n=this.getAttr("style");if(n||(n=""),utils.isObject(e))for(var r in e)i(r,e[r]);else i(e,t);this.setAttr("style",utils.trim(n))},hasClass:function(e){if(this.hasAttr("class")){var t=this.getAttr("class").split(/\s+/),i=!1;return $.each(t,function(t,n){n===e&&(i=!0)}),i}return!1},addClass:function(e){var t=null,i=!1;this.hasAttr("class")?(t=this.getAttr("class"),t=t.split(/\s+/),t.forEach(function(t){if(t===e)return void(i=!0)}),!i&&t.push(e),this.setAttr("class",t.join(" "))):this.setAttr("class",e)},removeClass:function(e){if(this.hasAttr("class")){var t=this.getAttr("class");t=t.replace(new RegExp("\\b"+e+"\\b","g"),""),this.setAttr("class",utils.trim(t).replace(/[ ]{2,}/g," "))}},traversal:function(e){return this.children&&this.children.length&&l(this,e),this}}}();var htmlparser=UM.htmlparser=function(e,t){function i(e,t){if(d[e.tagName]){var i=c.createElement(d[e.tagName]);e.appendChild(i),i.appendChild(c.createText(t)),e=i}else e.appendChild(c.createText(t))}function n(e,t,i){var r;if(r=u[t]){for(var o,s=e;"root"!=s.type;){if(utils.isArray(r)?-1!=utils.indexOf(r,s.tagName):r==s.tagName){e=s,o=!0;break}s=s.parentNode}o||(e=n(e,utils.isArray(r)?r[0]:r))}var d=new c({parentNode:e,type:"element",tagName:t.toLowerCase(),children:dtd.$empty[t]?null:[]});if(i){for(var h,p={};h=a.exec(i);)p[h[1].toLowerCase()]=l[h[1].toLowerCase()]?h[2]||h[3]||h[4]:utils.unhtml(h[2]||h[3]||h[4]);d.attrs=p}return e.children.push(d),dtd.$empty[t]?e:d}var r=/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)-->)|(?:([^\s\/>]+)\s*((?:(?:"[^"]*")|(?:'[^']*')|[^"'<>])*)\/?>))/g,a=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,o={b:1,code:1,i:1,u:1,strike:1,s:1,tt:1,strong:1,q:1,samp:1,em:1,span:1,sub:1,img:1,sup:1,font:1,big:1,small:1,iframe:1,a:1,br:1,pre:1};e=e.replace(new RegExp(domUtils.fillChar,"g"),""),t||(e=e.replace(new RegExp("[\\r\\t\\n"+(t?"":" ")+"]*]*)>[\\r\\t\\n"+(t?"":" ")+"]*","g"),function(e,i){return i&&o[i.toLowerCase()]?e.replace(/(^[\n\r]+)|([\n\r]+$)/g,""):e.replace(new RegExp("^[\\r\\n"+(t?"":" ")+"]+"),"").replace(new RegExp("[\\r\\n"+(t?"":" ")+"]+$"),"")}));for(var s,l={href:1,src:1},c=UM.uNode,u={td:"tr",tr:["tbody","thead","tfoot"],tbody:"table",th:"tr",thead:"table",tfoot:"table",caption:"table",li:["ul","ol"],dt:"dl",dd:"dl",option:"select"},d={ol:"li",ul:"li"},h=0,p=0,f=new c({type:"root",children:[]}),m=f;s=r.exec(e);){h=s.index;try{if(h>p&&i(m,e.slice(p,h)),s[3])dtd.$cdata[m.tagName]?i(m,s[0]):m=n(m,s[3].toLowerCase(),s[4]);else if(s[1]){if("root"!=m.type)if(dtd.$cdata[m.tagName]&&!dtd.$cdata[s[1]])i(m,s[0]);else{for(var g=m;"element"==m.type&&m.tagName!=s[1].toLowerCase();)if(m=m.parentNode,"root"==m.type)throw m=g,"break";m=m.parentNode}}else s[2]&&function(e,t){e.children.push(new c({type:"comment",data:t,parentNode:e}))}(m,s[2])}catch(e){}p=r.lastIndex}return p"+(browser.ie?"":"
          ")+"

          ",n.setStart(a.body.firstChild,0).collapse(!0)))),!n.collapsed&&n.deleteContents(),1==n.startContainer.nodeType){var l,c=n.startContainer.childNodes[n.startOffset];if(c&&domUtils.isBlockElm(c)&&(l=c.previousSibling)&&domUtils.isBlockElm(l)){for(n.setEnd(l,l.childNodes.length).collapse();c.firstChild;)l.appendChild(c.firstChild);domUtils.remove(c)}}}var c,u,l,d,h,p=0;for(n.inFillChar()&&(c=n.startContainer,domUtils.isFillChar(c)?(n.setStartBefore(c).collapse(!0),domUtils.remove(c)):domUtils.isFillChar(c,!0)&&(c.nodeValue=c.nodeValue.replace(fillCharReg,""),n.startOffset--,n.collapsed&&n.collapse(!0)));c=r.firstChild;){if(p){for(var f=a.document.createElement("p");c&&(3==c.nodeType||!dtd.$block[c.tagName]);)h=c.nextSibling,f.appendChild(c),c=h;f.firstChild&&(c=f)}if(n.insertNode(c),h=c.nextSibling,!p&&c.nodeType==domUtils.NODE_ELEMENT&&domUtils.isBlockElm(c)&&(u=domUtils.findParent(c,function(e){return domUtils.isBlockElm(e)}))&&"body"!=u.tagName.toLowerCase()&&(!dtd[u.tagName][c.nodeName]||c.parentNode!==u)){if(dtd[u.tagName][c.nodeName])for(d=c.parentNode;d!==u;)l=d,d=d.parentNode;else l=u;domUtils.breakParent(c,l||d);var l=c.previousSibling;domUtils.trimWhiteTextNode(l),l.childNodes.length||domUtils.remove(l),!browser.ie&&(m=c.nextSibling)&&domUtils.isBlockElm(m)&&m.lastChild&&!domUtils.isBr(m.lastChild)&&m.appendChild(a.document.createElement("br")),p=1}var m=c.nextSibling;if(!r.firstChild&&m&&domUtils.isBlockElm(m)){n.setStart(m,0).collapse(!0);break}n.setEndAfter(c).collapse()}if(c=n.startContainer,h&&domUtils.isBr(h)&&domUtils.remove(h),domUtils.isBlockElm(c)&&domUtils.isEmptyNode(c))if(h=c.nextSibling)domUtils.remove(c),1==h.nodeType&&dtd.$block[h.tagName]&&n.setStart(h,0).collapse(!0).shrinkBoundary();else try{c.innerHTML=browser.ie?domUtils.fillChar:"
          "}catch(e){n.setStartBefore(c),domUtils.remove(c)}try{if(browser.ie9below&&1==n.startContainer.nodeType&&!n.startContainer.childNodes[n.startOffset]){var g=n.startContainer,l=g.childNodes[n.startOffset-1];if(l&&1==l.nodeType&&dtd.$empty[l.tagName]){var v=this.document.createTextNode(domUtils.fillChar);n.insertNode(v).setStart(v,0).collapse(!0)}}setTimeout(function(){n.select(!0)})}catch(e){}setTimeout(function(){n=a.selection.getRange(),n.scrollIntoView(),a.fireEvent("afterinserthtml")},200)}}},UM.commands.insertimage={execCommand:function(e,t){if(t=utils.isArray(t)?t:[t],t.length){var i,n=this,r=[],a="";if(i=t[0],1==t.length)a=''+i.alt+'","center"==i.floatStyle&&(a='

          '+a+"

          "),r.push(a);else for(var o=0;i=t[o++];)a="

          ",r.push(a);n.execCommand("insertHtml",r.join(""),!0)}}},UM.plugins.justify=function(){var e=this;$.each("justifyleft justifyright justifycenter justifyfull".split(" "),function(t,i){e.commands[i]={execCommand:function(e){return this.document.execCommand(e)},queryCommandValue:function(e){var t=this.document.queryCommandValue(e);return!0===t||"true"===t?e.replace(/justify/,""):""},queryCommandState:function(e){return this.document.queryCommandState(e)?1:0}}})},UM.plugins.font=function(){var e=this,t={forecolor:"forecolor",backcolor:"backcolor",fontsize:"fontsize",fontfamily:"fontname"},i={forecolor:"color",backcolor:"background-color",fontsize:"font-size",fontfamily:"font-family"},n={forecolor:"color",fontsize:"size",fontfamily:"face"};e.setOpt({fontfamily:[{name:"songti",val:"宋体,SimSun"},{name:"yahei",val:"微软雅黑,Microsoft YaHei"},{name:"kaiti",val:"楷体,楷体_GB2312, SimKai"},{name:"heiti",val:"黑体, SimHei"},{name:"lishu",val:"隶书, SimLi"},{name:"andaleMono",val:"andale mono"},{name:"arial",val:"arial, helvetica,sans-serif"},{name:"arialBlack",val:"arial black,avant garde"},{name:"comicSansMs",val:"comic sans ms"},{name:"impact",val:"impact,chicago"},{name:"timesNewRoman",val:"times new roman"},{name:"sans-serif",val:"sans-serif"}],fontsize:[10,12,16,18,24,32,48]}),e.addOutputRule(function(e){utils.each(e.getNodesByTagName("font"),function(e){if("font"==e.tagName){var t=[];for(var i in e.attrs)switch(i){case"size":var n=e.attrs[i];$.each({10:"1",12:"2",16:"3",18:"4",24:"5",32:"6",48:"7"},function(e,t){if(t==n)return n=e,!1}),t.push("font-size:"+n+"px");break;case"color":t.push("color:"+e.attrs[i]);break;case"face":t.push("font-family:"+e.attrs[i]);break;case"style":t.push(e.attrs[i])}e.attrs={style:t.join(";")}}e.tagName="span","span"==e.parentNode.tagName&&1==e.parentNode.children.length&&($.each(e.attrs,function(t,i){e.parentNode.attrs[t]="style"==t?e.parentNode.attrs[t]+i:i}),e.parentNode.removeChild(e,!0))})});for(var r in t)!function(r){e.commands[r]={execCommand:function(e,n){if("transparent"!=n){var r=this.selection.getRange();if(!r.collapsed){if("fontsize"==e&&(n={10:"1",12:"2",16:"3",18:"4",24:"5",32:"6",48:"7"}[(n+"").replace(/px/,"")]),this.document.execCommand(t[e],!1,n),browser.gecko&&$.each(this.$body.find("a"),function(e,t){var i=t.parentNode;if(i.lastChild===i.firstChild&&/FONT|SPAN/.test(i.tagName)){var n=i.cloneNode(!1);n.innerHTML=t.innerHTML,$(t).html("").append(n).insertBefore(i),$(i).remove()}}),!browser.ie){var a=this.selection.getNative().getRangeAt(0),o=a.commonAncestorContainer,r=this.selection.getRange(),s=r.createBookmark(!0);$(o).find("a").each(function(e,t){var i=t.parentNode;if("FONT"==i.nodeName){var n=i.cloneNode(!1);n.innerHTML=t.innerHTML,$(t).html("").append(n)}}),r.moveToBookmark(s).select()}return!0}var l=$("").css(i[e],n)[0];r.insertNode(l).setStart(l,0).setCursor()}},queryCommandValue:function(t){var r=e.selection.getStart(),a=$(r).css(i[t]);return void 0===a&&(a=$(r).attr(n[t])),a?utils.fixColor(t,a).replace(/px/,""):""},queryCommandState:function(e){return this.queryCommandValue(e)}}}(r)},UM.plugins.link=function(){var e=this;e.setOpt("autourldetectinie",!1),browser.ie&&!1===this.options.autourldetectinie&&this.addListener("keyup",function(e,t){var i=this,n=t.keyCode;if(13==n||32==n){var r=i.selection.getRange(),a=r.startContainer;if(13==n){if("P"==a.nodeName){var o=a.previousSibling;if(o&&1==o.nodeType){var o=o.lastChild;o&&"A"==o.nodeName&&!o.getAttribute("_href")&&domUtils.remove(o,!0)}}}else 32==n&&3==a.nodeType&&/^\s$/.test(a.nodeValue)&&(a=a.previousSibling)&&"A"==a.nodeName&&!a.getAttribute("_href")&&domUtils.remove(a,!0)}}),this.addOutputRule(function(e){$.each(e.getNodesByTagName("a"),function(e,t){var i=t.getAttr("_href");/^(ftp|https?|\/|file)/.test(i)||(i="http://"+i),t.setAttr("href",i),t.setAttr("_href"),""==t.getAttr("title")&&t.setAttr("title")})}),this.addInputRule(function(e){$.each(e.getNodesByTagName("a"),function(e,t){t.setAttr("_href",t.getAttr("href"))})}),e.commands.link={execCommand:function(e,t){var i=this,n=i.selection.getRange();if(t._href&&(t._href=utils.unhtml(t._href,/[<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g)),t.href&&(t.href=utils.unhtml(t.href,/[<">'](?:(amp|lt|quot|gt|#39|nbsp);)?/g)),n.collapsed){var r=n.startContainer;(r=domUtils.findParentByTagName(r,"a",!0))?($(r).attr(t),n.selectNode(r).select()):n.insertNode($(""+t.href+"").attr(t)[0]).select()}else i.document.execCommand("createlink",!1,"_umeditor_link"),utils.each(domUtils.getElementsByTagName(i.body,"a",function(e){return"_umeditor_link"==e.getAttribute("href")}),function(e){"_umeditor_link"==$(e).text()&&$(e).text(t.href),domUtils.setAttributes(e,t),n.selectNode(e).select()})},queryCommandState:function(){return this.queryCommandValue("link")?1:0},queryCommandValue:function(){var e,t=this.selection.getStartElementPath();return $.each(t,function(t,i){if("A"==i.nodeName)return e=i,!1}),e}},e.commands.unlink={execCommand:function(){this.document.execCommand("unlink")}}},UM.commands.print={execCommand:function(){var e=this,t="editor_print_"+ +new Date;$('').attr("id",t).css({width:"0px",height:"0px",overflow:"hidden",float:"left",position:"absolute",top:"-10000px",left:"-10000px"}).appendTo(e.$container.find(".edui-dialog-container"));var i=window.open("",t,""),n=i.document;n.open(),n.write("
          "+this.getContent(null,null,!0)+"