(window.webpackJsonp=window.webpackJsonp||[]).push([[254,5,6,7],{"+NIl":function(ft,rt,ne){(function(re){re(ne("VrN/"))})(function(re){"use strict";re.defineMode("stex",function(X,L){"use strict";function z(C,T){C.cmdState.push(T)}function I(C){return C.cmdState.length>0?C.cmdState[C.cmdState.length-1]:null}function R(C){var T=C.cmdState.pop();T&&T.closeBracket()}function B(C){for(var T=C.cmdState,m=T.length-1;m>=0;m--){var u=T[m];if(u.name=="DEFAULT")continue;return u}return{styleIdentifier:function(){return null}}}function U(C,T,m){return function(){this.name=C,this.bracketNo=0,this.style=T,this.styles=m,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var P={};P.importmodule=U("importmodule","tag",["string","builtin"]),P.documentclass=U("documentclass","tag",["","atom"]),P.usepackage=U("usepackage","tag",["atom"]),P.begin=U("begin","tag",["atom"]),P.end=U("end","tag",["atom"]),P.label=U("label","tag",["atom"]),P.ref=U("ref","tag",["atom"]),P.eqref=U("eqref","tag",["atom"]),P.cite=U("cite","tag",["atom"]),P.bibitem=U("bibitem","tag",["atom"]),P.Bibitem=U("Bibitem","tag",["atom"]),P.RBibitem=U("RBibitem","tag",["atom"]),P.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function D(C,T){C.f=T}function v(C,T){var m;if(C.match(/^\\[a-zA-Z@]+/)){var u=C.current().slice(1);return m=P.hasOwnProperty(u)?P[u]:P.DEFAULT,m=new m,z(T,m),D(T,_),m.style}if(C.match(/^\\[$&%#{}_]/))return"tag";if(C.match(/^\\[,;!\/\\]/))return"tag";if(C.match("\\["))return D(T,function(l,s){return S(l,s,"\\]")}),"keyword";if(C.match("\\("))return D(T,function(l,s){return S(l,s,"\\)")}),"keyword";if(C.match("$$"))return D(T,function(l,s){return S(l,s,"$$")}),"keyword";if(C.match("$"))return D(T,function(l,s){return S(l,s,"$")}),"keyword";var o=C.next();if(o=="%")return C.skipToEnd(),"comment";if(o=="}"||o=="]"){if(m=I(T),m)m.closeBracket(o),D(T,_);else return"error";return"bracket"}else return o=="{"||o=="["?(m=P.DEFAULT,m=new m,z(T,m),"bracket"):/\d/.test(o)?(C.eatWhile(/[\w.%]/),"atom"):(C.eatWhile(/[\w\-_]/),m=B(T),m.name=="begin"&&(m.argument=C.current()),m.styleIdentifier())}function S(C,T,m){if(C.eatSpace())return null;if(m&&C.match(m))return D(T,v),"keyword";if(C.match(/^\\[a-zA-Z@]+/))return"tag";if(C.match(/^[a-zA-Z]+/))return"variable-2";if(C.match(/^\\[$&%#{}_]/))return"tag";if(C.match(/^\\[,;!\/]/))return"tag";if(C.match(/^[\^_&]/))return"tag";if(C.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(C.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var u=C.next();return u=="{"||u=="}"||u=="["||u=="]"||u=="("||u==")"?"bracket":u=="%"?(C.skipToEnd(),"comment"):"error"}function _(C,T){var m=C.peek(),u;return m=="{"||m=="["?(u=I(T),u.openBracket(m),C.eat(m),D(T,v),"bracket"):/[ \t\r]/.test(m)?(C.eat(m),null):(D(T,v),R(T),v(C,T))}return{startState:function(){var C=L.inMathMode?function(T,m){return S(T,m)}:v;return{cmdState:[],f:C}},copyState:function(C){return{cmdState:C.cmdState.slice(),f:C.f}},token:function(C,T){return T.f(C,T)},blankLine:function(C){C.f=v,C.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},"+ua5":function(ft,rt,ne){},"19Vz":function(ft,rt,ne){(function(re){re(ne("VrN/"))})(function(re){re.defineOption("placeholder","",function(U,P,D){var v=D&&D!=re.Init;if(P&&!v)U.on("blur",I),U.on("change",R),U.on("swapDoc",R),re.on(U.getInputField(),"compositionupdate",U.state.placeholderCompose=function(){z(U)}),R(U);else if(!P&&v){U.off("blur",I),U.off("change",R),U.off("swapDoc",R),re.off(U.getInputField(),"compositionupdate",U.state.placeholderCompose),X(U);var S=U.getWrapperElement();S.className=S.className.replace(" CodeMirror-empty","")}P&&!U.hasFocus()&&I(U)});function X(U){U.state.placeholder&&(U.state.placeholder.parentNode.removeChild(U.state.placeholder),U.state.placeholder=null)}function L(U){X(U);var P=U.state.placeholder=document.createElement("pre");P.style.cssText="height: 0; overflow: visible",P.style.direction=U.getOption("direction"),P.className="CodeMirror-placeholder CodeMirror-line-like";var D=U.getOption("placeholder");typeof D=="string"&&(D=document.createTextNode(D)),P.appendChild(D),U.display.lineSpace.insertBefore(P,U.display.lineSpace.firstChild)}function z(U){setTimeout(function(){var P=!1,D=U.getInputField();D.nodeName=="TEXTAREA"?P=!D.value:U.lineCount()==1&&(P=!/[^\u200b]/.test(D.querySelector(".CodeMirror-line").textContent)),P?L(U):X(U)},20)}function I(U){B(U)&&L(U)}function R(U){var P=U.getWrapperElement(),D=B(U);P.className=P.className.replace(" CodeMirror-empty","")+(D?" CodeMirror-empty":""),D?L(U):X(U)}function B(U){return U.lineCount()===1&&U.getLine(0)===""}})},"1eCo":function(ft,rt,ne){(function(re){re(ne("VrN/"))})(function(re){"use strict";var X={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},L={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(z,I){var R=z.indentUnit,B={},U=I.htmlMode?X:L;for(var P in U)B[P]=U[P];for(var P in I)B[P]=I[P];var D,v;function S(a,b){function g(F){return b.tokenize=F,F(a,b)}var E=a.next();if(E=="<")return a.eat("!")?a.eat("[")?a.match("CDATA[")?g(T("atom","]]>")):null:a.match("--")?g(T("comment","-->")):a.match("DOCTYPE",!0,!0)?(a.eatWhile(/[\w\._\-]/),g(m(1))):null:a.eat("?")?(a.eatWhile(/[\w\._\-]/),b.tokenize=T("meta","?>"),"meta"):(D=a.eat("/")?"closeTag":"openTag",b.tokenize=_,"tag bracket");if(E=="&"){var M;return a.eat("#")?a.eat("x")?M=a.eatWhile(/[a-fA-F\d]/)&&a.eat(";"):M=a.eatWhile(/[\d]/)&&a.eat(";"):M=a.eatWhile(/[\w\.\-:]/)&&a.eat(";"),M?"atom":"error"}else return a.eatWhile(/[^&<]/),null}S.isInText=!0;function _(a,b){var g=a.next();if(g==">"||g=="/"&&a.eat(">"))return b.tokenize=S,D=g==">"?"endTag":"selfcloseTag","tag bracket";if(g=="=")return D="equals",null;if(g=="<"){b.tokenize=S,b.state=s,b.tagName=b.tagStart=null;var E=b.tokenize(a,b);return E?E+" tag error":"tag error"}else return/[\'\"]/.test(g)?(b.tokenize=C(g),b.stringStartCol=a.column(),b.tokenize(a,b)):(a.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function C(a){var b=function(g,E){for(;!g.eol();)if(g.next()==a){E.tokenize=_;break}return"string"};return b.isInAttribute=!0,b}function T(a,b){return function(g,E){for(;!g.eol();){if(g.match(b)){E.tokenize=S;break}g.next()}return a}}function m(a){return function(b,g){for(var E;(E=b.next())!=null;){if(E=="<")return g.tokenize=m(a+1),g.tokenize(b,g);if(E==">")if(a==1){g.tokenize=S;break}else return g.tokenize=m(a-1),g.tokenize(b,g)}return"meta"}}function u(a,b,g){this.prev=a.context,this.tagName=b,this.indent=a.indented,this.startOfLine=g,(B.doNotIndent.hasOwnProperty(b)||a.context&&a.context.noIndent)&&(this.noIndent=!0)}function o(a){a.context&&(a.context=a.context.prev)}function l(a,b){for(var g;;){if(!a.context)return;if(g=a.context.tagName,!B.contextGrabbers.hasOwnProperty(g)||!B.contextGrabbers[g].hasOwnProperty(b))return;o(a)}}function s(a,b,g){return a=="openTag"?(g.tagStart=b.column(),w):a=="closeTag"?p:s}function w(a,b,g){return a=="word"?(g.tagName=b.current(),v="tag",y):B.allowMissingTagName&&a=="endTag"?(v="tag bracket",y(a,b,g)):(v="error",w)}function p(a,b,g){if(a=="word"){var E=b.current();return g.context&&g.context.tagName!=E&&B.implicitlyClosed.hasOwnProperty(g.context.tagName)&&o(g),g.context&&g.context.tagName==E||B.matchClosing===!1?(v="tag",c):(v="tag error",A)}else return B.allowMissingTagName&&a=="endTag"?(v="tag bracket",c(a,b,g)):(v="error",A)}function c(a,b,g){return a!="endTag"?(v="error",c):(o(g),s)}function A(a,b,g){return v="error",c(a,b,g)}function y(a,b,g){if(a=="word")return v="attribute",f;if(a=="endTag"||a=="selfcloseTag"){var E=g.tagName,M=g.tagStart;return g.tagName=g.tagStart=null,a=="selfcloseTag"||B.autoSelfClosers.hasOwnProperty(E)?l(g,E):(l(g,E),g.context=new u(g,E,M==g.indented)),s}return v="error",y}function f(a,b,g){return a=="equals"?h:(B.allowMissing||(v="error"),y(a,b,g))}function h(a,b,g){return a=="string"?d:a=="word"&&B.allowUnquoted?(v="string",y):(v="error",y(a,b,g))}function d(a,b,g){return a=="string"?d:y(a,b,g)}return{startState:function(a){var b={tokenize:S,state:s,indented:a||0,tagName:null,tagStart:null,context:null};return a!=null&&(b.baseIndent=a),b},token:function(a,b){if(!b.tagName&&a.sol()&&(b.indented=a.indentation()),a.eatSpace())return null;D=null;var g=b.tokenize(a,b);return(g||D)&&g!="comment"&&(v=null,b.state=b.state(D||g,a,b),v&&(g=v=="error"?g+" error":v)),g},indent:function(a,b,g){var E=a.context;if(a.tokenize.isInAttribute)return a.tagStart==a.indented?a.stringStartCol+1:a.indented+R;if(E&&E.noIndent)return re.Pass;if(a.tokenize!=_&&a.tokenize!=S)return g?g.match(/^(\s*)/)[0].length:0;if(a.tagName)return B.multilineTagIndentPastTag!==!1?a.tagStart+a.tagName.length+2:a.tagStart+R*(B.multilineTagIndentFactor||1);if(B.alignCDATA&&/$/,blockCommentStart:"",configuration:B.htmlMode?"html":"xml",helperType:B.htmlMode?"html":"xml",skipAttribute:function(a){a.state==h&&(a.state=y)},xmlCurrentTag:function(a){return a.tagName?{name:a.tagName,close:a.type=="closeTag"}:null},xmlCurrentContext:function(a){for(var b=[],g=a.context;g;g=g.prev)g.tagName&&b.push(g.tagName);return b.reverse()}}}),re.defineMIME("text/xml","xml"),re.defineMIME("application/xml","xml"),re.mimeModes.hasOwnProperty("text/html")||re.defineMIME("text/html",{name:"xml",htmlMode:!0})})},"7Cbv":function(ft,rt,ne){"use strict";var re=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),X=new Uint8Array(16);function L(){if(!re)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return re(X)}var z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function I(_){return typeof _=="string"&&z.test(_)}for(var R=I,B=[],U=0;U<256;++U)B.push((U+256).toString(16).substr(1));function P(_){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,T=(B[_[C+0]]+B[_[C+1]]+B[_[C+2]]+B[_[C+3]]+"-"+B[_[C+4]]+B[_[C+5]]+"-"+B[_[C+6]]+B[_[C+7]]+"-"+B[_[C+8]]+B[_[C+9]]+"-"+B[_[C+10]]+B[_[C+11]]+B[_[C+12]]+B[_[C+13]]+B[_[C+14]]+B[_[C+15]]).toLowerCase();if(!R(T))throw TypeError("Stringified UUID is invalid");return T}var D=P;function v(_,C,T){_=_||{};var m=_.random||(_.rng||L)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,C){T=T||0;for(var u=0;u<16;++u)C[T+u]=m[u];return C}return D(m)}var S=rt.a=v},"7ahc":function(ft,rt,ne){"use strict";ne.d(rt,"a",function(){return w});var re=ne("k1fw"),X=ne("0Owb"),L=ne("+L6B"),z=ne("2/Rp"),I=ne("y8nQ"),R=ne("Vl3Y"),B=ne("tJVT"),U=ne("OaEy"),P=ne("2fM7"),D=ne("cDcd"),v=ne.n(D),S=ne("VrN/"),_=ne.n(S),C=ne("p77/"),T=ne.n(C),m=ne("c5Ni"),u=ne.n(m),o=P.a.Option,l={labelCol:{span:4},wrapperCol:{span:20}},s={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};rt.b=function(p){var c=p.callback,A=p.onCancel,y=Object(D.useState)("python"),f=Object(B.a)(y,2),h=f[0],d=f[1];function a(g){d(s[g][1])}function b(g){c(g)}return v.a.createElement(R.a,Object(X.a)({},l,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:b}),v.a.createElement(R.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},v.a.createElement(P.a,{onChange:a},Object.keys(s).map(function(g){return v.a.createElement(o,{key:g,value:g},s[g][0])}))),v.a.createElement(R.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},v.a.createElement(w,{mode:h})),v.a.createElement("div",{className:"flex-container flex-end"},v.a.createElement(z.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),v.a.createElement(z.a,{type:"ghost",onClick:A},"\u53D6\u6D88")))};function w(p){var c=p.value,A=p.onChange,y=p.mode,f=p.options,h=f===void 0?{}:f,d=Object(D.useRef)(),a=Object(D.useState)(),b=Object(B.a)(a,2),g=b[0],E=b[1];return Object(D.useEffect)(function(){if(g){function M(F){var j=F.getValue();A&&A(j)}return g.on("change",M),function(){g.off("change",M)}}},[g,A]),Object(D.useEffect)(function(){g&&g.setOption("mode",y)},[g,y]),Object(D.useEffect)(function(){g&&((c!==g.getValue()||c==="")&&setTimeout(function(){g.setValue(c||" ")},300))},[g,c]),Object(D.useEffect)(function(){if(d.current&&!g){var M=_.a.fromTextArea(d.current,Object(re.a)({mode:y,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},h));E(M)}},[d.current,g]),v.a.createElement("div",{className:"my-codemirror-container"},v.a.createElement("textarea",{ref:d}))}},"8EBN":function(ft,rt,ne){(function(re){re(ne("VrN/"))})(function(re){"use strict";re.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var X=0;X-1&&z.substring(B+1,z.length);if(U)return re.findModeByExtension(U)},re.findModeByName=function(z){z=z.toLowerCase();for(var I=0;I=ie.length?he.slice(ie.length):he}).join(`
`)}var C=[],T=[""],m=new v.a.Renderer,u=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function o(){C.length=0,T=[""]}var l={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function s(ge,me,le,ie){if(me>=ge.length||ge[me].level<=le)return me;var he=ge[me];ie.push("- "+he.text+""),me++;var $=[];return me=s(ge,me,he.level,$),$.length>0&&(ie.push("
"),$.forEach(function(te){ie.push(te)}),ie.push("
")),ie.push(" "),me=s(ge,me,le,ie),me}function w(){return s(C,0,0,T),T.push("
"),T.join("")}var p={heading:function(me){var le=u.exec(me);if(le)return{type:"heading",raw:le[0],depth:le[1].length,text:le[2]}},fences:function(me){var le=this.rules.block.fences.exec(me);if(le){var ie=le[0],he=_(ie,le[3]||""),$=le[2]?le[2].trim():le[2];if(["latex","katex","math"].indexOf($)>=0){var te=y(),Z=he;he=te,f[te]={type:"block",expression:Z}}return{type:"code",raw:ie,lang:$,text:he}}}},c=/(?:\${2})([^\n`]+?)(?:\${2})/gi,A=0,y=function(){return"__special_katext_id_".concat(A++,"__")},f={};function h(){return f}function d(){A=0,f={}}function a(ge){return ge=ge.replace(c,function(me,le){var ie=y();return f[ie]={type:"inline",expression:le},ie}),ge}var b=m.listitem;m.listitem=function(ge){return b(a(ge))};var g=m.paragraph;m.paragraph=function(ge){return g(a(ge))};var E=m.tablecell;m.tablecell=function(ge,me){return E(a(ge),me)},m.code=function(ge,me,le){var ie=(me||"").match(/\S*/)[0];return ie?["latex","katex","math"].indexOf(ie)>=0?"".concat(ge,"
"):'
').concat(le?ge:Object(S.escape)(ge,!0),`
`):''+(le?ge:Object(S.escape)(ge,!0))+"
"},m.heading=function(ge,me,le){var ie=this.options.headerPrefix+le.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return C.push({anchor:ie,level:me,text:ge}),"'+ge+""},v.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),v.a.use({tokenizer:p,renderer:m});var M=v.a,F=ne("SJMd"),j=ne("ulZh"),W=ne.n(j),O=ne("m3rI"),k=ne("Oy/b"),K=ne("p5ED"),Y=ne("8hTe"),q=ne.n(Y),oe=/]*>/g;function Te(ge){var me=document.createElement("div");return me.innerHTML=ge,me.childNodes.length===0?"":me.childNodes[0].nodeValue}var ve=rt.a=function(ge){var me=ge.value,le=me===void 0?"":me,ie=ge.edit,he=ie===void 0?!1:ie,$=ge.className,te=ge.showTextOnly,Z=ge.showLines,be=ge.replaces,Ae=ge.zoomImg,ye=ge.hasMask,we=ge.style,De=we===void 0?{}:we,Re=ge.stylesPrev,Me=Re===void 0?{}:Re,ke=String(le),Oe=Object(B.useRef)(),ze=Object(B.useRef)(),Ze=Object(B.useState)(""),je=Object(R.a)(Ze,2),Xe=je[0],et=je[1],We=Object(B.useState)("office"),Be=Object(R.a)(We,2),Se=Be[0],qe=Be[1],Je=Object(B.useMemo)(function(){try{var ce=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,Q=/\"\/api\/attachments\/|\"\/attachments\/download\//g,J=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;ke=ke.replace(ce,"("+O.a.API_SERVER+"/api/attachments/").replace(Q,'"'+O.a.API_SERVER+"/api/attachments/").replace(J,'"'+O.a.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`)}catch(Le){}var ee=M(ke),se=h();if(ke.match(/\[TOC\]/)&&(ee=ee.replace("[TOC]
",w()),o()),ee=ee.replace(/(__special_katext_id_\d+__)/g,function(Le,Ce){var Ie=se[Ce],Ve=Ie.type,Ge=Ie.expression;return Object(k.renderToString)(Te(Ge)||"",{displayMode:Ve==="block",throwOnError:!1,output:"html"})}),ee=ee.replace(/▁/g,"\u2581\u2581\u2581"),d(),te){var fe=document.createElement("div");return fe.innerHTML=ee,fe.innerText}return setTimeout(function(){return pe()},500),ee},[ke]),_e=Object(B.useRef)();l.WebkitLineClamp=Z,Z&&(De=Object(I.a)(Object(I.a)({},De),l));function Ne(ce){var Q=ce.target;if(Q.tagName.toUpperCase()==="IMG"){if(Ae){var J=Q.getAttribute("src");et(J),qe("image")}}else if(Q.tagName.toUpperCase()==="A"){var ee=Q.getAttribute("href");if(ee.indexOf("office")>-1)ce.preventDefault(),et(ee),qe("office");else if(ee.indexOf("application/pdf")>-1)ce.preventDefault(),et(ee),qe("pdf");else if(ee.indexOf("text/html")>-1)ce.preventDefault(),et(ee),qe("html");else if(ee.startsWith("#")){ce.preventDefault();var se=document.getElementById(ee.replace("#",""));se&&se.scrollIntoView(!0)}}}var pe=function(){var Q,J=(Q=_e.current)===null||Q===void 0?void 0:Q.querySelectorAll("video");J==null||J.forEach(function(ee){if(ee.oncontextmenu=function(){return!1},ee.src.indexOf(".m3u8")>-1&&!ee.canPlayType("application/vnd.apple.mpegurl")){if(W.a.isSupported()){var se=new W.a;se.loadSource(ee.src),se.attachMedia(ee)}}})};Object(B.useEffect)(function(){if(_e.current&&Je&&(Je.match(oe)&&window.PR.prettyPrint()),_e.current)return _e.current.addEventListener("click",Ne),function(){_e.current.removeEventListener("click",Ne),d(),o()}},[Je,_e.current,Ne]);var de=function(Q){if(!he)return;Q.target.nodeName==="IMG"?(Oe.current.style.display="flex",Oe.current.style.width=Q.target.clientWidth+"px",Oe.current.style.height=Q.target.clientHeight+"px",Oe.current.style.top=Q.target.offsetTop+"px",Oe.current.style.left=Q.target.offsetLeft+"px",ze.current.src=Q.target.getAttribute("src")):Oe.current.style.display="none"};return U.a.createElement("div",{style:{position:"relative"}},U.a.createElement("div",{ref:_e,style:Object(I.a)({},De),className:"".concat($||""," markdown-body ").concat(q.a.mdBody),onMouseOver:de,dangerouslySetInnerHTML:{__html:Je}}),U.a.createElement("div",{ref:Oe,className:q.a.button},U.a.createElement(X.a,null,U.a.createElement(z.a,{onClick:function(){return openCrop()}},"\u88C1\u526A"),U.a.createElement(z.a,{onClick:function(){return openEditor()}},"\u7F16\u8F91"))),U.a.createElement("img",{ref:ze,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1,top:"-10000px"}}),U.a.createElement(K.a,{close:!0,data:Xe,type:Xe!=null&&Xe.length?Se:"",style:Object(I.a)({},Me),onClose:function(){return et("")}}))}},"9VGf":function(ft,rt,ne){"use strict";ne.d(rt,"a",function(){return L});var re=ne("cDcd"),X=ne.n(re);function L(z,I){var R=Object(re.useRef)();Object(re.useEffect)(function(){R.current=z}),Object(re.useEffect)(function(){function B(){R.current()}if(I!==null){var U=setInterval(B,I);return function(){return clearInterval(U)}}},[I])}},BU3w:function(ft,rt,ne){"use strict";ne.d(rt,"a",function(){return R});var re=ne("MNnm"),X="rc-util-key";function L(B){if(B.attachTo)return B.attachTo;var U=document.querySelector("head");return U||document.body}function z(B){var U,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(re.a)())return null;var D=document.createElement("style");if((U=P.csp)===null||U===void 0?void 0:U.nonce){var v;D.nonce=(v=P.csp)===null||v===void 0?void 0:v.nonce}D.innerHTML=B;var S=L(P),_=S.firstChild;return P.prepend&&S.prepend?S.prepend(D):P.prepend&&_?S.insertBefore(D,_):S.appendChild(D),D}var I=new Map;function R(B,U){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=L(P);if(!I.has(D)){var v=z("",P),S=v.parentNode;I.set(D,S),S.removeChild(v)}var _=Array.from(I.get(D).children).find(function(o){return o.tagName==="STYLE"&&o[X]===U});if(_){var C,T;if(((C=P.csp)===null||C===void 0?void 0:C.nonce)&&_.nonce!==((T=P.csp)===null||T===void 0?void 0:T.nonce)){var m;_.nonce=(m=P.csp)===null||m===void 0?void 0:m.nonce}return _.innerHTML!==B&&(_.innerHTML=B),_}var u=z(B,P);return u[X]=U,u}},Bd2K:function(ft,rt,ne){(function(re){re(ne("VrN/"),ne("osHv"))})(function(re){re.defineOption("autoCloseTags",!1,function(P,D,v){if(v!=re.Init&&v&&P.removeKeyMap("autoCloseTags"),!D)return;var S={name:"autoCloseTags"};(typeof D!="object"||D.whenClosing!==!1)&&(S["'/'"]=function(_){return R(_)}),(typeof D!="object"||D.whenOpening!==!1)&&(S["'>'"]=function(_){return z(_)}),P.addKeyMap(S)});var X=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],L=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function z(P){if(P.getOption("disableInput"))return re.Pass;for(var D=P.listSelections(),v=[],S=P.getOption("autoCloseTags"),_=0;_C.ch&&(l=l.slice(0,l.length-T.end+C.ch));var c=l.toLowerCase();if(!l||T.type=="string"&&(T.end!=C.ch||!/[\"\']/.test(T.string.charAt(T.string.length-1))||T.string.length==1)||T.type=="tag"&&o.close||T.string.indexOf("/")==C.ch-T.start-1||w&&B(w,c)>-1||U(P,m.mode.xmlCurrentContext&&m.mode.xmlCurrentContext(u)||[],l,C,!0))return re.Pass;var A=typeof S=="object"&&S.emptyTags;if(A&&B(A,l)>-1){v[_]={text:"/>",newPos:re.Pos(C.line,C.ch+2)};continue}var y=p&&B(p,c)>-1;v[_]={indent:y,text:">"+(y?`
`:"")+""+l+">",newPos:y?re.Pos(C.line+1,0):re.Pos(C.line,C.ch+1)}}for(var f=typeof S=="object"&&S.dontIndentOnAutoClose,_=D.length-1;_>=0;_--){var h=v[_];P.replaceRange(h.text,D[_].head,D[_].anchor,"+insert");var d=P.listSelections().slice(0);d[_]={head:h.newPos,anchor:h.newPos},P.setSelections(d),!f&&h.indent&&(P.indentLine(h.newPos.line,null,!0),P.indentLine(h.newPos.line+1,null,!0))}}function I(P,D){for(var v=P.listSelections(),S=[],_=D?"/":"",C=P.getOption("autoCloseTags"),T=typeof C=="object"&&C.dontIndentOnSlash,m=0;m"&&(w+=">"),S[m]=w}if(P.replaceSelections(S),v=P.listSelections(),!T)for(var m=0;m=0&&D[u]==v;u--)++m;S=T.to;for(var u=1;u0){for(var D=0;D1&&arguments[1]!==void 0?arguments[1]:"",D=[],v=0;vpe.length)&&(de=pe.length);for(var ce=0,Q=new Array(de);ce=pe.length?{done:!0}:{done:!1,value:pe[Q++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return ce=pe[Symbol.iterator](),ce.next.bind(ce)}function R(pe,de){return de={exports:{}},pe(de,de.exports),de.exports}var B=R(function(pe){function de(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function ce(Q){pe.exports.defaults=Q}pe.exports={defaults:de(),getDefaults:de,changeDefaults:ce}}),U=B.defaults,P=B.getDefaults,D=B.changeDefaults,v=/[&<>"']/,S=/[&<>"']/g,_=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,T={"&":"&","<":"<",">":">",'"':""","'":"'"},m=function(de){return T[de]};function u(pe,de){if(de){if(v.test(pe))return pe.replace(S,m)}else if(_.test(pe))return pe.replace(C,m);return pe}var o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function l(pe){return pe.replace(o,function(de,ce){return ce=ce.toLowerCase(),ce==="colon"?":":ce.charAt(0)==="#"?ce.charAt(1)==="x"?String.fromCharCode(parseInt(ce.substring(2),16)):String.fromCharCode(+ce.substring(1)):""})}var s=/(^|[^\[])\^/g;function w(pe,de){pe=pe.source||pe,de=de||"";var ce={replace:function(J,ee){return ee=ee.source||ee,ee=ee.replace(s,"$1"),pe=pe.replace(J,ee),ce},getRegex:function(){return new RegExp(pe,de)}};return ce}var p=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function A(pe,de,ce){if(pe){var Q;try{Q=decodeURIComponent(l(ce)).replace(p,"").toLowerCase()}catch(J){return null}if(Q.indexOf("javascript:")===0||Q.indexOf("vbscript:")===0||Q.indexOf("data:")===0)return null}de&&!c.test(ce)&&(ce=a(de,ce));try{ce=encodeURI(ce).replace(/%25/g,"%")}catch(J){return null}return ce}var y={},f=/^[^:]+:\/*[^/]*$/,h=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function a(pe,de){y[" "+pe]||(f.test(pe)?y[" "+pe]=pe+"/":y[" "+pe]=M(pe,"/",!0)),pe=y[" "+pe];var ce=pe.indexOf(":")===-1;return de.substring(0,2)==="//"?ce?de:pe.replace(h,"$1")+de:de.charAt(0)==="/"?ce?de:pe.replace(d,"$1")+de:pe+de}var b={exec:function(){}};function g(pe){for(var de=1,ce,Q;de=0&&fe[Ce]==="\\";)Le=!Le;return Le?"|":" |"}),Q=ce.split(/ \|/),J=0;if(Q.length>de)Q.splice(de);else for(;Q.length=Q.length?J.slice(Q.length):J}).join(`
`)}var ve=function(){function pe(ce){this.options=ce||O}var de=pe.prototype;return de.space=function(Q){var J=this.rules.block.newline.exec(Q);if(J)return J[0].length>1?{type:"space",raw:J[0]}:{raw:`
`}},de.code=function(Q,J){var ee=this.rules.block.code.exec(Q);if(ee){var se=J[J.length-1];if(se&&se.type==="paragraph")return{raw:ee[0],text:ee[0].trimRight()};var fe=ee[0].replace(/^ {4}/gm,"");return{type:"code",raw:ee[0],codeBlockStyle:"indented",text:this.options.pedantic?fe:k(fe,`
`)}}},de.fences=function(Q){var J=this.rules.block.fences.exec(Q);if(J){var ee=J[0],se=Te(ee,J[3]||"");return{type:"code",raw:ee,lang:J[2]?J[2].trim():J[2],text:se}}},de.heading=function(Q){var J=this.rules.block.heading.exec(Q);if(J)return{type:"heading",raw:J[0],depth:J[1].length,text:J[2]}},de.nptable=function(Q){var J=this.rules.block.nptable.exec(Q);if(J){var ee={type:"table",header:K(J[1].replace(/^ *| *\| *$/g,"")),align:J[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:J[3]?J[3].replace(/\n$/,"").split(`
`):[],raw:J[0]};if(ee.header.length===ee.align.length){var se=ee.align.length,fe;for(fe=0;fe ?/gm,"");return{type:"blockquote",raw:J[0],text:ee}}},de.list=function(Q){var J=this.rules.block.list.exec(Q);if(J){for(var ee=J[0],se=J[2],fe=se.length>1,Le=se[se.length-1]===")",Ce={type:"list",raw:ee,ordered:fe,start:fe?+se.slice(0,-1):"",loose:!1,items:[]},Ie=J[0].match(this.rules.block.item),Ve=!1,Ge,gt,ct,st,wt,ot,yt,xt=Ie.length,Ye=0;Ye1||this.options.smartLists&&ct!==se)&&(st=Ie.slice(Ye+1).join(`
`),Ce.raw=Ce.raw.substring(0,Ce.raw.length-st.length),Ye=xt-1)),wt=Ve||/\n\n(?!\s*$)/.test(Ge),Ye!==xt-1&&(Ve=Ge.charAt(Ge.length-1)===`
`,wt||(wt=Ve)),wt&&(Ce.loose=!0),ot=/^\[[ xX]\] /.test(Ge),yt=void 0,ot&&(yt=Ge[1]!==" ",Ge=Ge.replace(/^\[[ xX]\] +/,"")),Ce.items.push({type:"list_item",raw:ee,task:ot,checked:yt,loose:wt,text:Ge});return Ce}},de.html=function(Q){var J=this.rules.block.html.exec(Q);if(J)return{type:this.options.sanitize?"paragraph":"html",raw:J[0],pre:!this.options.sanitizer&&(J[1]==="pre"||J[1]==="script"||J[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(J[0]):Y(J[0]):J[0]}},de.def=function(Q){var J=this.rules.block.def.exec(Q);if(J){J[3]&&(J[3]=J[3].substring(1,J[3].length-1));var ee=J[1].toLowerCase().replace(/\s+/g," ");return{tag:ee,raw:J[0],href:J[2],title:J[3]}}},de.table=function(Q){var J=this.rules.block.table.exec(Q);if(J){var ee={type:"table",header:K(J[1].replace(/^ *| *\| *$/g,"")),align:J[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:J[3]?J[3].replace(/\n$/,"").split(`
`):[]};if(ee.header.length===ee.align.length){ee.raw=J[0];var se=ee.align.length,fe;for(fe=0;fe/i.test(se[0])&&(J=!1),!ee&&/^<(pre|code|kbd|script)(\s|>)/i.test(se[0])?ee=!0:ee&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(se[0])&&(ee=!1),{type:this.options.sanitize?"text":"html",raw:se[0],inLink:J,inRawBlock:ee,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):Y(se[0]):se[0]}},de.link=function(Q){var J=this.rules.inline.link.exec(Q);if(J){var ee=q(J[2],"()");if(ee>-1){var se=J[0].indexOf("!")===0?5:4,fe=se+J[1].length+ee;J[2]=J[2].substring(0,ee),J[0]=J[0].substring(0,fe).trim(),J[3]=""}var Le=J[2],Ce="";if(this.options.pedantic){var Ie=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Le);Ie?(Le=Ie[1],Ce=Ie[3]):Ce=""}else Ce=J[3]?J[3].slice(1,-1):"";Le=Le.trim().replace(/^<([\s\S]*)>$/,"$1");var Ve=oe(J,{href:Le&&Le.replace(this.rules.inline._escapes,"$1"),title:Ce&&Ce.replace(this.rules.inline._escapes,"$1")},J[0]);return Ve}},de.reflink=function(Q,J){var ee;if((ee=this.rules.inline.reflink.exec(Q))||(ee=this.rules.inline.nolink.exec(Q))){var se=(ee[2]||ee[1]).replace(/\s+/g," ");if(se=J[se.toLowerCase()],!se||!se.href){var fe=ee[0].charAt(0);return{type:"text",raw:fe,text:fe}}var Le=oe(ee,se,ee[0]);return Le}},de.strong=function(Q,J,ee){ee===void 0&&(ee="");var se=this.rules.inline.strong.start.exec(Q);if(se&&(!se[1]||se[1]&&(ee===""||this.rules.inline.punctuation.exec(ee)))){J=J.slice(-1*Q.length);var fe=se[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;fe.lastIndex=0;for(var Le;(se=fe.exec(J))!=null;)if(Le=this.rules.inline.strong.middle.exec(J.slice(0,se.index+3)),Le)return{type:"strong",raw:Q.slice(0,Le[0].length),text:Q.slice(2,Le[0].length-2)}}},de.em=function(Q,J,ee){ee===void 0&&(ee="");var se=this.rules.inline.em.start.exec(Q);if(se&&(!se[1]||se[1]&&(ee===""||this.rules.inline.punctuation.exec(ee)))){J=J.slice(-1*Q.length);var fe=se[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;fe.lastIndex=0;for(var Le;(se=fe.exec(J))!=null;)if(Le=this.rules.inline.em.middle.exec(J.slice(0,se.index+2)),Le)return{type:"em",raw:Q.slice(0,Le[0].length),text:Q.slice(1,Le[0].length-1)}}},de.codespan=function(Q){var J=this.rules.inline.code.exec(Q);if(J){var ee=J[2].replace(/\n/g," "),se=/[^ ]/.test(ee),fe=ee.startsWith(" ")&&ee.endsWith(" ");return se&&fe&&(ee=ee.substring(1,ee.length-1)),ee=Y(ee,!0),{type:"codespan",raw:J[0],text:ee}}},de.br=function(Q){var J=this.rules.inline.br.exec(Q);if(J)return{type:"br",raw:J[0]}},de.del=function(Q){var J=this.rules.inline.del.exec(Q);if(J)return{type:"del",raw:J[0],text:J[1]}},de.autolink=function(Q,J){var ee=this.rules.inline.autolink.exec(Q);if(ee){var se,fe;return ee[2]==="@"?(se=Y(this.options.mangle?J(ee[1]):ee[1]),fe="mailto:"+se):(se=Y(ee[1]),fe=se),{type:"link",raw:ee[0],text:se,href:fe,tokens:[{type:"text",raw:se,text:se}]}}},de.url=function(Q,J){var ee;if(ee=this.rules.inline.url.exec(Q)){var se,fe;if(ee[2]==="@")se=Y(this.options.mangle?J(ee[0]):ee[0]),fe="mailto:"+se;else{var Le;do Le=ee[0],ee[0]=this.rules.inline._backpedal.exec(ee[0])[0];while(Le!==ee[0]);se=Y(ee[0]),ee[1]==="www."?fe="http://"+se:fe=se}return{type:"link",raw:ee[0],text:se,href:fe,tokens:[{type:"text",raw:se,text:se}]}}},de.inlineText=function(Q,J,ee){var se=this.rules.inline.text.exec(Q);if(se){var fe;return J?fe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(se[0]):Y(se[0]):se[0]:fe=Y(this.options.smartypants?ee(se[0]):se[0]),{type:"text",raw:se[0],text:fe}}},pe}(),ge=W.noopTest,me=W.edit,le=W.merge,ie={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ge,table:ge,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};ie._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,ie._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ie.def=me(ie.def).replace("label",ie._label).replace("title",ie._title).getRegex(),ie.bullet=/(?:[*+-]|\d{1,9}[.)])/,ie.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,ie.item=me(ie.item,"gm").replace(/bull/g,ie.bullet).getRegex(),ie.list=me(ie.list).replace(/bull/g,ie.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ie.def.source+")").getRegex(),ie._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ie._comment=//,ie.html=me(ie.html,"i").replace("comment",ie._comment).replace("tag",ie._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ie.paragraph=me(ie._paragraph).replace("hr",ie.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ie._tag).getRegex(),ie.blockquote=me(ie.blockquote).replace("paragraph",ie.paragraph).getRegex(),ie.normal=le({},ie),ie.gfm=le({},ie.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ie.gfm.nptable=me(ie.gfm.nptable).replace("hr",ie.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ie._tag).getRegex(),ie.gfm.table=me(ie.gfm.table).replace("hr",ie.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",ie._tag).getRegex(),ie.pedantic=le({},ie.normal,{html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ie._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ge,paragraph:me(ie.normal._paragraph).replace("hr",ie.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ie.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ge,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ge,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=me(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=me(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=me(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=me(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=me(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=me(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=me(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=me(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=me(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=me(he._blockSkip,"g").getRegex(),he.overlapSkip=me(he._overlapSkip,"g").getRegex(),he._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,he._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,he._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,he.autolink=me(he.autolink).replace("scheme",he._scheme).replace("email",he._email).getRegex(),he._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,he.tag=me(he.tag).replace("comment",ie._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=me(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=me(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=me(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=le({},he),he.pedantic=le({},he.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:me(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=le({},he.normal,{escape:me(he.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\.5&&(Q="x"+Q.toString(16)),de+=""+Q+";";return de}var we=function(){function pe(ce){this.tokens=[],this.tokens.links=Object.create(null),this.options=ce||te,this.options.tokenizer=this.options.tokenizer||new ve,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Q={block:Z.normal,inline:be.normal};this.options.pedantic?(Q.block=Z.pedantic,Q.inline=be.pedantic):this.options.gfm&&(Q.block=Z.gfm,this.options.breaks?Q.inline=be.breaks:Q.inline=be.gfm),this.tokenizer.rules=Q}pe.lex=function(Q,J){var ee=new pe(J);return ee.lex(Q)};var de=pe.prototype;return de.lex=function(Q){return Q=Q.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Q,this.tokens,!0),this.inline(this.tokens),this.tokens},de.blockTokens=function(Q,J,ee){J===void 0&&(J=[]),ee===void 0&&(ee=!0),Q=Q.replace(/^ +$/gm,"");for(var se,fe,Le,Ce;Q;){if(se=this.tokenizer.space(Q)){Q=Q.substring(se.raw.length),se.type&&J.push(se);continue}if(se=this.tokenizer.code(Q,J)){Q=Q.substring(se.raw.length),se.type?J.push(se):(Ce=J[J.length-1],Ce.raw+=`
`+se.raw,Ce.text+=`
`+se.text);continue}if(se=this.tokenizer.fences(Q)){Q=Q.substring(se.raw.length),J.push(se);continue}if(se=this.tokenizer.heading(Q)){Q=Q.substring(se.raw.length),J.push(se);continue}if(se=this.tokenizer.nptable(Q)){Q=Q.substring(se.raw.length),J.push(se);continue}if(se=this.tokenizer.hr(Q)){Q=Q.substring(se.raw.length),J.push(se);continue}if(se=this.tokenizer.blockquote(Q)){Q=Q.substring(se.raw.length),se.tokens=this.blockTokens(se.text,[],ee),J.push(se);continue}if(se=this.tokenizer.list(Q)){for(Q=Q.substring(se.raw.length),Le=se.items.length,fe=0;fe0)for(;(Ie=this.tokenizer.rules.inline.reflinkSearch.exec(Ce))!=null;)Ve.includes(Ie[0].slice(Ie[0].lastIndexOf("[")+1,-1))&&(Ce=Ce.slice(0,Ie.index)+"["+"a".repeat(Ie[0].length-2)+"]"+Ce.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Ie=this.tokenizer.rules.inline.blockSkip.exec(Ce))!=null;)Ce=Ce.slice(0,Ie.index)+"["+"a".repeat(Ie[0].length-2)+"]"+Ce.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Q;){if(Le=this.tokenizer.escape(Q)){Q=Q.substring(Le.raw.length),J.push(Le);continue}if(Le=this.tokenizer.tag(Q,ee,se)){Q=Q.substring(Le.raw.length),ee=Le.inLink,se=Le.inRawBlock,J.push(Le);continue}if(Le=this.tokenizer.link(Q)){Q=Q.substring(Le.raw.length),Le.type==="link"&&(Le.tokens=this.inlineTokens(Le.text,[],!0,se)),J.push(Le);continue}if(Le=this.tokenizer.reflink(Q,this.tokens.links)){Q=Q.substring(Le.raw.length),Le.type==="link"&&(Le.tokens=this.inlineTokens(Le.text,[],!0,se)),J.push(Le);continue}if(Le=this.tokenizer.strong(Q,Ce,fe)){Q=Q.substring(Le.raw.length),Le.tokens=this.inlineTokens(Le.text,[],ee,se),J.push(Le);continue}if(Le=this.tokenizer.em(Q,Ce,fe)){Q=Q.substring(Le.raw.length),Le.tokens=this.inlineTokens(Le.text,[],ee,se),J.push(Le);continue}if(Le=this.tokenizer.codespan(Q)){Q=Q.substring(Le.raw.length),J.push(Le);continue}if(Le=this.tokenizer.br(Q)){Q=Q.substring(Le.raw.length),J.push(Le);continue}if(Le=this.tokenizer.del(Q)){Q=Q.substring(Le.raw.length),Le.tokens=this.inlineTokens(Le.text,[],ee,se),J.push(Le);continue}if(Le=this.tokenizer.autolink(Q,ye)){Q=Q.substring(Le.raw.length),J.push(Le);continue}if(!ee&&(Le=this.tokenizer.url(Q,ye))){Q=Q.substring(Le.raw.length),J.push(Le);continue}if(Le=this.tokenizer.inlineText(Q,se,Ae)){Q=Q.substring(Le.raw.length),fe=Le.raw.slice(-1),J.push(Le);continue}if(Q){var Ge="Infinite loop on byte: "+Q.charCodeAt(0);if(this.options.silent){console.error(Ge);break}else throw new Error(Ge)}}return J},X(pe,null,[{key:"rules",get:function(){return{block:Z,inline:be}}}]),pe}(),De=B.defaults,Re=W.cleanUrl,Me=W.escape,ke=function(){function pe(ce){this.options=ce||De}var de=pe.prototype;return de.code=function(Q,J,ee){var se=(J||"").match(/\S*/)[0];if(this.options.highlight){var fe=this.options.highlight(Q,se);fe!=null&&fe!==Q&&(ee=!0,Q=fe)}return se?''+(ee?Q:Me(Q,!0))+`
`:""+(ee?Q:Me(Q,!0))+`
`},de.blockquote=function(Q){return`
`+Q+`
`},de.html=function(Q){return Q},de.heading=function(Q,J,ee,se){return this.options.headerIds?"
`:""+Q+"
`},de.hr=function(){return this.options.xhtml?`
`:`
`},de.list=function(Q,J,ee){var se=J?"ol":"ul",fe=J&&ee!==1?' start="'+ee+'"':"";return"<"+se+fe+`>
`+Q+""+se+`>
`},de.listitem=function(Q){return""+Q+`
`},de.checkbox=function(Q){return" "},de.paragraph=function(Q){return""+Q+`
`},de.table=function(Q,J){return J&&(J=""+J+""),`
`},de.tablerow=function(Q){return`
`+Q+`
`},de.tablecell=function(Q,J){var ee=J.header?"th":"td",se=J.align?"<"+ee+' align="'+J.align+'">':"<"+ee+">";return se+Q+""+ee+`>
`},de.strong=function(Q){return""+Q+""},de.em=function(Q){return""+Q+""},de.codespan=function(Q){return""+Q+""},de.br=function(){return this.options.xhtml?"
":"
"},de.del=function(Q){return""+Q+""},de.link=function(Q,J,ee){if(Q=Re(this.options.sanitize,this.options.baseUrl,Q),Q===null)return ee;var se='"+ee+"",se},de.image=function(Q,J,ee){if(Q=Re(this.options.sanitize,this.options.baseUrl,Q),Q===null)return ee;var se='
":">",se},de.text=function(Q){return Q},pe}(),Oe=function(){function pe(){}var de=pe.prototype;return de.strong=function(Q){return Q},de.em=function(Q){return Q},de.codespan=function(Q){return Q},de.del=function(Q){return Q},de.html=function(Q){return Q},de.text=function(Q){return Q},de.link=function(Q,J,ee){return""+ee},de.image=function(Q,J,ee){return""+ee},de.br=function(){return""},pe}(),ze=function(){function pe(){this.seen={}}var de=pe.prototype;return de.slug=function(Q){var J=Q.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(J)){var ee=J;do this.seen[ee]++,J=ee+"-"+this.seen[ee];while(this.seen.hasOwnProperty(J))}return this.seen[J]=0,J},pe}(),Ze=B.defaults,je=W.unescape,Xe=function(){function pe(ce){this.options=ce||Ze,this.options.renderer=this.options.renderer||new ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Oe,this.slugger=new ze}pe.parse=function(Q,J){var ee=new pe(J);return ee.parse(Q)};var de=pe.prototype;return de.parse=function(Q,J){J===void 0&&(J=!0);var ee="",se,fe,Le,Ce,Ie,Ve,Ge,gt,ct,st,wt,ot,yt,xt,Ye,fr,sr,lr,_t=Q.length;for(se=0;se<_t;se++){st=Q[se];switch(st.type){case"space":continue;case"hr":{ee+=this.renderer.hr();continue}case"heading":{ee+=this.renderer.heading(this.parseInline(st.tokens),st.depth,je(this.parseInline(st.tokens,this.textRenderer)),this.slugger);continue}case"code":{ee+=this.renderer.code(st.text,st.lang,st.escaped);continue}case"table":{for(gt="",Ge="",Ce=st.header.length,fe=0;fe0&&Ye.tokens[0].type==="text"?(Ye.tokens[0].text=lr+" "+Ye.tokens[0].text,Ye.tokens[0].tokens&&Ye.tokens[0].tokens.length>0&&Ye.tokens[0].tokens[0].type==="text"&&(Ye.tokens[0].tokens[0].text=lr+" "+Ye.tokens[0].tokens[0].text)):Ye.tokens.unshift({type:"text",text:lr}):xt+=lr),xt+=this.parse(Ye.tokens,yt),ct+=this.renderer.listitem(xt,sr,fr);ee+=this.renderer.list(ct,wt,ot);continue}case"html":{ee+=this.renderer.html(st.text);continue}case"paragraph":{ee+=this.renderer.paragraph(this.parseInline(st.tokens));continue}case"text":{for(ct=st.tokens?this.parseInline(st.tokens):st.text;se+1<_t&&Q[se+1].type==="text";)st=Q[++se],ct+=`
`+(st.tokens?this.parseInline(st.tokens):st.text);ee+=J?this.renderer.paragraph(ct):ct;continue}default:{var ur='Token with "'+st.type+'" type was not found.';if(this.options.silent){console.error(ur);return}else throw new Error(ur)}}}return ee},de.parseInline=function(Q,J){J=J||this.renderer;var ee="",se,fe,Le=Q.length;for(se=0;seAn error occurred:
"+Be(Le.message+"",!0)+"
";throw Le}}_e.options=_e.setOptions=function(pe){return et(_e.defaults,pe),qe(_e.defaults),_e},_e.getDefaults=Se,_e.defaults=Je,_e.use=function(pe){var de=et({},pe);if(pe.renderer&&function(){var Q=_e.defaults.renderer||new ke,J=function(fe){var Le=Q[fe];Q[fe]=function(){for(var Ce=arguments.length,Ie=new Array(Ce),Ve=0;Ve`,triples:"",explode:"[]{}"},L=re.Pos;re.defineOption("autoCloseBrackets",!1,function(T,m,u){u&&u!=re.Init&&(T.removeKeyMap(I),T.state.closeBrackets=null),m&&(R(z(m,"pairs")),T.state.closeBrackets=m,T.addKeyMap(I))});function z(T,m){return m=="pairs"&&typeof T=="string"?T:typeof T=="object"&&T[m]!=null?T[m]:X[m]}var I={Backspace:P,Enter:D};function R(T){for(var m=0;m=0;l--){var w=o[l].head;T.replaceRange("",L(w.line,w.ch-1),L(w.line,w.ch+1),"+delete")}}function D(T){var m=U(T),u=m&&z(m,"explode");if(!u||T.getOption("disableInput"))return re.Pass;for(var o=T.listSelections(),l=0;l0;return{anchor:new L(T.anchor.line,T.anchor.ch+(m?-1:1)),head:new L(T.head.line,T.head.ch+(m?1:-1))}}function S(T,m){var u=U(T);if(!u||T.getOption("disableInput"))return re.Pass;var o=z(u,"pairs"),l=o.indexOf(m);if(l==-1)return re.Pass;for(var s=z(u,"closeBefore"),w=z(u,"triples"),p=o.charAt(l+1)==m,c=T.listSelections(),A=l%2==0,y,f=0;f=0&&T.getRange(d,L(d.line,d.ch+3))==m+m+m?a="skipThree":a="skip";else if(p&&d.ch>1&&w.indexOf(m)>=0&&T.getRange(L(d.line,d.ch-2),d)==m+m){if(d.ch>2&&/\bstring/.test(T.getTokenTypeAt(L(d.line,d.ch-2))))return re.Pass;a="addFour"}else if(p){var g=d.ch==0?" ":T.getRange(L(d.line,d.ch-1),d);if(!re.isWordChar(b)&&g!=m&&!re.isWordChar(g))a="both";else return re.Pass}else if(A&&(b.length===0||/\s/.test(b)||s.indexOf(b)>-1))a="both";else return re.Pass;if(!y)y=a;else if(y!=a)return re.Pass}var E=l%2?o.charAt(l-1):m,M=l%2?m:o.charAt(l+1);T.operation(function(){if(y=="skip")T.execCommand("goCharRight");else if(y=="skipThree")for(var F=0;F<3;F++)T.execCommand("goCharRight");else if(y=="surround"){for(var j=T.getSelections(),F=0;F0&&(q.percent=q.loaded/q.total*100),W.onProgress(q)});var k=new FormData;W.data&&Object.keys(W.data).forEach(function(Y){var q=W.data[Y];if(Array.isArray(q)){q.forEach(function(oe){k.append(Y+"[]",oe)});return}k.append(Y,W.data[Y])}),W.file instanceof Blob?k.append(W.filename,W.file,W.file.name):k.append(W.filename,W.file),O.onerror=function(q){W.onError(q)},O.onload=function(){return O.status<200||O.status>=300?W.onError(I(W,O),R(O)):W.onSuccess(R(O),O)},O.open(W.method,W.action,!0),W.withCredentials&&"withCredentials"in O&&(O.withCredentials=!0);var K=W.headers||{};return K["X-Requested-With"]!==null&&O.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(K).forEach(function(Y){K[Y]!==null&&O.setRequestHeader(Y,K[Y])}),O.send(k),{abort:function(){O.abort()}}}var U=+new Date,P=0;function D(){return"rc-upload-"+U+"-"+ ++P}function v(W,O){return W.indexOf(O,W.length-O.length)!==-1}var S=function(W,O){if(W&&O){var k=Array.isArray(O)?O:O.split(","),K=W.name||"",Y=W.type||"",q=Y.replace(/\/.*$/,"");return k.some(function(oe){var Te=oe.trim();return Te.charAt(0)==="."?v(K.toLowerCase(),Te.toLowerCase()):/\/\*$/.test(Te)?q===Te.replace(/\/.*$/,""):Y===Te})}return!0};function _(W,O){var k=W.createReader(),K=[];function Y(){k.readEntries(function(q){var oe=Array.prototype.slice.apply(q);K=K.concat(oe);var Te=!oe.length;Te?O(K):Y()})}Y()}var C=function(O,k,K){var Y=function q(oe,Te){Te=Te||"",oe.isFile?oe.file(function(ve){K(ve)&&(oe.fullPath&&!ve.webkitRelativePath&&(Object.defineProperties(ve,{webkitRelativePath:{writable:!0}}),ve.webkitRelativePath=oe.fullPath.replace(/^\//,""),Object.defineProperties(ve,{webkitRelativePath:{writable:!1}})),k([ve]))}):oe.isDirectory&&_(oe,function(ve){ve.forEach(function(ge){q(ge,""+Te+oe.name+"/")})})};O.forEach(function(q){Y(q.webkitGetAsEntry())})},T=C,m=Object.assign||function(W){for(var O=1;O=0)continue;if(!Object.prototype.hasOwnProperty.call(W,K))continue;k[K]=W[K]}return k}function w(W,O){if(!(W instanceof O))throw new TypeError("Cannot call a class as a function")}function p(W,O){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:W}function c(W,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);W.prototype=Object.create(O&&O.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(W,O):W.__proto__=O)}var A=function(O){return Object.keys(O).reduce(function(k,K){return(K.substr(0,5)==="data-"||K.substr(0,5)==="aria-"||K==="role")&&(k[K]=O[K]),k},{})},y=function(W){c(O,W);function O(){var k,K,Y,q;w(this,O);for(var oe=arguments.length,Te=Array(oe),ve=0;ve1&&arguments[1]!==void 0?arguments[1]:1,ce=Oe.length,Q=0;Q1&&arguments[1]!==void 0?arguments[1]:!1;return Object(A.a)(k).map(function(Y,q){if(!I.isValidElement(Y)||!Y.type)return null;var oe=Y.type.isSelectOptGroup,Te=Y.key,ve=Y.props,ge=ve.children,me=Object(B.a)(ve,["children"]);return K||!oe?y(Y):Object(c.a)(Object(c.a)({key:"__RC_SELECT_GRP__".concat(Te===null?q:Te,"__"),label:Te},me),{},{options:f(ge)})}).filter(function(Y){return Y})}var h=ne("2Qr1"),d=ne("qNPg"),a=ne("U8pU"),b=ne("Kwbf"),g=ne("WKfj");function E(k){var K=k.mode,Y=k.options,q=k.children,oe=k.backfill,Te=k.allowClear,ve=k.placeholder,ge=k.getInputElement,me=k.showSearch,le=k.onSearch,ie=k.defaultOpen,he=k.autoFocus,$=k.labelInValue,te=k.value,Z=k.inputValue,be=k.optionLabelProp,Ae=K==="multiple"||K==="tags",ye=me!==void 0?me:Ae||K==="combobox",we=Y||f(q);if(Object(b.a)(K!=="tags"||we.every(function(ke){return!ke.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),K==="tags"||K==="combobox"){var De=we.some(function(ke){return ke.options?ke.options.some(function(Oe){return typeof("value"in Oe?Oe.value:Oe.key)=="number"}):typeof("value"in ke?ke.value:ke.key)=="number"});Object(b.a)(!De,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(b.a)(K!=="combobox"||!be,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(b.a)(K==="combobox"||!oe,"`backfill` only works with `combobox` mode."),Object(b.a)(K==="combobox"||!ge,"`getInputElement` only work with `combobox` mode."),Object(b.b)(K!=="combobox"||!ge||!Te||!ve,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),le&&!ye&&K!=="combobox"&&K!=="tags"&&Object(b.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(b.b)(!ie||he,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),te!=null){var Re=Object(g.d)(te);Object(b.a)(!$||Re.every(function(ke){return Object(a.a)(ke)==="object"&&("key"in ke||"value"in ke)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(b.a)(!Ae||Array.isArray(te),"`value` should be array when `mode` is `multiple` or `tags`")}if(q){var Me=null;Object(A.a)(q).some(function(ke){if(!I.isValidElement(ke)||!ke.type)return!1;var Oe=ke.type;if(Oe.isSelectOption)return!1;if(Oe.isSelectOptGroup){var ze=Object(A.a)(ke.props.children).every(function(Ze){return!I.isValidElement(Ze)||!ke.type||Ze.type.isSelectOption?!0:(Me=Ze.type,!1)});return!ze}return Me=Oe,!0}),Me&&Object(b.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Me.displayName||Me.name||Me,"`.")),Object(b.a)(Z===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var M=E,F=Object(d.a)({prefixCls:"rc-select",components:{optionList:o},convertChildrenToData:f,flattenOptions:h.d,getLabeledValue:h.e,filterOptions:h.b,isValueDisabled:h.g,findValueOption:h.c,warningProps:M,fillOptionsWithMissingValue:h.a}),j=function(k){Object(L.a)(Y,k);var K=Object(z.a)(Y);function Y(){var q;return Object(re.a)(this,Y),q=K.apply(this,arguments),q.selectRef=I.createRef(),q.focus=function(){q.selectRef.current.focus()},q.blur=function(){q.selectRef.current.blur()},q}return Object(X.a)(Y,[{key:"render",value:function(){return I.createElement(F,Object.assign({ref:this.selectRef},this.props))}}]),Y}(I.Component);j.Option=s,j.OptGroup=p;var W=j,O=rt.c=W},M8RZ:function(ft,rt,ne){"use strict";ne.d(rt,"a",function(){return P});var re=ne("fWQN"),X=ne("mtLc"),L=ne("yKVA"),z=ne("879j"),I=ne("cDcd"),R=ne.n(I),B=ne("faye"),U=ne.n(B),P=function(D){Object(L.a)(S,D);var v=Object(z.a)(S);function S(_){var C;Object(re.a)(this,S),C=v.call(this,_);var T=window.document;return C.node=T.createElement("div"),T.body.appendChild(C.node),C}return Object(X.a)(S,[{key:"render",value:function(){var C=this.props.children;return Object(B.createPortal)(C,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),S}(R.a.Component)},Ot1p:function(ft,rt,ne){"use strict";var re=ne("2qtc"),X=ne("kLXV"),L=ne("rAM+"),z=ne("miYZ"),I=ne("tsqr"),R=ne("9og8"),B=ne("tJVT"),U=ne("jrin"),P=ne("WmNS"),D=ne.n(P),v=ne("cDcd"),S=ne.n(v),_=ne("VrN/"),C=ne.n(_),T=ne("bdgK"),m=ne("p77/"),u=ne("Bd2K"),o=ne("ELLl"),l=ne("19Vz"),s=ne("lZu9"),w=ne("+NIl"),p=ne("kSUc"),c=ne("9Bee"),A=function(fe){var Le=fe.value,Ce=Le===void 0?"":Le,Ie=fe.className,Ve=fe.showTextOnly,Ge=fe.showLines,gt=fe.style,ct=gt===void 0?{}:gt,st=Object(v.useMemo)(function(){return""},[Ce]);return S.a.createElement(S.a.Fragment,null,S.a.createElement("div",{dangerouslySetInnerHTML:{__html:st}}))},y=ne("0Owb"),f=ne("dejd"),h=ne("C+DQ"),d=ne("1vsH"),a=ne("m3rI"),b=[{title:"\u7C97\u4F53",icon:"icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"icon-sum",actionName:"inline-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"icon-picture",actionName:"upload-image"},{title:"\u8868\u683C",icon:"icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"icon-eraser",actionName:"eraser"}];function g(fe){var Le=fe.onActionCallback,Ce=fe.title,Ie=fe.icon,Ve=fe.actionName,Ge=fe.className,gt=Ge===void 0?"":Ge,ct=fe.children;function st(){Le(Ve)}return S.a.createElement("a",{title:Ce,className:gt,onClick:st},S.a.createElement("i",{className:"md-iconfont ".concat(Ie)}),ct)}var E=function(fe){var Le=fe.watch,Ce=fe.showNullButton,Ie=fe.onActionCallback,Ve=fe.fullScreen,Ge=fe.insertTemp,gt=fe.hidetoolBar,ct=fe.uuid,st=fe.setOpenPhones;console.log("link:","".concat(location.origin,"/upload.html?_educoder_session_login=").concat(Object(d.G)("_educoder_session_login"),"&_educoder_session=").concat(Object(d.G)("_educoder_session"),"&key=").concat(ct,"&api=").concat(encodeURIComponent(a.a.PROXY_SERVER)));var wt=[].concat(b,[{title:"".concat(Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(Le?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return S.a.createElement("ul",{className:"markdown-toolbar-container"},!gt&&wt.map(function(ot,yt){return S.a.createElement("li",{key:yt},ot.actionName?S.a.createElement(g,Object(y.a)({},ot,{onActionCallback:Ie})):S.a.createElement("span",{className:"v-line"}))}),Ce?S.a.createElement("li",null,S.a.createElement(g,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ie},S.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ge&&S.a.createElement("li",null,S.a.createElement(g,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Ge),onActionCallback:Ie},S.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),S.a.createElement("li",{className:"btn-full-screen"},S.a.createElement(g,{icon:"".concat(Ve?"icon-shrink":"icon-enlarge"),title:Ve?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ie})))},M=ne("M8RZ"),F=ne("+L6B"),j=ne("2/Rp"),W=ne("y8nQ"),O=ne("Vl3Y"),k=ne("5NDa"),K=ne("5rEg"),Y={labelCol:{span:4},wrapperCol:{span:20}},q=function(fe){var Le=fe.callback,Ce=fe.onCancel;function Ie(Ve){Le(Ve)}return S.a.createElement(O.a,Object(y.a)({},Y,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ie}),S.a.createElement(O.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},S.a.createElement(K.a,null)),S.a.createElement(O.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},S.a.createElement(K.a,null)),S.a.createElement("div",{className:"flex-container flex-end"},S.a.createElement(j.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),S.a.createElement(j.a,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))},oe=ne("7ahc"),Te=ne("HmJG"),ve=ne("BjJ7"),ge=O.a.useForm,me={width:280,marginRight:10},le={labelCol:{span:5},wrapperCol:{span:19}},ie=function(fe){var Le=fe.callback,Ce=fe.onCancel,Ie=ge(),Ve=Object(B.a)(Ie,1),Ge=Ve[0];function gt(wt){Le(wt)}function ct(wt,ot){if(wt.status===-1){I.b.error(wt.message);return}Ge.setFieldsValue({src:"/api/attachments/".concat(wt.id),type:ot.type})}function st(wt){var ot=wt.target.files[0];$(ot,ct)}return S.a.createElement(O.a,Object(y.a)({form:Ge},le,{className:"upload-image-panel",onFinish:gt}),S.a.createElement(O.a.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},S.a.createElement("div",{className:"flex-container"},S.a.createElement(O.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},S.a.createElement(K.a,{style:me})),S.a.createElement(he,{onFileChange:st}))),S.a.createElement(O.a.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},S.a.createElement(K.a,{style:{width:264}})),S.a.createElement(O.a.Item,{style:{textAlign:"right"}},S.a.createElement(j.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),S.a.createElement(j.a,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function he(fe){var Le=fe.onFileChange;return S.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",S.a.createElement("input",{type:"file",onChange:Le}))}function $(fe,Le){if(!fe)throw new String("\u6CA1\u6709\u6587\u4EF6");var Ce=new FormData;Ce.append("editormd-image-file",fe),Ce.append("file_param_name","editormd-image-file"),Ce.append("byxhr","true");var Ie=new window.XMLHttpRequest;Ie.withCredentials=!0,Ie.addEventListener("load",function(Ve){Le(JSON.parse(Ve.target.responseText),fe)},!1),Ie.addEventListener("error",function(Ve){console.error(Ve)},!1),Ie.open("POST","".concat(ve.a,"/api/attachments.json")),Ie.send(Ce)}var te=ne("giR+"),Z=ne("fyUT"),be=ne("7Kak"),Ae=ne("9yH6"),ye=Ae.a.Group,we={margin:"0 8px"},De=function(fe){var Le=fe.callback,Ce=fe.onCancel;function Ie(Ve){Le(Ve)}return S.a.createElement(O.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ie},S.a.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},S.a.createElement("span",{style:we},"\u5355\u5143\u683C\u6570\uFF1A"),S.a.createElement("span",{style:we},"\u884C\u6570"),S.a.createElement(O.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},S.a.createElement(Z.a,null)),S.a.createElement("span",{style:we},"\u5217\u6570"),S.a.createElement(O.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},S.a.createElement(Z.a,null))),S.a.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},S.a.createElement("span",{style:we},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),S.a.createElement(O.a.Item,{name:"align"},S.a.createElement(ye,null,S.a.createElement(Ae.a,{value:"default"},S.a.createElement("i",{className:"fa fa-align-justify"})),S.a.createElement(Ae.a,{value:"left"},S.a.createElement("i",{className:"fa fa-align-left"})),S.a.createElement(Ae.a,{value:"center"},S.a.createElement("i",{className:"fa fa-align-center"})),S.a.createElement(Ae.a,{value:"right"},S.a.createElement("i",{className:"fa fa-align-right"}))))),S.a.createElement("div",{className:"flex-container flex-end"},S.a.createElement(j.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),S.a.createElement(j.a,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))},Re=ne("ErOA"),Me=ne("7Cbv"),ke="link",Oe="upload-image",ze="code-block",Ze="add-table",je="------------",Xe={default:je,left:":".concat(je),center:":".concat(je,":"),right:"".concat(je,":")},et=ne("9VGf"),We,Be;function Se(){}var qe=0,Je=1e4,_e="\u2581",Ne=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function pe(fe){return/^\d+$/.test(fe)?"".concat(fe,"px"):fe}var de=navigator.platform.toUpperCase().indexOf("MAC")>=0,ce=de?"Cmd":"Ctrl",Q=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"],J=(We={},Object(U.a)(We,ce+"-B","bold"),Object(U.a)(We,ce+"-I","italic"),We),ee=(Be={},Object(U.a)(Be,ke,"\u6DFB\u52A0\u94FE\u63A5"),Object(U.a)(Be,ze,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(U.a)(Be,Oe,"\u6DFB\u52A0\u6587\u4EF6"),Object(U.a)(Be,Ze,"\u6DFB\u52A0\u8868\u683C"),Be),se=rt.a=function(fe){var Le=fe.defaultValue,Ce=Le===void 0?"":Le,Ie=fe.onChange,Ve=fe.width,Ge=Ve===void 0?"100%":Ve,gt=fe.height,ct=gt===void 0?400:gt,st=fe.miniToolbar,wt=st===void 0?!1:st,ot=fe.isFocus,yt=ot===void 0?!1:ot,xt=fe.watch,Ye=fe.insertTemp,fr=fe.mode,sr=fr===void 0?"markdown":fr,lr=fe.id,_t=lr===void 0?"markdown-editor-id":lr,ur=fe.showResizeBar,pn=ur===void 0?!1:ur,yr=fe.noStorage,br=yr===void 0?!1:yr,Gn=fe.showNullButton,Mt=Gn===void 0?!1:Gn,it=fe.hidetoolBar,Pr=it===void 0?!1:it,gn=fe.fullScreen,qt=gn===void 0?!1:gn,Ct=fe.onBlur,Er=fe.onCMBeforeChange,Mr=fe.onFullScreen,vn=fe.className,Fe=vn===void 0?"":vn,ht=fe.disablePaste,zn=ht===void 0?!1:ht,yn=fe.placeholder,bn=yn===void 0?"":yn,Zr=fe.values,En=Zr===void 0?"":Zr,pt=Object(v.useState)(null),Li=Object(B.a)(pt,2),He=Li[0],xn=Li[1],gr=Object(v.useState)(Ce),Xn=Object(B.a)(gr,2),qr=Xn[0],xr=Xn[1],Vn=Object(v.useState)(xt),Yn=Object(B.a)(Vn,2),Tr=Yn[0],$n=Yn[1],Di=Object(v.useState)(qt),Qn=Object(B.a)(Di,2),Sr=Qn[0],Oi=Qn[1],aa=Object(v.useState)(""),Jn=Object(B.a)(aa,2),Qt=Jn[0],Hr=Jn[1],oa=Object(v.useState)(0),en=Object(B.a)(oa,2),wr=en[0],Zn=en[1],sa=Object(v.useState)(ct),Ri=Object(B.a)(sa,2),_i=Ri[0],Tn=Ri[1],ki=Object(v.useState)(!1),Pi=Object(B.a)(ki,2),la=Pi[0],Sn=Pi[1],tn=Object(v.useRef)(Object(Me.a)()),rn=Object(v.useRef)(!1),wn=Object(v.useRef)(),Ir=Object(v.useRef)(),Ur=Object(v.useRef)(),Nr=Object(v.useRef)(),Cn=Object(v.useRef)(),Mi=function(){var at=Object(R.a)(D.a.mark(function mt(){var ut,bt;return D.a.wrap(function(Ot){for(;;)switch(Ot.prev=Ot.next){case 0:return Ot.next=2,Object(Re.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:tn.current}});case 2:bt=Ot.sent,bt!=null&&(ut=bt.attachments)!==null&&ut!==void 0&&ut.length&&(console.log("cm:",He,Ir),bt.attachments.map(function(Tt){Tt.content_type.indexOf("image")>-1?He.replaceSelection(".concat(Tt.content_type,")")):Tt.content_type.indexOf("video")>-1?He.replaceSelection('')):Tt.content_type.indexOf("pdf")>-1?He.replaceSelection('').concat(Tt.name,"")):He.replaceSelection("[".concat(Tt.name,"](").concat(a.a.API_SERVER,"/api/attachments/").concat(Tt.id,"?type=").concat(Tt.content_type,")"))}));case 4:case"end":return Ot.stop()}},mt)}));return function(){return at.apply(this,arguments)}}();Object(v.useEffect)(function(){xr(En),He==null||He.setValue(En)},[En]),Object(v.useEffect)(function(){Mr==null||Mr(Sr)},[Sr]),Object(v.useEffect)(function(){if(Ir.current){var at=C.a.fromTextArea(Ir.current,{mode:sr,lineNumbers:!wt,lineWrapping:!0,value:Ce,autoCloseTags:!0,autoCloseBrackets:!0});yt&&at.focus();function mt(ut,bt){if(zn){bt.preventDefault();return}var St=bt.clipboardData;if(St){var Ot=St.types.toString(),Tt=St.items;if(Ot==="Files"||St.types.indexOf("Files")>-1){if(bt.preventDefault(),sr=="stex")return;try{var Bt,er=Tt[1];((Bt=Tt[0])===null||Bt===void 0?void 0:Bt.kind)==="file"&&(er=Tt[0]);var Et=er.getAsFile(),Fr=Et.name.split(".").pop();$(Et,function(At){if(At.id){var tr,Vt,vr;(Et==null||((tr=Et.type)===null||tr===void 0)?void 0:tr.indexOf("image"))>-1?at.replaceSelection(".concat(At.content_type,")")):(Et==null||((Vt=Et.type)===null||Vt===void 0)?void 0:Vt.indexOf("video"))>-1?at.replaceSelection('')):(Et==null||((vr=Et.type)===null||vr===void 0)?void 0:vr.indexOf("pdf"))>-1?at.replaceSelection('').concat(Et.name,"")):Q.includes(Fr)?at.replaceSelection('').concat(Et.name,"")):at.replaceSelection("[".concat(Et.name,"](").concat(a.a.API_SERVER,"/api/attachments/").concat(At.id,"?type=").concat(At.content_type,")"))}else(At==null?void 0:At.status)===401&&(document.location.href="/user/login")})}catch(At){I.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return at.on("paste",mt),at.on("dragleave",function(ut,bt){Ur.current.classList.remove("mouse-hover-md")}),at.on("dragover",function(ut,bt){Ur.current.classList.add("mouse-hover-md")}),at.on("drop",function(ut,bt){Ur.current.classList.add("mouse-hover-md");var St;if(St=bt.dataTransfer.files,St.length>0){bt.preventDefault(),bt.stopPropagation();for(var Ot=function(er){var Et=St[er],Fr=Et.name.split(".").pop();$(Et,function(At){if(At.id){var tr,Vt,vr;(Et==null||((tr=Et.type)===null||tr===void 0)?void 0:tr.indexOf("image"))>-1?at.replaceSelection(".concat(At.content_type,")")):(Et==null||((Vt=Et.type)===null||Vt===void 0)?void 0:Vt.indexOf("video"))>-1?at.replaceSelection('')):(Et==null||((vr=Et.type)===null||vr===void 0)?void 0:vr.indexOf("pdf"))>-1?at.replaceSelection('').concat(Et.name,"")):Q.includes(Fr)?at.replaceSelection('').concat(Et.name,"")):at.replaceSelection("[".concat(Et.name,"](").concat(a.a.API_SERVER,"/api/attachments/").concat(At.id,"?type=").concat(At.content_type,")"))}else(At==null?void 0:At.status)===401&&(document.location.href="/user/login")})},Tt=0;Tt0||Tt.target.offsetWidth>0)&&(hr(),He.setSize("100%","100%"),He.refresh())}}catch(Bt){St.e(Bt)}finally{St.f()}});return ut.observe(Ir.current.parentElement),ut}if(He){var mt=at();return function(){mt.unobserve(Ir.current.parentElement)}}},[He,hr]),Object(v.useEffect)(function(){if(He){for(var at=[],mt=function(){var Tt=bt[ut];St=Object(B.a)(Tt,2);var Bt=St[0],er=St[1],Et=Object(U.a)({},Bt,function(){Ii(er)});at.push(Et),He.addKeyMap(Et)},ut=0,bt=Object.entries(J);ut0){var at=new Date().getTime(),mt=window.sessionStorage.getItem(_t);at>=wr+Je&&(!mt||mt!==qr)&&(window.sessionStorage.setItem(_t,qr),Sn(!0))}},Je),Object(v.useEffect)(function(){$n(xt)},[He,xt]),Object(v.useEffect)(function(){He&&(yt&&He.focus())},[He,yt]),Object(v.useEffect)(function(){if(Tr&&He){var at=He.getScrollerElement();function mt(ut){var bt=ut.target;if(Cn.current){var St=bt.scrollTop/bt.scrollHeight;Cn.current.scrollTop=Cn.current.scrollHeight*St}}return at.addEventListener("scroll",mt),function(){at.removeEventListener("scroll",mt)}}},[He,Tr]),Object(v.useEffect)(function(){if(He&&Er){function at(mt,ut){Er(mt,ut)}return He.on("beforeChange",at),function(){He.off("beforeChange",at)}}},[He,Er]),Object(v.useEffect)(function(){if(He&&Ct){function at(){Ct(He.getValue())}return He.on("blur",at),function(){He.off("blur",at)}}},[He,Ct]),Object(v.useEffect)(function(){if(He){function at(mt){var ut=mt.getValue();xr(ut),Zn(new Date().getTime()),mt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ie&&Ie(ut)}return He.on("change",at),function(){He.off("change",at)}}},[He,Ie]),Object(v.useEffect)(function(){He&&(Ce==null?(He.setValue(""),xr("")):Ce!==He.getValue()&&(He.setValue(Ce),xr(Ce),He.setCursor(He.lineCount(),0)))},[He,Ce]);var Ii=Object(v.useCallback)(function(at){var mt=He.getCursor(),ut=He.getSelection(),bt=ut.split(`
`);switch(at){case"bold":return He.replaceSelection("**"+ut+"**"),ut===""&&He.setCursor(mt.line,mt.ch+2),He.focus();case"italic":return He.replaceSelection("*"+ut+"*"),ut===""&&He.setCursor(mt.line,mt.ch+1),He.focus();case"code":return He.replaceSelection("`"+ut+"`"),ut===""&&He.setCursor(mt.line,mt.ch+1),He.focus();case"inline-latex":return He.replaceSelection("`$$"+ut+"$$`"),ut===""&&He.setCursor(mt.line,mt.ch+3),He.focus();case"latex":return He.replaceSelection("```latex\n"+ut+"\n```"),He.setCursor(mt.line+1,ut.length+1),He.focus();case"line-break":return He.replaceSelection(`
`),He.focus();case"list-ul":return ut===""?He.replaceSelection("- "+ut):He.replaceSelection(bt.map(function(St){return St===""?"":"- ".concat(St)}).join(`
`)),He.focus();case"list-ol":return ut===""?He.replaceSelection("1. "+ut):He.replaceSelection(bt.map(function(St,Ot){return St===""?"":"".concat(Ot+1,". ").concat(St)}).join(`
`)),He.focus();case"add-null-ch":return ut===""&&He.setCursor(mt.line,mt.ch+1),He.replaceSelection(_e),He.focus();case"inster-template-1":return ut===""&&He.setCursor(mt.line,mt.ch),He.replaceSelection(Ne),He.focus();case"eraser":return He.setValue(""),He.focus();case"trigger-watch":return $n(!Tr),He.focus();case"trigger-full-screen":return Oi(!Sr),He.focus();case ke:Hr(ke);return;case ze:Hr(ze);return;case Oe:Hr(Oe);return;case Ze:Hr(Ze);return;default:throw new Error}},[He,Tr,Sr]),An=Object(v.useCallback)(function(at){Hr("");switch(Qt){case ke:var mt=at.title,ut=at.link;return He.replaceSelection("[".concat(mt,"](").concat(ut,")")),He.focus();case ze:var bt=at.language,St=at.content;return He.replaceSelection(["```"+bt,St,"```"].join(`
`)),He.focus();case Oe:var Ot=at.src,Tt=at.alt;return Tt?He.replaceSelection(".concat(Ot,' "').concat(Tt,'" )')):He.replaceSelection("")),He.focus();case Ze:for(var Bt=at.row,er=at.col,Et=at.align,Fr=`
`,At=0;At300&&(Bt=300);var er=ct+Bt+"px";Tn(er)}}return at.addEventListener("mousedown",bt),document.addEventListener("mousemove",Ot),document.addEventListener("mouseup",St),function(){at.removeEventListener("mousedown",bt),document.removeEventListener("mousemove",Ot),document.removeEventListener("mouseup",St)}}},[He,Nr]),Object(v.useEffect)(function(){Tn(ct)},[ct]);var Or=pe(Ge),ei=pe(_i),Cr={width:Or,height:ei},ti=Object(v.useMemo)(function(){if(wr){var at=new Date(wr),mt=at.getHours(),ut=at.getMinutes(),bt=at.getSeconds();return mt=mt<10?"0"+mt:mt,ut=ut<10?"0"+ut:ut,bt=bt<10?"0"+bt:bt,"".concat(mt,":").concat(ut,":").concat(bt)}return 0},[wr]);function Ui(){window.sessionStorage.removeItem(_t),Sn(!1),Zn(0)}function nn(){Sn(!1),Zn(0),He.setValue(window.sessionStorage.getItem(_t))}function ua(at,mt){var ut=He.getValue();ut=ut.replace(at,mt),xr(ut),He==null||He.setValue(ut)}return S.a.createElement(v.Fragment,null,S.a.createElement("div",{className:"markdown-editor-wrapper",ref:Ur},S.a.createElement("div",{className:"markdown-editor-container ".concat(Fe," ").concat(Tr?"on-preview":""," ").concat(wt?"mini":""," ").concat(Sr?"full-screen":""),style:Cr},S.a.createElement(E,{insertTemp:Ye,watch:Tr,fullScreen:Sr,showNullButton:Mt,onActionCallback:Ii,hidetoolBar:Pr,uuid:tn.current,setOpenPhones:function(){rn.current=!0}}),S.a.createElement("div",{className:"markdown-editor-body"},S.a.createElement("div",{className:"codemirror-container"},S.a.createElement("textarea",{ref:Ir,placeholder:bn})),Tr?S.a.createElement("div",{ref:Cn,className:"preview-container"},sr==="stex"&&S.a.createElement(A,{value:qr}),sr!=="stex"&&S.a.createElement(c.a,{edit:!0,value:qr,replaces:ua})):null))),pn?S.a.createElement("a",{ref:Nr,className:"editor-resize"}):null,S.a.createElement(M.a,null,ee[Qt]?S.a.createElement(X.a,{centered:!0,title:ee[Qt],visible:!0,onCancel:Kr,footer:null,className:"markdown-popup-form"},qn):null))}},SJMd:function(ft,rt){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var ne,re,X,L=!1,z,I;window.PR_SHOULD_USE_CONTINUATION=!0;var R,B;(function(){var U=window,P=["break,continue,do,else,for,if,return,while"],D=[P,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],v=[D,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],S=[v,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],_=[v,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],C=[v,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],T="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",m=[v,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],u="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",o=[P,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],l=[P,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],s=[P,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],w=[S,C,_,m,u,o,l,s],p=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,c="str",A="kwd",y="com",f="typ",h="lit",d="pun",a="pln",b="tag",g="dec",E="src",M="atn",F="atv",j="nocode",W="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function O(ye){for(var we=0,De=!1,Re=!1,Me=0,ke=ye.length;Me122||(Q<65||ce>90||qe.push([Math.max(65,ce)|32,Math.min(Q,90)|32]),Q<97||ce>122||qe.push([Math.max(97,ce)&~32,Math.min(Q,122)&~32]))}}qe.sort(function(fe,Le){return fe[0]-Le[0]||Le[1]-fe[1]});for(var J=[],ee=[],Ne=0;Nese[0]&&(se[1]+1>se[0]&&_e.push("-"),_e.push(je(se[1])))}return _e.push("]"),_e.join("")}function et(Be){for(var Se=Be.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),qe=Se.length,Je=[],_e=0,Ne=0;_e=2&&ce==="["?Se[_e]=Xe(pe):ce!=="\\"&&(Se[_e]=pe.replace(/[a-zA-Z]/g,function(ee){var se=ee.charCodeAt(0);return"["+String.fromCharCode(se&~32,se|32)+"]"}))}return Se.join("")}for(var We=[],Me=0,ke=ye.length;Me=0;)De[We.charAt(Be)]=et;var Se=et[1],qe=""+Se;Ze.hasOwnProperty(qe)||(ze.push(Se),Ze[qe]=null)}ze.push(/[\0-\uffff]/),Re=O(ze)})();var Me=we.length,ke=function(Oe){for(var ze=Oe.sourceCode,Ze=Oe.basePos,je=Oe.sourceNode,Xe=[Ze,a],et=0,We=ze.match(Re)||[],Be={},Se=0,qe=We.length;Se=5&&_e.substring(0,5)==="lang-",pe&&!(Ne&&typeof Ne[1]=="string")&&(pe=!1,_e=E),pe||(Be[Je]=_e)}var Q=et;if(et+=Je.length,!pe)Xe.push(Ze+Q,_e);else{var J=Ne[1],ee=Je.indexOf(J),se=ee+J.length;Ne[2]&&(se=Je.length-Ne[2].length,ee=se-J.length);var fe=_e.substring(5);K(je,Ze+Q,Je.substring(0,ee),ke,Xe),K(je,Ze+Q+ee,J,he(fe,J),Xe),K(je,Ze+Q+se,Je.substring(se),ke,Xe)}}Oe.decorations=Xe};return ke}function Te(ye){var we=[],De=[];ye.tripleQuotedStrings?we.push([c,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ye.multiLineStrings?we.push([c,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):we.push([c,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ye.verbatimStrings&&De.push([c,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Re=ye.hashComments;Re&&(ye.cStyleComments?(Re>1?we.push([y,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):we.push([y,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),De.push([c,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):we.push([y,/^#[^\r\n]*/,null,"#"])),ye.cStyleComments&&(De.push([y,/^\/\/[^\r\n]*/,null]),De.push([y,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Me=ye.regexLiterals;if(Me){var ke=Me>1?"":`
\r`,Oe=ke?".":"[\\S\\s]",ze="/(?=[^/*"+ke+"])(?:[^/\\x5B\\x5C"+ke+"]|\\x5C"+Oe+"|\\x5B(?:[^\\x5C\\x5D"+ke+"]|\\x5C"+Oe+")*(?:\\x5D|$))+/";De.push(["lang-regex",RegExp("^"+W+"("+ze+")")])}var Ze=ye.types;Ze&&De.push([f,Ze]);var je=(""+ye.keywords).replace(/^ | $/g,"");je.length&&De.push([A,new RegExp("^(?:"+je.replace(/[\s,]+/g,"|")+")\\b"),null]),we.push([a,/^\s+/,null,` \r
\xA0`]);var Xe="^.[^\\s\\w.$@'\"`/\\\\]*";return ye.regexLiterals&&(Xe+="(?!s*/)"),De.push([h,/^@[a-z_$][a-z_$@0-9]*/i,null],[f,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[a,/^[a-z_$][a-z_$@0-9]*/i,null],[h,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[a,/^\\[\s\S]?/,null],[d,new RegExp(Xe),null]),oe(we,De)}var ve=Te({keywords:w,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ge(ye,we,De){for(var Re=/(?:^|\s)nocode(?:\s|$)/,Me=/\r\n?|\n/,ke=ye.ownerDocument,Oe=ke.createElement("li");ye.firstChild;)Oe.appendChild(ye.firstChild);var ze=[Oe];function Ze(Se){var qe=Se.nodeType;if(qe==1&&!Re.test(Se.className))if(Se.nodeName==="br")je(Se),Se.parentNode&&Se.parentNode.removeChild(Se);else for(var Je=Se.firstChild;Je;Je=Je.nextSibling)Ze(Je);else if((qe==3||qe==4)&&De){var _e=Se.nodeValue,Ne=_e.match(Me);if(Ne){var pe=_e.substring(0,Ne.index);Se.nodeValue=pe;var de=_e.substring(Ne.index+Ne[0].length);if(de){var ce=Se.parentNode;ce.insertBefore(ke.createTextNode(de),Se.nextSibling)}je(Se),pe||Se.parentNode.removeChild(Se)}}}function je(Se){for(;!Se.nextSibling;)if(Se=Se.parentNode,!Se)return;function qe(Ne,pe){var de=pe?Ne.cloneNode(!1):Ne,ce=Ne.parentNode;if(ce){var Q=qe(ce,1),J=Ne.nextSibling;Q.appendChild(de);for(var ee=J;ee;ee=J)J=ee.nextSibling,Q.appendChild(ee)}return de}for(var Je=qe(Se.nextSibling,0),_e;(_e=Je.parentNode)&&_e.nodeType===1;)Je=_e;ze.push(Je)}for(var Xe=0;Xe=ce&&(Ze+=2),ke>=Q&&(et+=2)}}finally{_e&&(_e.style.display=Ne)}}var le={};function ie(ye,we){for(var De=we.length;--De>=0;){var Re=we[De];le.hasOwnProperty(Re)?U.console&&console.warn("cannot override language handler %s",Re):le[Re]=ye}}function he(ye,we){return ye&&le.hasOwnProperty(ye)||(ye=/^\s*]*(?:>|$)/],[y,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[d,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^