-1)}var _t=Vt,qt=j,$t=et,Ut=Element.prototype,Wt=Ut.matches||Ut.webkitMatchesSelector||Ut.mozMatchesSelector||Ut.msMatchesSelector||function(e){var t=this.document||this.ownerDocument;return qt(this,$t(t.querySelectorAll(e)))>-1};function Jt(e,t){return Wt.call(e,t)}var Kt=Jt,Gt="[A-Za-z][A-Za-z0-9-]*",Xt="[a-zA-Z_:][a-zA-Z0-9:._-]*",Zt="[^\"'=<>`\\x00-\\x20]+",Qt="'[^']*'",Yt='"[^"]*"',en="(?:"+Zt+"|"+Qt+"|"+Yt+")",tn="(?:\\s*=\\s*"+en+")",nn="(?:\\s+"+Xt+tn+"?)",an="<("+Gt+")("+nn+")*\\s*/?>",ln="("+Gt+")\\s*[>]",on="(?:"+an+"|"+ln+")",rn=new RegExp("^"+on,"i"),cn=/
/i,un=/|/,sn="",dn="a";function pn(e,t,n){var a=parseInt(e.left,10),l=parseInt(e.top,10),o=parseInt(e.width,10)+parseInt(e.paddingLeft,10)+parseInt(e.paddingRight,10),r=parseInt(e.height,10)+parseInt(e.paddingTop,10)+parseInt(e.paddingBottom,10);return t>=a&&t<=a+o&&n>=l&&n<=l+r}var hn="toastui-editor-";function fn(){for(var e=[],t=0;t
<\/p>/gi,""),n=new RegExp(on,"ig"),a=t.match(n);return null===a||void 0===a||a.forEach((function(e,n){if(cn.test(e)){var l=sn;if(n){var o=a[n-1],r=o.match(an);if(r&&!/br/i.test(r[1])){var i=r[1];l=""+i+"><"+i+">"}}t=t.replace(cn,l)}})),t}var Dn=new r["e"]("widget"),An=5,Ln=function(){function e(e,t){var n=this;this.popup=null,this.removeWidget=function(){n.popup&&(n.rootEl.removeChild(n.popup),n.popup=null)},this.rootEl=e.dom.parentElement,this.eventEmitter=t,this.eventEmitter.listen("blur",this.removeWidget),this.eventEmitter.listen("loadUI",(function(){n.rootEl=On(e.dom.parentElement,"."+fn("defaultUI"))})),this.eventEmitter.listen("removePopupWidget",this.removeWidget)}return e.prototype.update=function(e){var t=Dn.getState(e.state);if(this.removeWidget(),t){var n=t.node,a=t.style,l=e.coordsAtPos(t.pos),o=l.top,r=l.left,i=l.bottom,c=i-o,u=this.rootEl.getBoundingClientRect(),s=o-u.top;R(n,{opacity:"0"}),this.rootEl.appendChild(n),R(n,{position:"absolute",left:r-u.left+An+"px",top:("bottom"===a?s+c-An:s-c)+"px",opacity:"1"}),this.popup=n,e.focus()}},e.prototype.destroy=function(){this.eventEmitter.removeEventHandler("blur",this.removeWidget)},e}();function In(e){return new r["d"]({key:Dn,state:{init:function(){return null},apply:function(e){return e.getMeta("widget")}},view:function(t){return new Ln(t,e)}})}function Rn(e){e.listen("addImageBlobHook",(function(e,t){var n=new FileReader;n.onload=function(e){var n=e.target;return t(n.result)},n.readAsDataURL(e)}))}function Bn(e,t,n){var a=function(n,a){e.emit("command","addImage",{imageUrl:n,altText:a||t.name||"image"})};e.emit("addImageBlobHook",t,a,n)}function Pn(e){var t=et(e).filter((function(e){var t=e.type;return-1!==t.indexOf("image")}));if(1===t.length){var n=t[0];if(n)return n.getAsFile()}return null}function jn(e){var t=e.eventEmitter;return new r["d"]({props:{handleDOMEvents:{drop:function(e,n){var a,l=null===(a=n.dataTransfer)||void 0===a?void 0:a.files;return l&&M(l,(function(e){return-1===e.type.indexOf("image")||(n.preventDefault(),n.stopPropagation(),Bn(t,e,n.type),!1)})),!0}}}})}var Fn=function(){function e(){}return Object.defineProperty(e.prototype,"type",{get:function(){return"node"},enumerable:!1,configurable:!0}),e.prototype.setContext=function(e){this.context=e},e}();function Hn(e){var t=document.createElement("span"),n=At(e.attrs.info,e.textContent);return t.className="tui-widget",t.appendChild(n),{dom:t}}function zn(e){return"widget"===e.type.name}var Vn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"widget"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{info:{default:null}},group:"inline",inline:!0,content:"text*",selectable:!1,atom:!0,toDOM:function(){return["span",{class:"tui-widget"},0]},parseDOM:[{tag:"span.tui-widget",getAttrs:function(e){var t=e.textContent,n=t.match(/\$\$(widget\d+)/),a=n[1];return{info:a}}}]}},enumerable:!1,configurable:!0}),t}(Fn),_n=function(){function e(e){this.timer=null,this.el=document.createElement("div"),this.el.className="toastui-editor",this.eventEmitter=e,this.placeholder={text:""}}return e.prototype.createState=function(){return r["b"].create({schema:this.schema,plugins:this.createPlugins()})},e.prototype.initEvent=function(){var e=this,t=e.eventEmitter,n=e.view,a=e.editorType;n.dom.addEventListener("focus",(function(){return t.emit("focus",a)})),n.dom.addEventListener("blur",(function(){return t.emit("blur",a)}))},e.prototype.emitChangeEvent=function(e){this.eventEmitter.emit("caretChange",this.editorType),e.docChanged&&this.eventEmitter.emit("change",this.editorType)},Object.defineProperty(e.prototype,"defaultPlugins",{get:function(){var e=this.createInputRules(),t=f(f([],this.keymaps),[Object(i["a"])(h({"Shift-Enter":c["a"].Enter},c["a"])),Object(s["a"])(),Ft(this.placeholder),In(this.eventEmitter),jn(this.context)]);return e?t.concat(e):t},enumerable:!1,configurable:!0}),e.prototype.createInputRules=function(){var e=Lt(),t=e.map((function(e){var t=e.rule;return new u["a"](t,(function(e,n,a,l){var o=e.schema,r=e.tr,i=e.doc,c=n.input.match(new RegExp(t,"g")),u=i.resolve(a),s=u.parent,d=0;if(zn(s)&&(s=u.node(u.depth-1)),s.forEach((function(e){return zn(e)&&(d+=1)})),c.length>d){var p=_e(c),h=Bt(p,o);return r.replaceWith(l-p.length+1,l,h)}return null}))}));return t.length?Object(u["b"])({rules:t}):null},e.prototype.clearTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},e.prototype.createSchema=function(){return new a["i"]({nodes:this.specs.nodes,marks:this.specs.marks})},e.prototype.createKeymaps=function(e){var t=jt(),n=t.undo,a=t.redo,l=this.specs.keymaps(e),o={"Mod-z":n(),"Shift-Mod-z":a()};return e?l.concat(Object(i["a"])(o)):l},e.prototype.createCommands=function(){return this.specs.commands(this.view)},e.prototype.createPluginProps=function(){var e=this;return this.extraPlugins.map((function(t){return t(e.eventEmitter)}))},e.prototype.focus=function(){var e=this;this.clearTimer(),this.timer=setTimeout((function(){e.view.focus(),e.view.dispatch(e.view.state.tr.scrollIntoView())}))},e.prototype.blur=function(){this.view.dom.blur()},e.prototype.destroy=function(){var e=this;this.clearTimer(),this.view.destroy(),Object.keys(this).forEach((function(t){delete e[t]}))},e.prototype.moveCursorToStart=function(e){var t=this.view.state.tr;this.view.dispatch(t.setSelection(at(t,1)).scrollIntoView()),e&&this.focus()},e.prototype.moveCursorToEnd=function(e){var t=this.view.state.tr;this.view.dispatch(t.setSelection(at(t,t.doc.content.size-1)).scrollIntoView()),e&&this.focus()},e.prototype.setScrollTop=function(e){this.view.dom.scrollTop=e},e.prototype.getScrollTop=function(){return this.view.dom.scrollTop},e.prototype.setPlaceholder=function(e){this.placeholder.text=e,this.view.dispatch(this.view.state.tr.scrollIntoView())},e.prototype.setHeight=function(e){R(this.el,{height:e+"px"})},e.prototype.setMinHeight=function(e){R(this.el,{minHeight:e+"px"})},e.prototype.getElement=function(){return this.el},e}();function qn(e){return e instanceof Function}var $n=qn,Un=["Enter","Shift-Enter","Mod-Enter","Tab","Shift-Tab","Delete","Backspace","Mod-Delete","Mod-Backspace","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Mod-d","Mod-D","Alt-ArrowUp","Alt-ArrowDown"];function Wn(e,t,n){return e.focus(),t(n)(e.state,e.dispatch,e)}var Jn=function(){function e(e){this.specs=e}return Object.defineProperty(e.prototype,"nodes",{get:function(){return this.specs.filter((function(e){return"node"===e.type})).reduce((function(e,t){var n,a=t.name,l=t.schema;return h(h({},e),(n={},n[a]=l,n))}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"marks",{get:function(){return this.specs.filter((function(e){return"mark"===e.type})).reduce((function(e,t){var n,a=t.name,l=t.schema;return h(h({},e),(n={},n[a]=l,n))}),{})},enumerable:!1,configurable:!0}),e.prototype.commands=function(e,t){var n=this.specs.filter((function(e){var t=e.commands;return t})).reduce((function(t,n){var a={},l=n.commands();return $n(l)?a[n.name]=function(t){return Wn(e,l,t)}:Object.keys(l).forEach((function(t){a[t]=function(n){return Wn(e,l[t],n)}})),h(h({},t),a)}),{}),a=jt();return Object.keys(a).forEach((function(t){n[t]=function(n){return Wn(e,a[t],n)}})),t&&Object.keys(t).forEach((function(a){n[a]=function(n){return Wn(e,t[a],n)}})),n},e.prototype.keymaps=function(e){var t=this.specs.filter((function(e){return e.keymaps})).map((function(e){return e.keymaps()}));return t.map((function(t){return e||Object.keys(t).forEach((function(e){Ae(Un,e)||delete t[e]})),Object(i["a"])(t)}))},e.prototype.setContext=function(e){this.specs.forEach((function(t){t.setContext(e)}))},e}();function Kn(e){var t=e.from,n=e.to;return e instanceof r["a"]?[t+1,n-1]:[t,n]}function Gn(e){return e.index(0)+1}function Xn(e,t,n){void 0===n&&(n=1);var a=0;return e.forEach((function(e,l){zn(e)&&l+2 ?/,el=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"blockQuote"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:mn("block-quote")},0]}}},enumerable:!1,configurable:!0}),t.prototype.createBlockQuoteText=function(e,t){return t?e.replace(Ya,"").trim():"> "+e.trim()},t.prototype.extendBlockQuote=function(){var e=this;return function(t,n){var a=t.selection,l=t.doc,o=t.tr,r=t.schema,i=ea(a),c=i.endFromOffset,u=i.endToOffset,s=i.endIndex,d=i.to,p=Qa(l,s),h=Ya.test(p);if(h&&d>c&&a.empty){var f=!p.replace(Ya,"").trim();if(f)o.deleteRange(c,u).split(o.mapping.map(u));else{var m=p.slice(d-c).trim(),v=nt(r,e.createBlockQuoteText(m));rt(o,u,m,v)}return n(o),!0}return!1}},t.prototype.commands=function(){var e=this;return function(){return function(t,n){var a=t.selection,l=t.doc,o=ea(a),r=o.startFromOffset,i=o.endToOffset,c=o.startIndex,u=o.endIndex,s=Ya.test(Qa(l,c)),d=ot({state:t,startIndex:c,endIndex:u,from:r,createText:function(t){return e.createBlockQuoteText(t,s)}});return n(d.setSelection(at(d,d.mapping.map(i)))),!0}}},t.prototype.keymaps=function(){var e=this.commands()();return{"alt-q":e,"alt-Q":e,Enter:this.extendBlockQuote()}},t}(Xa),tl=/(^\s*)([-*+] |[\d]+\. )/,nl=/(^\s*)([\d])+\.( \[[ xX]])? /,al=/^(\s*)((\d+)([.)]\s(?:\[(?:x|\s)\]\s)?))(.*)/,ll=/(^\s*)([-*+]|[\d]+\.)( \[[ xX]])? /,ol=/^(\s*)([-*+]+(\s(?:\[(?:x|\s)\]\s)?))(.*)/,rl=/(^\s*)([-*+] |[\d]+\. )(\[[ xX]] )/,il=/(^\s*)([-*+])( \[[ xX]]) /;function cl(e){return nl.test(e)?"ordered":"bullet"}function ul(e){var t=0;while(e&&"document"!==e.type)"list"===e.type&&(t+=1),e=e.parent;return t}function sl(e,t,n,a){var l=e.getLineTexts(),o=l.length,r=[],i=t;while(a?i1){i=a?i+1:i-1;var c=e.findFirstNodeAtLine(i),u=ul(c);if(u===n)r.push({line:i,depth:n,mdNode:c});else if(u0;u-=1){var s=t.findFirstNodeAtLine(u),d=Za(n,u),p=d&&!!yt(s,(function(e){return ft(e)})),h=al.exec(Za(n,u));if(!h&&!p)break;if(h||!p){var f=h,m=f[1],v=f[3];if(!m){r=Number(v),i=u;break}}else c+=1}var b=r+a-i-c,g=[{text:b+". "+o,line:a}];return{changedResults:g}},task:function(e){var t=e.doc,n=e.line,a=Za(t,n),l=[{text:"* [ ] "+a,line:n}];return{changedResults:l}}},gl={bullet:function(e){var t=e.line,n=e.doc,a=Za(n,t),l=ol.exec(a),o=l[1],r=l[2];return{listSyntax:""+o+r}},ordered:function(e){var t=e.toastMark,n=e.line,a=e.mdNode,l=e.doc,o=ul(a),r=Za(l,n),i=al.exec(r),c=i[1],u=i[3],s=i[4],d=Number(u)+1,p=""+c+d+s,f=sl(t,n,o,!0),m=f.filter((function(e){var t=al.exec(Za(l,e.line));return t&&t[1].length===c.length&&!!yt(e.mdNode,(function(e){return mt(e)}))}));return h({listSyntax:p},fl(l,m,"ordered",d))}};function yl(e,t,n,a,l){var o=[],r=Za(e,n),i=al.exec(r);while(i){var c=i[1],u=i[4],s=i[5],d=c.length;if(d===l)o.push(nt(t,""+c+a+u+s)),a+=1,n+=1;else if(d>l){var p=yl(e,t,n,1,d);n=p.line,o=o.concat(p.nodes)}if(de.childCount)break;r=Za(e,n),i=al.exec(r)}return{nodes:o,line:n}}var wl=/(^\s{1,4})(.*)/;function kl(e,t,n){return e0){var s=a.child(u-1),d=s.nodeSize,p=s.textContent;return n.delete(i-d,i).split(n.mapping.map(c)).insert(n.mapping.map(c),nt(o,p)),t(n),!0}return!1}},t.prototype.commands=function(){return{indent:this.indent(),outdent:this.outdent()}},t.prototype.keymaps=function(){return{Tab:this.indent(!0)(),"Shift-Tab":this.outdent(!0)(),"Mod-d":this.deleteLines(),"Mod-D":this.deleteLines(),"Alt-ArrowUp":this.moveUp(),"Alt-ArrowDown":this.moveDown()}},t}(Fn),Ml=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"text"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{group:"inline"}},enumerable:!1,configurable:!0}),t}(Fn),Ol=/^#{1,6}\s/,Sl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"heading"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:{level:{default:1},seText:{default:!1}},toDOM:function(e){var t=e.attrs,n=t.level,a=t.seText,l="heading|heading"+n;return a&&(l+="|delimiter|setext"),["span",{class:mn.apply(void 0,l.split("|"))},0]}}},enumerable:!1,configurable:!0}),t.prototype.createHeadingText=function(e,t,n){var a=t.replace(n,"").trim(),l="";while(e>0)l+="#",e-=1;return l+" "+a},t.prototype.commands=function(){var e=this;return function(t){return function(n,a){var l=t.level,o=ea(n.selection),r=o.startFromOffset,i=o.endToOffset,c=o.startIndex,u=o.endIndex,s=ot({state:n,from:r,startIndex:c,endIndex:u,createText:function(t){var n=t.match(Ol),a=n?n[0]:"";return e.createHeadingText(l,t,a)}});return a(s.setSelection(at(s,s.mapping.map(i)))),!0}}},t}(Xa),El="```",Nl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"codeBlock"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{toDOM:function(){return["span",{class:mn("code-block")},0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){var n=e.selection,a=e.schema,l=e.tr,o=ea(n),r=o.startFromOffset,i=o.endToOffset,c=nt(a,El);return l.insert(r,c).split(r+El.length),l.split(l.mapping.map(i)).insert(l.mapping.map(i),c),t(l.setSelection(at(l,l.mapping.map(i)-(El.length+2)))),!0}}},t.prototype.keepIndentation=function(){var e=this;return function(t,n){var a=t.selection,l=t.tr,o=t.doc,r=t.schema,i=e.context.toastMark,c=ea(a),u=c.startFromOffset,s=c.endToOffset,d=c.endIndex,p=c.from,h=c.to,f=Qa(o,d);if(p===h&&f.trim()){var m=f.match(/^\s+/),v=i.findFirstNodeAtLine(d+1);if(ht(v)&&m){var b=m[0],g=f.slice(h-u),y=nt(r,b+g);return rt(l,s,g,y),n(l),!0}}return!1}},t.prototype.keymaps=function(){var e=this.commands()();return{"Shift-Mod-p":e,"Shift-Mod-P":e,Enter:this.keepIndentation()}},t}(Xa),Dl=/\||\s/g;function Al(e){return[Il(e),Il(e,!0)]}function Ll(e,t){for(var n=[],a=0;a0&&(t+="\n")})),t},t.prototype.setSelection=function(e,t){void 0===t&&(t=e);var n=this.view.state.tr,a=Yn(n.doc,e,t),l=a[0],o=a[1];this.view.dispatch(n.setSelection(at(n,l,o)).scrollIntoView())},t.prototype.replaceSelection=function(e,t,n){var l,o=this.view.state,r=o.tr,i=o.schema,c=o.doc,u=e.split(ho),s=u.map((function(e){return tt(i,Bt(e,i))})),d=new a["j"](a["c"].from(s),1,1);if(this.focus(),t&&n){var p=Yn(c,t,n),h=p[0],f=p[1];l=r.replaceRange(h,f,d)}else l=r.replaceSelection(d);this.view.dispatch(l.scrollIntoView())},t.prototype.deleteSelection=function(e,t){var n,a=this.view.state,l=a.tr,o=a.doc;if(e&&t){var r=Yn(o,e,t),i=r[0],c=r[1];n=l.deleteRange(i,c)}else n=l.deleteSelection();this.view.dispatch(n.scrollIntoView())},t.prototype.getSelectedText=function(e,t){var n=this.view.state,a=n.doc,l=n.selection,o=l.from,r=l.to;if(e&&t){var i=Yn(a,e,t);o=i[0],r=i[1]}return a.textBetween(o,r,"\n")},t.prototype.getSelection=function(){var e=this.view.state.selection,t=e.from,n=e.to;return Zn(this.view.state.tr.doc,t,n)},t.prototype.setMarkdown=function(e,t){void 0===t&&(t=!0);var n=e.split(ho),a=this.view.state,l=a.tr,o=a.doc,r=a.schema,i=n.map((function(e){return tt(r,Bt(e,r))}));this.view.dispatch(l.replaceWith(0,o.content.size,i)),t&&this.moveCursorToEnd(!0)},t.prototype.addWidget=function(e,t,n){var a=this.view.state,l=a.tr,o=a.doc,r=a.selection,i=n?Yn(o,n,n)[0]:r.to;this.view.dispatch(l.setMeta("widget",{pos:i,node:e,style:t}))},t.prototype.replaceWithWidget=function(e,t,n){var a=this.view.state,l=a.tr,o=a.schema,r=a.doc,i=Yn(r,e,t),c=Bt(n,o);this.view.dispatch(l.replaceWith(i[0],i[1],c))},t.prototype.getRangeInfoOfNode=function(e){var t=this.view.state,n=t.doc,a=t.selection,l=e||Zn(n,a.from)[0],o=this.toastMark.findNodeAtPosition(l);return"text"===o.type&&"paragraph"!==o.parent.type&&(o=o.parent),o.sourcepos[1][1]+=1,{range:o.sourcepos,type:o.type}},t.prototype.getMarkdown=function(){return this.toastMark.getLineTexts().map((function(e){return Nt(e)})).join("\n")},t.prototype.getToastMark=function(){return this.toastMark},t}(_n),mo="_feEventKey";function vo(e,t){var n,a=e[mo];return a||(a=e[mo]={}),n=a[t],n||(n=a[t]=[]),n}var bo=vo,go=k,yo=D,wo=bo;function ko(e,t,n){go(t)?yo(t.split(/\s+/g),(function(t){xo(e,t,n)})):yo(t,(function(t,n){xo(e,n,t)}))}function xo(e,t,n){var a,l=wo(e,t);n?(yo(l,(function(l,o){return n!==l.handler||(Co(e,t,l.wrappedHandler),a=o,!1)})),l.splice(a,1)):(yo(l,(function(n){Co(e,t,n.wrappedHandler)})),l.splice(0,l.length))}function Co(e,t,n){"removeEventListener"in e?e.removeEventListener(t,n):"detachEvent"in e&&e.detachEvent("on"+t,n)}var To=ko,Mo=k,Oo=D,So=bo;function Eo(e,t,n,a){Mo(t)?Oo(t.split(/\s+/g),(function(t){No(e,t,n,a)})):Oo(t,(function(t,a){No(e,a,t,n)}))}function No(e,t,n,a){function l(t){n.call(a||e,t||window.event)}"addEventListener"in e?e.addEventListener(t,l):"attachEvent"in e&&e.attachEvent("on"+t,l),Do(e,t,n,l)}function Do(e,t,n,a){var l=So(e,t),o=!1;Oo(l,(function(e){return e.handler!==n||(o=!0,!1)})),o||l.push({handler:n,wrappedHandler:a})}var Ao=Eo,Lo=function(e,t){return Lo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Lo(e,t)};
-/*! *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-***************************************************************************** */function Io(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Lo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ro=function(){return Ro=Object.assign||function(e){for(var t,n=1,a=arguments.length;n=55296&&o<=57343){if(o>=55296&&o<=56319&&a+1=56320&&r<=57343)){c+=encodeURIComponent(e[a]+e[a+1]),a++;continue}c+="%EF%BF%BD"}else c+=encodeURIComponent(e[a]);return c}Ho.defaultChars=";/?:@&=+$,-_.!~*'()#",Ho.componentChars="-_.!~*'()";var zo=Ho,Vo={},_o={},qo="Á",$o="á",Uo="Ă",Wo="ă",Jo="∾",Ko="∿",Go="∾̳",Xo="Â",Zo="â",Qo="´",Yo="А",er="а",tr="Æ",nr="æ",ar="",lr="𝔄",or="𝔞",rr="À",ir="à",cr="ℵ",ur="ℵ",sr="Α",dr="α",pr="Ā",hr="ā",fr="⨿",mr="&",vr="&",br="⩕",gr="⩓",yr="∧",wr="⩜",kr="⩘",xr="⩚",Cr="∠",Tr="⦤",Mr="∠",Or="⦨",Sr="⦩",Er="⦪",Nr="⦫",Dr="⦬",Ar="⦭",Lr="⦮",Ir="⦯",Rr="∡",Br="∟",Pr="⊾",jr="⦝",Fr="∢",Hr="Å",zr="⍼",Vr="Ą",_r="ą",qr="𝔸",$r="𝕒",Ur="⩯",Wr="≈",Jr="⩰",Kr="≊",Gr="≋",Xr="'",Zr="",Qr="≈",Yr="≊",ei="Å",ti="å",ni="𝒜",ai="𝒶",li="≔",oi="*",ri="≈",ii="≍",ci="Ã",ui="ã",si="Ä",di="ä",pi="∳",hi="⨑",fi="≌",mi="϶",vi="‵",bi="∽",gi="⋍",yi="∖",wi="⫧",ki="⊽",xi="⌅",Ci="⌆",Ti="⌅",Mi="⎵",Oi="⎶",Si="≌",Ei="Б",Ni="б",Di="„",Ai="∵",Li="∵",Ii="∵",Ri="⦰",Bi="϶",Pi="ℬ",ji="ℬ",Fi="Β",Hi="β",zi="ℶ",Vi="≬",_i="𝔅",qi="𝔟",$i="⋂",Ui="◯",Wi="⋃",Ji="⨀",Ki="⨁",Gi="⨂",Xi="⨆",Zi="★",Qi="▽",Yi="△",ec="⨄",tc="⋁",nc="⋀",ac="⤍",lc="⧫",oc="▪",rc="▴",ic="▾",cc="◂",uc="▸",sc="␣",dc="▒",pc="░",hc="▓",fc="█",mc="=⃥",vc="≡⃥",bc="⫭",gc="⌐",yc="𝔹",wc="𝕓",kc="⊥",xc="⊥",Cc="⋈",Tc="⧉",Mc="┐",Oc="╕",Sc="╖",Ec="╗",Nc="┌",Dc="╒",Ac="╓",Lc="╔",Ic="─",Rc="═",Bc="┬",Pc="╤",jc="╥",Fc="╦",Hc="┴",zc="╧",Vc="╨",_c="╩",qc="⊟",$c="⊞",Uc="⊠",Wc="┘",Jc="╛",Kc="╜",Gc="╝",Xc="└",Zc="╘",Qc="╙",Yc="╚",eu="│",tu="║",nu="┼",au="╪",lu="╫",ou="╬",ru="┤",iu="╡",cu="╢",uu="╣",su="├",du="╞",pu="╟",hu="╠",fu="‵",mu="˘",vu="˘",bu="¦",gu="𝒷",yu="ℬ",wu="⁏",ku="∽",xu="⋍",Cu="⧅",Tu="\\",Mu="⟈",Ou="•",Su="•",Eu="≎",Nu="⪮",Du="≏",Au="≎",Lu="≏",Iu="Ć",Ru="ć",Bu="⩄",Pu="⩉",ju="⩋",Fu="∩",Hu="⋒",zu="⩇",Vu="⩀",_u="ⅅ",qu="∩︀",$u="⁁",Uu="ˇ",Wu="ℭ",Ju="⩍",Ku="Č",Gu="č",Xu="Ç",Zu="ç",Qu="Ĉ",Yu="ĉ",es="∰",ts="⩌",ns="⩐",as="Ċ",ls="ċ",os="¸",rs="¸",is="⦲",cs="¢",us="·",ss="·",ds="𝔠",ps="ℭ",hs="Ч",fs="ч",ms="✓",vs="✓",bs="Χ",gs="χ",ys="ˆ",ws="≗",ks="↺",xs="↻",Cs="⊛",Ts="⊚",Ms="⊝",Os="⊙",Ss="®",Es="Ⓢ",Ns="⊖",Ds="⊕",As="⊗",Ls="○",Is="⧃",Rs="≗",Bs="⨐",Ps="⫯",js="⧂",Fs="∲",Hs="”",zs="’",Vs="♣",_s="♣",qs=":",$s="∷",Us="⩴",Ws="≔",Js="≔",Ks=",",Gs="@",Xs="∁",Zs="∘",Qs="∁",Ys="ℂ",ed="≅",td="⩭",nd="≡",ad="∮",ld="∯",od="∮",rd="𝕔",id="ℂ",cd="∐",ud="∐",sd="©",dd="©",pd="℗",hd="∳",fd="↵",md="✗",vd="⨯",bd="𝒞",gd="𝒸",yd="⫏",wd="⫑",kd="⫐",xd="⫒",Cd="⋯",Td="⤸",Md="⤵",Od="⋞",Sd="⋟",Ed="↶",Nd="⤽",Dd="⩈",Ad="⩆",Ld="≍",Id="∪",Rd="⋓",Bd="⩊",Pd="⊍",jd="⩅",Fd="∪︀",Hd="↷",zd="⤼",Vd="⋞",_d="⋟",qd="⋎",$d="⋏",Ud="¤",Wd="↶",Jd="↷",Kd="⋎",Gd="⋏",Xd="∲",Zd="∱",Qd="⌭",Yd="†",ep="‡",tp="ℸ",np="↓",ap="↡",lp="⇓",op="‐",rp="⫤",ip="⊣",cp="⤏",up="˝",sp="Ď",dp="ď",pp="Д",hp="д",fp="‡",mp="⇊",vp="ⅅ",bp="ⅆ",gp="⤑",yp="⩷",wp="°",kp="∇",xp="Δ",Cp="δ",Tp="⦱",Mp="⥿",Op="𝔇",Sp="𝔡",Ep="⥥",Np="⇃",Dp="⇂",Ap="´",Lp="˙",Ip="˝",Rp="`",Bp="˜",Pp="⋄",jp="⋄",Fp="⋄",Hp="♦",zp="♦",Vp="¨",_p="ⅆ",qp="ϝ",$p="⋲",Up="÷",Wp="÷",Jp="⋇",Kp="⋇",Gp="Ђ",Xp="ђ",Zp="⌞",Qp="⌍",Yp="$",eh="𝔻",th="𝕕",nh="¨",ah="˙",lh="⃜",oh="≐",rh="≑",ih="≐",ch="∸",uh="∔",sh="⊡",dh="⌆",ph="∯",hh="¨",fh="⇓",mh="⇐",vh="⇔",bh="⫤",gh="⟸",yh="⟺",wh="⟹",kh="⇒",xh="⊨",Ch="⇑",Th="⇕",Mh="∥",Oh="⤓",Sh="↓",Eh="↓",Nh="⇓",Dh="⇵",Ah="̑",Lh="⇊",Ih="⇃",Rh="⇂",Bh="⥐",Ph="⥞",jh="⥖",Fh="↽",Hh="⥟",zh="⥗",Vh="⇁",_h="↧",qh="⊤",$h="⤐",Uh="⌟",Wh="⌌",Jh="𝒟",Kh="𝒹",Gh="Ѕ",Xh="ѕ",Zh="⧶",Qh="Đ",Yh="đ",ef="⋱",tf="▿",nf="▾",af="⇵",lf="⥯",of="⦦",rf="Џ",cf="џ",uf="⟿",sf="É",df="é",pf="⩮",hf="Ě",ff="ě",mf="Ê",vf="ê",bf="≖",gf="≕",yf="Э",wf="э",kf="⩷",xf="Ė",Cf="ė",Tf="≑",Mf="ⅇ",Of="≒",Sf="𝔈",Ef="𝔢",Nf="⪚",Df="È",Af="è",Lf="⪖",If="⪘",Rf="⪙",Bf="∈",Pf="⏧",jf="ℓ",Ff="⪕",Hf="⪗",zf="Ē",Vf="ē",_f="∅",qf="∅",$f="◻",Uf="∅",Wf="▫",Jf=" ",Kf=" ",Gf=" ",Xf="Ŋ",Zf="ŋ",Qf=" ",Yf="Ę",em="ę",tm="𝔼",nm="𝕖",am="⋕",lm="⧣",om="⩱",rm="ε",im="Ε",cm="ε",um="ϵ",sm="≖",dm="≕",pm="≂",hm="⪖",fm="⪕",mm="⩵",vm="=",bm="≂",gm="≟",ym="⇌",wm="≡",km="⩸",xm="⧥",Cm="⥱",Tm="≓",Mm="ℯ",Om="ℰ",Sm="≐",Em="⩳",Nm="≂",Dm="Η",Am="η",Lm="Ð",Im="ð",Rm="Ë",Bm="ë",Pm="€",jm="!",Fm="∃",Hm="∃",zm="ℰ",Vm="ⅇ",_m="ⅇ",qm="≒",$m="Ф",Um="ф",Wm="♀",Jm="ffi",Km="ff",Gm="ffl",Xm="𝔉",Zm="𝔣",Qm="fi",Ym="◼",ev="▪",tv="fj",nv="♭",av="fl",lv="▱",ov="ƒ",rv="𝔽",iv="𝕗",cv="∀",uv="∀",sv="⋔",dv="⫙",pv="ℱ",hv="⨍",fv="½",mv="⅓",vv="¼",bv="⅕",gv="⅙",yv="⅛",wv="⅔",kv="⅖",xv="¾",Cv="⅗",Tv="⅜",Mv="⅘",Ov="⅚",Sv="⅝",Ev="⅞",Nv="⁄",Dv="⌢",Av="𝒻",Lv="ℱ",Iv="ǵ",Rv="Γ",Bv="γ",Pv="Ϝ",jv="ϝ",Fv="⪆",Hv="Ğ",zv="ğ",Vv="Ģ",_v="Ĝ",qv="ĝ",$v="Г",Uv="г",Wv="Ġ",Jv="ġ",Kv="≥",Gv="≧",Xv="⪌",Zv="⋛",Qv="≥",Yv="≧",eb="⩾",tb="⪩",nb="⩾",ab="⪀",lb="⪂",ob="⪄",rb="⋛︀",ib="⪔",cb="𝔊",ub="𝔤",sb="≫",db="⋙",pb="⋙",hb="ℷ",fb="Ѓ",mb="ѓ",vb="⪥",bb="≷",gb="⪒",yb="⪤",wb="⪊",kb="⪊",xb="⪈",Cb="≩",Tb="⪈",Mb="≩",Ob="⋧",Sb="𝔾",Eb="𝕘",Nb="`",Db="≥",Ab="⋛",Lb="≧",Ib="⪢",Rb="≷",Bb="⩾",Pb="≳",jb="𝒢",Fb="ℊ",Hb="≳",zb="⪎",Vb="⪐",_b="⪧",qb="⩺",$b=">",Ub=">",Wb="≫",Jb="⋗",Kb="⦕",Gb="⩼",Xb="⪆",Zb="⥸",Qb="⋗",Yb="⋛",eg="⪌",tg="≷",ng="≳",ag="≩︀",lg="≩︀",og="ˇ",rg=" ",ig="½",cg="ℋ",ug="Ъ",sg="ъ",dg="⥈",pg="↔",hg="⇔",fg="↭",mg="^",vg="ℏ",bg="Ĥ",gg="ĥ",yg="♥",wg="♥",kg="…",xg="⊹",Cg="𝔥",Tg="ℌ",Mg="ℋ",Og="⤥",Sg="⤦",Eg="⇿",Ng="∻",Dg="↩",Ag="↪",Lg="𝕙",Ig="ℍ",Rg="―",Bg="─",Pg="𝒽",jg="ℋ",Fg="ℏ",Hg="Ħ",zg="ħ",Vg="≎",_g="≏",qg="⁃",$g="‐",Ug="Í",Wg="í",Jg="",Kg="Î",Gg="î",Xg="И",Zg="и",Qg="İ",Yg="Е",ey="е",ty="¡",ny="⇔",ay="𝔦",ly="ℑ",oy="Ì",ry="ì",iy="ⅈ",cy="⨌",uy="∭",sy="⧜",dy="℩",py="IJ",hy="ij",fy="Ī",my="ī",vy="ℑ",by="ⅈ",gy="ℐ",yy="ℑ",wy="ı",ky="ℑ",xy="⊷",Cy="Ƶ",Ty="⇒",My="℅",Oy="∞",Sy="⧝",Ey="ı",Ny="⊺",Dy="∫",Ay="∬",Ly="ℤ",Iy="∫",Ry="⊺",By="⋂",Py="⨗",jy="⨼",Fy="",Hy="",zy="Ё",Vy="ё",_y="Į",qy="į",$y="𝕀",Uy="𝕚",Wy="Ι",Jy="ι",Ky="⨼",Gy="¿",Xy="𝒾",Zy="ℐ",Qy="∈",Yy="⋵",ew="⋹",tw="⋴",nw="⋳",aw="∈",lw="",ow="Ĩ",rw="ĩ",iw="І",cw="і",uw="Ï",sw="ï",dw="Ĵ",pw="ĵ",hw="Й",fw="й",mw="𝔍",vw="𝔧",bw="ȷ",gw="𝕁",yw="𝕛",ww="𝒥",kw="𝒿",xw="Ј",Cw="ј",Tw="Є",Mw="є",Ow="Κ",Sw="κ",Ew="ϰ",Nw="Ķ",Dw="ķ",Aw="К",Lw="к",Iw="𝔎",Rw="𝔨",Bw="ĸ",Pw="Х",jw="х",Fw="Ќ",Hw="ќ",zw="𝕂",Vw="𝕜",_w="𝒦",qw="𝓀",$w="⇚",Uw="Ĺ",Ww="ĺ",Jw="⦴",Kw="ℒ",Gw="Λ",Xw="λ",Zw="⟨",Qw="⟪",Yw="⦑",ek="⟨",tk="⪅",nk="ℒ",ak="«",lk="⇤",ok="⤟",rk="←",ik="↞",ck="⇐",uk="⤝",sk="↩",dk="↫",pk="⤹",hk="⥳",fk="↢",mk="⤙",vk="⤛",bk="⪫",gk="⪭",yk="⪭︀",wk="⤌",kk="⤎",xk="❲",Ck="{",Tk="[",Mk="⦋",Ok="⦏",Sk="⦍",Ek="Ľ",Nk="ľ",Dk="Ļ",Ak="ļ",Lk="⌈",Ik="{",Rk="Л",Bk="л",Pk="⤶",jk="“",Fk="„",Hk="⥧",zk="⥋",Vk="↲",_k="≤",qk="≦",$k="⟨",Uk="⇤",Wk="←",Jk="←",Kk="⇐",Gk="⇆",Xk="↢",Zk="⌈",Qk="⟦",Yk="⥡",ex="⥙",tx="⇃",nx="⌊",ax="↽",lx="↼",ox="⇇",rx="↔",ix="↔",cx="⇔",ux="⇆",sx="⇋",dx="↭",px="⥎",hx="↤",fx="⊣",mx="⥚",vx="⋋",bx="⧏",gx="⊲",yx="⊴",wx="⥑",kx="⥠",xx="⥘",Cx="↿",Tx="⥒",Mx="↼",Ox="⪋",Sx="⋚",Ex="≤",Nx="≦",Dx="⩽",Ax="⪨",Lx="⩽",Ix="⩿",Rx="⪁",Bx="⪃",Px="⋚︀",jx="⪓",Fx="⪅",Hx="⋖",zx="⋚",Vx="⪋",_x="⋚",qx="≦",$x="≶",Ux="≶",Wx="⪡",Jx="≲",Kx="⩽",Gx="≲",Xx="⥼",Zx="⌊",Qx="𝔏",Yx="𝔩",eC="≶",tC="⪑",nC="⥢",aC="↽",lC="↼",oC="⥪",rC="▄",iC="Љ",cC="љ",uC="⇇",sC="≪",dC="⋘",pC="⌞",hC="⇚",fC="⥫",mC="◺",vC="Ŀ",bC="ŀ",gC="⎰",yC="⎰",wC="⪉",kC="⪉",xC="⪇",CC="≨",TC="⪇",MC="≨",OC="⋦",SC="⟬",EC="⇽",NC="⟦",DC="⟵",AC="⟵",LC="⟸",IC="⟷",RC="⟷",BC="⟺",PC="⟼",jC="⟶",FC="⟶",HC="⟹",zC="↫",VC="↬",_C="⦅",qC="𝕃",$C="𝕝",UC="⨭",WC="⨴",JC="∗",KC="_",GC="↙",XC="↘",ZC="◊",QC="◊",YC="⧫",eT="(",tT="⦓",nT="⇆",aT="⌟",lT="⇋",oT="⥭",rT="",iT="⊿",cT="‹",uT="𝓁",sT="ℒ",dT="↰",pT="↰",hT="≲",fT="⪍",mT="⪏",vT="[",bT="‘",gT="‚",yT="Ł",wT="ł",kT="⪦",xT="⩹",CT="<",TT="<",MT="≪",OT="⋖",ST="⋋",ET="⋉",NT="⥶",DT="⩻",AT="◃",LT="⊴",IT="◂",RT="⦖",BT="⥊",PT="⥦",jT="≨︀",FT="≨︀",HT="¯",zT="♂",VT="✠",_T="✠",qT="↦",$T="↦",UT="↧",WT="↤",JT="↥",KT="▮",GT="⨩",XT="М",ZT="м",QT="—",YT="∺",eM="∡",tM=" ",nM="ℳ",aM="𝔐",lM="𝔪",oM="℧",rM="µ",iM="*",cM="⫰",uM="∣",sM="·",dM="⊟",pM="−",hM="∸",fM="⨪",mM="∓",vM="⫛",bM="…",gM="∓",yM="⊧",wM="𝕄",kM="𝕞",xM="∓",CM="𝓂",TM="ℳ",MM="∾",OM="Μ",SM="μ",EM="⊸",NM="⊸",DM="∇",AM="Ń",LM="ń",IM="∠⃒",RM="≉",BM="⩰̸",PM="≋̸",jM="ʼn",FM="≉",HM="♮",zM="ℕ",VM="♮",_M=" ",qM="≎̸",$M="≏̸",UM="⩃",WM="Ň",JM="ň",KM="Ņ",GM="ņ",XM="≇",ZM="⩭̸",QM="⩂",YM="Н",eO="н",tO="–",nO="⤤",aO="↗",lO="⇗",oO="↗",rO="≠",iO="≐̸",cO="",uO="",sO="",dO="",pO="≢",hO="⤨",fO="≂̸",mO="≫",vO="≪",bO="\n",gO="∄",yO="∄",wO="𝔑",kO="𝔫",xO="≧̸",CO="≱",TO="≱",MO="≧̸",OO="⩾̸",SO="⩾̸",EO="⋙̸",NO="≵",DO="≫⃒",AO="≯",LO="≯",IO="≫̸",RO="↮",BO="⇎",PO="⫲",jO="∋",FO="⋼",HO="⋺",zO="∋",VO="Њ",_O="њ",qO="↚",$O="⇍",UO="‥",WO="≦̸",JO="≰",KO="↚",GO="⇍",XO="↮",ZO="⇎",QO="≰",YO="≦̸",eS="⩽̸",tS="⩽̸",nS="≮",aS="⋘̸",lS="≴",oS="≪⃒",rS="≮",iS="⋪",cS="⋬",uS="≪̸",sS="∤",dS="",pS=" ",hS="𝕟",fS="ℕ",mS="⫬",vS="¬",bS="≢",gS="≭",yS="∦",wS="∉",kS="≠",xS="≂̸",CS="∄",TS="≯",MS="≱",OS="≧̸",SS="≫̸",ES="≹",NS="⩾̸",DS="≵",AS="≎̸",LS="≏̸",IS="∉",RS="⋵̸",BS="⋹̸",PS="∉",jS="⋷",FS="⋶",HS="⧏̸",zS="⋪",VS="⋬",_S="≮",qS="≰",$S="≸",US="≪̸",WS="⩽̸",JS="≴",KS="⪢̸",GS="⪡̸",XS="∌",ZS="∌",QS="⋾",YS="⋽",eE="⊀",tE="⪯̸",nE="⋠",aE="∌",lE="⧐̸",oE="⋫",rE="⋭",iE="⊏̸",cE="⋢",uE="⊐̸",sE="⋣",dE="⊂⃒",pE="⊈",hE="⊁",fE="⪰̸",mE="⋡",vE="≿̸",bE="⊃⃒",gE="⊉",yE="≁",wE="≄",kE="≇",xE="≉",CE="∤",TE="∦",ME="∦",OE="⫽⃥",SE="∂̸",EE="⨔",NE="⊀",DE="⋠",AE="⊀",LE="⪯̸",IE="⪯̸",RE="⤳̸",BE="↛",PE="⇏",jE="↝̸",FE="↛",HE="⇏",zE="⋫",VE="⋭",_E="⊁",qE="⋡",$E="⪰̸",UE="𝒩",WE="𝓃",JE="∤",KE="∦",GE="≁",XE="≄",ZE="≄",QE="∤",YE="∦",eN="⋢",tN="⋣",nN="⊄",aN="⫅̸",lN="⊈",oN="⊂⃒",rN="⊈",iN="⫅̸",cN="⊁",uN="⪰̸",sN="⊅",dN="⫆̸",pN="⊉",hN="⊃⃒",fN="⊉",mN="⫆̸",vN="≹",bN="Ñ",gN="ñ",yN="≸",wN="⋪",kN="⋬",xN="⋫",CN="⋭",TN="Ν",MN="ν",ON="#",SN="№",EN=" ",NN="≍⃒",DN="⊬",AN="⊭",LN="⊮",IN="⊯",RN="≥⃒",BN=">⃒",PN="⤄",jN="⧞",FN="⤂",HN="≤⃒",zN="<⃒",VN="⊴⃒",_N="⤃",qN="⊵⃒",$N="∼⃒",UN="⤣",WN="↖",JN="⇖",KN="↖",GN="⤧",XN="Ó",ZN="ó",QN="⊛",YN="Ô",eD="ô",tD="⊚",nD="О",aD="о",lD="⊝",oD="Ő",rD="ő",iD="⨸",cD="⊙",uD="⦼",sD="Œ",dD="œ",pD="⦿",hD="𝔒",fD="𝔬",mD="˛",vD="Ò",bD="ò",gD="⧁",yD="⦵",wD="Ω",kD="∮",xD="↺",CD="⦾",TD="⦻",MD="‾",OD="⧀",SD="Ō",ED="ō",ND="Ω",DD="ω",AD="Ο",LD="ο",ID="⦶",RD="⊖",BD="𝕆",PD="𝕠",jD="⦷",FD="“",HD="‘",zD="⦹",VD="⊕",_D="↻",qD="⩔",$D="∨",UD="⩝",WD="ℴ",JD="ℴ",KD="ª",GD="º",XD="⊶",ZD="⩖",QD="⩗",YD="⩛",eA="Ⓢ",tA="𝒪",nA="ℴ",aA="Ø",lA="ø",oA="⊘",rA="Õ",iA="õ",cA="⨶",uA="⨷",sA="⊗",dA="Ö",pA="ö",hA="⌽",fA="‾",mA="⏞",vA="⎴",bA="⏜",gA="¶",yA="∥",wA="∥",kA="⫳",xA="⫽",CA="∂",TA="∂",MA="П",OA="п",SA="%",EA=".",NA="‰",DA="⊥",AA="‱",LA="𝔓",IA="𝔭",RA="Φ",BA="φ",PA="ϕ",jA="ℳ",FA="☎",HA="Π",zA="π",VA="⋔",_A="ϖ",qA="ℏ",$A="ℎ",UA="ℏ",WA="⨣",JA="⊞",KA="⨢",GA="+",XA="∔",ZA="⨥",QA="⩲",YA="±",eL="±",tL="⨦",nL="⨧",aL="±",lL="ℌ",oL="⨕",rL="𝕡",iL="ℙ",cL="£",uL="⪷",sL="⪻",dL="≺",pL="≼",hL="⪷",fL="≺",mL="≼",vL="≺",bL="⪯",gL="≼",yL="≾",wL="⪯",kL="⪹",xL="⪵",CL="⋨",TL="⪯",ML="⪳",OL="≾",SL="′",EL="″",NL="ℙ",DL="⪹",AL="⪵",LL="⋨",IL="∏",RL="∏",BL="⌮",PL="⌒",jL="⌓",FL="∝",HL="∝",zL="∷",VL="∝",_L="≾",qL="⊰",$L="𝒫",UL="𝓅",WL="Ψ",JL="ψ",KL=" ",GL="𝔔",XL="𝔮",ZL="⨌",QL="𝕢",YL="ℚ",eI="⁗",tI="𝒬",nI="𝓆",aI="ℍ",lI="⨖",oI="?",rI="≟",iI='"',cI='"',uI="⇛",sI="∽̱",dI="Ŕ",pI="ŕ",hI="√",fI="⦳",mI="⟩",vI="⟫",bI="⦒",gI="⦥",yI="⟩",wI="»",kI="⥵",xI="⇥",CI="⤠",TI="⤳",MI="→",OI="↠",SI="⇒",EI="⤞",NI="↪",DI="↬",AI="⥅",LI="⥴",II="⤖",RI="↣",BI="↝",PI="⤚",jI="⤜",FI="∶",HI="ℚ",zI="⤍",VI="⤏",_I="⤐",qI="❳",$I="}",UI="]",WI="⦌",JI="⦎",KI="⦐",GI="Ř",XI="ř",ZI="Ŗ",QI="ŗ",YI="⌉",eR="}",tR="Р",nR="р",aR="⤷",lR="⥩",oR="”",rR="”",iR="↳",cR="ℜ",uR="ℛ",sR="ℜ",dR="ℝ",pR="ℜ",hR="▭",fR="®",mR="®",vR="∋",bR="⇋",gR="⥯",yR="⥽",wR="⌋",kR="𝔯",xR="ℜ",CR="⥤",TR="⇁",MR="⇀",OR="⥬",SR="Ρ",ER="ρ",NR="ϱ",DR="⟩",AR="⇥",LR="→",IR="→",RR="⇒",BR="⇄",PR="↣",jR="⌉",FR="⟧",HR="⥝",zR="⥕",VR="⇂",_R="⌋",qR="⇁",$R="⇀",UR="⇄",WR="⇌",JR="⇉",KR="↝",GR="↦",XR="⊢",ZR="⥛",QR="⋌",YR="⧐",eB="⊳",tB="⊵",nB="⥏",aB="⥜",lB="⥔",oB="↾",rB="⥓",iB="⇀",cB="˚",uB="≓",sB="⇄",dB="⇌",pB="",hB="⎱",fB="⎱",mB="⫮",vB="⟭",bB="⇾",gB="⟧",yB="⦆",wB="𝕣",kB="ℝ",xB="⨮",CB="⨵",TB="⥰",MB=")",OB="⦔",SB="⨒",EB="⇉",NB="⇛",DB="›",AB="𝓇",LB="ℛ",IB="↱",RB="↱",BB="]",PB="’",jB="’",FB="⋌",HB="⋊",zB="▹",VB="⊵",_B="▸",qB="⧎",$B="⧴",UB="⥨",WB="℞",JB="Ś",KB="ś",GB="‚",XB="⪸",ZB="Š",QB="š",YB="⪼",eP="≻",tP="≽",nP="⪰",aP="⪴",lP="Ş",oP="ş",rP="Ŝ",iP="ŝ",cP="⪺",uP="⪶",sP="⋩",dP="⨓",pP="≿",hP="С",fP="с",mP="⊡",vP="⋅",bP="⩦",gP="⤥",yP="↘",wP="⇘",kP="↘",xP="§",CP=";",TP="⤩",MP="∖",OP="∖",SP="✶",EP="𝔖",NP="𝔰",DP="⌢",AP="♯",LP="Щ",IP="щ",RP="Ш",BP="ш",PP="↓",jP="←",FP="∣",HP="∥",zP="→",VP="↑",_P="",qP="Σ",$P="σ",UP="ς",WP="ς",JP="∼",KP="⩪",GP="≃",XP="≃",ZP="⪞",QP="⪠",YP="⪝",ej="⪟",tj="≆",nj="⨤",aj="⥲",lj="←",oj="∘",rj="∖",ij="⨳",cj="⧤",uj="∣",sj="⌣",dj="⪪",pj="⪬",hj="⪬︀",fj="Ь",mj="ь",vj="⌿",bj="⧄",gj="/",yj="𝕊",wj="𝕤",kj="♠",xj="♠",Cj="∥",Tj="⊓",Mj="⊓︀",Oj="⊔",Sj="⊔︀",Ej="√",Nj="⊏",Dj="⊑",Aj="⊏",Lj="⊑",Ij="⊐",Rj="⊒",Bj="⊐",Pj="⊒",jj="□",Fj="□",Hj="⊓",zj="⊏",Vj="⊑",_j="⊐",qj="⊒",$j="⊔",Uj="▪",Wj="□",Jj="▪",Kj="→",Gj="𝒮",Xj="𝓈",Zj="∖",Qj="⌣",Yj="⋆",eF="⋆",tF="☆",nF="★",aF="ϵ",lF="ϕ",oF="¯",rF="⊂",iF="⋐",cF="⪽",uF="⫅",sF="⊆",dF="⫃",pF="⫁",hF="⫋",fF="⊊",mF="⪿",vF="⥹",bF="⊂",gF="⋐",yF="⊆",wF="⫅",kF="⊆",xF="⊊",CF="⫋",TF="⫇",MF="⫕",OF="⫓",SF="⪸",EF="≻",NF="≽",DF="≻",AF="⪰",LF="≽",IF="≿",RF="⪰",BF="⪺",PF="⪶",jF="⋩",FF="≿",HF="∋",zF="∑",VF="∑",_F="♪",qF="¹",$F="²",UF="³",WF="⊃",JF="⋑",KF="⪾",GF="⫘",XF="⫆",ZF="⊇",QF="⫄",YF="⊃",eH="⊇",tH="⟉",nH="⫗",aH="⥻",lH="⫂",oH="⫌",rH="⊋",iH="⫀",cH="⊃",uH="⋑",sH="⊇",dH="⫆",pH="⊋",hH="⫌",fH="⫈",mH="⫔",vH="⫖",bH="⤦",gH="↙",yH="⇙",wH="↙",kH="⤪",xH="ß",CH="\t",TH="⌖",MH="Τ",OH="τ",SH="⎴",EH="Ť",NH="ť",DH="Ţ",AH="ţ",LH="Т",IH="т",RH="⃛",BH="⌕",PH="𝔗",jH="𝔱",FH="∴",HH="∴",zH="∴",VH="Θ",_H="θ",qH="ϑ",$H="ϑ",UH="≈",WH="∼",JH=" ",KH=" ",GH=" ",XH="≈",ZH="∼",QH="Þ",YH="þ",ez="˜",tz="∼",nz="≃",az="≅",lz="≈",oz="⨱",rz="⊠",iz="×",cz="⨰",uz="∭",sz="⤨",dz="⌶",pz="⫱",hz="⊤",fz="𝕋",mz="𝕥",vz="⫚",bz="⤩",gz="‴",yz="™",wz="™",kz="▵",xz="▿",Cz="◃",Tz="⊴",Mz="≜",Oz="▹",Sz="⊵",Ez="◬",Nz="≜",Dz="⨺",Az="⃛",Lz="⨹",Iz="⧍",Rz="⨻",Bz="⏢",Pz="𝒯",jz="𝓉",Fz="Ц",Hz="ц",zz="Ћ",Vz="ћ",_z="Ŧ",qz="ŧ",$z="≬",Uz="↞",Wz="↠",Jz="Ú",Kz="ú",Gz="↑",Xz="↟",Zz="⇑",Qz="⥉",Yz="Ў",eV="ў",tV="Ŭ",nV="ŭ",aV="Û",lV="û",oV="У",rV="у",iV="⇅",cV="Ű",uV="ű",sV="⥮",dV="⥾",pV="𝔘",hV="𝔲",fV="Ù",mV="ù",vV="⥣",bV="↿",gV="↾",yV="▀",wV="⌜",kV="⌜",xV="⌏",CV="◸",TV="Ū",MV="ū",OV="¨",SV="_",EV="⏟",NV="⎵",DV="⏝",AV="⋃",LV="⊎",IV="Ų",RV="ų",BV="𝕌",PV="𝕦",jV="⤒",FV="↑",HV="↑",zV="⇑",VV="⇅",_V="↕",qV="↕",$V="⇕",UV="⥮",WV="↿",JV="↾",KV="⊎",GV="↖",XV="↗",ZV="υ",QV="ϒ",YV="ϒ",e_="Υ",t_="υ",n_="↥",a_="⊥",l_="⇈",o_="⌝",r_="⌝",i_="⌎",c_="Ů",u_="ů",s_="◹",d_="𝒰",p_="𝓊",h_="⋰",f_="Ũ",m_="ũ",v_="▵",b_="▴",g_="⇈",y_="Ü",w_="ü",k_="⦧",x_="⦜",C_="ϵ",T_="ϰ",M_="∅",O_="ϕ",S_="ϖ",E_="∝",N_="↕",D_="⇕",A_="ϱ",L_="ς",I_="⊊︀",R_="⫋︀",B_="⊋︀",P_="⫌︀",j_="ϑ",F_="⊲",H_="⊳",z_="⫨",V_="⫫",__="⫩",q_="В",$_="в",U_="⊢",W_="⊨",J_="⊩",K_="⊫",G_="⫦",X_="⊻",Z_="∨",Q_="⋁",Y_="≚",eq="⋮",tq="|",nq="‖",aq="|",lq="‖",oq="∣",rq="|",iq="❘",cq="≀",uq=" ",sq="𝔙",dq="𝔳",pq="⊲",hq="⊂⃒",fq="⊃⃒",mq="𝕍",vq="𝕧",bq="∝",gq="⊳",yq="𝒱",wq="𝓋",kq="⫋︀",xq="⊊︀",Cq="⫌︀",Tq="⊋︀",Mq="⊪",Oq="⦚",Sq="Ŵ",Eq="ŵ",Nq="⩟",Dq="∧",Aq="⋀",Lq="≙",Iq="℘",Rq="𝔚",Bq="𝔴",Pq="𝕎",jq="𝕨",Fq="℘",Hq="≀",zq="≀",Vq="𝒲",_q="𝓌",qq="⋂",$q="◯",Uq="⋃",Wq="▽",Jq="𝔛",Kq="𝔵",Gq="⟷",Xq="⟺",Zq="Ξ",Qq="ξ",Yq="⟵",e$="⟸",t$="⟼",n$="⋻",a$="⨀",l$="𝕏",o$="𝕩",r$="⨁",i$="⨂",c$="⟶",u$="⟹",s$="𝒳",d$="𝓍",p$="⨆",h$="⨄",f$="△",m$="⋁",v$="⋀",b$="Ý",g$="ý",y$="Я",w$="я",k$="Ŷ",x$="ŷ",C$="Ы",T$="ы",M$="¥",O$="𝔜",S$="𝔶",E$="Ї",N$="ї",D$="𝕐",A$="𝕪",L$="𝒴",I$="𝓎",R$="Ю",B$="ю",P$="ÿ",j$="Ÿ",F$="Ź",H$="ź",z$="Ž",V$="ž",_$="З",q$="з",$$="Ż",U$="ż",W$="ℨ",J$="",K$="Ζ",G$="ζ",X$="𝔷",Z$="ℨ",Q$="Ж",Y$="ж",eU="⇝",tU="𝕫",nU="ℤ",aU="𝒵",lU="𝓏",oU="",rU="",iU={Aacute:qo,aacute:$o,Abreve:Uo,abreve:Wo,ac:Jo,acd:Ko,acE:Go,Acirc:Xo,acirc:Zo,acute:Qo,Acy:Yo,acy:er,AElig:tr,aelig:nr,af:ar,Afr:lr,afr:or,Agrave:rr,agrave:ir,alefsym:cr,aleph:ur,Alpha:sr,alpha:dr,Amacr:pr,amacr:hr,amalg:fr,amp:mr,AMP:vr,andand:br,And:gr,and:yr,andd:wr,andslope:kr,andv:xr,ang:Cr,ange:Tr,angle:Mr,angmsdaa:Or,angmsdab:Sr,angmsdac:Er,angmsdad:Nr,angmsdae:Dr,angmsdaf:Ar,angmsdag:Lr,angmsdah:Ir,angmsd:Rr,angrt:Br,angrtvb:Pr,angrtvbd:jr,angsph:Fr,angst:Hr,angzarr:zr,Aogon:Vr,aogon:_r,Aopf:qr,aopf:$r,apacir:Ur,ap:Wr,apE:Jr,ape:Kr,apid:Gr,apos:Xr,ApplyFunction:Zr,approx:Qr,approxeq:Yr,Aring:ei,aring:ti,Ascr:ni,ascr:ai,Assign:li,ast:oi,asymp:ri,asympeq:ii,Atilde:ci,atilde:ui,Auml:si,auml:di,awconint:pi,awint:hi,backcong:fi,backepsilon:mi,backprime:vi,backsim:bi,backsimeq:gi,Backslash:yi,Barv:wi,barvee:ki,barwed:xi,Barwed:Ci,barwedge:Ti,bbrk:Mi,bbrktbrk:Oi,bcong:Si,Bcy:Ei,bcy:Ni,bdquo:Di,becaus:Ai,because:Li,Because:Ii,bemptyv:Ri,bepsi:Bi,bernou:Pi,Bernoullis:ji,Beta:Fi,beta:Hi,beth:zi,between:Vi,Bfr:_i,bfr:qi,bigcap:$i,bigcirc:Ui,bigcup:Wi,bigodot:Ji,bigoplus:Ki,bigotimes:Gi,bigsqcup:Xi,bigstar:Zi,bigtriangledown:Qi,bigtriangleup:Yi,biguplus:ec,bigvee:tc,bigwedge:nc,bkarow:ac,blacklozenge:lc,blacksquare:oc,blacktriangle:rc,blacktriangledown:ic,blacktriangleleft:cc,blacktriangleright:uc,blank:sc,blk12:dc,blk14:pc,blk34:hc,block:fc,bne:mc,bnequiv:vc,bNot:bc,bnot:gc,Bopf:yc,bopf:wc,bot:kc,bottom:xc,bowtie:Cc,boxbox:Tc,boxdl:Mc,boxdL:Oc,boxDl:Sc,boxDL:Ec,boxdr:Nc,boxdR:Dc,boxDr:Ac,boxDR:Lc,boxh:Ic,boxH:Rc,boxhd:Bc,boxHd:Pc,boxhD:jc,boxHD:Fc,boxhu:Hc,boxHu:zc,boxhU:Vc,boxHU:_c,boxminus:qc,boxplus:$c,boxtimes:Uc,boxul:Wc,boxuL:Jc,boxUl:Kc,boxUL:Gc,boxur:Xc,boxuR:Zc,boxUr:Qc,boxUR:Yc,boxv:eu,boxV:tu,boxvh:nu,boxvH:au,boxVh:lu,boxVH:ou,boxvl:ru,boxvL:iu,boxVl:cu,boxVL:uu,boxvr:su,boxvR:du,boxVr:pu,boxVR:hu,bprime:fu,breve:mu,Breve:vu,brvbar:bu,bscr:gu,Bscr:yu,bsemi:wu,bsim:ku,bsime:xu,bsolb:Cu,bsol:Tu,bsolhsub:Mu,bull:Ou,bullet:Su,bump:Eu,bumpE:Nu,bumpe:Du,Bumpeq:Au,bumpeq:Lu,Cacute:Iu,cacute:Ru,capand:Bu,capbrcup:Pu,capcap:ju,cap:Fu,Cap:Hu,capcup:zu,capdot:Vu,CapitalDifferentialD:_u,caps:qu,caret:$u,caron:Uu,Cayleys:Wu,ccaps:Ju,Ccaron:Ku,ccaron:Gu,Ccedil:Xu,ccedil:Zu,Ccirc:Qu,ccirc:Yu,Cconint:es,ccups:ts,ccupssm:ns,Cdot:as,cdot:ls,cedil:os,Cedilla:rs,cemptyv:is,cent:cs,centerdot:us,CenterDot:ss,cfr:ds,Cfr:ps,CHcy:hs,chcy:fs,check:ms,checkmark:vs,Chi:bs,chi:gs,circ:ys,circeq:ws,circlearrowleft:ks,circlearrowright:xs,circledast:Cs,circledcirc:Ts,circleddash:Ms,CircleDot:Os,circledR:Ss,circledS:Es,CircleMinus:Ns,CirclePlus:Ds,CircleTimes:As,cir:Ls,cirE:Is,cire:Rs,cirfnint:Bs,cirmid:Ps,cirscir:js,ClockwiseContourIntegral:Fs,CloseCurlyDoubleQuote:Hs,CloseCurlyQuote:zs,clubs:Vs,clubsuit:_s,colon:qs,Colon:$s,Colone:Us,colone:Ws,coloneq:Js,comma:Ks,commat:Gs,comp:Xs,compfn:Zs,complement:Qs,complexes:Ys,cong:ed,congdot:td,Congruent:nd,conint:ad,Conint:ld,ContourIntegral:od,copf:rd,Copf:id,coprod:cd,Coproduct:ud,copy:sd,COPY:dd,copysr:pd,CounterClockwiseContourIntegral:hd,crarr:fd,cross:md,Cross:vd,Cscr:bd,cscr:gd,csub:yd,csube:wd,csup:kd,csupe:xd,ctdot:Cd,cudarrl:Td,cudarrr:Md,cuepr:Od,cuesc:Sd,cularr:Ed,cularrp:Nd,cupbrcap:Dd,cupcap:Ad,CupCap:Ld,cup:Id,Cup:Rd,cupcup:Bd,cupdot:Pd,cupor:jd,cups:Fd,curarr:Hd,curarrm:zd,curlyeqprec:Vd,curlyeqsucc:_d,curlyvee:qd,curlywedge:$d,curren:Ud,curvearrowleft:Wd,curvearrowright:Jd,cuvee:Kd,cuwed:Gd,cwconint:Xd,cwint:Zd,cylcty:Qd,dagger:Yd,Dagger:ep,daleth:tp,darr:np,Darr:ap,dArr:lp,dash:op,Dashv:rp,dashv:ip,dbkarow:cp,dblac:up,Dcaron:sp,dcaron:dp,Dcy:pp,dcy:hp,ddagger:fp,ddarr:mp,DD:vp,dd:bp,DDotrahd:gp,ddotseq:yp,deg:wp,Del:kp,Delta:xp,delta:Cp,demptyv:Tp,dfisht:Mp,Dfr:Op,dfr:Sp,dHar:Ep,dharl:Np,dharr:Dp,DiacriticalAcute:Ap,DiacriticalDot:Lp,DiacriticalDoubleAcute:Ip,DiacriticalGrave:Rp,DiacriticalTilde:Bp,diam:Pp,diamond:jp,Diamond:Fp,diamondsuit:Hp,diams:zp,die:Vp,DifferentialD:_p,digamma:qp,disin:$p,div:Up,divide:Wp,divideontimes:Jp,divonx:Kp,DJcy:Gp,djcy:Xp,dlcorn:Zp,dlcrop:Qp,dollar:Yp,Dopf:eh,dopf:th,Dot:nh,dot:ah,DotDot:lh,doteq:oh,doteqdot:rh,DotEqual:ih,dotminus:ch,dotplus:uh,dotsquare:sh,doublebarwedge:dh,DoubleContourIntegral:ph,DoubleDot:hh,DoubleDownArrow:fh,DoubleLeftArrow:mh,DoubleLeftRightArrow:vh,DoubleLeftTee:bh,DoubleLongLeftArrow:gh,DoubleLongLeftRightArrow:yh,DoubleLongRightArrow:wh,DoubleRightArrow:kh,DoubleRightTee:xh,DoubleUpArrow:Ch,DoubleUpDownArrow:Th,DoubleVerticalBar:Mh,DownArrowBar:Oh,downarrow:Sh,DownArrow:Eh,Downarrow:Nh,DownArrowUpArrow:Dh,DownBreve:Ah,downdownarrows:Lh,downharpoonleft:Ih,downharpoonright:Rh,DownLeftRightVector:Bh,DownLeftTeeVector:Ph,DownLeftVectorBar:jh,DownLeftVector:Fh,DownRightTeeVector:Hh,DownRightVectorBar:zh,DownRightVector:Vh,DownTeeArrow:_h,DownTee:qh,drbkarow:$h,drcorn:Uh,drcrop:Wh,Dscr:Jh,dscr:Kh,DScy:Gh,dscy:Xh,dsol:Zh,Dstrok:Qh,dstrok:Yh,dtdot:ef,dtri:tf,dtrif:nf,duarr:af,duhar:lf,dwangle:of,DZcy:rf,dzcy:cf,dzigrarr:uf,Eacute:sf,eacute:df,easter:pf,Ecaron:hf,ecaron:ff,Ecirc:mf,ecirc:vf,ecir:bf,ecolon:gf,Ecy:yf,ecy:wf,eDDot:kf,Edot:xf,edot:Cf,eDot:Tf,ee:Mf,efDot:Of,Efr:Sf,efr:Ef,eg:Nf,Egrave:Df,egrave:Af,egs:Lf,egsdot:If,el:Rf,Element:Bf,elinters:Pf,ell:jf,els:Ff,elsdot:Hf,Emacr:zf,emacr:Vf,empty:_f,emptyset:qf,EmptySmallSquare:$f,emptyv:Uf,EmptyVerySmallSquare:Wf,emsp13:Jf,emsp14:Kf,emsp:Gf,ENG:Xf,eng:Zf,ensp:Qf,Eogon:Yf,eogon:em,Eopf:tm,eopf:nm,epar:am,eparsl:lm,eplus:om,epsi:rm,Epsilon:im,epsilon:cm,epsiv:um,eqcirc:sm,eqcolon:dm,eqsim:pm,eqslantgtr:hm,eqslantless:fm,Equal:mm,equals:vm,EqualTilde:bm,equest:gm,Equilibrium:ym,equiv:wm,equivDD:km,eqvparsl:xm,erarr:Cm,erDot:Tm,escr:Mm,Escr:Om,esdot:Sm,Esim:Em,esim:Nm,Eta:Dm,eta:Am,ETH:Lm,eth:Im,Euml:Rm,euml:Bm,euro:Pm,excl:jm,exist:Fm,Exists:Hm,expectation:zm,exponentiale:Vm,ExponentialE:_m,fallingdotseq:qm,Fcy:$m,fcy:Um,female:Wm,ffilig:Jm,fflig:Km,ffllig:Gm,Ffr:Xm,ffr:Zm,filig:Qm,FilledSmallSquare:Ym,FilledVerySmallSquare:ev,fjlig:tv,flat:nv,fllig:av,fltns:lv,fnof:ov,Fopf:rv,fopf:iv,forall:cv,ForAll:uv,fork:sv,forkv:dv,Fouriertrf:pv,fpartint:hv,frac12:fv,frac13:mv,frac14:vv,frac15:bv,frac16:gv,frac18:yv,frac23:wv,frac25:kv,frac34:xv,frac35:Cv,frac38:Tv,frac45:Mv,frac56:Ov,frac58:Sv,frac78:Ev,frasl:Nv,frown:Dv,fscr:Av,Fscr:Lv,gacute:Iv,Gamma:Rv,gamma:Bv,Gammad:Pv,gammad:jv,gap:Fv,Gbreve:Hv,gbreve:zv,Gcedil:Vv,Gcirc:_v,gcirc:qv,Gcy:$v,gcy:Uv,Gdot:Wv,gdot:Jv,ge:Kv,gE:Gv,gEl:Xv,gel:Zv,geq:Qv,geqq:Yv,geqslant:eb,gescc:tb,ges:nb,gesdot:ab,gesdoto:lb,gesdotol:ob,gesl:rb,gesles:ib,Gfr:cb,gfr:ub,gg:sb,Gg:db,ggg:pb,gimel:hb,GJcy:fb,gjcy:mb,gla:vb,gl:bb,glE:gb,glj:yb,gnap:wb,gnapprox:kb,gne:xb,gnE:Cb,gneq:Tb,gneqq:Mb,gnsim:Ob,Gopf:Sb,gopf:Eb,grave:Nb,GreaterEqual:Db,GreaterEqualLess:Ab,GreaterFullEqual:Lb,GreaterGreater:Ib,GreaterLess:Rb,GreaterSlantEqual:Bb,GreaterTilde:Pb,Gscr:jb,gscr:Fb,gsim:Hb,gsime:zb,gsiml:Vb,gtcc:_b,gtcir:qb,gt:$b,GT:Ub,Gt:Wb,gtdot:Jb,gtlPar:Kb,gtquest:Gb,gtrapprox:Xb,gtrarr:Zb,gtrdot:Qb,gtreqless:Yb,gtreqqless:eg,gtrless:tg,gtrsim:ng,gvertneqq:ag,gvnE:lg,Hacek:og,hairsp:rg,half:ig,hamilt:cg,HARDcy:ug,hardcy:sg,harrcir:dg,harr:pg,hArr:hg,harrw:fg,Hat:mg,hbar:vg,Hcirc:bg,hcirc:gg,hearts:yg,heartsuit:wg,hellip:kg,hercon:xg,hfr:Cg,Hfr:Tg,HilbertSpace:Mg,hksearow:Og,hkswarow:Sg,hoarr:Eg,homtht:Ng,hookleftarrow:Dg,hookrightarrow:Ag,hopf:Lg,Hopf:Ig,horbar:Rg,HorizontalLine:Bg,hscr:Pg,Hscr:jg,hslash:Fg,Hstrok:Hg,hstrok:zg,HumpDownHump:Vg,HumpEqual:_g,hybull:qg,hyphen:$g,Iacute:Ug,iacute:Wg,ic:Jg,Icirc:Kg,icirc:Gg,Icy:Xg,icy:Zg,Idot:Qg,IEcy:Yg,iecy:ey,iexcl:ty,iff:ny,ifr:ay,Ifr:ly,Igrave:oy,igrave:ry,ii:iy,iiiint:cy,iiint:uy,iinfin:sy,iiota:dy,IJlig:py,ijlig:hy,Imacr:fy,imacr:my,image:vy,ImaginaryI:by,imagline:gy,imagpart:yy,imath:wy,Im:ky,imof:xy,imped:Cy,Implies:Ty,incare:My,in:"∈",infin:Oy,infintie:Sy,inodot:Ey,intcal:Ny,int:Dy,Int:Ay,integers:Ly,Integral:Iy,intercal:Ry,Intersection:By,intlarhk:Py,intprod:jy,InvisibleComma:Fy,InvisibleTimes:Hy,IOcy:zy,iocy:Vy,Iogon:_y,iogon:qy,Iopf:$y,iopf:Uy,Iota:Wy,iota:Jy,iprod:Ky,iquest:Gy,iscr:Xy,Iscr:Zy,isin:Qy,isindot:Yy,isinE:ew,isins:tw,isinsv:nw,isinv:aw,it:lw,Itilde:ow,itilde:rw,Iukcy:iw,iukcy:cw,Iuml:uw,iuml:sw,Jcirc:dw,jcirc:pw,Jcy:hw,jcy:fw,Jfr:mw,jfr:vw,jmath:bw,Jopf:gw,jopf:yw,Jscr:ww,jscr:kw,Jsercy:xw,jsercy:Cw,Jukcy:Tw,jukcy:Mw,Kappa:Ow,kappa:Sw,kappav:Ew,Kcedil:Nw,kcedil:Dw,Kcy:Aw,kcy:Lw,Kfr:Iw,kfr:Rw,kgreen:Bw,KHcy:Pw,khcy:jw,KJcy:Fw,kjcy:Hw,Kopf:zw,kopf:Vw,Kscr:_w,kscr:qw,lAarr:$w,Lacute:Uw,lacute:Ww,laemptyv:Jw,lagran:Kw,Lambda:Gw,lambda:Xw,lang:Zw,Lang:Qw,langd:Yw,langle:ek,lap:tk,Laplacetrf:nk,laquo:ak,larrb:lk,larrbfs:ok,larr:rk,Larr:ik,lArr:ck,larrfs:uk,larrhk:sk,larrlp:dk,larrpl:pk,larrsim:hk,larrtl:fk,latail:mk,lAtail:vk,lat:bk,late:gk,lates:yk,lbarr:wk,lBarr:kk,lbbrk:xk,lbrace:Ck,lbrack:Tk,lbrke:Mk,lbrksld:Ok,lbrkslu:Sk,Lcaron:Ek,lcaron:Nk,Lcedil:Dk,lcedil:Ak,lceil:Lk,lcub:Ik,Lcy:Rk,lcy:Bk,ldca:Pk,ldquo:jk,ldquor:Fk,ldrdhar:Hk,ldrushar:zk,ldsh:Vk,le:_k,lE:qk,LeftAngleBracket:$k,LeftArrowBar:Uk,leftarrow:Wk,LeftArrow:Jk,Leftarrow:Kk,LeftArrowRightArrow:Gk,leftarrowtail:Xk,LeftCeiling:Zk,LeftDoubleBracket:Qk,LeftDownTeeVector:Yk,LeftDownVectorBar:ex,LeftDownVector:tx,LeftFloor:nx,leftharpoondown:ax,leftharpoonup:lx,leftleftarrows:ox,leftrightarrow:rx,LeftRightArrow:ix,Leftrightarrow:cx,leftrightarrows:ux,leftrightharpoons:sx,leftrightsquigarrow:dx,LeftRightVector:px,LeftTeeArrow:hx,LeftTee:fx,LeftTeeVector:mx,leftthreetimes:vx,LeftTriangleBar:bx,LeftTriangle:gx,LeftTriangleEqual:yx,LeftUpDownVector:wx,LeftUpTeeVector:kx,LeftUpVectorBar:xx,LeftUpVector:Cx,LeftVectorBar:Tx,LeftVector:Mx,lEg:Ox,leg:Sx,leq:Ex,leqq:Nx,leqslant:Dx,lescc:Ax,les:Lx,lesdot:Ix,lesdoto:Rx,lesdotor:Bx,lesg:Px,lesges:jx,lessapprox:Fx,lessdot:Hx,lesseqgtr:zx,lesseqqgtr:Vx,LessEqualGreater:_x,LessFullEqual:qx,LessGreater:$x,lessgtr:Ux,LessLess:Wx,lesssim:Jx,LessSlantEqual:Kx,LessTilde:Gx,lfisht:Xx,lfloor:Zx,Lfr:Qx,lfr:Yx,lg:eC,lgE:tC,lHar:nC,lhard:aC,lharu:lC,lharul:oC,lhblk:rC,LJcy:iC,ljcy:cC,llarr:uC,ll:sC,Ll:dC,llcorner:pC,Lleftarrow:hC,llhard:fC,lltri:mC,Lmidot:vC,lmidot:bC,lmoustache:gC,lmoust:yC,lnap:wC,lnapprox:kC,lne:xC,lnE:CC,lneq:TC,lneqq:MC,lnsim:OC,loang:SC,loarr:EC,lobrk:NC,longleftarrow:DC,LongLeftArrow:AC,Longleftarrow:LC,longleftrightarrow:IC,LongLeftRightArrow:RC,Longleftrightarrow:BC,longmapsto:PC,longrightarrow:jC,LongRightArrow:FC,Longrightarrow:HC,looparrowleft:zC,looparrowright:VC,lopar:_C,Lopf:qC,lopf:$C,loplus:UC,lotimes:WC,lowast:JC,lowbar:KC,LowerLeftArrow:GC,LowerRightArrow:XC,loz:ZC,lozenge:QC,lozf:YC,lpar:eT,lparlt:tT,lrarr:nT,lrcorner:aT,lrhar:lT,lrhard:oT,lrm:rT,lrtri:iT,lsaquo:cT,lscr:uT,Lscr:sT,lsh:dT,Lsh:pT,lsim:hT,lsime:fT,lsimg:mT,lsqb:vT,lsquo:bT,lsquor:gT,Lstrok:yT,lstrok:wT,ltcc:kT,ltcir:xT,lt:CT,LT:TT,Lt:MT,ltdot:OT,lthree:ST,ltimes:ET,ltlarr:NT,ltquest:DT,ltri:AT,ltrie:LT,ltrif:IT,ltrPar:RT,lurdshar:BT,luruhar:PT,lvertneqq:jT,lvnE:FT,macr:HT,male:zT,malt:VT,maltese:_T,Map:"⤅",map:qT,mapsto:$T,mapstodown:UT,mapstoleft:WT,mapstoup:JT,marker:KT,mcomma:GT,Mcy:XT,mcy:ZT,mdash:QT,mDDot:YT,measuredangle:eM,MediumSpace:tM,Mellintrf:nM,Mfr:aM,mfr:lM,mho:oM,micro:rM,midast:iM,midcir:cM,mid:uM,middot:sM,minusb:dM,minus:pM,minusd:hM,minusdu:fM,MinusPlus:mM,mlcp:vM,mldr:bM,mnplus:gM,models:yM,Mopf:wM,mopf:kM,mp:xM,mscr:CM,Mscr:TM,mstpos:MM,Mu:OM,mu:SM,multimap:EM,mumap:NM,nabla:DM,Nacute:AM,nacute:LM,nang:IM,nap:RM,napE:BM,napid:PM,napos:jM,napprox:FM,natural:HM,naturals:zM,natur:VM,nbsp:_M,nbump:qM,nbumpe:$M,ncap:UM,Ncaron:WM,ncaron:JM,Ncedil:KM,ncedil:GM,ncong:XM,ncongdot:ZM,ncup:QM,Ncy:YM,ncy:eO,ndash:tO,nearhk:nO,nearr:aO,neArr:lO,nearrow:oO,ne:rO,nedot:iO,NegativeMediumSpace:cO,NegativeThickSpace:uO,NegativeThinSpace:sO,NegativeVeryThinSpace:dO,nequiv:pO,nesear:hO,nesim:fO,NestedGreaterGreater:mO,NestedLessLess:vO,NewLine:bO,nexist:gO,nexists:yO,Nfr:wO,nfr:kO,ngE:xO,nge:CO,ngeq:TO,ngeqq:MO,ngeqslant:OO,nges:SO,nGg:EO,ngsim:NO,nGt:DO,ngt:AO,ngtr:LO,nGtv:IO,nharr:RO,nhArr:BO,nhpar:PO,ni:jO,nis:FO,nisd:HO,niv:zO,NJcy:VO,njcy:_O,nlarr:qO,nlArr:$O,nldr:UO,nlE:WO,nle:JO,nleftarrow:KO,nLeftarrow:GO,nleftrightarrow:XO,nLeftrightarrow:ZO,nleq:QO,nleqq:YO,nleqslant:eS,nles:tS,nless:nS,nLl:aS,nlsim:lS,nLt:oS,nlt:rS,nltri:iS,nltrie:cS,nLtv:uS,nmid:sS,NoBreak:dS,NonBreakingSpace:pS,nopf:hS,Nopf:fS,Not:mS,not:vS,NotCongruent:bS,NotCupCap:gS,NotDoubleVerticalBar:yS,NotElement:wS,NotEqual:kS,NotEqualTilde:xS,NotExists:CS,NotGreater:TS,NotGreaterEqual:MS,NotGreaterFullEqual:OS,NotGreaterGreater:SS,NotGreaterLess:ES,NotGreaterSlantEqual:NS,NotGreaterTilde:DS,NotHumpDownHump:AS,NotHumpEqual:LS,notin:IS,notindot:RS,notinE:BS,notinva:PS,notinvb:jS,notinvc:FS,NotLeftTriangleBar:HS,NotLeftTriangle:zS,NotLeftTriangleEqual:VS,NotLess:_S,NotLessEqual:qS,NotLessGreater:$S,NotLessLess:US,NotLessSlantEqual:WS,NotLessTilde:JS,NotNestedGreaterGreater:KS,NotNestedLessLess:GS,notni:XS,notniva:ZS,notnivb:QS,notnivc:YS,NotPrecedes:eE,NotPrecedesEqual:tE,NotPrecedesSlantEqual:nE,NotReverseElement:aE,NotRightTriangleBar:lE,NotRightTriangle:oE,NotRightTriangleEqual:rE,NotSquareSubset:iE,NotSquareSubsetEqual:cE,NotSquareSuperset:uE,NotSquareSupersetEqual:sE,NotSubset:dE,NotSubsetEqual:pE,NotSucceeds:hE,NotSucceedsEqual:fE,NotSucceedsSlantEqual:mE,NotSucceedsTilde:vE,NotSuperset:bE,NotSupersetEqual:gE,NotTilde:yE,NotTildeEqual:wE,NotTildeFullEqual:kE,NotTildeTilde:xE,NotVerticalBar:CE,nparallel:TE,npar:ME,nparsl:OE,npart:SE,npolint:EE,npr:NE,nprcue:DE,nprec:AE,npreceq:LE,npre:IE,nrarrc:RE,nrarr:BE,nrArr:PE,nrarrw:jE,nrightarrow:FE,nRightarrow:HE,nrtri:zE,nrtrie:VE,nsc:_E,nsccue:qE,nsce:$E,Nscr:UE,nscr:WE,nshortmid:JE,nshortparallel:KE,nsim:GE,nsime:XE,nsimeq:ZE,nsmid:QE,nspar:YE,nsqsube:eN,nsqsupe:tN,nsub:nN,nsubE:aN,nsube:lN,nsubset:oN,nsubseteq:rN,nsubseteqq:iN,nsucc:cN,nsucceq:uN,nsup:sN,nsupE:dN,nsupe:pN,nsupset:hN,nsupseteq:fN,nsupseteqq:mN,ntgl:vN,Ntilde:bN,ntilde:gN,ntlg:yN,ntriangleleft:wN,ntrianglelefteq:kN,ntriangleright:xN,ntrianglerighteq:CN,Nu:TN,nu:MN,num:ON,numero:SN,numsp:EN,nvap:NN,nvdash:DN,nvDash:AN,nVdash:LN,nVDash:IN,nvge:RN,nvgt:BN,nvHarr:PN,nvinfin:jN,nvlArr:FN,nvle:HN,nvlt:zN,nvltrie:VN,nvrArr:_N,nvrtrie:qN,nvsim:$N,nwarhk:UN,nwarr:WN,nwArr:JN,nwarrow:KN,nwnear:GN,Oacute:XN,oacute:ZN,oast:QN,Ocirc:YN,ocirc:eD,ocir:tD,Ocy:nD,ocy:aD,odash:lD,Odblac:oD,odblac:rD,odiv:iD,odot:cD,odsold:uD,OElig:sD,oelig:dD,ofcir:pD,Ofr:hD,ofr:fD,ogon:mD,Ograve:vD,ograve:bD,ogt:gD,ohbar:yD,ohm:wD,oint:kD,olarr:xD,olcir:CD,olcross:TD,oline:MD,olt:OD,Omacr:SD,omacr:ED,Omega:ND,omega:DD,Omicron:AD,omicron:LD,omid:ID,ominus:RD,Oopf:BD,oopf:PD,opar:jD,OpenCurlyDoubleQuote:FD,OpenCurlyQuote:HD,operp:zD,oplus:VD,orarr:_D,Or:qD,or:$D,ord:UD,order:WD,orderof:JD,ordf:KD,ordm:GD,origof:XD,oror:ZD,orslope:QD,orv:YD,oS:eA,Oscr:tA,oscr:nA,Oslash:aA,oslash:lA,osol:oA,Otilde:rA,otilde:iA,otimesas:cA,Otimes:uA,otimes:sA,Ouml:dA,ouml:pA,ovbar:hA,OverBar:fA,OverBrace:mA,OverBracket:vA,OverParenthesis:bA,para:gA,parallel:yA,par:wA,parsim:kA,parsl:xA,part:CA,PartialD:TA,Pcy:MA,pcy:OA,percnt:SA,period:EA,permil:NA,perp:DA,pertenk:AA,Pfr:LA,pfr:IA,Phi:RA,phi:BA,phiv:PA,phmmat:jA,phone:FA,Pi:HA,pi:zA,pitchfork:VA,piv:_A,planck:qA,planckh:$A,plankv:UA,plusacir:WA,plusb:JA,pluscir:KA,plus:GA,plusdo:XA,plusdu:ZA,pluse:QA,PlusMinus:YA,plusmn:eL,plussim:tL,plustwo:nL,pm:aL,Poincareplane:lL,pointint:oL,popf:rL,Popf:iL,pound:cL,prap:uL,Pr:sL,pr:dL,prcue:pL,precapprox:hL,prec:fL,preccurlyeq:mL,Precedes:vL,PrecedesEqual:bL,PrecedesSlantEqual:gL,PrecedesTilde:yL,preceq:wL,precnapprox:kL,precneqq:xL,precnsim:CL,pre:TL,prE:ML,precsim:OL,prime:SL,Prime:EL,primes:NL,prnap:DL,prnE:AL,prnsim:LL,prod:IL,Product:RL,profalar:BL,profline:PL,profsurf:jL,prop:FL,Proportional:HL,Proportion:zL,propto:VL,prsim:_L,prurel:qL,Pscr:$L,pscr:UL,Psi:WL,psi:JL,puncsp:KL,Qfr:GL,qfr:XL,qint:ZL,qopf:QL,Qopf:YL,qprime:eI,Qscr:tI,qscr:nI,quaternions:aI,quatint:lI,quest:oI,questeq:rI,quot:iI,QUOT:cI,rAarr:uI,race:sI,Racute:dI,racute:pI,radic:hI,raemptyv:fI,rang:mI,Rang:vI,rangd:bI,range:gI,rangle:yI,raquo:wI,rarrap:kI,rarrb:xI,rarrbfs:CI,rarrc:TI,rarr:MI,Rarr:OI,rArr:SI,rarrfs:EI,rarrhk:NI,rarrlp:DI,rarrpl:AI,rarrsim:LI,Rarrtl:II,rarrtl:RI,rarrw:BI,ratail:PI,rAtail:jI,ratio:FI,rationals:HI,rbarr:zI,rBarr:VI,RBarr:_I,rbbrk:qI,rbrace:$I,rbrack:UI,rbrke:WI,rbrksld:JI,rbrkslu:KI,Rcaron:GI,rcaron:XI,Rcedil:ZI,rcedil:QI,rceil:YI,rcub:eR,Rcy:tR,rcy:nR,rdca:aR,rdldhar:lR,rdquo:oR,rdquor:rR,rdsh:iR,real:cR,realine:uR,realpart:sR,reals:dR,Re:pR,rect:hR,reg:fR,REG:mR,ReverseElement:vR,ReverseEquilibrium:bR,ReverseUpEquilibrium:gR,rfisht:yR,rfloor:wR,rfr:kR,Rfr:xR,rHar:CR,rhard:TR,rharu:MR,rharul:OR,Rho:SR,rho:ER,rhov:NR,RightAngleBracket:DR,RightArrowBar:AR,rightarrow:LR,RightArrow:IR,Rightarrow:RR,RightArrowLeftArrow:BR,rightarrowtail:PR,RightCeiling:jR,RightDoubleBracket:FR,RightDownTeeVector:HR,RightDownVectorBar:zR,RightDownVector:VR,RightFloor:_R,rightharpoondown:qR,rightharpoonup:$R,rightleftarrows:UR,rightleftharpoons:WR,rightrightarrows:JR,rightsquigarrow:KR,RightTeeArrow:GR,RightTee:XR,RightTeeVector:ZR,rightthreetimes:QR,RightTriangleBar:YR,RightTriangle:eB,RightTriangleEqual:tB,RightUpDownVector:nB,RightUpTeeVector:aB,RightUpVectorBar:lB,RightUpVector:oB,RightVectorBar:rB,RightVector:iB,ring:cB,risingdotseq:uB,rlarr:sB,rlhar:dB,rlm:pB,rmoustache:hB,rmoust:fB,rnmid:mB,roang:vB,roarr:bB,robrk:gB,ropar:yB,ropf:wB,Ropf:kB,roplus:xB,rotimes:CB,RoundImplies:TB,rpar:MB,rpargt:OB,rppolint:SB,rrarr:EB,Rrightarrow:NB,rsaquo:DB,rscr:AB,Rscr:LB,rsh:IB,Rsh:RB,rsqb:BB,rsquo:PB,rsquor:jB,rthree:FB,rtimes:HB,rtri:zB,rtrie:VB,rtrif:_B,rtriltri:qB,RuleDelayed:$B,ruluhar:UB,rx:WB,Sacute:JB,sacute:KB,sbquo:GB,scap:XB,Scaron:ZB,scaron:QB,Sc:YB,sc:eP,sccue:tP,sce:nP,scE:aP,Scedil:lP,scedil:oP,Scirc:rP,scirc:iP,scnap:cP,scnE:uP,scnsim:sP,scpolint:dP,scsim:pP,Scy:hP,scy:fP,sdotb:mP,sdot:vP,sdote:bP,searhk:gP,searr:yP,seArr:wP,searrow:kP,sect:xP,semi:CP,seswar:TP,setminus:MP,setmn:OP,sext:SP,Sfr:EP,sfr:NP,sfrown:DP,sharp:AP,SHCHcy:LP,shchcy:IP,SHcy:RP,shcy:BP,ShortDownArrow:PP,ShortLeftArrow:jP,shortmid:FP,shortparallel:HP,ShortRightArrow:zP,ShortUpArrow:VP,shy:_P,Sigma:qP,sigma:$P,sigmaf:UP,sigmav:WP,sim:JP,simdot:KP,sime:GP,simeq:XP,simg:ZP,simgE:QP,siml:YP,simlE:ej,simne:tj,simplus:nj,simrarr:aj,slarr:lj,SmallCircle:oj,smallsetminus:rj,smashp:ij,smeparsl:cj,smid:uj,smile:sj,smt:dj,smte:pj,smtes:hj,SOFTcy:fj,softcy:mj,solbar:vj,solb:bj,sol:gj,Sopf:yj,sopf:wj,spades:kj,spadesuit:xj,spar:Cj,sqcap:Tj,sqcaps:Mj,sqcup:Oj,sqcups:Sj,Sqrt:Ej,sqsub:Nj,sqsube:Dj,sqsubset:Aj,sqsubseteq:Lj,sqsup:Ij,sqsupe:Rj,sqsupset:Bj,sqsupseteq:Pj,square:jj,Square:Fj,SquareIntersection:Hj,SquareSubset:zj,SquareSubsetEqual:Vj,SquareSuperset:_j,SquareSupersetEqual:qj,SquareUnion:$j,squarf:Uj,squ:Wj,squf:Jj,srarr:Kj,Sscr:Gj,sscr:Xj,ssetmn:Zj,ssmile:Qj,sstarf:Yj,Star:eF,star:tF,starf:nF,straightepsilon:aF,straightphi:lF,strns:oF,sub:rF,Sub:iF,subdot:cF,subE:uF,sube:sF,subedot:dF,submult:pF,subnE:hF,subne:fF,subplus:mF,subrarr:vF,subset:bF,Subset:gF,subseteq:yF,subseteqq:wF,SubsetEqual:kF,subsetneq:xF,subsetneqq:CF,subsim:TF,subsub:MF,subsup:OF,succapprox:SF,succ:EF,succcurlyeq:NF,Succeeds:DF,SucceedsEqual:AF,SucceedsSlantEqual:LF,SucceedsTilde:IF,succeq:RF,succnapprox:BF,succneqq:PF,succnsim:jF,succsim:FF,SuchThat:HF,sum:zF,Sum:VF,sung:_F,sup1:qF,sup2:$F,sup3:UF,sup:WF,Sup:JF,supdot:KF,supdsub:GF,supE:XF,supe:ZF,supedot:QF,Superset:YF,SupersetEqual:eH,suphsol:tH,suphsub:nH,suplarr:aH,supmult:lH,supnE:oH,supne:rH,supplus:iH,supset:cH,Supset:uH,supseteq:sH,supseteqq:dH,supsetneq:pH,supsetneqq:hH,supsim:fH,supsub:mH,supsup:vH,swarhk:bH,swarr:gH,swArr:yH,swarrow:wH,swnwar:kH,szlig:xH,Tab:CH,target:TH,Tau:MH,tau:OH,tbrk:SH,Tcaron:EH,tcaron:NH,Tcedil:DH,tcedil:AH,Tcy:LH,tcy:IH,tdot:RH,telrec:BH,Tfr:PH,tfr:jH,there4:FH,therefore:HH,Therefore:zH,Theta:VH,theta:_H,thetasym:qH,thetav:$H,thickapprox:UH,thicksim:WH,ThickSpace:JH,ThinSpace:KH,thinsp:GH,thkap:XH,thksim:ZH,THORN:QH,thorn:YH,tilde:ez,Tilde:tz,TildeEqual:nz,TildeFullEqual:az,TildeTilde:lz,timesbar:oz,timesb:rz,times:iz,timesd:cz,tint:uz,toea:sz,topbot:dz,topcir:pz,top:hz,Topf:fz,topf:mz,topfork:vz,tosa:bz,tprime:gz,trade:yz,TRADE:wz,triangle:kz,triangledown:xz,triangleleft:Cz,trianglelefteq:Tz,triangleq:Mz,triangleright:Oz,trianglerighteq:Sz,tridot:Ez,trie:Nz,triminus:Dz,TripleDot:Az,triplus:Lz,trisb:Iz,tritime:Rz,trpezium:Bz,Tscr:Pz,tscr:jz,TScy:Fz,tscy:Hz,TSHcy:zz,tshcy:Vz,Tstrok:_z,tstrok:qz,twixt:$z,twoheadleftarrow:Uz,twoheadrightarrow:Wz,Uacute:Jz,uacute:Kz,uarr:Gz,Uarr:Xz,uArr:Zz,Uarrocir:Qz,Ubrcy:Yz,ubrcy:eV,Ubreve:tV,ubreve:nV,Ucirc:aV,ucirc:lV,Ucy:oV,ucy:rV,udarr:iV,Udblac:cV,udblac:uV,udhar:sV,ufisht:dV,Ufr:pV,ufr:hV,Ugrave:fV,ugrave:mV,uHar:vV,uharl:bV,uharr:gV,uhblk:yV,ulcorn:wV,ulcorner:kV,ulcrop:xV,ultri:CV,Umacr:TV,umacr:MV,uml:OV,UnderBar:SV,UnderBrace:EV,UnderBracket:NV,UnderParenthesis:DV,Union:AV,UnionPlus:LV,Uogon:IV,uogon:RV,Uopf:BV,uopf:PV,UpArrowBar:jV,uparrow:FV,UpArrow:HV,Uparrow:zV,UpArrowDownArrow:VV,updownarrow:_V,UpDownArrow:qV,Updownarrow:$V,UpEquilibrium:UV,upharpoonleft:WV,upharpoonright:JV,uplus:KV,UpperLeftArrow:GV,UpperRightArrow:XV,upsi:ZV,Upsi:QV,upsih:YV,Upsilon:e_,upsilon:t_,UpTeeArrow:n_,UpTee:a_,upuparrows:l_,urcorn:o_,urcorner:r_,urcrop:i_,Uring:c_,uring:u_,urtri:s_,Uscr:d_,uscr:p_,utdot:h_,Utilde:f_,utilde:m_,utri:v_,utrif:b_,uuarr:g_,Uuml:y_,uuml:w_,uwangle:k_,vangrt:x_,varepsilon:C_,varkappa:T_,varnothing:M_,varphi:O_,varpi:S_,varpropto:E_,varr:N_,vArr:D_,varrho:A_,varsigma:L_,varsubsetneq:I_,varsubsetneqq:R_,varsupsetneq:B_,varsupsetneqq:P_,vartheta:j_,vartriangleleft:F_,vartriangleright:H_,vBar:z_,Vbar:V_,vBarv:__,Vcy:q_,vcy:$_,vdash:U_,vDash:W_,Vdash:J_,VDash:K_,Vdashl:G_,veebar:X_,vee:Z_,Vee:Q_,veeeq:Y_,vellip:eq,verbar:tq,Verbar:nq,vert:aq,Vert:lq,VerticalBar:oq,VerticalLine:rq,VerticalSeparator:iq,VerticalTilde:cq,VeryThinSpace:uq,Vfr:sq,vfr:dq,vltri:pq,vnsub:hq,vnsup:fq,Vopf:mq,vopf:vq,vprop:bq,vrtri:gq,Vscr:yq,vscr:wq,vsubnE:kq,vsubne:xq,vsupnE:Cq,vsupne:Tq,Vvdash:Mq,vzigzag:Oq,Wcirc:Sq,wcirc:Eq,wedbar:Nq,wedge:Dq,Wedge:Aq,wedgeq:Lq,weierp:Iq,Wfr:Rq,wfr:Bq,Wopf:Pq,wopf:jq,wp:Fq,wr:Hq,wreath:zq,Wscr:Vq,wscr:_q,xcap:qq,xcirc:$q,xcup:Uq,xdtri:Wq,Xfr:Jq,xfr:Kq,xharr:Gq,xhArr:Xq,Xi:Zq,xi:Qq,xlarr:Yq,xlArr:e$,xmap:t$,xnis:n$,xodot:a$,Xopf:l$,xopf:o$,xoplus:r$,xotime:i$,xrarr:c$,xrArr:u$,Xscr:s$,xscr:d$,xsqcup:p$,xuplus:h$,xutri:f$,xvee:m$,xwedge:v$,Yacute:b$,yacute:g$,YAcy:y$,yacy:w$,Ycirc:k$,ycirc:x$,Ycy:C$,ycy:T$,yen:M$,Yfr:O$,yfr:S$,YIcy:E$,yicy:N$,Yopf:D$,yopf:A$,Yscr:L$,yscr:I$,YUcy:R$,yucy:B$,yuml:P$,Yuml:j$,Zacute:F$,zacute:H$,Zcaron:z$,zcaron:V$,Zcy:_$,zcy:q$,Zdot:$$,zdot:U$,zeetrf:W$,ZeroWidthSpace:J$,Zeta:K$,zeta:G$,zfr:X$,Zfr:Z$,ZHcy:Q$,zhcy:Y$,zigrarr:eU,zopf:tU,Zopf:nU,Zscr:aU,zscr:lU,zwj:oU,zwnj:rU},cU="Á",uU="á",sU="Â",dU="â",pU="´",hU="Æ",fU="æ",mU="À",vU="à",bU="&",gU="&",yU="Å",wU="å",kU="Ã",xU="ã",CU="Ä",TU="ä",MU="¦",OU="Ç",SU="ç",EU="¸",NU="¢",DU="©",AU="©",LU="¤",IU="°",RU="÷",BU="É",PU="é",jU="Ê",FU="ê",HU="È",zU="è",VU="Ð",_U="ð",qU="Ë",$U="ë",UU="½",WU="¼",JU="¾",KU=">",GU=">",XU="Í",ZU="í",QU="Î",YU="î",eW="¡",tW="Ì",nW="ì",aW="¿",lW="Ï",oW="ï",rW="«",iW="<",cW="<",uW="¯",sW="µ",dW="·",pW=" ",hW="¬",fW="Ñ",mW="ñ",vW="Ó",bW="ó",gW="Ô",yW="ô",wW="Ò",kW="ò",xW="ª",CW="º",TW="Ø",MW="ø",OW="Õ",SW="õ",EW="Ö",NW="ö",DW="¶",AW="±",LW="£",IW='"',RW='"',BW="»",PW="®",jW="®",FW="§",HW="",zW="¹",VW="²",_W="³",qW="ß",$W="Þ",UW="þ",WW="×",JW="Ú",KW="ú",GW="Û",XW="û",ZW="Ù",QW="ù",YW="¨",eJ="Ü",tJ="ü",nJ="Ý",aJ="ý",lJ="¥",oJ="ÿ",rJ={Aacute:cU,aacute:uU,Acirc:sU,acirc:dU,acute:pU,AElig:hU,aelig:fU,Agrave:mU,agrave:vU,amp:bU,AMP:gU,Aring:yU,aring:wU,Atilde:kU,atilde:xU,Auml:CU,auml:TU,brvbar:MU,Ccedil:OU,ccedil:SU,cedil:EU,cent:NU,copy:DU,COPY:AU,curren:LU,deg:IU,divide:RU,Eacute:BU,eacute:PU,Ecirc:jU,ecirc:FU,Egrave:HU,egrave:zU,ETH:VU,eth:_U,Euml:qU,euml:$U,frac12:UU,frac14:WU,frac34:JU,gt:KU,GT:GU,Iacute:XU,iacute:ZU,Icirc:QU,icirc:YU,iexcl:eW,Igrave:tW,igrave:nW,iquest:aW,Iuml:lW,iuml:oW,laquo:rW,lt:iW,LT:cW,macr:uW,micro:sW,middot:dW,nbsp:pW,not:hW,Ntilde:fW,ntilde:mW,Oacute:vW,oacute:bW,Ocirc:gW,ocirc:yW,Ograve:wW,ograve:kW,ordf:xW,ordm:CW,Oslash:TW,oslash:MW,Otilde:OW,otilde:SW,Ouml:EW,ouml:NW,para:DW,plusmn:AW,pound:LW,quot:IW,QUOT:RW,raquo:BW,reg:PW,REG:jW,sect:FW,shy:HW,sup1:zW,sup2:VW,sup3:_W,szlig:qW,THORN:$W,thorn:UW,times:WW,Uacute:JW,uacute:KW,Ucirc:GW,ucirc:XW,Ugrave:ZW,ugrave:QW,uml:YW,Uuml:eJ,uuml:tJ,Yacute:nJ,yacute:aJ,yen:lJ,yuml:oJ},iJ="&",cJ="'",uJ=">",sJ="<",dJ='"',pJ={amp:iJ,apos:cJ,gt:uJ,lt:sJ,quot:dJ},hJ={},fJ={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},mJ=Po&&Po.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hJ,"__esModule",{value:!0});var vJ=mJ(fJ),bJ=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function gJ(e){return e>=55296&&e<=57343||e>1114111?"�":(e in vJ.default&&(e=vJ.default[e]),bJ(e))}hJ.default=gJ;var yJ=Po&&Po.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_o,"__esModule",{value:!0}),_o.decodeHTML=_o.decodeHTMLStrict=_o.decodeXML=void 0;var wJ=yJ(iU),kJ=yJ(rJ),xJ=yJ(pJ),CJ=yJ(hJ),TJ=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function MJ(e){var t=SJ(e);return function(e){return String(e).replace(TJ,t)}}_o.decodeXML=MJ(xJ.default),_o.decodeHTMLStrict=MJ(wJ.default);var OJ=function(e,t){return e1?HJ(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function VJ(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(FJ,zJ)}}var _J=new RegExp(LJ.source+"|"+FJ.source,"g");function qJ(e){return e.replace(_J,zJ)}function $J(e){return e.replace(LJ,zJ)}function UJ(e){return function(t){return t.replace(_J,(function(t){return e[t]||zJ(t)}))}}EJ.escape=qJ,EJ.escapeUTF8=$J,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=_o,n=EJ;function a(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTML)(e)}function l(e,n){return(!n||n<=0?t.decodeXML:t.decodeHTMLStrict)(e)}function o(e,t){return(!t||t<=0?n.encodeXML:n.encodeHTML)(e)}e.decode=a,e.decodeStrict=l,e.encode=o;var r=EJ;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return r.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return r.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return r.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return r.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return r.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return r.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return r.encodeHTML}});var i=_o;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return i.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return i.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return i.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return i.decodeXML}})}(Vo);var WJ="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});",JJ=92,KJ=/[\\&]/,GJ="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",XJ=new RegExp("\\\\"+GJ+"|"+WJ,"gi"),ZJ='[&<>"]',QJ=new RegExp(ZJ,"g"),YJ=function(e){return e.charCodeAt(0)===JJ?e.charAt(1):Vo.decodeHTML(e)};function eK(e){return KJ.test(e)?e.replace(XJ,YJ):e}function tK(e){try{return zo(e)}catch(t){return e}}function nK(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}}function aK(e){return QJ.test(e)?e.replace(QJ,nK):e}function lK(e,t){for(var n=[],a=0;a`\\x00-\\x20]+",zK="'[^']*'",VK='"[^"]*"',_K="(?:"+HK+"|"+zK+"|"+VK+")",qK="(?:\\s*=\\s*"+_K+")",$K="(?:\\s+"+FK+qK+"?)",UK="<"+jK+$K+"*\\s*/?>",WK=""+jK+"\\s*[>]",JK="\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e",KK="[<][?].*?[?][>]",GK="]*>",XK="",ZK="(?:"+UK+"|"+WK+"|"+JK+"|"+KK+"|"+GK+"|"+XK+")",QK=new RegExp("^"+ZK,"i");if(String.fromCodePoint)PK=function(e){try{return String.fromCodePoint(e)}catch(t){if(t instanceof RangeError)return String.fromCharCode(65533);throw t}};else{var YK=String.fromCharCode,eG=Math.floor;PK=function(){for(var e=[],t=0;t1114111||eG(u)!==u)return String.fromCharCode(65533);u<=65535?o.push(u):(u-=65536,n=55296+(u>>10),a=u%1024+56320,o.push(n,a)),(r+1===i||o.length>l)&&(c+=YK.apply(void 0,o),o.length=0)}return c}}var tG=PK,nG="(?:[w-]+.)*[A-Za-z0-9-]+.[A-Za-z0-9-]+",aG="[^<\\s]*[^!.,:*_?~\\s]",lG="[\\w.+-]+@(?:[\\w-]+\\.)+[\\w-]+";function oG(e){var t=/\)+$/.exec(e);if(t){for(var n=0,a=0,l=e;ar&&d.push(BK(l.substring(r,m[0]),s(r,m[0]-1)));var g=OK("link",s.apply(void 0,m));g.appendChild(BK(b,s.apply(void 0,m))),g.destination=v,g.extendedAutolink=!0,d.push(g),r=m[1]+1}r?@\[\]\\^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),PG=new RegExp('^(?:"('+RG+'|[^"\\x00])*"|\'('+RG+"|[^'\\x00])*'|\\(("+RG+"|[^()\\x00])*\\))"),jG=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,FG=new RegExp("^"+GJ),HG=new RegExp("^"+WJ,"i"),zG=/`+/,VG=/^`+/,_G=/\.\.\./g,qG=/--+/g,$G=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,UG=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,WG=/^ *(?:\n *)?/,JG=/^[ \t\n\x0b\x0c\x0d]/,KG=/^\s/,GG=/ *$/,XG=/^ */,ZG=/^ *(?:\n|$)/,QG=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,YG=/^[^\n`\[\]\\!<&*_'"~$]+/m,eX=function(){function e(e){this.subject="",this.delimiters=null,this.brackets=null,this.pos=0,this.lineStartNum=0,this.lineIdx=0,this.lineOffsets=[0],this.linePosOffset=0,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.options=e}return e.prototype.sourcepos=function(e,t){var n=this.linePosOffset+this.lineOffsets[this.lineIdx],a=this.lineStartNum+this.lineIdx,l=[a,e+n];return"number"===typeof t?[l,[a,t+n]]:l},e.prototype.nextLine=function(){this.lineIdx+=1,this.linePosOffset=-this.pos},e.prototype.match=function(e){var t=e.exec(this.subject.slice(this.pos));return null===t?null:(this.pos+=t.index+t[0].length,t[0])},e.prototype.peek=function(){return this.pos1){var c=dG(i);this.lineIdx+=i.length-1,this.linePosOffset=-(this.pos-c.length-n.length),r[1]=this.sourcepos(this.pos),o=i.join(" ")}var u=OK("code",r);return o.length>0&&null!==o.match(/[^ ]/)&&" "==o[0]&&" "==o[o.length-1]?u.literal=o.slice(1,o.length-1):u.literal=o,u.tickCount=n.length,e.appendChild(u),!0}return this.pos=l,e.appendChild(BK(n,this.sourcepos(t,this.pos-1))),!0},e.prototype.parseBackslash=function(e){var t,n=this.subject;this.pos+=1;var a=this.pos;return this.peek()===bG?(this.pos+=1,t=OK("linebreak",this.sourcepos(this.pos-1,this.pos)),e.appendChild(t),this.nextLine()):FG.test(n.charAt(this.pos))?(e.appendChild(BK(n.charAt(this.pos),this.sourcepos(a,this.pos))),this.pos+=1):e.appendChild(BK("\\",this.sourcepos(a,a))),!0},e.prototype.parseAutolink=function(e){var t,n,a,l=this.pos+1;return(t=this.match($G))?(n=t.slice(1,t.length-1),a=OK("link",this.sourcepos(l,this.pos)),a.destination=tK("mailto:"+n),a.title="",a.appendChild(BK(n,this.sourcepos(l+1,this.pos-1))),e.appendChild(a),!0):!!(t=this.match(UG))&&(n=t.slice(1,t.length-1),a=OK("link",this.sourcepos(l,this.pos)),a.destination=tK(n),a.title="",a.appendChild(BK(n,this.sourcepos(l+1,this.pos-1))),e.appendChild(a),!0)},e.prototype.parseHtmlTag=function(e){var t=this.pos+1,n=this.match(QK);if(null===n)return!1;var a=OK("htmlInline",this.sourcepos(t,this.pos));return a.literal=n,e.appendChild(a),!0},e.prototype.scanDelims=function(e){var t=0,n=this.pos;if(e===AG||e===LG)t++,this.pos++;else while(this.peek()===e)t++,this.pos++;if(0===t||t<2&&(e===CG||e===IG))return this.pos=n,null;var a,l=0===n?"\n":this.subject.charAt(n-1),o=this.peek();a=-1===o?"\n":tG(o);var r,i,c=KG.test(a),u=BG.test(a),s=KG.test(l),d=BG.test(l),p=!c&&(!u||s||d),h=!s&&(!d||c||u);return e===yG?(r=p&&(!h||d),i=h&&(!p||u)):e===AG||e===LG?(r=p&&!h,i=h):e===IG?(r=!c,i=!s):(r=p,i=h),this.pos=n,{numdelims:t,canOpen:r,canClose:i}},e.prototype.handleDelim=function(e,t){var n=this.scanDelims(e);if(!n)return!1;var a,l=n.numdelims,o=this.pos+1;this.pos+=l,a=e===AG?"’":e===LG?"“":this.subject.slice(o-1,this.pos);var r=BK(a,this.sourcepos(o,this.pos));return t.appendChild(r),(n.canOpen||n.canClose)&&(this.options.smart||e!==AG&&e!==LG)&&(this.delimiters={cc:e,numdelims:l,origdelims:l,node:r,previous:this.delimiters,next:null,canOpen:n.canOpen,canClose:n.canClose},this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)),!0},e.prototype.removeDelimiter=function(e){null!==e.previous&&(e.previous.next=e.next),null===e.next?this.delimiters=e.previous:e.next.previous=e.previous},e.prototype.removeDelimitersBetween=function(e,t){e.next!==t&&(e.next=t,t.previous=e)},e.prototype.processEmphasis=function(e){var t,n,a,l,o,r,i,c=!1,u=(t={},t[yG]=[e,e,e],t[gG]=[e,e,e],t[AG]=[e],t[LG]=[e],t[CG]=[e],t[IG]=[e],t);a=this.delimiters;while(null!==a&&a.previous!==e)a=a.previous;while(null!==a){var s=a.cc,d=s===yG||s===gG;if(a.canClose){n=a.previous,i=!1;while(null!==n&&n!==e&&n!==u[s][d?a.origdelims%3:0]){if(c=d&&(a.canOpen||n.canClose)&&a.origdelims%3!==0&&(n.origdelims+a.origdelims)%3===0,n.cc===a.cc&&n.canOpen&&!c){i=!0;break}n=n.previous}if(l=a,d||s===CG||s===IG)if(i){if(n){var p=a.numdelims>=2&&n.numdelims>=2?2:1,h=d?0:1;o=n.node,r=a.node;var f=d?1===p?"emph":"strong":"strike";s===IG&&(f="customInline");var m=OK(f),v=o.sourcepos[1],b=r.sourcepos[0];m.sourcepos=[[v[0],v[1]-p+1],[b[0],b[1]+p-1]],o.sourcepos[1][1]-=p,r.sourcepos[0][1]+=p,o.literal=o.literal.slice(p),r.literal=r.literal.slice(p),n.numdelims-=p,a.numdelims-=p;var g=o.next,y=void 0;while(g&&g!==r)y=g.next,g.unlink(),m.appendChild(g),g=y;if(s===IG){var w=m.firstChild,k=w.literal||"",x=k.split(/\s/)[0];m.info=x,k.length<=x.length?w.unlink():(w.sourcepos[0][1]+=x.length,w.literal=k.replace(x+" ",""))}if(o.insertAfter(m),this.removeDelimitersBetween(n,a),n.numdelims<=h&&(0===n.numdelims&&o.unlink(),this.removeDelimiter(n)),a.numdelims<=h){0===a.numdelims&&r.unlink();var C=a.next;this.removeDelimiter(a),a=C}}}else a=a.next;else s===AG?(a.node.literal="’",i&&(n.node.literal="‘"),a=a.next):s===LG&&(a.node.literal="”",i&&(n.node.literal="“"),a=a.next);i||(u[s][d?l.origdelims%3:0]=l.previous,l.canOpen||this.removeDelimiter(l))}else a=a.next}while(null!==this.delimiters&&this.delimiters!==e)this.removeDelimiter(this.delimiters)},e.prototype.parseLinkTitle=function(){var e=this.match(PG);return null===e?null:eK(e.substr(1,e.length-2))},e.prototype.parseLinkDestination=function(){var e=this.match(jG);if(null===e){if(this.peek()===TG)return null;var t=this.pos,n=0,a=void 0;while(-1!==(a=this.peek()))if(a===OG&&FG.test(this.subject.charAt(this.pos+1)))this.pos+=1,-1!==this.peek()&&(this.pos+=1);else if(a===EG)this.pos+=1,n+=1;else if(a===NG){if(n<1)break;this.pos+=1,n-=1}else{if(null!==JG.exec(tG(a)))break;this.pos+=1}return this.pos===t&&a!==NG||0!==n?null:(e=this.subject.substr(t,this.pos-t),tK(eK(e)))}return tK(eK(e.substr(1,e.length-2)))},e.prototype.parseLinkLabel=function(){var e=this.match(QG);return null===e||e.length>1001?0:e.length},e.prototype.parseOpenBracket=function(e){var t=this.pos;this.pos+=1;var n=BK("[",this.sourcepos(this.pos,this.pos));return e.appendChild(n),this.addBracket(n,t,!1),!0},e.prototype.parseBang=function(e){var t=this.pos;if(this.pos+=1,this.peek()===kG){this.pos+=1;var n=BK("![",this.sourcepos(this.pos-1,this.pos));e.appendChild(n),this.addBracket(n,t+1,!0)}else{n=BK("!",this.sourcepos(this.pos,this.pos));e.appendChild(n)}return!0},e.prototype.parseCloseBracket=function(e){var t=null,n=null,a=!1;this.pos+=1;var l=this.pos,o=this.brackets;if(null===o)return e.appendChild(BK("]",this.sourcepos(l,l))),!0;if(!o.active)return e.appendChild(BK("]",this.sourcepos(l,l))),this.removeBracket(),!0;var r=o.image,i=this.pos;this.peek()===EG&&(this.pos++,this.spnl()&&null!==(t=this.parseLinkDestination())&&this.spnl()&&(JG.test(this.subject.charAt(this.pos-1))&&(n=this.parseLinkTitle()),1)&&this.spnl()&&this.peek()===NG?(this.pos+=1,a=!0):this.pos=i);var c="";if(!a){var u=this.pos,s=this.parseLinkLabel();if(s>2?c=this.subject.slice(u,u+s):o.bracketAfter||(c=this.subject.slice(o.index,l)),0===s&&(this.pos=i),c){c=pG(c);var d=this.refMap[c];d&&(t=d.destination,n=d.title,a=!0)}}if(a){var p=OK(r?"image":"link");p.destination=t,p.title=n||"",p.sourcepos=[o.startpos,this.sourcepos(this.pos)];var h=o.node.next,f=void 0;while(h)f=h.next,h.unlink(),p.appendChild(h),h=f;if(e.appendChild(p),this.processEmphasis(o.previousDelimiter),this.removeBracket(),o.node.unlink(),!r){o=this.brackets;while(null!==o)o.image||(o.active=!1),o=o.previous}return this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:c}),!0}return this.removeBracket(),this.pos=l,e.appendChild(BK("]",this.sourcepos(l,l))),this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:c}),!0},e.prototype.addBracket=function(e,t,n){null!==this.brackets&&(this.brackets.bracketAfter=!0),this.brackets={node:e,startpos:this.sourcepos(t+(n?0:1)),previous:this.brackets,previousDelimiter:this.delimiters,index:t,image:n,active:!0}},e.prototype.removeBracket=function(){this.brackets&&(this.brackets=this.brackets.previous)},e.prototype.parseEntity=function(e){var t,n=this.pos+1;return!!(t=this.match(HG))&&(e.appendChild(BK(Vo.decodeHTML(t),this.sourcepos(n,this.pos))),!0)},e.prototype.parseString=function(e){var t,n=this.pos+1;if(t=this.match(YG)){if(this.options.smart){var a=t.replace(_G,"…").replace(qG,(function(e){var t=0,n=0;return e.length%3===0?n=e.length/3:e.length%2===0?t=e.length/2:e.length%3===2?(t=1,n=(e.length-2)/3):(t=2,n=(e.length-4)/3),lK("—",n)+lK("–",t)}));e.appendChild(BK(a,this.sourcepos(n,this.pos)))}else{var l=BK(t,this.sourcepos(n,this.pos));e.appendChild(l)}return!0}return!1},e.prototype.parseNewline=function(e){this.pos+=1;var t=e.lastChild;if(t&&"text"===t.type&&" "===t.literal[t.literal.length-1]){var n=" "===t.literal[t.literal.length-2],a=t.literal.length;t.literal=t.literal.replace(GG,"");var l=a-t.literal.length;t.sourcepos[1][1]-=l,e.appendChild(OK(n?"linebreak":"softbreak",this.sourcepos(this.pos-l,this.pos)))}else e.appendChild(OK("softbreak",this.sourcepos(this.pos,this.pos)));return this.nextLine(),this.match(XG),!0},e.prototype.parseReference=function(e,t){if(!this.options.referenceDefinition)return 0;this.subject=e.stringContent,this.pos=0;var n=null,a=this.pos,l=this.parseLinkLabel();if(0===l)return 0;var o=this.subject.substr(0,l);if(this.peek()!==DG)return this.pos=a,0;this.pos++,this.spnl();var r=this.parseLinkDestination();if(null===r)return this.pos=a,0;var i=this.pos;this.spnl(),this.pos!==i&&(n=this.parseLinkTitle()),null===n&&(n="",this.pos=i);var c=!0;if(null===this.match(ZG)&&(""===n?c=!1:(n="",this.pos=i,c=null!==this.match(ZG))),!c)return this.pos=a,0;var u=pG(o);if(""===u)return this.pos=a,0;var s=this.getReferenceDefSourcepos(e);e.sourcepos[0][0]=s[1][0]+1;var d=OK("refDef",s);return d.title=n,d.dest=r,d.label=u,e.insertBefore(d),t[u]?this.refDefCandidateMap[d.id]=d:t[u]=FZ(d),this.pos-a},e.prototype.mergeTextNodes=function(e){var t,n=[];while(t=e.next()){var a=t.entering,l=t.node;if(a&&"text"===l.type)n.push(l);else if(1===n.length)n=[];else if(n.length>1){var o=n[0],r=n[n.length-1];o.sourcepos&&r.sourcepos&&(o.sourcepos[1]=r.sourcepos[1]),o.next=r.next,o.next&&(o.next.prev=o);for(var i=1;i0&&kX(yX(n,e.offset)))e.advanceOffset(1,!0),l--;return 0},finalize:function(e,t){if(null!==t.stringContent){var n=t.stringContent,a=n.indexOf("\n"),l=n.slice(0,a),o=n.slice(a+1),r=l.match(/^(\s*)(.*)/);t.info=eK(r[2].trim()),t.literal=o,t.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},TX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!0},MX={continue:function(){return 0},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},OX={continue:function(){return 0},finalize:function(e,t){var n=t.firstChild;while(n){if(gX(n)&&n.next){t.listData.tight=!1;break}var a=n.firstChild;while(a){if(gX(a)&&(n.next||a.next)){t.listData.tight=!1;break}a=a.next}n=n.next}},canContain:function(e){return"item"===e},acceptsLines:!1},SX={continue:function(e){var t=e.currentLine;return e.indented||yX(t,e.nextNonspace)!==pX?1:(e.advanceNextNonspace(),e.advanceOffset(1,!1),kX(yX(t,e.offset))&&e.advanceOffset(1,!0),0)},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},EX={continue:function(e,t){if(e.blank){if(null===t.firstChild)return 1;e.advanceNextNonspace()}else{if(!(e.indent>=t.listData.markerOffset+t.listData.padding))return 1;e.advanceOffset(t.listData.markerOffset+t.listData.padding,!0)}return 0},finalize:nX,canContain:function(e){return"item"!==e},acceptsLines:!1},NX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},DX={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},AX={continue:function(e,t){var n=e.currentLine,a=e.indent;if(t.isFenced){var l=a<=3&&n.charAt(e.nextNonspace)===t.fenceChar&&n.slice(e.nextNonspace).match(bX);if(l&&l[0].length>=t.fenceLength)return e.lastLineLength=e.offset+a+l[0].length,e.finalize(t,e.lineNumber),2;var o=t.fenceOffset;while(o>0&&kX(yX(n,e.offset)))e.advanceOffset(1,!0),o--}else if(a>=sX)e.advanceOffset(sX,!0);else{if(!e.blank)return 1;e.advanceNextNonspace()}return 0},finalize:function(e,t){var n;if(null!==t.stringContent){if(t.isFenced){var a=t.stringContent,l=a.indexOf("\n"),o=a.slice(0,l),r=a.slice(l+1),i=o.match(/^(\s*)(.*)/);t.infoPadding=i[1].length,t.info=eK(i[2].trim()),t.literal=r}else t.literal=null===(n=t.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,"\n");t.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},LX={continue:function(e,t){return!e.blank||6!==t.htmlBlockType&&7!==t.htmlBlockType?0:1},finalize:function(e,t){var n;t.literal=(null===(n=t.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,""))||null,t.stringContent=null},canContain:function(){return!1},acceptsLines:!0},IX={continue:function(e){return e.blank?1:0},finalize:function(e,t){if(null!==t.stringContent){var n,a=!1;while(yX(t.stringContent,0)===mX&&(n=e.inlineParser.parseReference(t,e.refMap)))t.stringContent=t.stringContent.slice(n),a=!0;a&&wX(t.stringContent)&&t.unlink()}},canContain:function(){return!1},acceptsLines:!0},RX=TX,BX=TX,PX={document:MX,list:OX,blockQuote:SX,item:EX,heading:NX,thematicBreak:DX,codeBlock:AX,htmlBlock:LX,paragraph:IX,table:aX,tableBody:lX,tableHead:oX,tableRow:cX,tableCell:uX,tableDelimRow:rX,tableDelimCell:iX,refDef:RX,customBlock:CX,frontMatter:BX};function jX(e){for(var t=0,n=0,a=[],l=0;l=o.columns.length&&(e.ignored=!0),l.appendChild(e)})),2},_X=/^(\$\$)(\s*[a-zA-Z])+/,qX=/^(\$\$)(\s*[a-zA-Z])+.*(\$\$)/,$X=function(e){var t;if(!e.indented&&!qX.test(e.currentLine)&&(t=e.currentLine.match(_X))){var n=t[1].length;e.closeUnmatchedBlocks();var a=e.addChild("customBlock",e.nextNonspace);return a.syntaxLength=n,a.offset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},UX=/^`{3,}(?!.*`)|^~{3,}/,WX=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^/,/\?>/,/>/,/\]\]>/],fZ=/^[#`~*+_=<>0-9-;$]/,mZ=/\r\n|\n|\r/;function vZ(){return OK("document",[[1,1],[0,0]])}var bZ={smart:!1,tagFilter:!1,extendedAutolinks:!1,disallowedHtmlBlockTags:[],referenceDefinition:!1,disallowDeepHeading:!1,customParser:null,frontMatter:!1},gZ=function(){function e(e){this.options=Ro(Ro({},bZ),e),this.doc=vZ(),this.tip=this.doc,this.oldtip=this.doc,this.lineNumber=0,this.offset=0,this.column=0,this.nextNonspace=0,this.nextNonspaceColumn=0,this.indent=0,this.currentLine="",this.indented=!1,this.blank=!1,this.partiallyConsumedTab=!1,this.allClosed=!0,this.lastMatchedContainer=this.doc,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.lastLineLength=0,this.lines=[],this.options.frontMatter&&(PX.frontMatter=pZ,uZ.unshift(dZ)),this.inlineParser=new eX(this.options)}return e.prototype.advanceOffset=function(e,t){void 0===t&&(t=!1);var n,a,l,o=this.currentLine;while(e>0&&(l=o[this.offset]))"\t"===l?(n=4-this.column%4,t?(this.partiallyConsumedTab=n>e,a=n>e?e:n,this.column+=a,this.offset+=this.partiallyConsumedTab?0:1,e-=a):(this.partiallyConsumedTab=!1,this.column+=n,this.offset+=1,e-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,e-=1)},e.prototype.advanceNextNonspace=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},e.prototype.findNextNonspace=function(){var e,t=this.currentLine,n=this.offset,a=this.column;while(""!==(e=t.charAt(n)))if(" "===e)n++,a++;else{if("\t"!==e)break;n++,a+=4-a%4}this.blank="\n"===e||"\r"===e||""===e,this.nextNonspace=n,this.nextNonspaceColumn=a,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=sX},e.prototype.addLine=function(){if(this.partiallyConsumedTab){this.offset+=1;var e=4-this.column%4;this.tip.stringContent+=lK(" ",e)}this.tip.lineOffsets?this.tip.lineOffsets.push(this.offset):this.tip.lineOffsets=[this.offset],this.tip.stringContent+=this.currentLine.slice(this.offset)+"\n"},e.prototype.addChild=function(e,t){while(!PX[this.tip.type].canContain(e))this.finalize(this.tip,this.lineNumber-1);var n=t+1,a=OK(e,[[this.lineNumber,n],[0,0]]);return a.stringContent="",this.tip.appendChild(a),this.tip=a,a},e.prototype.closeUnmatchedBlocks=function(){if(!this.allClosed){while(this.oldtip!==this.lastMatchedContainer){var e=this.oldtip.parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=e}this.allClosed=!0}},e.prototype.finalize=function(e,t){var n=e.parent;e.open=!1,e.sourcepos[1]=[t,this.lastLineLength],PX[e.type].finalize(this,e),this.tip=n},e.prototype.processInlines=function(e){var t,n=this.options.customParser,a=e.walker();this.inlineParser.refMap=this.refMap,this.inlineParser.refLinkCandidateMap=this.refLinkCandidateMap,this.inlineParser.refDefCandidateMap=this.refDefCandidateMap,this.inlineParser.options=this.options;while(t=a.next()){var l=t.node,o=t.entering,r=l.type;n&&n[r]&&n[r](l,{entering:o,options:this.options}),o||"paragraph"!==r&&"heading"!==r&&("tableCell"!==r||l.ignored)||this.inlineParser.parse(l)}},e.prototype.incorporateLine=function(e){var t=this.doc;this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,-1!==e.indexOf("\0")&&(e=e.replace(/\0/g,"�")),this.currentLine=e;var n,a=!0;while((n=t.lastChild)&&n.open){switch(t=n,this.findNextNonspace(),PX[t.type]["continue"](this,t)){case 0:break;case 1:a=!1;break;case 2:return void(this.lastLineLength=e.length);default:throw new Error("continue returned illegal value, must be 0, 1, or 2")}if(!a){t=t.parent;break}}this.allClosed=t===this.oldtip,this.lastMatchedContainer=t;var l="paragraph"!==t.type&&PX[t.type].acceptsLines,o=uZ.length;while(!l){if(this.findNextNonspace(),"table"!==t.type&&"tableBody"!==t.type&&"paragraph"!==t.type&&!this.indented&&!fZ.test(e.slice(this.nextNonspace))){this.advanceNextNonspace();break}var r=0;while(r=1&&t.htmlBlockType<=5&&hZ[t.htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=e.length,this.finalize(t,this.lineNumber))):this.offsett[0]?-1:e[1]t[1]?-1:0}function wZ(e,t){var n=e[0],a=e[1];return 1===yZ(a,t)?1:-1===yZ(n,t)?-1:0}function kZ(e,t){if(e.parent===t.parent&&e!==t){var n=e.next;while(n&&n!==t){for(var a=n.next,l=0,o=["parent","prev","next"];l=0;n-=1)e.prependChild(t[n])}function MZ(e,t){if(e&&e.parent&&0!==t){var n,a=e.parent.walker();a.resumeAt(e,!0);while(n=a.next()){var l=n.node,o=n.entering;o&&(l.sourcepos[0][0]+=t,l.sourcepos[1][0]+=t)}}}function OZ(e,t){var n=e[0],a=e[1];return a[0]t?-1:0}function SZ(e,t){var n=e.firstChild;while(n){var a=OZ(n.sourcepos,t);if(0===a)return n;if(-1===a)return n.prev||n;n=n.next}return e.lastChild}function EZ(e){while(e.lastChild)e=e.lastChild;return e}function NZ(e){while(e.parent&&"document"!==e.parent.type&&e.parent.sourcepos[0][0]===e.sourcepos[0][0])e=e.parent;return e}function DZ(e,t){var n=e.firstChild,a=null;while(n){var l=OZ(n.sourcepos,t);if(0===l){if(n.sourcepos[0][0]===t||!n.firstChild)return n;a=n,n=n.firstChild}else{if(-1===l)break;a=n,n=n.next}}return a?NZ(EZ(a)):null}function AZ(e,t){var n=e,a=null;while(n){var l=wZ(n.sourcepos,t);if(0===l){if(!n.firstChild)return n;a=n,n=n.firstChild}else{if(-1===l)return a;if(!n.next)return a;n=n.next}}return n}function LZ(e){return sK(e)||null}function IZ(e,t,n){if(void 0===n&&(n=null),t){var a=t.walker();while(t&&t!==n){e(t);var l=a.next();if(!l)break;t=l.node}}}function RZ(e){var t=LZ(e);if(!t)return!0;while(t&&"document"!==t.type){if(!t.parent&&!t.prev&&!t.next)return!0;t=t.parent}return!1}var BZ=/\r\n|\n|\r/;function PZ(e){var t=e.match(/^[ \t]+/);if(t&&(t[0].length>=2||/\t/.test(t[0])))return!0;var n=t?e.slice(t.length):e;return XX.test(n)||ZX.test(n)}function jZ(e){return!wX(e)&&-1!==e.indexOf("|")}function FZ(e){var t=e.id,n=e.title,a=e.sourcepos,l=e.dest;return{id:t,title:n,sourcepos:a,unlinked:!1,destination:l}}var HZ=function(){function e(e,t){this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.referenceDefinition=!!(null===t||void 0===t?void 0:t.referenceDefinition),this.parser=new gZ(t),this.parser.setRefMaps(this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap),this.eventHandlerMap={change:[]},e=e||"",this.lineTexts=e.split(BZ),this.root=this.parser.parse(e,this.lineTexts)}return e.prototype.updateLineTexts=function(e,t,n){var a,l=e[0],o=e[1],r=t[0],i=t[1],c=n.split(BZ),u=c.length,s=this.lineTexts[l-1],d=this.lineTexts[r-1];c[0]=s.slice(0,o-1)+c[0],c[u-1]=c[u-1]+d.slice(i-1);var p=r-l+1;return(a=this.lineTexts).splice.apply(a,Bo([l-1,p],c)),u-p},e.prototype.updateRootNodeState=function(){if(1===this.lineTexts.length&&""===this.lineTexts[0])return this.root.lastLineBlank=!0,void(this.root.sourcepos=[[1,1],[1,0]]);this.root.lastChild&&(this.root.lastLineBlank=this.root.lastChild.lastLineBlank);var e=this.lineTexts,t=e.length-1;while(""===e[t])t-=1;e.length-2>t&&(t+=1),this.root.sourcepos[1]=[t+1,e[t].length]},e.prototype.replaceRangeNodes=function(e,t,n){e?(CZ(e,n),kZ(e,t),[e.id,t.id].forEach((function(e){return dK(e)})),e.unlink()):t?(CZ(t,n),dK(t.id),t.unlink()):TZ(this.root,n)},e.prototype.getNodeRange=function(e,t){var n=SZ(this.root,e[0]),a=SZ(this.root,t[0]);return a&&a.next&&t[0]+1===a.next.sourcepos[0][0]&&(a=a.next),[n,a]},e.prototype.trigger=function(e,t){this.eventHandlerMap[e].forEach((function(e){e(t)}))},e.prototype.extendEndLine=function(e){while(""===this.lineTexts[e])e+=1;return e},e.prototype.parseRange=function(e,t,n,a){e&&e.prev&&(DK(e.prev)&&PZ(this.lineTexts[n-1])||AK(e.prev)&&jZ(this.lineTexts[n-1]))&&(e=e.prev,n=e.sourcepos[0][0]);var l=this.lineTexts.slice(n-1,a),o=this.parser.partialParseStart(n,l),r=t?t.next:this.root.firstChild,i=o.lastChild,c=i&&SK(i)&&i.open,u=i&&IK(i)&&i.open,s=i&&DK(i);while((c||u)&&r||s&&r&&("list"===r.type||r.sourcepos[0][1]>=2)){var d=this.extendEndLine(r.sourcepos[1][0]);this.parser.partialParseExtends(this.lineTexts.slice(a,d)),e||(e=t),t=r,a=d,r=r.next}this.parser.partialParseFinish();var p=xZ(o);return{newNodes:p,extStartNode:e,extEndNode:t}},e.prototype.getRemovedNodeRange=function(e,t){return!e||e&&LK(e)||t&&LK(t)?null:{id:[e.id,t.id],line:[e.sourcepos[0][0]-1,t.sourcepos[1][0]-1]}},e.prototype.markDeletedRefMap=function(e,t){var n=this;if(!mG(this.refMap)){var a=function(e){if(LK(e)){var t=n.refMap[e.label];t&&e.id===t.id&&(t.unlinked=!0)}};e&&IZ(a,e.parent,t),t&&IZ(a,t)}},e.prototype.replaceWithNewRefDefState=function(e){var t=this;if(!mG(this.refMap)){var n=function(e){if(LK(e)){var n=e.label,a=t.refMap[n];a&&!a.unlinked||(t.refMap[n]=FZ(e))}};e.forEach((function(e){IZ(n,e)}))}},e.prototype.replaceWithRefDefCandidate=function(){var e=this;mG(this.refDefCandidateMap)||hG(this.refDefCandidateMap,(function(t,n){var a=n.label,l=n.sourcepos,o=e.refMap[a];(!o||o.unlinked||o.sourcepos[0][0]>l[0][0])&&(e.refMap[a]=FZ(n))}))},e.prototype.getRangeWithRefDef=function(e,t,n,a,l){if(this.referenceDefinition&&!mG(this.refMap)){var o=SZ(this.root,e-1),r=SZ(this.root,t+1);o&&LK(o)&&o!==n&&o!==a&&(n=o,e=n.sourcepos[0][0]),r&&LK(r)&&r!==n&&r!==a&&(a=r,t=this.extendEndLine(a.sourcepos[1][0]+l))}return[n,a,e,t]},e.prototype.parse=function(e,t,n){void 0===n&&(n=0);var a=this.getNodeRange(e,t),l=a[0],o=a[1],r=l?Math.min(l.sourcepos[0][0],e[0]):e[0],i=this.extendEndLine((o?Math.max(o.sourcepos[1][0],t[0]):t[0])+n),c=this.parseRange.apply(this,this.getRangeWithRefDef(r,i,l,o,n)),u=c.newNodes,s=c.extStartNode,d=c.extEndNode,p=this.getRemovedNodeRange(s,d),h=d?d.next:this.root.firstChild;return this.referenceDefinition?(this.markDeletedRefMap(s,d),this.replaceRangeNodes(s,d,u),this.replaceWithNewRefDefState(u)):this.replaceRangeNodes(s,d,u),{nodes:u,removedNodeRange:p,nextNode:h}},e.prototype.parseRefLink=function(){var e=this,t=[];return mG(this.refMap)||hG(this.refMap,(function(n,a){a.unlinked&&delete e.refMap[n],hG(e.refLinkCandidateMap,(function(a,l){var o=l.node,r=l.refLabel;r===n&&t.push(e.parse(o.sourcepos[0],o.sourcepos[1]))}))})),t},e.prototype.removeUnlinkedCandidate=function(){mG(this.refDefCandidateMap)||[this.refLinkCandidateMap,this.refDefCandidateMap].forEach((function(e){hG(e,(function(t){RZ(t)&&delete e[t]}))}))},e.prototype.editMarkdown=function(e,t,n){var a=this.updateLineTexts(e,t,n),l=this.parse(e,t,a),o=fG(l,"nextNode");MZ(l.nextNode,a),this.updateRootNodeState();var r=[o];return this.referenceDefinition&&(this.removeUnlinkedCandidate(),this.replaceWithRefDefCandidate(),r=r.concat(this.parseRefLink())),this.trigger("change",r),r},e.prototype.getLineTexts=function(){return this.lineTexts},e.prototype.getRootNode=function(){return this.root},e.prototype.findNodeAtPosition=function(e){var t=AZ(this.root,e);return t&&t!==this.root?t:null},e.prototype.findFirstNodeAtLine=function(e){return DZ(this.root,e)},e.prototype.on=function(e,t){this.eventHandlerMap[e].push(t)},e.prototype.off=function(e,t){var n=this.eventHandlerMap[e],a=n.indexOf(t);n.splice(a,1)},e.prototype.findNodeById=function(e){return LZ(e)},e.prototype.removeAllNode=function(){pK()},e}(),zZ=["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"],VZ=new RegExp("<(/?(?:"+zZ.join("|")+")[^>]*>)","ig");function _Z(e){return VZ.test(e)?e.replace(VZ,(function(e,t){return"<"+t})):e}var qZ={heading:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"h"+e.level,outerNewLine:!0}},text:function(e){return{type:"text",content:e.literal}},softbreak:function(e,t){var n=t.options;return{type:"html",content:n.softbreak}},linebreak:function(){return{type:"html",content:"
\n"}},emph:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"em"}},strong:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"strong"}},paragraph:function(e,t){var n,a=t.entering,l=null===(n=e.parent)||void 0===n?void 0:n.parent;return l&&"list"===l.type&&l.listData.tight?null:{type:a?"openTag":"closeTag",tagName:"p",outerNewLine:!0}},thematicBreak:function(){return{type:"openTag",tagName:"hr",outerNewLine:!0,selfClose:!0}},blockQuote:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"blockquote",outerNewLine:!0,innerNewLine:!0}},list:function(e,t){var n=t.entering,a=e.listData,l=a.type,o=a.start,r="bullet"===l?"ul":"ol",i={};return"ol"===r&&null!==o&&1!==o&&(i.start=o.toString()),{type:n?"openTag":"closeTag",tagName:r,attributes:i,outerNewLine:!0}},item:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"li",outerNewLine:!0}},htmlInline:function(e,t){var n=t.options,a=n.tagFilter?_Z(e.literal):e.literal;return{type:"html",content:a}},htmlBlock:function(e,t){var n=t.options,a=n.tagFilter?_Z(e.literal):e.literal;return n.nodeId?[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"html",content:a},{type:"closeTag",tagName:"div",outerNewLine:!0}]:{type:"html",content:a,outerNewLine:!0}},code:function(e){return[{type:"openTag",tagName:"code"},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(e){var t=e.info,n=t?t.split(/\s+/):[],a=[];return n.length>0&&n[0].length>0&&a.push("language-"+aK(n[0])),[{type:"openTag",tagName:"pre",outerNewLine:!0},{type:"openTag",tagName:"code",classNames:a},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre",outerNewLine:!0}]},link:function(e,t){var n=t.entering;if(n){var a=e,l=a.title,o=a.destination;return{type:"openTag",tagName:"a",attributes:Ro({href:aK(o)},l&&{title:aK(l)})}}return{type:"closeTag",tagName:"a"}},image:function(e,t){var n=t.getChildrenText,a=t.skipChildren,l=e,o=l.title,r=l.destination;return a(),{type:"openTag",tagName:"img",selfClose:!0,attributes:Ro({src:aK(r),alt:n(e)},o&&{title:aK(o)})}},customBlock:function(e,t,n){var a=e.info.trim().toLowerCase(),l=n[a];if(l)try{return l(e,t)}catch(o){console.warn("[@toast-ui/editor] - The error occurred when "+a+" block node was parsed in markdown renderer: "+o)}return[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"text",content:e.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},frontMatter:function(e){return[{type:"openTag",tagName:"div",outerNewLine:!0,attributes:{style:"white-space: pre; display: none;"}},{type:"text",content:e.literal},{type:"closeTag",tagName:"div",outerNewLine:!0}]},customInline:function(e,t,n){var a=e,l=a.info,o=a.firstChild,r=l.trim().toLowerCase(),i=n[r],c=t.entering;if(i)try{return i(e,t)}catch(u){console.warn("[@toast-ui/editor] - The error occurred when "+r+" inline node was parsed in markdown renderer: "+u)}return c?[{type:"openTag",tagName:"span"},{type:"text",content:"$$"+l+(o?" ":"")}]:[{type:"text",content:"$$"},{type:"closeTag",tagName:"span"}]}},$Z={strike:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"del"}},item:function(e,t){var n=t.entering,a=e.listData,l=a.checked,o=a.task;if(n){var r={type:"openTag",tagName:"li",outerNewLine:!0};return o?[r,{type:"openTag",tagName:"input",selfClose:!0,attributes:Ro(Ro({},l&&{checked:""}),{disabled:"",type:"checkbox"})},{type:"text",content:" "}]:r}return{type:"closeTag",tagName:"li",outerNewLine:!0}},table:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"table",outerNewLine:!0}},tableHead:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"thead",outerNewLine:!0}},tableBody:function(e,t){var n=t.entering;return{type:n?"openTag":"closeTag",tagName:"tbody",outerNewLine:!0}},tableRow:function(e,t){var n=t.entering;if(n)return{type:"openTag",tagName:"tr",outerNewLine:!0};var a=[];if(e.lastChild)for(var l=e.parent.parent.columns.length,o=e.lastChild.endIdx,r=o+1;r0&&this.buffer.push(' class="'+a.join(" ")+'"'),l&&Object.keys(l).forEach((function(e){var n=l[e];t.buffer.push(" "+e+'="'+n+'"')})),e.selfClose&&this.buffer.push(" /"),this.buffer.push(">")},e.prototype.generateCloseTagString=function(e){var t=e.tagName;this.buffer.push(""+t+">")},e.prototype.addNewLine=function(){this.buffer.length&&"\n"!==dG(dG(this.buffer))&&this.buffer.push("\n")},e.prototype.addOuterNewLine=function(e){e.outerNewLine&&this.addNewLine()},e.prototype.addInnerNewLine=function(e){e.innerNewLine&&this.addNewLine()},e.prototype.renderTextNode=function(e){this.buffer.push(aK(e.content))},e.prototype.renderRawHtmlNode=function(e){this.addOuterNewLine(e),this.buffer.push(e.content),this.addOuterNewLine(e)},e.prototype.renderElementNode=function(e){"openTag"===e.type?(this.addOuterNewLine(e),this.generateOpenTagString(e),e.selfClose?this.addOuterNewLine(e):this.addInnerNewLine(e)):(this.addInnerNewLine(e),this.generateCloseTagString(e),this.addOuterNewLine(e))},e}();
-/*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */function KZ(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1?n-1:0),l=1;l/gm),RQ=tQ(/^data-[\-\w.\u00B7-\uFFFF]/),BQ=tQ(/^aria-[\-\w]+$/),PQ=tQ(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jQ=tQ(/^(?:\w+script|data):/i),FQ=tQ(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),HQ="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function zQ(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:VQ(),t=function(e){return qQ(e)};if(t.version="2.3.3",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var n=e.document,a=e.document,l=e.DocumentFragment,o=e.HTMLTemplateElement,r=e.Node,i=e.Element,c=e.NodeFilter,u=e.NamedNodeMap,s=void 0===u?e.NamedNodeMap||e.MozNamedAttrMap:u,d=e.Text,p=e.Comment,h=e.DOMParser,f=e.trustedTypes,m=i.prototype,v=wQ(m,"cloneNode"),b=wQ(m,"nextSibling"),g=wQ(m,"childNodes"),y=wQ(m,"parentNode");if("function"===typeof o){var w=a.createElement("template");w.content&&w.content.ownerDocument&&(a=w.content.ownerDocument)}var k=_Q(f,n),x=k&&ee?k.createHTML(""):"",C=a,T=C.implementation,M=C.createNodeIterator,O=C.createDocumentFragment,S=C.getElementsByTagName,E=n.importNode,N={};try{N=yQ(a).documentMode?a.documentMode:{}}catch(He){}var D={};t.isSupported="function"===typeof y&&T&&"undefined"!==typeof T.createHTMLDocument&&9!==N;var A=LQ,L=IQ,I=RQ,R=BQ,B=jQ,P=FQ,j=PQ,F=null,H=gQ({},[].concat(zQ(kQ),zQ(xQ),zQ(CQ),zQ(MQ),zQ(SQ))),z=null,V=gQ({},[].concat(zQ(EQ),zQ(NQ),zQ(DQ),zQ(AQ))),_=null,q=null,$=!0,U=!0,W=!1,J=!1,K=!1,G=!1,X=!1,Z=!1,Q=!1,Y=!0,ee=!1,te=!0,ne=!0,ae=!1,le={},oe=null,re=gQ({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ie=null,ce=gQ({},["audio","video","img","source","image","track"]),ue=null,se=gQ({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",he="http://www.w3.org/1999/xhtml",fe=he,me=!1,ve=void 0,be=["application/xhtml+xml","text/html"],ge="text/html",ye=void 0,we=null,ke=a.createElement("form"),xe=function(e){we&&we===e||(e&&"object"===("undefined"===typeof e?"undefined":HQ(e))||(e={}),e=yQ(e),F="ALLOWED_TAGS"in e?gQ({},e.ALLOWED_TAGS):H,z="ALLOWED_ATTR"in e?gQ({},e.ALLOWED_ATTR):V,ue="ADD_URI_SAFE_ATTR"in e?gQ(yQ(se),e.ADD_URI_SAFE_ATTR):se,ie="ADD_DATA_URI_TAGS"in e?gQ(yQ(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?gQ({},e.FORBID_CONTENTS):re,_="FORBID_TAGS"in e?gQ({},e.FORBID_TAGS):{},q="FORBID_ATTR"in e?gQ({},e.FORBID_ATTR):{},le="USE_PROFILES"in e&&e.USE_PROFILES,$=!1!==e.ALLOW_ARIA_ATTR,U=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,J=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,Q=e.RETURN_DOM_FRAGMENT||!1,Y=!1!==e.RETURN_DOM_IMPORT,ee=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,j=e.ALLOWED_URI_REGEXP||j,fe=e.NAMESPACE||he,ve=ve=-1===be.indexOf(e.PARSER_MEDIA_TYPE)?ge:e.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===ve?function(e){return e}:uQ,J&&(U=!1),Q&&(Z=!0),le&&(F=gQ({},[].concat(zQ(SQ))),z=[],!0===le.html&&(gQ(F,kQ),gQ(z,EQ)),!0===le.svg&&(gQ(F,xQ),gQ(z,NQ),gQ(z,AQ)),!0===le.svgFilters&&(gQ(F,CQ),gQ(z,NQ),gQ(z,AQ)),!0===le.mathMl&&(gQ(F,MQ),gQ(z,DQ),gQ(z,AQ))),e.ADD_TAGS&&(F===H&&(F=yQ(F)),gQ(F,e.ADD_TAGS)),e.ADD_ATTR&&(z===V&&(z=yQ(z)),gQ(z,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&gQ(ue,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===re&&(oe=yQ(oe)),gQ(oe,e.FORBID_CONTENTS)),ne&&(F["#text"]=!0),K&&gQ(F,["html","head","body"]),F.table&&(gQ(F,["tbody"]),delete _.tbody),eQ&&eQ(e),we=e)},Ce=gQ({},["mi","mo","mn","ms","mtext"]),Te=gQ({},["foreignobject","desc","title","annotation-xml"]),Me=gQ({},xQ);gQ(Me,CQ),gQ(Me,TQ);var Oe=gQ({},MQ);gQ(Oe,OQ);var Se=function(e){var t=y(e);t&&t.tagName||(t={namespaceURI:he,tagName:"template"});var n=uQ(e.tagName),a=uQ(t.tagName);if(e.namespaceURI===pe)return t.namespaceURI===he?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===a||Ce[a]):Boolean(Me[n]);if(e.namespaceURI===de)return t.namespaceURI===he?"math"===n:t.namespaceURI===pe?"math"===n&&Te[a]:Boolean(Oe[n]);if(e.namespaceURI===he){if(t.namespaceURI===pe&&!Te[a])return!1;if(t.namespaceURI===de&&!Ce[a])return!1;var l=gQ({},["title","style","font","a","script"]);return!Oe[n]&&(l[n]||!Me[n])}return!1},Ee=function(e){cQ(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(He){try{e.outerHTML=x}catch(He){e.remove()}}},Ne=function(e,n){try{cQ(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(He){cQ(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e&&!z[e])if(Z||Q)try{Ee(n)}catch(He){}else try{n.setAttribute(e,"")}catch(He){}},De=function(e){var t=void 0,n=void 0;if(X)e=""+e;else{var l=sQ(e,/^[\r\n\t ]+/);n=l&&l[0]}"application/xhtml+xml"===ve&&(e=''+e+"");var o=k?k.createHTML(e):e;if(fe===he)try{t=(new h).parseFromString(o,ve)}catch(He){}if(!t||!t.documentElement){t=T.createDocument(fe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(He){}}var r=t.body||t.documentElement;return e&&n&&r.insertBefore(a.createTextNode(n),r.childNodes[0]||null),fe===he?S.call(t,K?"html":"body")[0]:K?t.documentElement:r},Ae=function(e){return M.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},Le=function(e){return!(e instanceof d||e instanceof p)&&!("string"===typeof e.nodeName&&"string"===typeof e.textContent&&"function"===typeof e.removeChild&&e.attributes instanceof s&&"function"===typeof e.removeAttribute&&"function"===typeof e.setAttribute&&"string"===typeof e.namespaceURI&&"function"===typeof e.insertBefore)},Ie=function(e){return"object"===("undefined"===typeof r?"undefined":HQ(r))?e instanceof r:e&&"object"===("undefined"===typeof e?"undefined":HQ(e))&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName},Re=function(e,n,a){D[e]&&rQ(D[e],(function(e){e.call(t,n,a,we)}))},Be=function(e){var n=void 0;if(Re("beforeSanitizeElements",e,null),Le(e))return Ee(e),!0;if(sQ(e.nodeName,/[\u0080-\uFFFF]/))return Ee(e),!0;var a=ye(e.nodeName);if(Re("uponSanitizeElement",e,{tagName:a,allowedTags:F}),!Ie(e.firstElementChild)&&(!Ie(e.content)||!Ie(e.content.firstElementChild))&&fQ(/<[/\w]/g,e.innerHTML)&&fQ(/<[/\w]/g,e.textContent))return Ee(e),!0;if("select"===a&&fQ(/=0;--c)l.insertBefore(v(o[c],!0),b(e))}return Ee(e),!0}return e instanceof i&&!Se(e)?(Ee(e),!0):"noscript"!==a&&"noembed"!==a||!fQ(/<\/no(script|embed)/i,e.innerHTML)?(J&&3===e.nodeType&&(n=e.textContent,n=dQ(n,A," "),n=dQ(n,L," "),e.textContent!==n&&(cQ(t.removed,{element:e.cloneNode()}),e.textContent=n)),Re("afterSanitizeElements",e,null),!1):(Ee(e),!0)},Pe=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in a||n in ke))return!1;if(U&&!q[t]&&fQ(I,t));else if($&&fQ(R,t));else{if(!z[t]||q[t])return!1;if(ue[t]);else if(fQ(j,dQ(n,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==pQ(n,"data:")||!ie[e]){if(W&&!fQ(B,dQ(n,P,"")));else if(n)return!1}else;}return!0},je=function(e){var n=void 0,a=void 0,l=void 0,o=void 0;Re("beforeSanitizeAttributes",e,null);var r=e.attributes;if(r){var i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z};o=r.length;while(o--){n=r[o];var c=n,u=c.name,s=c.namespaceURI;if(a=hQ(n.value),l=ye(u),i.attrName=l,i.attrValue=a,i.keepAttr=!0,i.forceKeepAttr=void 0,Re("uponSanitizeAttribute",e,i),a=i.attrValue,!i.forceKeepAttr&&(Ne(u,e),i.keepAttr))if(fQ(/\/>/i,a))Ne(u,e);else{J&&(a=dQ(a,A," "),a=dQ(a,L," "));var d=ye(e.nodeName);if(Pe(d,l,a))try{s?e.setAttributeNS(s,u,a):e.setAttribute(u,a),iQ(t.removed)}catch(He){}}}Re("afterSanitizeAttributes",e,null)}},Fe=function e(t){var n=void 0,a=Ae(t);Re("beforeSanitizeShadowDOM",t,null);while(n=a.nextNode())Re("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof l&&e(n.content),je(n));Re("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(a,o){var i=void 0,c=void 0,u=void 0,s=void 0,d=void 0;if(me=!a,me&&(a="\x3c!--\x3e"),"string"!==typeof a&&!Ie(a)){if("function"!==typeof a.toString)throw mQ("toString is not a function");if(a=a.toString(),"string"!==typeof a)throw mQ("dirty is not a string, aborting")}if(!t.isSupported){if("object"===HQ(e.toStaticHTML)||"function"===typeof e.toStaticHTML){if("string"===typeof a)return e.toStaticHTML(a);if(Ie(a))return e.toStaticHTML(a.outerHTML)}return a}if(G||xe(o),t.removed=[],"string"===typeof a&&(ae=!1),ae);else if(a instanceof r)i=De("\x3c!----\x3e"),c=i.ownerDocument.importNode(a,!0),1===c.nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?i=c:i.appendChild(c);else{if(!Z&&!J&&!K&&-1===a.indexOf("<"))return k&&ee?k.createHTML(a):a;if(i=De(a),!i)return Z?null:x}i&&X&&Ee(i.firstChild);var p=Ae(ae?a:i);while(u=p.nextNode())3===u.nodeType&&u===s||Be(u)||(u.content instanceof l&&Fe(u.content),je(u),s=u);if(s=null,ae)return a;if(Z){if(Q){d=O.call(i.ownerDocument);while(i.firstChild)d.appendChild(i.firstChild)}else d=i;return Y&&(d=E.call(n,d,!0)),d}var h=K?i.outerHTML:i.innerHTML;return J&&(h=dQ(h,A," "),h=dQ(h,L," ")),k&&ee?k.createHTML(h):h},t.setConfig=function(e){xe(e),G=!0},t.clearConfig=function(){we=null,G=!1},t.isValidAttribute=function(e,t,n){we||xe({});var a=ye(e),l=ye(t);return Pe(a,l,n)},t.addHook=function(e,t){"function"===typeof t&&(D[e]=D[e]||[],cQ(D[e],t))},t.removeHook=function(e){D[e]&&iQ(D[e])},t.removeHooks=function(e){D[e]&&(D[e]=[])},t.removeAllHooks=function(){D={}},t}var $Q=qQ(),UQ=["iframe","embed"],WQ=[];function JQ(e){Ae(UQ,e)&&WQ.push(e.toLowerCase())}function KQ(e,t){return $Q.sanitize(e,h({ADD_TAGS:WQ,ADD_ATTR:["rel","target","hreflang","type"],FORBID_TAGS:["input","script","textarea","form","button","select","meta","style","link","title","object","base"]},t))}function GQ(e,t){return e.literal.replace(new RegExp("(<\\s*"+t+"[^>]*>)|("+t+"\\s*[>])","ig"),"").trim()}function XQ(e){e=e.match(rn)[0];var t=e.match(new RegExp(nn,"g"));return t?t.reduce((function(e,t){var n=t.trim().split("="),a=n[0],l=n.slice(1);return l.length&&(e[a]=l.join("=").replace(/'|"/g,"").trim()),e}),{}):{}}function ZQ(e){return et(e.attributes).reduce((function(e,t){return e[t.nodeName]=t.nodeValue,e}),{})}function QQ(e,t,n,a){var l=a.getToDOMNode(t)(e),o=n(l.outerHTML),r=document.createElement("div");r.innerHTML=o,l=r.firstChild;var i=ZQ(l);return{dom:l,htmlAttrs:i}}var YQ={htmlBlock:function(e,t,n){return{atom:!0,content:"block+",group:"block",attrs:{htmlAttrs:{default:{}},childrenHTML:{default:""},htmlBlock:{default:!0}},parseDOM:[{tag:e,getAttrs:function(e){return{htmlAttrs:ZQ(e),childrenHTML:e.innerHTML}}}],toDOM:function(a){var l=QQ(a,e,t,n),o=l.dom,r=l.htmlAttrs;return r.class=r.class?r.class+" html-block":"html-block",f([e,r],et(o.childNodes))}}},htmlInline:function(e,t,n){return{attrs:{htmlAttrs:{default:{}},htmlInline:{default:!0}},parseDOM:[{tag:e,getAttrs:function(e){return{htmlAttrs:ZQ(e)}}}],toDOM:function(a){var l=QQ(a,e,t,n).htmlAttrs;return[e,l,0]}}}};function eY(e,t,n){var a={nodes:{},marks:{}};return["htmlBlock","htmlInline"].forEach((function(l){e[l]&&Object.keys(e[l]).forEach((function(e){var o="htmlBlock"===l?"nodes":"marks";JQ(e),a[o][e]=YQ[l](e,t,n)}))})),a}var tY=/^\s*<\s*\//,nY={paragraph:function(e,t){var n=t.entering,a=t.origin,l=t.options;return l.nodeId?{type:n?"openTag":"closeTag",outerNewLine:!0,tagName:"p"}:a()},softbreak:function(e){var t=e.prev&&"htmlInline"===e.prev.type,n=t&&/
/.test(e.prev.literal),a=n?"\n":"
\n";return{type:"html",content:a}},item:function(e,t){var n=t.entering;if(n){var a={},l=[];return e.listData.task&&(a["data-task"]="",l.push("task-list-item"),e.listData.checked&&(l.push("checked"),a["data-task-checked"]="")),{type:"openTag",tagName:"li",classNames:l,attributes:a,outerNewLine:!0}}return{type:"closeTag",tagName:"li",outerNewLine:!0}},code:function(e){var t={"data-backticks":String(e.tickCount)};return[{type:"openTag",tagName:"code",attributes:t},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(e){var t=e,n=t.fenceLength,a=t.info,l=a?a.split(/\s+/):[],o=[],r={};if(n>3&&(r["data-backticks"]=n),l.length>0&&l[0].length>0){var i=l[0];o.push("lang-"+i),r["data-language"]=i}return[{type:"openTag",tagName:"pre",classNames:o},{type:"openTag",tagName:"code",attributes:r},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre"}]},customInline:function(e,t){var n=t.origin,a=t.entering,l=t.skipChildren,o=e.info;if(-1!==o.indexOf("widget")&&a){l();var r=Pt(e),i=At(o,r).outerHTML;return[{type:"openTag",tagName:"span",classNames:["tui-widget"]},{type:"html",content:i},{type:"closeTag",tagName:"span"}]}return n()}};function aY(e,t){var n=h({},nY);return e&&(n.link=function(t,n){var a=n.entering,l=n.origin,o=l();return a&&(o.attributes=h(h({},o.attributes),e)),o}),t&&Object.keys(t).forEach((function(e){var a=n[e],l=t[e];a&&$n(l)?n[e]=function(e,t){var n=h({},t);return n.origin=function(){return a(e,t)},l(e,n)}:Ae(["htmlBlock","htmlInline"],e)&&!$n(l)?n[e]=function(e,t){var n=e.literal.match(rn);if(n){var a=n[0],o=n[1],r=n[3],i=(o||r).toLowerCase(),c=l[i],u=GQ(e,i);if(c){var s=h({},e);return s.attrs=XQ(a),s.childrenHTML=u,s.type=i,t.entering=!tY.test(e.literal),c(s,t)}}return t.origin()}:n[e]=l})),n}var lY=["list","item","blockQuote"],oY=["UL","OL","BLOCKQUOTE"];function rY(e,t){var n,a=e.child(t);return!a.childCount||1===a.childCount&&!(null===(n=a.firstChild.text)||void 0===n?void 0:n.trim())}function iY(e,t,n){var a=it(t)-1,l=ct(t)-1,o=n[a].getBoundingClientRect(),r=n[l].offsetTop-n[a].offsetTop+n[l].clientHeight;return{height:r<=0?n[a].clientHeight:r+cY(e,n,Math.min(l+1,e.childCount-1)),rect:o}}function cY(e,t,n){var a=e.childCount-1,l=0;while(n<=a&&rY(e,n))l+=t[n].clientHeight,n+=1;return l}function uY(e,t){while(!e.getAttribute("data-nodeid")&&e.parentElement!==t)e=e.parentElement;return e}function sY(e,t){var n=0;while(e&&e!==t){if(Ae(oY,e.tagName)||(n+=e.offsetTop),e.offsetParent===t.offsetParent)break;e=e.parentElement}return n}function dY(e,t){var n=t,a=null;while(n){var l=n.firstElementChild;if(!l)break;var o=pY(l,e,sY(n,t));a=n,n=o}var r=n||a;return r===t?null:r}function pY(e,t,n){return e&&t>n+e.offsetTop?pY(e.nextElementSibling,t,n)||e:null}function hY(e,t,n,a){var l=Math.min((e-t)/n,1);return l*a}function fY(e,t){var n=e.querySelector('[data-nodeid="'+t.id+'"]');while(!n||pt(t))t=t.parent,n=e.querySelector('[data-nodeid="'+t.id+'"]');return mY({mdNode:t,el:n})}function mY(e){var t=e.mdNode,n=e.el;while((Ae(lY,t.type)||"table"===t.type)&&t.firstChild)t=t.firstChild,n=n.firstElementChild;return{mdNode:t,el:n}}var vY={};function bY(e,t){vY[e]=vY[e]||{},vY[e].height=t}function gY(e,t){vY[e]=vY[e]||{},vY[e].offsetTop=t}function yY(e){return vY[e]&&vY[e].height}function wY(e){return vY[e]&&vY[e].offsetTop}function kY(e){e&&(delete vY[Number(e.getAttribute("data-nodeid"))],et(e.children).forEach((function(e){kY(e)})))}function xY(e,t,n){var a=yY(n),l=wY(n),o=a||e.clientHeight,r=l||sY(e,t)||e.offsetTop;return a||bY(n,o),l||gY(n,r),{nodeHeight:o,offsetTop:r}}var CY=fn("md-preview-highlight");function TY(e,t){var n=e.firstChild;while(n&&n.next){if(ut(n.next)>t+1)break;n=n.next}return n}var MY=function(){function e(e,t){var n=document.createElement("div");this.el=n,this.eventEmitter=e,this.isViewer=!!t.isViewer,this.el.className=fn("md-preview");var a=t.linkAttributes,l=t.customHTMLRenderer,o=t.sanitizer,r=t.highlight,i=void 0!==r&&r;this.renderer=new JZ({gfm:!0,nodeId:!0,convertors:aY(a,l)}),this.cursorNodeId=null,this.sanitizer=o,this.initEvent(i),this.initContentSection(),this.isViewer&&(this.previewContent.style.overflowWrap="break-word")}return e.prototype.initContentSection=function(){this.previewContent=Tn(''),this.isViewer||this.el.appendChild(this.previewContent)},e.prototype.toggleActive=function(e){Cn(this.el,"active",e)},e.prototype.initEvent=function(e){var t=this;this.eventEmitter.listen("updatePreview",this.update.bind(this)),this.isViewer||(e&&(this.eventEmitter.listen("changeToolbarState",(function(e){var n=e.mdNode,a=e.cursorPos;t.updateCursorNode(n,a)})),this.eventEmitter.listen("blur",(function(){t.removeHighlight()}))),Ao(this.el,"scroll",(function(e){t.eventEmitter.emit("scroll","preview",dY(e.target.scrollTop,t.previewContent))})),this.eventEmitter.listen("changePreviewTabPreview",(function(){return t.toggleActive(!0)})),this.eventEmitter.listen("changePreviewTabWrite",(function(){return t.toggleActive(!1)})))},e.prototype.removeHighlight=function(){if(this.cursorNodeId){var e=this.getElementByNodeId(this.cursorNodeId);e&&le(e,CY)}},e.prototype.updateCursorNode=function(e,t){e&&(e=yt(e,(function(e){return!gt(e)})),"tableRow"===e.type?e=TY(e,t[1]):"tableBody"===e.type&&(e=null));var n=e?e.id:null;if(this.cursorNodeId!==n){var a=this.getElementByNodeId(this.cursorNodeId),l=this.getElementByNodeId(n);a&&le(a,CY),l&&Q(l,CY),this.cursorNodeId=n}},e.prototype.getElementByNodeId=function(e){return e?this.previewContent.querySelector('[data-nodeid="'+e+'"]'):null},e.prototype.update=function(e){var t=this;e.forEach((function(e){return t.replaceRangeNodes(e)})),this.eventEmitter.emit("afterPreviewRender",this)},e.prototype.replaceRangeNodes=function(e){var t=this,n=e.nodes,a=e.removedNodeRange,l=this.previewContent,o=this.eventEmitter.emitReduce("beforePreviewRender",this.sanitizer(n.map((function(e){return t.renderer.render(e)})).join("")));if(a){var r=a.id,i=r[0],c=r[1],u=this.getElementByNodeId(i),s=this.getElementByNodeId(c);if(u){u.insertAdjacentHTML("beforebegin",o);var d=u;while(d&&d!==s){var p=d.nextElementSibling;kn(d),kY(d),d=p}(null===d||void 0===d?void 0:d.parentNode)&&(kn(d),kY(d))}}else l.insertAdjacentHTML("afterbegin",o)},e.prototype.getRenderer=function(){return this.renderer},e.prototype.destroy=function(){To(this.el,"scroll"),this.el=null},e.prototype.getElement=function(){return this.el},e.prototype.getHTML=function(){return this.previewContent.innerHTML},e.prototype.setHTML=function(e){this.previewContent.innerHTML=e},e.prototype.setHeight=function(e){R(this.el,{height:e+"px"})},e.prototype.setMinHeight=function(e){R(this.el,{minHeight:e+"px"})},e}();function OY(e,t){var n=e.depth;while(n){var a=e.node(n);if(t(a,n))return{node:a,depth:n,offset:n>0?e.before(n):0};n-=1}return null}function SY(e){return!!OY(e,(function(e){var t=e.type;return"listItem"===t.name||"bulletList"===t.name||"orderedList"===t.name}))}function EY(e){return!!OY(e,(function(e){var t=e.type;return"tableHeadCell"===t.name||"tableBodyCell"===t.name}))}function NY(e){return OY(e,(function(e){var t=e.type;return"listItem"===t.name}))}function DY(e){return{tag:e,getAttrs:function(e){var t=e.getAttribute("data-raw-html");return h({},t&&{rawHTML:t})}}}function AY(e){return Object.keys(e).reduce((function(t,n){return"rawHTML"!==n&&e[n]&&(n="className"===n?"class":n,t[n]=e[n]),t}),{})}function LY(e){return{tag:e,getAttrs:function(e){return["rawHTML","colspan","rowspan","extended"].reduce((function(t,n){var a="rawHTML"===n?"data-raw-html":n,l=e.getAttribute(a);return l&&(t[n]=Ae(["rawHTML","extended"],n)?l:Number(l)),t}),{})}}}function IY(){return{htmlAttrs:{default:null},classNames:{default:null}}}function RY(e){var t=e.htmlAttrs,n=e.classNames;return h(h({},t),{class:n?n.join(" "):null})}function BY(e,t){var n=e.parent,a=e.startIndex,l=e.endIndex,o=n.contentMatchAt(a).findWrapping(t);if(o){var r=o.length?o[0]:t;return n.canReplaceWith(a,l,r)?o:null}return null}function PY(e,t){var n=e.parent,a=e.startIndex,l=e.endIndex,o=n.child(a),r=t.contentMatch.findWrapping(o.type);if(r){for(var i=r.length?r[r.length-1]:t,c=i.contentMatch,u=a;c&&u=0;h-=1)p=a["c"].from(n[h].type.create(n[h].attrs,p));e.step(new o["b"](i-(l?2:0),c,i,c,new a["j"](p,0,0),n.length,!0));var f=0;for(h=0;h=2&&o.node(i-1).type.compatibleContent(n)&&0===t.startIndex&&o.index(i-1)){var s=e.doc.resolve(t.start-2);c=new a["g"](s,s,i),t.endIndex0){var s=u.parent,d=s.child(u.startIndex-1);if(d.type!==e)return!1;var p=d.lastChild&&d.lastChild.type===s.type,h=p?a["c"].from(e.create()):null,f=new a["j"](a["c"].from(e.create(null,a["c"].from(s.type.create(null,h)))),p?3:1,0),m=u.start,v=u.end;return l.step(new o["b"](m-(p?3:1),v,m,v,f,1,!0)),n(l),!0}return!1}}function WY(e,t,n){var l=t.$from,r=t.$to,i=t.end,c=t.depth,u=t.parent,s=r.end(c);return ii;r-=1)l-=n.child(r).nodeSize,e.delete(l-1,l+1);var c=e.doc.resolve(t.start),u=c.nodeAfter,s=0===t.startIndex,d=t.endIndex===n.childCount,p=c.node(-1),h=c.index(-1),f=p.canReplace(h+(s?0:1),h+1,null===u||void 0===u?void 0:u.content.append(d?a["c"].empty:a["c"].from(n)));if(u&&f){var m=c.pos,v=m+u.nodeSize;e.step(new o["b"](m-(s?1:0),v+(d?1:0),m+1,v-1,new a["j"]((s?a["c"].empty:a["c"].from(n.copy(a["c"].empty))).append(d?a["c"].empty:a["c"].from(n.copy(a["c"].empty))),s?0:1,d?0:1),s?0:1))}return e}function KY(e){return function(t,n){var a=t.tr,l=t.selection,o=l.$from,r=l.$to,i=o.blockRange(r,(function(t){var n=t.childCount,a=t.firstChild;return!!n&&a.type===e}));if(i){var c=o.node(i.depth-1).type===e,u=c?WY(a,i,e):JY(a,i);return n(u),!0}return!1}}function GY(e){return function(t,n){var l=t.tr,i=t.selection,c=i.$from,u=i.$to;if(c.depth<2||!c.sameParent(u))return!1;var s=c.node(-1);if(s.type!==e)return!1;if(0===c.parent.content.size&&c.node(-1).childCount===c.indexAfter(-1)){if(2===c.depth||c.node(-3).type!==e||c.index(-2)!==c.node(-2).childCount-1)return!1;for(var d=c.index(-1)>0,p=a["c"].empty,h=c.depth-(d?1:2);h>=c.depth-3;h-=1)p=a["c"].from(c.node(h).copy(p));return p=p.append(a["c"].from(e.createAndFill())),l.replace(d?c.before():c.before(-1),c.after(-3),new a["j"](p,d?3:2,2)),l.setSelection(r["f"].near(l.doc.resolve(c.pos+(d?3:2)))),n(l),!0}var f=u.pos===c.end()?s.contentMatchAt(0).defaultType:null,m=f&&[null,{type:f}];return l.delete(c.pos,u.pos),!!Object(o["g"])(l.doc,c.pos,2,m)&&(l.split(c.pos,2,m),n(l),!0)}}function XY(){return function(){return function(e,t){var n=e.selection,a=e.schema,l=n.$from,o=n.$to,r=l.blockRange(o);return!(!r||!SY(l))&&UY(a.nodes.listItem)(e,t)}}}function ZY(){return function(){return function(e,t){var n=e.selection,a=e.schema,l=n.$from,o=n.$to,r=l.blockRange(o);return!(!r||!SY(l))&&KY(a.nodes.listItem)(e,t)}}}function QY(){return{indent:XY(),outdent:ZY()}}var YY=new Map,e0=function(){function e(e,t,n,a){this.table=e,this.tableRows=t,this.tableStartPos=n,this.rowInfo=a}return e.create=function(t){var n=OY(t,(function(e){var t=e.type;return"table"===t.name}));if(n){var a=n.node,l=n.depth,o=n.offset,r=YY.get(a);if((null===r||void 0===r?void 0:r.tableStartPos)===o+1)return r;var i=[],c=t.start(l),u=a.child(0),s=a.child(1),d=t0(u,c),p=t0(s,c+u.nodeSize);u.forEach((function(e){return i.push(e)})),s.forEach((function(e){return i.push(e)}));var h=new e(a,i,c,d.concat(p));return YY.set(a,h),h}return null},Object.defineProperty(e.prototype,"totalRowCount",{get:function(){return this.rowInfo.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalColumnCount",{get:function(){return this.rowInfo[0].length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableStartOffset",{get:function(){return this.tableStartPos},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tableEndOffset",{get:function(){return this.tableStartPos+this.table.nodeSize-1},enumerable:!1,configurable:!0}),e.prototype.getCellInfo=function(e,t){return this.rowInfo[e][t]},e.prototype.posAt=function(e,t){for(var n=0,a=this.tableStartPos;;n+=1){var l=a+this.tableRows[n].nodeSize;if(n===e){var o=t;while(oe.pos)return[t,a];return[0,0]},e.prototype.getRectOffsets=function(e,t){var n,a,l;void 0===t&&(t=e),e.pos>t.pos&&(n=[t,e],e=n[0],t=n[1]);var o=this.getCellIndex(e),r=o[0],i=o[1],c=this.getCellIndex(t),u=c[0],s=c[1];return a=Ge(r,u),r=a[0],u=a[1],l=Ge(i,s),i=l[0],s=l[1],this.getSpannedOffsets({startRowIdx:r,startColIdx:i,endRowIdx:u,endColIdx:s})},e.prototype.getSpannedOffsets=function(e){return e},e}(),t0=function(e,t){var n=[];return e.forEach((function(e,a){var l={rowspanMap:{},colspanMap:{},length:0};e.forEach((function(e,n){var o=e.nodeSize,r=0;while(l[r])r+=1;l[r]={offset:t+a+n+2,nodeSize:o},l.length+=1})),n.push(l)})),n};function n0(e,t){return Ke(e0.prototype,e),t0=t,e0}function a0(e,t,n){for(var a=n.startRowIdx,l=n.startColIdx,o=n.endRowIdx,i=n.endColIdx,c=[],u=a;u<=o;u+=1)for(var s=l;s<=i;s+=1){var d=t.getCellInfo(u,s),p=d.offset,h=d.nodeSize;c.push(new r["g"](e.resolve(p+1),e.resolve(p+h-1)))}return c}function l0(e,t){var n=[];return e.childCount&&n.push(e),t.childCount&&n.push(t),a["c"].from(n)}var o0=function(e){function t(t,n){void 0===n&&(n=t);var a=this,l=t.node(0),o=e0.create(t),r=o.getRectOffsets(t,n),i=a0(l,o,r);return a=e.call(this,i[0].$from,i[0].$to,i)||this,a.startCell=t,a.endCell=n,a.offsetMap=o,a.isCellSelection=!0,a.visible=!1,a}return p(t,e),t.prototype.map=function(e,n){var a=this.startCell.pos,l=this.endCell.pos,o=e.resolve(n.map(a)),i=e.resolve(n.map(l)),c=e0.create(o);if(this.offsetMap.totalColumnCount>c.totalColumnCount||this.offsetMap.totalRowCount>c.totalRowCount){var u={tableBody:1,tableRow:2,tableCell:3,paragraph:4},s=u[i.parent.type.name],d=i.end(i.depth-s),p=Math.min(d-4,i.pos);return r["h"].create(e,p)}return new t(o,i)},t.prototype.eq=function(e){return e instanceof t&&e.startCell.pos===this.startCell.pos&&e.endCell.pos===this.endCell.pos},t.prototype.content=function(){for(var e=this.startCell.node(-2),t=this.startCell.start(-2),n=e.child(1).firstChild,l=e.child(0).type.create(),o=e.child(1).type.create(),r=e0.create(this.startCell),i=r.getRectOffsets(this.startCell,this.endCell),c=i.startRowIdx,u=i.startColIdx,s=i.endRowIdx,d=i.endColIdx,p=!1,h=c;h<=s;h+=1){for(var f=[],m=u;m<=d;m+=1){var v=r.getCellInfo(h,m).offset,b=e.nodeAt(v-t);b&&(p="tableHeadCell"===b.type.name,r.extendedRowspan(h,m)||r.extendedColspan(h,m)?f.push(b.type.create({extended:!0})):f.push(b.copy(b.content)))}var g=n.copy(a["c"].from(f)),y=p?l:o;y.content=y.content.append(a["c"].from(g))}return new a["j"](l0(l,o),1,1)},t}(r["f"]);function r0(e,t,n){for(var a=t.nodes,l=a.tableRow,o=a.tableHeadCell,r=a.paragraph,i=[],c=0;c0&&l>0||"table"===(null===(t=n.firstChild)||void 0===t?void 0:t.type.name)))a-=1,l-=1,n=n.firstChild.content;if("tableHead"===n.firstChild.type.name||"tableBody"===n.firstChild.type.name)return n}return null}function h0(e){var t=e.startRowIdx,n=e.startColIdx,a=e.endRowIdx,l=e.endColIdx,o=a-t+1,r=l-n+1;return{rowCount:o,columnCount:r}}function f0(e,t){return h(h({},e.attrs),t)}var m0=new r["e"]("cellSelection"),v0=2,b0=function(){function e(e){this.view=e,this.handlers={mousedown:this.handleMousedown.bind(this),mousemove:this.handleMousemove.bind(this),mouseup:this.handleMouseup.bind(this)},this.startCellPos=null,this.init()}return e.prototype.init=function(){this.view.dom.addEventListener("mousedown",this.handlers.mousedown)},e.prototype.handleMousedown=function(e){var t=u0(e.target,this.view.dom);if(e.button!==v0){if(t){var n=this.getCellPos(e);n&&(this.startCellPos=n),this.bindEvent()}}else e.preventDefault()},e.prototype.handleMousemove=function(e){var t,n=m0.getState(this.view.state),a=this.getCellPos(e),l=this.startCellPos;n?t=this.view.state.doc.resolve(n):l!==a&&(t=l),t&&l&&a&&this.setCellSelection(l,a)},e.prototype.handleMouseup=function(){this.startCellPos=null,this.unbindEvent(),null!==m0.getState(this.view.state)&&this.view.dispatch(this.view.state.tr.setMeta(m0,-1))},e.prototype.bindEvent=function(){var e=this.view.dom;e.addEventListener("mousemove",this.handlers.mousemove),e.addEventListener("mouseup",this.handlers.mouseup)},e.prototype.unbindEvent=function(){var e=this.view.dom;e.removeEventListener("mousemove",this.handlers.mousemove),e.removeEventListener("mouseup",this.handlers.mouseup)},e.prototype.getCellPos=function(e){var t=e.clientX,n=e.clientY,a=this.view.posAtCoords({left:t,top:n});if(a){var l=this.view.state.doc,o=l.resolve(a.pos),r=s0(o);if(r){var i=o.before(r.depth);return l.resolve(i)}}return null},e.prototype.setCellSelection=function(e,t){var n=this.view.state,a=n.selection,l=n.tr,o=null===m0.getState(this.view.state),r=new o0(e,t);if(o||!a.eq(r)){var i=l.setSelection(r);o&&i.setMeta(m0,t.pos),this.view.dispatch(i)}},e.prototype.destroy=function(){this.view.dom.removeEventListener("mousedown",this.handlers.mousedown)},e}(),g0=fn("cell-selected");function y0(e){var t=e.selection,n=e.doc;if(t instanceof o0){var a=[],o=t.ranges;return o.forEach((function(e){var t=e.$from,n=e.$to;a.push(l["a"].node(t.pos-1,n.pos+1,{class:g0}))})),l["b"].create(n,a)}return null}function w0(){return new r["d"]({key:m0,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(m0);if(n)return-1===n?null:n;if(ce(t)||!e.docChanged)return t;var a=e.mapping.mapResult(t),l=a.deleted,o=a.pos;return l?null:o}},props:{decorations:y0,createSelectionBetween:function(e){var t=e.state;return ce(m0.getState(t))?null:t.selection}},view:function(e){return new b0(e)}})}var k0=function(){function e(){this.keys=[],this.values=[]}return e.prototype.getKeyIndex=function(e){return j(e,this.keys)},e.prototype.get=function(e){return this.values[this.getKeyIndex(e)]},e.prototype.set=function(e,t){var n=this.getKeyIndex(e);return n>-1?this.values[n]=t:(this.keys.push(e),this.values.push(t)),this},e.prototype.has=function(e){return this.getKeyIndex(e)>-1},e.prototype.delete=function(e){var t=this.getKeyIndex(e);return t>-1&&(this.keys.splice(t,1),this.values.splice(t,1),!0)},e.prototype.forEach=function(e,t){var n=this;void 0===t&&(t=this),this.values.forEach((function(a,l){a&&n.keys[l]&&e.call(t,a,n.keys[l],n)}))},e.prototype.clear=function(){this.keys=[],this.values=[]},e}(),x0="en-US",C0=function(){function e(){this.code=x0,this.langs=new k0}return e.prototype.setCode=function(e){this.code=e||x0},e.prototype.setLanguage=function(e,t){var n=this;e=[].concat(e),e.forEach((function(e){if(n.langs.has(e)){var a=n.langs.get(e);n.langs.set(e,y(a,t))}else n.langs.set(e,t)}))},e.prototype.get=function(e,t){t||(t=this.code);var n=this.langs.get(t);n||(n=this.langs.get(x0));var a=n[e];if(!a)throw new Error('There is no text key "'+e+'" in '+t);return a},e}(),T0=new C0,M0=[[{action:"Add row to up",command:"addRowToUp",disableInThead:!0,className:"add-row-up"},{action:"Add row to down",command:"addRowToDown",disableInThead:!0,className:"add-row-down"},{action:"Remove row",command:"removeRow",disableInThead:!0,className:"remove-row"}],[{action:"Add column to left",command:"addColumnToLeft",className:"add-column-left"},{action:"Add column to right",command:"addColumnToRight",className:"add-column-right"},{action:"Remove column",command:"removeColumn",className:"remove-column"}],[{action:"Align column to left",command:"alignColumn",payload:{align:"left"},className:"align-column-left"},{action:"Align column to center",command:"alignColumn",payload:{align:"center"},className:"align-column-center"},{action:"Align column to right",command:"alignColumn",payload:{align:"right"},className:"align-column-right"}],[{action:"Remove table",command:"removeTable",className:"remove-table"}]];function O0(e,t){return M0.map((function(n){return n.map((function(n){var a=n.action,l=n.command,o=n.payload,r=n.disableInThead,i=n.className;return{label:T0.get(a),onClick:function(){e.emit("command",l,o)},disabled:t&&!!r,className:i}}))})).concat()}function S0(e){return new r["d"]({props:{handleDOMEvents:{contextmenu:function(t,n){var a=u0(n.target,t.dom);if(a){n.preventDefault();var l=n,o=l.clientX,r=l.clientY,i=t.dom.parentNode.getBoundingClientRect(),c=i.left,u=i.top,s="TH"===a.nodeName;return e.emit("contextmenu",{pos:{left:o-c+10+"px",top:r-u+30+"px"},menuGroups:O0(e,s),tableCell:a}),!0}return!1}}}})}function E0(){return new r["d"]({props:{handleDOMEvents:{mousedown:function(e,t){var n=t,a=n.clientX,l=n.clientY,o=e.posAtCoords({left:a,top:l});if(o){var r=e.state,i=r.doc,c=r.tr,u=i.resolve(o.pos),s=NY(u),d=t.target,p=getComputedStyle(d,":before"),f=t,m=f.offsetX,v=f.offsetY;if(!s||!pn(p,m,v))return!1;t.preventDefault();var b=u.before(s.depth),g=s.node.attrs;return c.setNodeMarkup(b,null,h(h({},g),{checked:!g.checked})),e.dispatch(c),!0}return!1}}}})}var N0=["image","link","customBlock","frontMatter"],D0=["strong","strike","emph","code"],A0=["bulletList","orderedList","taskList"];function L0(e,t){var n=e.type.name;return"listItem"===n?e.attrs.task?"taskList":t.type.name:-1!==n.indexOf("table")?"table":n}function I0(e,t){t[e]={active:!0},A0.filter((function(t){return t!==e})).forEach((function(e){t[e]&&delete t[e]}))}function R0(e,t,n,a){D0.forEach((function(l){var o=n.marks[l],r=e.marksAcross(t)||[],i=!!o.isInSet(r);i&&(a[l]={active:!0})}))}function B0(e,t,n){var a=e.$from,l=e.$to,o=e.from,r=e.to,i={indent:{active:!1,disabled:!0},outdent:{active:!1,disabled:!0}};return t.nodesBetween(o,r,(function(e,t,o){var r=L0(e,o);Ae(N0,r)||(Ae(A0,r)?(I0(r,i),i.indent.disabled=!1,i.outdent.disabled=!1):"paragraph"===r||"text"===r?R0(a,l,n,i):i[r]={active:!0})})),i}function P0(e){return new r["d"]({view:function(){return{update:function(t){var n=t.state,a=n.selection,l=n.doc,o=n.schema;e.emit("changeToolbarState",{toolbarState:B0(a,l,o)})}}}})}var j0=function(){function e(e,t,n,a){var o=this;this.openEditor=function(){if(o.innerEditorView)throw new Error("The editor is already opened.");o.dom.draggable=!1,o.wrapper.style.display="none",o.innerViewContainer.style.display="block",o.innerEditorView=new l["c"](o.innerViewContainer,{state:r["b"].create({doc:o.node,plugins:[Object(i["a"])({"Mod-z":function(){return Object(s["c"])(o.innerEditorView.state,o.innerEditorView.dispatch)},"Shift-Mod-z":function(){return Object(s["b"])(o.innerEditorView.state,o.innerEditorView.dispatch)},Tab:function(e,t){return t(e.tr.insertText("\t")),!0},Enter:c["f"],Escape:function(){return o.cancelEditing(),!0},"Ctrl-Enter":function(){return o.saveAndFinishEditing(),!0}}),Object(s["a"])()]}),dispatchTransaction:function(e){return o.dispatchInner(e)},handleDOMEvents:{mousedown:function(){return o.editorView.hasFocus()&&o.innerEditorView.focus(),!0},blur:function(){return o.saveAndFinishEditing(),!0}}}),o.innerEditorView.focus()},this.node=e,this.editorView=t,this.getPos=n,this.toDOMAdaptor=a,this.innerEditorView=null,this.canceled=!1,this.dom=document.createElement("div"),this.dom.className=fn("custom-block"),this.wrapper=document.createElement("div"),this.wrapper.className=fn("custom-block-view"),this.createInnerViewContainer(),this.renderCustomBlock(),this.dom.appendChild(this.innerViewContainer),this.dom.appendChild(this.wrapper)}return e.prototype.renderToolArea=function(){var e=this,t=document.createElement("div"),n=document.createElement("span"),a=document.createElement("button");t.className="tool",n.textContent=this.node.attrs.info,n.className="info",a.type="button",a.addEventListener("click",(function(){return e.openEditor()})),t.appendChild(n),t.appendChild(a),this.wrapper.appendChild(t)},e.prototype.renderCustomBlock=function(){var e=this.toDOMAdaptor.getToDOMNode(this.node.attrs.info);if(e){var t=e(this.node);while(this.wrapper.hasChildNodes())this.wrapper.removeChild(this.wrapper.lastChild);t&&this.wrapper.appendChild(t),this.renderToolArea()}},e.prototype.createInnerViewContainer=function(){this.innerViewContainer=document.createElement("div"),this.innerViewContainer.className=fn("custom-block-editor"),this.innerViewContainer.style.display="none"},e.prototype.closeEditor=function(){this.innerEditorView&&(this.innerEditorView.destroy(),this.innerEditorView=null,this.innerViewContainer.style.display="none"),this.wrapper.style.display="block"},e.prototype.saveAndFinishEditing=function(){var e=this.editorView.state.selection.to,t=this.editorView.state;this.editorView.dispatch(t.tr.setSelection(at(t.tr,e))),this.editorView.focus(),this.renderCustomBlock(),this.closeEditor()},e.prototype.cancelEditing=function(){var e=Object(s["d"])(this.innerEditorView.state);this.canceled=!0;while(e--)Object(s["c"])(this.innerEditorView.state,this.innerEditorView.dispatch),Object(s["c"])(this.editorView.state,this.editorView.dispatch);this.canceled=!1;var t=this.editorView.state.selection.to,n=this.editorView.state;this.editorView.dispatch(n.tr.setSelection(r["h"].create(n.doc,t))),this.editorView.focus(),this.closeEditor()},e.prototype.dispatchInner=function(e){var t=this.innerEditorView.state.applyTransaction(e),n=t.state,a=t.transactions;if(this.innerEditorView.updateState(n),!this.canceled&&$n(this.getPos)){for(var l=this.editorView.state.tr,r=o["d"].offset(this.getPos()+1),i=0;i
":"";return""+l+t.innerHTML}var l1="\x3c!--StartFragment--\x3e",o1="\x3c!--EndFragment--\x3e";function r1(e){var t=e.indexOf(l1),n=e.lastIndexOf(o1);return t>-1&&n>-1&&(e=e.slice(t+l1.length,n)),e.replace(/
]*>/g,sn)}function i1(e){return/<\/td>((?!<\/tr>)[\s\S])*$/i.test(e)&&(e=""+e+"
"),/<\/tr>((?!<\/table>)[\s\S])*$/i.test(e)&&(e=""),e}function c1(e){return e=r1(e),e=i1(e),G0(e)&&(e=a1(e)),e}function u1(e){var t=e.reduce((function(e,t){return e.childCount>t.childCount?e:t}));return t.childCount}function s1(e,t,n){for(var a=[],l=e.childCount,o=0;o1&&(t+=a-1)})),r=Math.max(r,t)},c=0;c=o&&h<=i-u){var y=n.getCellInfo(h,c-s),w=e.mapping.map(y.offset),k=b+k1(s);l[p]={rowIdx:h,startColIdx:r,endColIdx:c,dummyOffsets:[w,k]},p+=1}}}function O1(e,t,n,a,l){var o=a.addedRowCount,r=a.addedColumnCount,i=a.startColIdx,c=a.endColIdx,u=e.mapping.maps.length,s=n.tableEndOffset-2,d=i0(o,n.totalColumnCount+r,t),p=s;e.insert(e.mapping.slice(u).map(p),d);for(var h=0;h=1)return a.delete(o.start(-1)-1,o.end(-1)),t(a),!0;var s=o.node(-3);if(s.type===i)return a.delete(o.start(-2)-1,o.end(-1)),t(a),!0}return!1}},t.prototype.keymaps=function(){var e=function(e,t){return GY(e.schema.nodes.listItem)(e,t)};return{Backspace:this.liftToPrevListItem(),Enter:e}},t}(Fn),z1=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"blockQuote"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{attrs:h({rawHTML:{default:null}},IY()),content:"block+",group:"block",parseDOM:[DY("blockquote")],toDOM:function(e){var t=e.attrs;return["blockquote",RY(t),0]}}},enumerable:!1,configurable:!0}),t.prototype.commands=function(){return function(){return function(e,t){return Object(c["j"])(e.schema.nodes.blockQuote)(e,t)}}},t.prototype.keymaps=function(){var e=this.commands()();return{"Alt-q":e,"Alt-Q":e}},t}(Fn),V1={left:Z1,right:X1,up:Q1,down:Y1};function _1(e,t,n){var a=n[0],l=n[1],o=t.resolve(e.before(a-1));return l===a&&!o.nodeBefore}function q1(e){var t,n,a=e.depth;while(a){if(n=e.node(a),"tableBodyCell"===n.type.name)break;if("listItem"===n.type.name){var l=e.node(a-1),o=l.lastChild===n,r="paragraph"!==(null===(t=n.lastChild)||void 0===t?void 0:t.type.name);return!!o&&!r}a-=1}return!1}function $1(e,t,n,a,l){var o=t[0],r=t[1],i=t[2];if("left"===e||"up"===e){if(l&&!_1(n,a,[o,r]))return!1;var c=n.before(i),u=a.resolve(c).nodeBefore;if(u)return!1}return!0}function U1(e,t,n,a,l){if("right"===e||"down"===e){if(l&&!q1(n))return!1;var o=n.after(t),r=a.resolve(o).nodeAfter;if(r)return!1}return!0}function W1(e,t,n,a){var l=t[0],o=t[1],r=l+3,i=o>=r,c=i?l+1:o,u=$1(e,[o,r,c],n,a,i),s=U1(e,c,n,a,i);return u&&s}function J1(e,t,n){var a=n[0],l=n[1],o=t.getRowspanStartInfo(a,l),r="up"===e&&0===a,i="down"===e&&((null===o||void 0===o?void 0:o.count)>1?a+o.count-1:a)===t.totalRowCount-1;return r||i}function K1(e,t,n){var a=e.doc.resolve(t.tableStartOffset-1);return a.nodeBefore?e.setSelection(r["f"].near(a,-1)):lt(e,a,n)}function G1(e,t,n,a){void 0===a&&(a=!1);var l=e.doc.resolve(t.tableEndOffset);return a||!l.nodeAfter?lt(e,l,n):e.setSelection(r["f"].near(l,1))}function X1(e,t){var n=e[0],a=e[1],l=t.totalRowCount,o=t.totalColumnCount,r=a===o-1,i=n===l-1&&r;if(!i){var c=a+1,u=t.getColspanStartInfo(n,a);(null===u||void 0===u?void 0:u.count)>1&&(c+=u.count-1),(r||c===o)&&(n+=1,c=0);var s=t.getCellInfo(n,c).offset;return s+2}return null}function Z1(e,t){var n=e[0],a=e[1],l=t.totalColumnCount,o=0===a,r=0===n&&o;if(!r){a-=1,o&&(n-=1,a=l-1);var i=t.getCellInfo(n,a),c=i.offset,u=i.nodeSize;return c+u-2}return null}function Q1(e,t){var n=e[0],a=e[1];if(n>0){var l=t.getCellInfo(n-1,a),o=l.offset,r=l.nodeSize;return o+r-2}return null}function Y1(e,t){var n=e[0],a=e[1],l=t.totalRowCount;if(n1&&(o+=r.count-1);var i=t.getCellInfo(o,a).offset;return i+2}return null}function e2(e,t,n,a){var l=V1[e],o=l(n,a);if(o){var i="right"===e||"down"===e?1:-1;return t.setSelection(r["f"].near(t.doc.resolve(o),i))}return null}function t2(e,t,n){var a=n[0],l=n[1];if("up"===e||"down"===e)return!1;var o=t.tableStartOffset,r=t.tableEndOffset,i=t.getCellInfo(a,l),c=i.offset,u=i.nodeSize,s="left"===e?o:r,d="left"===e?c-2:c+u+3;return s===d}function n2(e,t,n){var a=e.doc.resolve(t.before(n-3));return e.setSelection(new r["c"](a))}function a2(e,t,n){var a,l,o;return"up"===e?(a=n.startRowIdx,l=0,o=-1):(a=n.endRowIdx,l=t.totalColumnCount-1,o=t.getCellInfo(a,l).nodeSize+1),{targetRowIdx:a,insertColIdx:l,nodeSize:o}}function l2(e,t,n){var a=e.getCellInfo(t,0).offset,l=e.getCellInfo(t,n-1),o=l.offset,r=l.nodeSize;return{from:a,to:o+r}}var o2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return"table"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"schema",{get:function(){return{content:"tableHead{1} tableBody{1}",group:"block",attrs:h({rawHTML:{default:null}},IY()),parseDOM:[DY("table")],toDOM:function(e){var t=e.attrs;return["table",RY(t),0]}}},enumerable:!1,configurable:!0}),t.prototype.addTable=function(){return function(e){return void 0===e&&(e={rowCount:2,columnCount:1,data:[]}),function(t,n){var a=e.rowCount,l=e.columnCount,o=e.data,r=t.schema,i=t.selection,c=t.tr,u=i.from,s=i.to,d=i.$from,p=u===s;if(p&&!EY(d)){var h=r.nodes,f=h.tableHead,m=h.tableBody,v=null===o||void 0===o?void 0:o.slice(0,l),b=null===o||void 0===o?void 0:o.slice(l,o.length),g=r0(l,r,v),y=i0(a-1,l,r,b),w=r.nodes.table.create(null,[f.create(null,g),m.create(null,y)]);return n(c.replaceSelectionWith(w)),!0}return!1}}},t.prototype.removeTable=function(){return function(){return function(e,t){var n=e.selection,a=e.tr,l=e0.create(n.$anchor);if(l){var o=l.tableStartOffset,r=l.tableEndOffset,i=o-1,c=at(a.delete(i,r),i);return t(a.setSelection(c)),!0}return!1}}},t.prototype.addColumn=function(e){return function(){return function(t,n){var a=t.selection,l=t.tr,o=t.schema,r=d0(a),i=r.anchor,c=r.head;if(i&&c){for(var u=e0.create(i),s=u.getRectOffsets(i,c),d="left"===e?s.startColIdx:s.endColIdx+1,p=h0(s).columnCount,h=u.totalRowCount,f=0;f=h;b-=1){var g=i.getCellInfo(v,b),y=g.offset,w=g.nodeSize,k=a.mapping.slice(m).map(y),x=k+w;a.delete(k,x)}return t(a),!0}return!1}}},t.prototype.addRow=function(e){return function(){return function(t,n){var a=t.selection,l=t.schema,o=t.tr,r=d0(a),i=r.anchor,c=r.head;if(i&&c){var u=e0.create(i),s=u.totalColumnCount,d=u.getRectOffsets(i,c),p=h0(d).rowCount,h=a2(e,u,d),f=h.targetRowIdx,m=h.insertColIdx,v=h.nodeSize,b=0===f;if(!b){for(var g=[],y=o.mapping.map(u.posAt(f,m))+v,w=[],k=0;k=p;v-=1){var b=l2(i,v,u),g=b.from,y=b.to;a.delete(g-1,y+1)}return t(a),!0}return!1}}},t.prototype.alignColumn=function(){return function(e){return void 0===e&&(e={align:"center"}),function(t,n){var a=e.align,l=t.selection,o=t.tr,r=d0(l),i=r.anchor,c=r.head;if(i&&c){for(var u=e0.create(i),s=u.totalRowCount,d=u.getRectOffsets(i,c),p=d.startColIdx,h=d.endColIdx,f=0;f=r&&d(o)&&(i+=t,c=i+a)}))}return{range:[i,c],type:u}},t}(_n),M2=H,O2=ce;function S2(e){return!M2(e)&&!O2(e)}var E2=S2,N2=E2;function D2(e){return N2(e)&&!1!==e}var A2=D2,L2=A2;function I2(e){return!L2(e)}var R2=I2,B2=["afterPreviewRender","updatePreview","changeMode","needChangeMode","command","changePreviewStyle","changePreviewTabPreview","changePreviewTabWrite","scroll","contextmenu","show","hide","changeLanguage","changeToolbarState","toggleScrollSync","mixinTableOffsetMapPrototype","setFocusedNode","removePopupWidget","query","openPopup","closePopup","addImageBlobHook","beforePreviewRender","beforeConvertWysiwygToMarkdown","load","loadUI","change","caretChange","destroy","focus","blur","keydown","keyup"],P2=function(){function e(){var e=this;this.events=new k0,this.eventTypes=B2.reduce((function(e,t){return h(h({},e),{type:t})}),{}),this.hold=!1,B2.forEach((function(t){e.addEventType(t)}))}return e.prototype.listen=function(e,t){var n=this.getTypeInfo(e),a=this.events.get(n.type)||[];if(!this.hasEventType(n.type))throw new Error("There is no event type "+n.type);n.namespace&&(t.namespace=n.namespace),a.push(t),this.events.set(n.type,a)},e.prototype.emit=function(e){for(var t=[],n=1;n=0&&n.splice(a,1)}},e.prototype.removeEventHandlerWithTypeInfo=function(e,t){var n=[],a=this.events.get(e);a&&(a.map((function(e){return e.namespace!==t&&n.push(e),null})),this.events.set(e,n))},e.prototype.getEvents=function(){return this.events},e.prototype.holdEventInvoke=function(e){this.hold=!0,e(),this.hold=!1},e}(),j2=function(){function e(e,t,n,a){this.eventEmitter=e,this.mdCommands=t,this.wwCommands=n,this.getEditorType=a,this.initEvent()}return e.prototype.initEvent=function(){var e=this;this.eventEmitter.listen("command",(function(t,n){e.exec(t,n)}))},e.prototype.addCommand=function(e,t,n){"markdown"===e?this.mdCommands[t]=n:this.wwCommands[t]=n},e.prototype.deleteCommand=function(e,t){"markdown"===e?delete this.mdCommands[t]:delete this.wwCommands[t]},e.prototype.exec=function(e,t){var n=this.getEditorType();"markdown"===n?this.mdCommands[e](t):this.wwCommands[e](t)},e}();function F2(e){return"\n"===e[e.length-1]?e.slice(0,e.length-1):e}function H2(e,t){var n=e.schema,a=t.literal,l=a.match(rn);if(l){var o=l[1],r=l[3],i=(o||r).toLowerCase();return"htmlInline"===t.type&&!(!n.marks[i]&&!n.nodes[i])}return!1}function z2(e){var t=e.type;return Ae(["text","strong","emph","strike","image","link","code"],t)}function V2(e){return"softbreak"===(null===e||void 0===e?void 0:e.type)}function _2(e){var t=e.type,n=e.literal,a="htmlInline"===t&&n.match(rn);if(a){var l=a[1],o=a[3],r=l||o;if(r)return Ae(["ul","ol","li"],r.toLowerCase())}return!1}function q2(e){var t=e.literal,n=/data-task/.test(t),a=/data-task-checked/.test(t);return{task:n,checked:a}}function $2(e){for(var t=[],n=1;n=0;l-=1){var o=this.stack[l];if(!(null===(n=o.attrs)||void 0===n?void 0:n.rawHTML))break;o.content.length?this.closeNode():this.stack.pop()}},e.prototype.convert=function(e,t){var n=e.walker(),a=n.next(),l=function(){var e=a.node,l=a.entering,r=o.convertors[e.type],i=!1;if(r){var c={entering:l,leaf:!Tt(e),getChildrenText:Mt,options:{gfm:!0,nodeId:!1,tagFilter:!1,softbreak:"\n"},skipChildren:function(){i=!0}};if(o.closeUnmatchedHTMLInline(e,l),r(o,e,c),(null===t||void 0===t?void 0:t.node)===e){var u=o.stack.reduce((function(e,t){return e+t.content.reduce((function(e,t){return e+t.nodeSize}),0)}),0)+1;t.setMappedPos(u)}}i&&(n.resumeAt(e,!1),n.next()),a=n.next()},o=this;while(a)l()},e.prototype.convertNode=function(e,t){return this.convert(e,t),this.stack.length?this.closeNode():null},e}();function e3(e,t,n){var a=n[0],l=n[1];e.write(a),e.convertInline(t),e.write(l)}function t3(e,t,n){var a=t.node,l=t.parent,o=n[0],r=n[1];e.stopNewline=!0,e.write(o),e.convertNode(a),e.write(r),"doc"===(null===l||void 0===l?void 0:l.type.name)&&(e.closeBlock(a),e.stopNewline=!1)}function n3(e,t){var n=e.length,a="",l="";return"left"===t?(a=":",n-=1):"right"===t?(l=":",n-=1):"center"===t&&(a=":",l=":",n-=2),""+a+Be("-",Math.max(n,3))+l}var a3={text:function(e,t){var n,a=t.node,l=null!==(n=a.text)&&void 0!==n?n:"";(a.marks||[]).some((function(e){return"link"===e.type.name}))?e.text(je(l),!1):e.text(l)},paragraph:function(e,t){var n=t.node,a=t.parent,l=t.index,o=void 0===l?0:l;if(e.stopNewline)e.convertInline(n);else{var r=0===o,i=!r&&a.child(o-1),c=i&&0===i.childCount,u=o\n");else if(!d||c||r)e.convertInline(n),s?e.write("\n"):e.closeBlock(n);else{if("listItem"===(null===a||void 0===a?void 0:a.type.name)){var p=e.getDelim();e.setDelim(""),e.write("
"),e.setDelim(p)}e.write("\n")}}},heading:function(e,t,n){var a=t.node,l=n.delim,o=a.attrs.headingType;"atx"===o?(e.write(l+" "),e.convertInline(a),e.closeBlock(a)):(e.convertInline(a),e.ensureNewLine(),e.write(l),e.closeBlock(a))},codeBlock:function(e,t,n){var a=t.node,l=n.delim,o=n.text,r=l,i=r[0],c=r[1];e.write(i),e.ensureNewLine(),e.text(o,!1),e.ensureNewLine(),e.write(c),e.closeBlock(a)},blockQuote:function(e,t,n){var a=t.node,l=t.parent,o=n.delim;(null===l||void 0===l?void 0:l.type.name)===a.type.name&&e.flushClose(1),e.wrapBlock(o,null,a,(function(){return e.convertNode(a)}))},bulletList:function(e,t,n){var a=t.node,l=n.delim;e.convertList(a,Be(" ",4),(function(){return l+" "}))},orderedList:function(e,t){var n=t.node,a=n.attrs.order||1;e.convertList(n,Be(" ",4),(function(e){var t=String(a+e);return t+". "}))},listItem:function(e,t){var n=t.node,a=n.attrs,l=a.task,o=a.checked;l&&e.write("["+(o?"x":" ")+"] "),e.convertNode(n)},image:function(e,t,n){var a=n.attrs;e.write("+")")},thematicBreak:function(e,t,n){var a=t.node,l=n.delim;e.write(l),e.closeBlock(a)},table:function(e,t){var n=t.node;e.convertNode(n),e.closeBlock(n)},tableHead:function(e,t,n){var a=t.node,l=n.delim,o=a.firstChild;e.convertNode(a);var r=null!==l&&void 0!==l?l:"";!l&&o&&o.forEach((function(e){var t=e.textContent,n=e.attrs,a=n3(t,n.align);r+="| "+a+" "})),e.write(r+"|"),e.ensureNewLine()},tableBody:function(e,t){var n=t.node;e.convertNode(n)},tableRow:function(e,t){var n=t.node;e.convertNode(n),e.write("|"),e.ensureNewLine()},tableHeadCell:function(e,t,n){var a=t.node,l=n.delim,o=void 0===l?"| ":l;e.write(o),e.convertTableCell(a),e.write(" ")},tableBodyCell:function(e,t,n){var a=t.node,l=n.delim,o=void 0===l?"| ":l;e.write(o),e.convertTableCell(a),e.write(" ")},customBlock:function(e,t,n){var a=t.node,l=n.delim,o=n.text,r=l,i=r[0],c=r[1];e.write(i),e.ensureNewLine(),e.text(o,!1),e.ensureNewLine(),e.write(c),e.closeBlock(a)},frontMatter:function(e,t,n){var a=t.node,l=n.text;e.text(l,!1),e.closeBlock(a)},widget:function(e,t,n){var a=n.text;e.write(a)},html:function(e,t,n){var a=t.node,l=n.text;e.write(l),a.attrs.htmlBlock&&e.closeBlock(a)},htmlComment:function(e,t,n){var a=t.node,l=n.text;e.write(l),e.closeBlock(a)}};function l3(e,t){var n=t.state,a=t.nodeInfo,l=t.params,o=l.rawHTML;o?j(e,["heading","codeBlock"])>-1?e3(n,a.node,o):j(e,["image","thematicBreak"])>-1?n.write(o):t3(n,a,o):a3[e](n,a,l)}function o3(e,t){var n=e.text,a=/`+/g,l=0;if(e.isText&&n){var o=a.exec(n);while(o)l=Math.max(l,o[0].length),o=a.exec(n)}for(var r=l>0&&t>0?" `":"`",i=0;i0&&t<0&&(r+=" "),r}function r3(e){return e?["<"+e+">",""+e+">"]:null}function i3(e){return e?"<"+e+">":null}function c3(e){return e?""+e+">":null}var u3={heading:function(e){var t=e.node,n=t.attrs,a=n.level,l=Be("#",a);return"setext"===n.headingType&&(l=1===a?"===":"---"),{delim:l,rawHTML:r3(n.rawHTML)}},codeBlock:function(e){var t=e.node,n=t,a=n.attrs,l=n.textContent;return{delim:["```"+(a.language||""),"```"],rawHTML:r3(a.rawHTML),text:l}},blockQuote:function(e){var t=e.node;return{delim:"> ",rawHTML:r3(t.attrs.rawHTML)}},bulletList:function(e,t){var n=e.node,a=t.inTable,l=n.attrs.rawHTML;return a&&(l=l||"ul"),{delim:"*",rawHTML:r3(l)}},orderedList:function(e,t){var n=e.node,a=t.inTable,l=n.attrs.rawHTML;return a&&(l=l||"ol"),{rawHTML:r3(l)}},listItem:function(e,t){var n=e.node,a=t.inTable,l=n.attrs,o=l.task,r=l.checked,i=n.attrs.rawHTML;a&&(i=i||"li");var c=o?' class="task-list-item'+(r?" checked":"")+'"':"",u=o?" data-task"+(r?" data-task-checked":""):"";return{rawHTML:i?["<"+i+c+u+">",""+i+">"]:null}},table:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},tableHead:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},tableBody:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},tableRow:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},tableHeadCell:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},tableBodyCell:function(e){var t=e.node;return{rawHTML:r3(t.attrs.rawHTML)}},image:function(e){var t=e.node,n=t.attrs,a=n.rawHTML,l=n.altText,o=n.imageUrl.replace(/&/g,"&"),r=l?' alt="'+Ne(l)+'"':"";return{rawHTML:a?"<"+a+' src="'+Ne(o)+'"'+r+">":null,attrs:{altText:je(l||""),imageUrl:o}}},thematicBreak:function(e){var t=e.node;return{delim:"***",rawHTML:i3(t.attrs.rawHTML)}},customBlock:function(e){var t=e.node,n=t,a=n.attrs,l=n.textContent;return{delim:["$$"+a.info,"$$"],text:l}},frontMatter:function(e){var t=e.node;return{text:t.textContent}},widget:function(e){var t=e.node;return{text:t.textContent}},strong:function(e,t,n){var a=e.node,l=t.entering,o=a.attrs.rawHTML,r="**";return n||(r=l?"":""),{delim:r,rawHTML:l?i3(o):c3(o)}},emph:function(e,t,n){var a=e.node,l=t.entering,o=a.attrs.rawHTML,r="*";return n||(r=l?"":""),{delim:r,rawHTML:l?i3(o):c3(o)}},strike:function(e,t,n){var a=e.node,l=t.entering,o=a.attrs.rawHTML,r="~~";return n||(r=l?"":""),{delim:r,rawHTML:l?i3(o):c3(o)}},link:function(e,t){var n=e.node,a=t.entering,l=n.attrs,o=l.title,r=l.rawHTML,i=l.linkUrl.replace(/&/g,"&"),c=o?' title="'+Ne(o)+'"':"";return a?{delim:"[",rawHTML:r?"<"+r+' href="'+Ne(i)+'"'+c+">":null}:{delim:"]("+i+(o?" "+He(je(o)):"")+")",rawHTML:c3(r)}},code:function(e,t){var n=e.node,a=e.parent,l=e.index,o=void 0===l?0:l,r=t.entering,i=r?o3(a.child(o),-1):o3(a.child(o-1),1),c=r?i3(n.attrs.rawHTML):c3(n.attrs.rawHTML);return{delim:i,rawHTML:c}},htmlComment:function(e){var t=e.node;return{text:t.textContent}},html:function(e,t){var n=e.node,a=t.entering,l=n.type.name,o=n.attrs.htmlAttrs,r="<"+l,i=""+l+">";return Object.keys(o).forEach((function(e){r+=" "+e+'="'+o[e].replace(/"/g,"'")+'"'})),r+=">",n.attrs.htmlInline?{rawHTML:a?r:i}:{text:""+r+n.attrs.childrenHTML+i}}},s3={strong:{mixable:!0,removedEnclosingWhitespace:!0},emph:{mixable:!0,removedEnclosingWhitespace:!0},strike:{mixable:!0,removedEnclosingWhitespace:!0},code:{escape:!1},link:null,html:null};function d3(e){var t={},n=Object.keys(a3);return n.forEach((function(n){t[n]=function(t,a){var l=a3[n];if(l){var o=e[n],r=o?o(a,{inTable:t.inTable}):{};l3(n,{state:t,nodeInfo:a,params:r})}}})),t}function p3(e){var t={},n=Object.keys(s3);return n.forEach((function(n){t[n]=function(t,a,l){var o=s3[n],r=e[n],i=r&&t&&!H(a),c=i?r(t,{entering:a},l):{};return h(h({},c),o)}})),t}function h3(e){var t=Object.keys(e);t.forEach((function(t){var n=u3[t],a=e[t];u3[t]=n?function(e,t){return t.origin=function(){return n(e,t)},a(e,t)}:a,delete e[t]}));var n=d3(u3),a=p3(u3);return{nodeTypeConvertors:n,markTypeConvertors:a}}var f3=function(){function e(e){var t=e.nodeTypeConvertors,n=e.markTypeConvertors;this.nodeTypeConvertors=t,this.markTypeConvertors=n,this.delim="",this.result="",this.closed=!1,this.tightList=!1,this.stopNewline=!1,this.inTable=!1}return e.prototype.getMarkConvertor=function(e){var t=e.attrs.htmlInline?"html":e.type.name;return this.markTypeConvertors[t]},e.prototype.isInBlank=function(){return/(^|\n)$/.test(this.result)},e.prototype.isBetweenSpaces=function(e,t){var n,a,l=e.content,o=0===t||Ze(null!==(n=l.child(t-1).text)&&void 0!==n?n:dn),r=t>=l.childCount-1||Xe(null!==(a=l.child(t+1).text)&&void 0!==a?a:dn);return o&&r},e.prototype.markText=function(e,t,n,a){var l=this.getMarkConvertor(e);if(l){var o=this.isBetweenSpaces(n,t?a:a-1),r=l({node:e,parent:n,index:a},t,o),i=r.delim,c=r.rawHTML;return c||i}return""},e.prototype.setDelim=function(e){this.delim=e},e.prototype.getDelim=function(){return this.delim},e.prototype.flushClose=function(e){if(!this.stopNewline&&this.closed){if(this.isInBlank()||(this.result+="\n"),e||(e=2),e>1){var t=this.delim,n=/\s+$/.exec(t);n&&(t=t.slice(0,t.length-n[0].length));for(var a=1;aw?i=i.slice(0,w).concat(p).concat(i.slice(w,y)).concat(i.slice(y+1,g)):w>y&&(i=i.slice(0,y).concat(i.slice(y+1,w)).concat(p).concat(i.slice(w,g)));break}}}var x=0;while(x")}})),this.stopNewline=!1,this.inTable=!1},e.prototype.convertNode=function(e,t){var n=this;return e.forEach((function(a,l,o){if(n.convertBlock(a,e,o),(null===t||void 0===t?void 0:t.node)===a){var r=n.result.split("\n");t.setMappedPos([r.length,_e(r).length+1])}})),this.result},e}(),m3=function(){function e(e,t,n,a){var l=this;this.setMappedPos=function(e){l.mappedPosWhenConverting=e},this.schema=e,this.eventEmitter=a,this.focusedNode=null,this.mappedPosWhenConverting=null,this.toWwConvertors=Z2(n),this.toMdConvertors=h3(t||{}),this.eventEmitter.listen("setFocusedNode",(function(e){return l.focusedNode=e}))}return e.prototype.getMappedPos=function(){return this.mappedPosWhenConverting},e.prototype.getInfoForPosSync=function(){return{node:this.focusedNode,setMappedPos:this.setMappedPos}},e.prototype.toWysiwygModel=function(e){var t=new Y2(this.schema,this.toWwConvertors);return t.convertNode(e,this.getInfoForPosSync())},e.prototype.toMarkdownText=function(e){var t=new f3(this.toMdConvertors),n=t.convertNode(e,this.getInfoForPosSync());return n=this.eventEmitter.emitReduce("beforeConvertWysiwygToMarkdown",n),n},e}();function v3(e,t,n){var o={Plugin:r["d"],PluginKey:r["e"],Selection:r["f"],TextSelection:r["h"]},i={Decoration:l["a"],DecorationSet:l["b"]},c={Fragment:a["c"]},s={InputRule:u["a"],inputRules:u["b"],undoInputRule:u["c"]},d={eventEmitter:t,usageStatistics:n,pmState:o,pmView:i,pmModel:c,pmRules:s,i18n:T0};if(C(e)){var p=e[0],h=e[1],f=void 0===h?{}:h;return p(d,f)}return e(d)}function b3(e,t,n){return t.listen("mixinTableOffsetMapPrototype",n0),(null!==e&&void 0!==e?e:[]).reduce((function(e,a){var l=v3(a,t,n);if(!l)throw new Error("The return value of the executed plugin is empty.");var o=l.markdownParsers,r=l.toHTMLRenderers,i=l.toMarkdownRenderers,c=l.markdownPlugins,u=l.wysiwygPlugins,s=l.wysiwygNodeViews,d=l.markdownCommands,p=l.wysiwygCommands,f=l.toolbarItems;return r&&(e.toHTMLRenderers=Ue(e.toHTMLRenderers,r)),i&&(e.toMarkdownRenderers=Ue(e.toMarkdownRenderers,i)),c&&(e.mdPlugins=e.mdPlugins.concat(c)),u&&(e.wwPlugins=e.wwPlugins.concat(u)),s&&(e.wwNodeViews=h(h({},e.wwNodeViews),s)),d&&(e.mdCommands=h(h({},e.mdCommands),d)),p&&(e.wwCommands=h(h({},e.wwCommands),p)),f&&(e.toolbarItems=e.toolbarItems.concat(f)),o&&(e.markdownParsers=h(h({},e.markdownParsers),o)),e}),{toHTMLRenderers:{},toMarkdownRenderers:{},mdPlugins:[],wwPlugins:[],wwNodeViews:{},mdCommands:{},wwCommands:{},toolbarItems:[],markdownParsers:{}})}var g3="data-task",y3="data-task-disabled",w3="checked";function k3(e){["htmlBlock","htmlInline"].forEach((function(t){e[t]&&Object.keys(e[t]).forEach((function(e){return JQ(e)}))}))}var x3=function(){function e(e){var t=this;this.options=y({linkAttributes:null,extendedAutolinks:!1,customHTMLRenderer:null,referenceDefinition:!1,customHTMLSanitizer:null,frontMatter:!1,usageStatistics:!0,theme:"light"},e),this.eventEmitter=new P2;var n=Re(this.options.linkAttributes),a=b3(this.options.plugins,this.eventEmitter,this.options.usageStatistics)||{},l=a.toHTMLRenderers,o=a.markdownParsers,r=this.options,i=r.customHTMLRenderer,c=r.extendedAutolinks,u=r.referenceDefinition,s=r.frontMatter,d=r.customHTMLSanitizer,p={linkAttributes:n,customHTMLRenderer:h(h({},l),i),extendedAutolinks:c,referenceDefinition:u,frontMatter:s,sanitizer:d||KQ};k3(p.customHTMLRenderer),this.options.events&&b(this.options.events,(function(e,n){t.on(n,e)}));var f=this.options,m=f.el,v=f.initialValue,g=f.theme,w=m.innerHTML;"light"!==g&&m.classList.add(fn(g)),m.innerHTML="",this.toastMark=new HZ("",{disallowedHtmlBlockTags:["br","img"],extendedAutolinks:c,referenceDefinition:u,disallowDeepHeading:!0,frontMatter:s,customParser:o}),this.preview=new MY(this.eventEmitter,h(h({},p),{isViewer:!0})),Ao(this.preview.previewContent,"mousedown",this.toggleTask.bind(this)),v?this.setMarkdown(v):w&&this.preview.setHTML(w),m.appendChild(this.preview.previewContent),this.eventEmitter.emit("load",this)}return e.prototype.toggleTask=function(e){var t=e.target,n=getComputedStyle(t,":before");!t.hasAttribute(y3)&&t.hasAttribute(g3)&&pn(n,e.offsetX,e.offsetY)&&(Cn(t,w3),this.eventEmitter.emit("change",{source:"viewer",date:e}))},e.prototype.setMarkdown=function(e){var t=this.toastMark.getLineTexts(),n=t.length,a=_e(t),l=[n,a.length+1],o=this.toastMark.editMarkdown([1,1],l,e||"");this.eventEmitter.emit("updatePreview",o)},e.prototype.on=function(e,t){this.eventEmitter.listen(e,t)},e.prototype.off=function(e){this.eventEmitter.removeEventHandler(e)},e.prototype.addHook=function(e,t){this.eventEmitter.removeEventHandler(e),this.eventEmitter.listen(e,t)},e.prototype.destroy=function(){To(this.preview.el,"mousedown",this.toggleTask.bind(this)),this.preview.destroy(),this.eventEmitter.emit("destroy")},e.prototype.isViewer=function(){return!0},e.prototype.isMarkdownMode=function(){return!1},e.prototype.isWysiwygMode=function(){return!1},e}();function C3(e){return e instanceof a["f"]}function T3(e){var t=["document","blockQuote","bulletList","orderedList","listItem","paragraph","heading","emph","strong","strike","link","image","table","tableHead","tableBody","tableRow","tableHeadCell","tableBodyCell"];return Ae(t,e)}function M3(e){var t=e.attrs,n=e.type,a=n.name,l={type:a,wysiwygNode:!0,literal:!T3(a)&&C3(e)?e.textContent:null},o={heading:{level:t.level},link:{destination:t.linkUrl,title:t.title},image:{destination:t.imageUrl},codeBlock:{info:t.language},bulletList:{type:"list",listData:{type:"bullet"}},orderedList:{type:"list",listData:{type:"ordered",start:t.order}},listItem:{type:"item",listData:{task:t.task,checked:t.checked}},tableHeadCell:{type:"tableCell",cellType:"head",align:t.align},tableBodyCell:{type:"tableCell",cellType:"body",align:t.align},customBlock:{info:t.info}},r=o[a],i=h(h({},l),r),c=e.attrs,u=c.htmlAttrs,s=c.childrenHTML;return u?h(h({},i),{attrs:u,childrenHTML:s}):i}var O3={openTag:function(e,t){var n=e,a=n.tagName,l=n.classNames,o=n.attributes,r=document.createElement(a),i={};l&&(r.className=l.join(" ")),o&&(i=h(h({},i),o)),En(i,r),t.push(r)},closeTag:function(e,t){if(t.length>1){var n=t.pop();_e(t).appendChild(n)}},html:function(e,t){_e(t).insertAdjacentHTML("beforeend",e.content)},text:function(e,t){var n=document.createTextNode(e.content);_e(t).appendChild(n)}},S3=function(){function e(e,t){var n=aY(e,t),a=h(h({},t.htmlBlock),t.htmlInline);this.customConvertorKeys=Object.keys(t).concat(Object.keys(a)),this.renderer=new JZ({gfm:!0,convertors:h(h({},n),a)}),this.convertors=this.renderer.getConvertors()}return e.prototype.generateTokens=function(e){var t=M3(e),n={entering:!0,leaf:!!C3(e)&&e.isLeaf,options:this.renderer.getOptions(),getChildrenText:function(){return C3(e)?e.textContent:""},skipChildren:function(){return!1}},a=this.convertors[e.type.name],l=a(t,n,this.convertors),o=C(l)?l:[l];return(T3(e.type.name)||e.attrs.htmlInline)&&(n.entering=!1,o.push({type:"text",content:C3(e)?e.textContent:""}),o=o.concat(a(t,n,this.convertors))),o},e.prototype.toDOMNode=function(e){var t=this.generateTokens(e),n=[];return t.forEach((function(e){return O3[e.type](e,n)})),n[0]},e.prototype.getToDOMNode=function(e){return Ae(this.customConvertorKeys,e)?this.toDOMNode.bind(this):null},e}(),E3=100,N3=15,D3=null,A3=null;function L3(e,t){var n=t.syncScrollTop,a=t.releaseEventBlock;A3&&clearTimeout(A3),n(e),A3=setTimeout((function(){a()}),N3)}function I3(e,t,n){var a=t-e,l=Date.now(),o=function(){var r,i=Date.now(),c=(i-l)/E3;D3&&clearTimeout(D3),c<1?(r=e+a*Math.cos((1-c)*Math.PI/2),L3(Math.ceil(r),n),D3=setTimeout(o,1)):(L3(t,n),D3=null)};o()}var R3=18,B3=function(){function e(e,t,n){this.latestEditorScrollTop=null,this.latestPreviewScrollTop=null,this.blockedScroll=null,this.active=!0,this.timer=null;var a=t.previewContent,l=t.el;this.previewRoot=a,this.previewEl=l,this.mdEditor=e,this.editorView=e.view,this.toastMark=e.getToastMark(),this.eventEmitter=n,this.addScrollSyncEvent()}return e.prototype.addScrollSyncEvent=function(){var e=this;this.eventEmitter.listen("afterPreviewRender",(function(){e.clearTimer(),e.timer=setTimeout((function(){e.syncPreviewScrollTop(!0)}),200)})),this.eventEmitter.listen("scroll",(function(t,n){e.active&&("editor"===t&&"editor"!==e.blockedScroll?e.syncPreviewScrollTop():"preview"===t&&"preview"!==e.blockedScroll&&e.syncEditorScrollTop(n))})),this.eventEmitter.listen("toggleScrollSync",(function(t){e.active=t}))},e.prototype.getMdNodeAtPos=function(e,t){var n=e.content.findIndex(t.pos),a=n.index;return this.toastMark.findFirstNodeAtLine(a+1)},e.prototype.getScrollTopByCaretPos=function(){var e=this.mdEditor.getSelection(),t=this.toastMark.findFirstNodeAtLine(e[0][0]),n=this.previewEl.clientHeight,a=fY(this.previewRoot,t).el,l=sY(a,this.previewRoot)||a.offsetTop,o=a.clientHeight,r=l+o-.5*n;this.latestEditorScrollTop=null;var i=a.getBoundingClientRect().top-this.previewEl.getBoundingClientRect().top;return iM.top?Math.min((i-M.top)/T,1):0;g=O+S*E}g=this.getResolvedScrollTop("editor",h,g,d),this.latestEditorScrollTop=h}g!==d&&this.run("editor",g,d)}},e.prototype.syncEditorScrollTop=function(e){var t=this,n=t.toastMark,a=t.editorView,l=t.previewRoot,o=t.previewEl,r=a.dom,i=a.state,c=o.scrollTop,u=o.clientHeight,s=o.scrollHeight,d=s-c<=u,p=r.scrollTop,h=d?r.scrollHeight:0;if(c&&e&&!d){if(e=uY(e,l),!e.getAttribute("data-nodeid"))return;var f=r.children,m=Number(e.getAttribute("data-nodeid")),v=fY(this.previewRoot,n.findNodeById(m)),b=v.mdNode,g=v.el,y=it(b);h=f[y-1].offsetTop;var w=iY(i.doc,b,f).height,k=xY(g,l,m),x=k.nodeHeight,C=k.offsetTop;h+=hY(c,C,x,w),h=this.getResolvedScrollTop("preview",c,h,p),this.latestPreviewScrollTop=c}h!==p&&this.run("preview",h,p)},e.prototype.getResolvedScrollTop=function(e,t,n,a){var l="editor"===e?this.latestEditorScrollTop:this.latestPreviewScrollTop;return null===l?n:l","i");return t.replace(n,"")}return t},e.prototype.insertText=function(e){this.getCurrentModeEditor().replaceSelection(e)},e.prototype.setSelection=function(e,t){this.getCurrentModeEditor().setSelection(e,t)},e.prototype.replaceSelection=function(e,t,n){this.getCurrentModeEditor().replaceSelection(e,t,n)},e.prototype.deleteSelection=function(e,t){this.getCurrentModeEditor().deleteSelection(e,t)},e.prototype.getSelectedText=function(e,t){return this.getCurrentModeEditor().getSelectedText(e,t)},e.prototype.getRangeInfoOfNode=function(e){return this.getCurrentModeEditor().getRangeInfoOfNode(e)},e.prototype.addWidget=function(e,t,n){this.getCurrentModeEditor().addWidget(e,t,n)},e.prototype.replaceWithWidget=function(e,t,n){this.getCurrentModeEditor().replaceWithWidget(e,t,n)},e.prototype.setHeight=function(e){var t=this.options.el;k(e)&&("auto"===e?Q(t,"auto-height"):le(t,"auto-height"),this.setMinHeight(this.getMinHeight())),R(t,{height:e}),this.height=e},e.prototype.getHeight=function(){return this.height},e.prototype.setMinHeight=function(e){if(e!==this.minHeight){var t=this.height||this.options.height;"auto"!==t&&this.options.el.querySelector("."+fn("main"))&&(e=Math.min(parseInt(e,10),parseInt(t,10)-75)+"px");var n=parseInt(e,10);this.minHeight=e,this.wwEditor.setMinHeight(n),this.mdEditor.setMinHeight(n),this.preview.setMinHeight(n)}},e.prototype.getMinHeight=function(){return this.minHeight},e.prototype.isMarkdownMode=function(){return"markdown"===this.mode},e.prototype.isWysiwygMode=function(){return"wysiwyg"===this.mode},e.prototype.isViewer=function(){return!1},e.prototype.getCurrentPreviewStyle=function(){return this.mdPreviewStyle},e.prototype.changeMode=function(e,t){if(this.mode!==e){if(this.mode=e,this.isWysiwygMode()){var n=this.toastMark.getRootNode(),a=this.convertor.toWysiwygModel(n);this.wwEditor.setModel(a)}else{a=this.wwEditor.getModel();this.mdEditor.setMarkdown(this.convertor.toMarkdownText(a),!t)}if(this.eventEmitter.emit("removePopupWidget"),this.eventEmitter.emit("changeMode",e),!t){var l=this.convertor.getMappedPos();this.focus(),this.isWysiwygMode()&&re(l)?this.wwEditor.setSelection(l):Array.isArray(l)&&this.mdEditor.setSelection(l)}}},e.prototype.destroy=function(){var e=this;this.wwEditor.destroy(),this.mdEditor.destroy(),this.preview.destroy(),this.scrollSync.destroy(),this.eventEmitter.emit("destroy"),this.eventEmitter.getEvents().forEach((function(t,n){return e.off(n)}))},e.prototype.hide=function(){this.eventEmitter.emit("hide")},e.prototype.show=function(){this.eventEmitter.emit("show")},e.prototype.setScrollTop=function(e){this.getCurrentModeEditor().setScrollTop(e)},e.prototype.getScrollTop=function(){return this.getCurrentModeEditor().getScrollTop()},e.prototype.reset=function(){this.wwEditor.setModel([]),this.mdEditor.setMarkdown("")},e.prototype.getSelection=function(){return this.getCurrentModeEditor().getSelection()},e.prototype.setPlaceholder=function(e){this.placeholder=e,this.mdEditor.setPlaceholder(e),this.wwEditor.setPlaceholder(e)},e.prototype.getEditorElements=function(){return{mdEditor:this.mdEditor.getElement(),mdPreview:this.preview.getElement(),wwEditor:this.wwEditor.getElement()}},e.prototype.convertPosToMatchEditorMode=function(e,t,n){var a,l;void 0===t&&(t=e),void 0===n&&(n=this.mode);var o=this.mdEditor.view.state.doc,r=Array.isArray(e),i=Array.isArray(t),c=e,u=t;if(r!==i)throw new Error("Types of arguments must be same");return"markdown"!==n||r||i?"wysiwyg"===n&&r&&i&&(l=Yn(o,e,t),c=l[0],u=l[1]):(a=Zn(o,e,t),c=a[0],u=a[1]),[c,u]},e}();function H3(e){for(var t,n,a=arguments,l=1,o="",r="",i=[0],c=function(e){1===l&&(e||(o=o.replace(/^\s*\n\s*|\s*\n\s*$/g,"")))?i.push(e?a[e]:o):3===l&&(e||o)?(i[1]=e?a[e]:o,l=2):2===l&&"..."===o&&e?i[2]=Ke(i[2]||{},a[e]):2===l&&o&&!e?(i[2]=i[2]||{})[o]=!0:l>=5&&(5===l?((i[2]=i[2]||{})[n]=e?o?o+a[e]:a[e]:o,l=6):(e||o)&&(i[2][n]+=e?o+a[e]:o)),o=""},u=0;u"===t?(l=1,o=""):o=t+o[0]:r?t===r?r="":o+=t:'"'===t||"'"===t?r=t:">"===t?(c(),l=1):l&&("="===t?(l=5,n=o,o=""):"/"===t&&(l<5||">"===e[u][a+1])?(c(),3===l&&(i=i[0]),l=i,(i=i[0]).push(this.apply(null,l.slice(1))),l=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(c(),l=2):o+=t),3===l&&"!--"===o&&(l=4,i=i[0])}return c(),i.length>2?i.slice(1):i[1]}function z3(e){return"boolean"===typeof e||e instanceof Boolean}var V3=z3,_3=function(){function e(e){this.current=e,this.root=e,this.entering=!0}return e.prototype.walk=function(){var e=this,t=e.entering,n=e.current;return n?(t?n.firstChild?(this.current=n.firstChild,this.entering=!0):this.entering=!1:n===this.root?this.current=null:n.next?(this.current=n.next,this.entering=!0):(this.current=n.parent,this.entering=!1),{vnode:n,entering:t}):null},e}(),q3=function(){function e(e,t,n){this.parent=null,this.old=null,this.firstChild=null,this.next=null,this.skip=!1,this.type=e,this.props=t,this.children=n,this.props.children=n,t.ref&&(this.ref=t.ref,delete t.ref),t.key&&(this.key=t.key,delete t.key)}return e.prototype.walker=function(){return new _3(this)},e.removalNodes=[],e}();function $3(e){return new q3("TEXT_NODE",{nodeValue:e},[])}function U3(e,t){var n=e;V3(e)||null==e?n=null:(k(e)||re(e))&&(n=$3(String(e))),n&&t.push(n)}function W3(e,t){for(var n=[],a=2;a\n \n
\n
\n
0},e}(),W4="undefined"!==typeof WeakMap?new WeakMap:new w4,J4=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=N4.getInstance(),a=new U4(t,n,this);W4.set(this,a)}return e}();["observe","unobserve","disconnect"].forEach((function(e){J4.prototype[e]=function(){var t;return(t=W4.get(this))[e].apply(t,arguments)}}));var K4,G4,X4,Z4,Q4,Y4,e5,t5,n5,a5,l5,o5,r5,i5,c5,u5,s5=function(){return"undefined"!==typeof x4.ResizeObserver?x4.ResizeObserver:J4}(),d5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.execCommand=function(e){var t=On(e.target,"li");this.props.execCommand("heading",{level:Number(t.getAttribute("data-level"))})},t.prototype.render=function(){var e=this;return J3(G4||(G4=m(["\n
\n "],["\n
\n "])),(function(t){return e.execCommand(t)}),T0.get("Headings"),[1,2,3,4,5,6].map((function(e){return J3(K4||(K4=m(['\n
\n <',">"," ","$>\n \n "],['\n
\n <',">"," ","$>\n \n "])),e,"h"+e,T0.get("Heading"),e)})),T0.get("Paragraph"))},t}(h4),p5=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.toggleTab=function(e,t){this.props.onClick(e,t)},t.prototype.render=function(){var e=this;return J3(Z4||(Z4=m(['\n
\n ',"\n
\n "],['\n
\n ',"\n
\n "])),fn("tabs"),this.props.tabs.map((function(t){var n=t.name,a=t.text,l=e.props.activeTab===n;return J3(X4||(X4=m(['\n
\n ',"\n
\n "],['\n
\n ',"\n
\n "])),l?" active":"",(function(t){return e.toggleTab(t,n)}),T0.get(a),l?"true":"false",l?"0":"-1",T0.get(a))})))},t}(h4),h5="ui",f5=function(e){function t(t){var n=e.call(this,t)||this;return n.initialize=function(e){void 0===e&&(e="file");var t=n.refs.url;t.value="",n.refs.altText.value="",n.refs.file.value="",le(t,"wrong"),n.setState({activeTab:e,file:null,fileNameElClassName:""})},n.execCommand=function(){"file"===n.state.activeTab?n.emitAddImageBlob():n.emitAddImage()},n.toggleTab=function(e,t){t!==n.state.activeTab&&n.initialize(t)},n.showFileSelectBox=function(){n.refs.file.click()},n.changeFile=function(e){var t=e.target.files;(null===t||void 0===t?void 0:t.length)&&n.setState({file:t[0]})},n.state={activeTab:"file",file:null,fileNameElClassName:""},n.tabs=[{name:"file",text:"File"},{name:"url",text:"URL"}],n}return p(t,e),t.prototype.emitAddImageBlob=function(){var e=this,t=this.refs.file.files,n=this.refs.altText,a=" wrong";if(null===t||void 0===t?void 0:t.length){a="";var l=t.item(0),o=function(t,a){return e.props.execCommand("addImage",{imageUrl:t,altText:a||n.value})};this.props.eventEmitter.emit("addImageBlobHook",l,o,h5)}this.setState({fileNameElClassName:a})},t.prototype.emitAddImage=function(){var e=this.refs.url,t=this.refs.altText,n=e.value,a=t.value||"image";le(e,"wrong"),n.length?n&&this.props.execCommand("addImage",{imageUrl:n,altText:a}):Q(e,"wrong")},t.prototype.preventSelectStart=function(e){e.preventDefault()},t.prototype.updated=function(){this.props.show||this.initialize()},t.prototype.render=function(){var e=this,t=this.state,n=t.activeTab,a=t.file,l=t.fileNameElClassName;return J3(Q4||(Q4=m(['\n
\n <'," tabs="," activeTab="," onClick=",' />\n
\n \n \n
\n
\n \n \n
\n
\n
\n
\n