1 line
385 KiB
JavaScript
1 line
385 KiB
JavaScript
(self.webpackChunkDooTask=self.webpackChunkDooTask||[]).push([[784],{4142:e=>{e.exports=function(e){var t={begin:"`[\\s\\S]"};return{case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}},52423:e=>{e.exports=function(e){var t={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},n={begin:"\\$[A-z0-9_]+"},r={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Default Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait",literal:"True False And Null Not Or"},contains:[t,n,r,i,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[r,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},r,t]},{className:"symbol",begin:"@[A-z0-9_]+"},{className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[n,r,i]}]}]}}},40349:e=>{e.exports=function(e){var t={begin:/(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,t]}]}}},8650:e=>{e.exports=function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:/\s*\{/,excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,illegal:/["']/}]}]}}},53049:e=>{e.exports=function(e){var t="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",n={className:"number",begin:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0};return{aliases:["jsp"],keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},n,{className:"meta",begin:"@[A-Za-z]+"}]}}},5489:e=>{e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},i={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},o={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,i],subLanguage:"xml"}},a={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,i],subLanguage:"css"}},l={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,i]};i.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,a,l,r,e.REGEXP_MODE];var s=i.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,a,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:s}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin:/</,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:s}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},17410:e=>{e.exports=function(e){var t="([\\w-]+|@{[\\w-]+})",n=[],r=[],i=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},o=function(e,t,n){return{className:e,begin:t,relevance:n}},a={begin:"\\(",end:"\\)",contains:r,relevance:0};r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i("'"),i('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},o("number","#[0-9A-Fa-f]+\\b"),a,o("variable","@@?[\\w-]+",10),o("variable","@{[\\w-]+}"),o("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var l=r.concat({begin:"{",end:"}",contains:n}),s={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(r)},c={begin:t+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:t,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:r}}]},d={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:r,relevance:0}},u={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:l}},h={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:t,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,o("keyword","all\\b"),o("variable","@{[\\w-]+}"),o("selector-tag",t+"%?",0),o("selector-id","#"+t),o("selector-class","\\."+t,0),o("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:l},{begin:"!important"}]};return n.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,d,u,c,h),{case_insensitive:!0,illegal:"[=>'/<($\"]",contains:n}}},67020:e=>{e.exports=function(e){return{aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$"},{begin:"^.+?\\n[=-]{2,}$"}]},{begin:"<",end:">",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^\\s*([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```w*s*$",end:"^```s*$"},{begin:"`.+?`"},{begin:"^( {4}|\t)",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}},51988:e=>{e.exports=function(e){var t={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},n={className:"meta",begin:/<\?(php)?|\?>/},r={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},i={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["php","php3","php4","php5","php6","php7"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",t,e.C_BLOCK_COMMENT_MODE,r,i]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},r,i]}}},15350:e=>{e.exports=function(e){var t={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10",built_in:"Ellipsis NotImplemented",literal:"False None True"},n={className:"meta",begin:/^(>>>|\.\.\.) /},r={className:"subst",begin:/\{/,end:/\}/,keywords:t,illegal:/#/},i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/(fr|rf|f)'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n,r]},{begin:/(fr|rf|f)"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n,r]},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},{begin:/(fr|rf|f)'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,r]},{begin:/(fr|rf|f)"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},o={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},a={className:"params",begin:/\(/,end:/\)/,contains:["self",n,o,i]};return r.contains=[i,o,n],{aliases:["py","gyp","ipython"],keywords:t,illegal:/(<\/|->|\?)|=>/,contains:[n,o,i,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,a,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}},86507:e=>{e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"},r={className:"meta",begin:"@"+t},i={begin:"\\(",end:/\)/,keywords:n,contains:["self",e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.NUMBER_MODE]},o={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,i]},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},l={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},s={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,l],subLanguage:"xml"}},c={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,l],subLanguage:"css"}},d={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,l]};return l.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,c,d,a,e.REGEXP_MODE],{aliases:["ts"],keywords:n,contains:[{className:"meta",begin:/^\s*['"]use strict['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,s,c,d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+e.IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.IDENT_RE},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}]}],relevance:0},{className:"function",begin:"function",end:/[\{;]/,excludeEnd:!0,keywords:n,contains:["self",e.inherit(e.TITLE_MODE,{begin:t}),o],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0,contains:["self",o]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+e.IDENT_RE,relevance:0},r,i]}}},283:e=>{e.exports=function(e){var t={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:"[A-Za-z0-9\\._:-]+",relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf"],case_insensitive:!0,contains:[{className:"meta",begin:"<!DOCTYPE",end:">",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]},{className:"tag",begin:"<style(?=\\s|>|$)",end:">",keywords:{name:"style"},contains:[t],starts:{end:"</style>",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"<script(?=\\s|>|$)",end:">",keywords:{name:"script"},contains:[t],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml","vbscript"]}},{className:"tag",begin:"</?",end:"/?>",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},t]}]}}},22686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(23645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".mdeditor-transfer {\n background-color: #ffffff;\n}\n.mdeditor-transfer .ivu-modal-header {\n display: none;\n}\n.mdeditor-transfer .ivu-modal-close {\n top: 7px;\n}\n.mdeditor-transfer .mdeditor-transfer-body {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n}\n",""]);const o=i},67864:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(23645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".mdeditor-box[data-v-017b801e] {\n position: relative;\n}\n.upload-control[data-v-017b801e] {\n display: none;\n width: 0;\n height: 0;\n overflow: hidden;\n}\n",""]);const o=i},7861:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(23645),i=n.n(r),o=n(50318),a=i()((function(e){return e[1]}));a.i(o.Z),a.push([e.id,'@charset "utf-8";\n/*\n*Author zhaoxuhui\n*/\n/*\n*Author zhaoxuhui\n*/\n[data-v-c274aad4] .markdown-theme-light pre {\n font-size: 14px !important;\n line-height: 1.6 !important;\n word-break: break-all;\n word-wrap: break-word;\n border: 0 !important;\n border-radius: 0 !important;\n background: #f7f8fb !important;\n padding: 20px 10px!important;\n border-radius: 4px !important;\n overflow-y: hidden !important;\n overflow-x: auto !important;\n margin: 10px 0 !important;\n}\n[data-v-c274aad4] .markdown-theme-light pre code {\n font-family: Consolas !important;\n font-size: 13px;\n line-height: 22px !important;\n color: #444;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs {\n display: block;\n overflow-x: auto;\n color: #525252;\n padding: 15px;\n -webkit-text-size-adjust: none;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs-doctype {\n color: #999;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs-tag {\n color: #3e76f6;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs-attribute {\n color: #e96900;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs-value {\n color: #42b983;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs-keyword {\n color: #e96900;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs-string {\n color: #42b983;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs-comment {\n color: #b3b3b3;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs-operator .hljs-comment {\n color: #525252;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs-regexp {\n color: #af7dff;\n}\n[data-v-c274aad4] .markdown-theme-light .hljs-built_in {\n color: #2db7f5;\n}\n[data-v-c274aad4] .markdown-theme-light .css .hljs-class {\n color: #e96900;\n}\n[data-v-c274aad4] .markdown-theme-light .css .hljs-number,[data-v-c274aad4] .markdown-theme-light .javascript .hljs-number {\n color: #fc1e70;\n}\n[data-v-c274aad4] .markdown-theme-light .css .hljs-attribute {\n color: #af7dff;\n}\n[data-v-c274aad4] .markdown-theme-light .css .hljs-important {\n color: red;\n}\n[data-v-c274aad4] .markdown-theme-light .actionscript .hljs-literal,[data-v-c274aad4] .markdown-theme-light .javascript .hljs-literal {\n color: #fc1e70;\n}\n[data-v-c274aad4] .markdown-theme-light pre {\n padding: 0;\n margin: 0;\n background: #f7f7f7 !important;\n}\n[data-v-c274aad4] .markdown-theme-light code {\n display: inline-block;\n background: #f7f7f7;\n font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;\n margin: 0 3px;\n padding: 1px 5px;\n border-radius: 3px;\n color: #666;\n border: 1px solid #eee;\n}\n[data-v-c274aad4] .markdown-theme-light pre code {\n display: inline;\n margin: 0;\n padding: 0;\n border: none;\n background: transparent;\n}\n[data-v-c274aad4] .markdown-theme-light pre.bg code {\n background: #f7f7f7;\n}\n/*\n*Author zhaoxuhui\n*/\n[data-v-c274aad4] .markdown-theme-dark pre {\n display: block;\n padding: 20px 10px!important;\n border-radius: 4px;\n margin: 20px 0 !important;\n background: #1e1e1e;\n color: #DCDCDC;\n overflow-y: hidden !important;\n overflow-x: auto !important;\n font-family: Menlo, Consolas, "Courier New", Courier, FreeMono, monospace !important;\n}\n[data-v-c274aad4] .markdown-theme-dark pre * {\n line-height: 1.6 !important;\n font-size: 14px;\n font-family: Menlo, Consolas, "Courier New", Courier, FreeMono, monospace !important;\n}\n[data-v-c274aad4] .markdown-theme-dark code {\n padding: 0 !important;\n margin: 0 !important;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-literal,[data-v-c274aad4] .markdown-theme-dark .hljs-name,[data-v-c274aad4] .markdown-theme-dark .hljs-symbol {\n color: #659bd1;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-keyword {\n color: #bc89bd;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-link {\n color: #569CD6;\n text-decoration: underline;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-built_in,[data-v-c274aad4] .markdown-theme-dark .hljs-type {\n color: #4EC9B0;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-class,[data-v-c274aad4] .markdown-theme-dark .hljs-number {\n color: #B8D7A3;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-meta-string,[data-v-c274aad4] .markdown-theme-dark .hljs-string {\n color: #D69D85;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-regexp,[data-v-c274aad4] .markdown-theme-dark .hljs-template-tag {\n color: #9A5334;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-formula,[data-v-c274aad4] .markdown-theme-dark .hljs-function,[data-v-c274aad4] .markdown-theme-dark .hljs-params,[data-v-c274aad4] .markdown-theme-dark .hljs-subst,[data-v-c274aad4] .markdown-theme-dark .hljs-title {\n color: #DCDCDC;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-comment,[data-v-c274aad4] .markdown-theme-dark .hljs-quote {\n color: #57A64A;\n font-style: italic;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-doctag {\n color: #608B4E;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-meta,[data-v-c274aad4] .markdown-theme-dark .hljs-meta-keyword,[data-v-c274aad4] .markdown-theme-dark .hljs-tag {\n color: #9B9B9B;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-template-variable,[data-v-c274aad4] .markdown-theme-dark .hljs-variable {\n color: #BD63C5;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-attr,[data-v-c274aad4] .markdown-theme-dark .hljs-attribute,[data-v-c274aad4] .markdown-theme-dark .hljs-builtin-name {\n color: #9CDCFE;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-section {\n color: gold;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-emphasis {\n font-style: italic;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-strong {\n font-weight: bold;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-bullet,[data-v-c274aad4] .markdown-theme-dark .hljs-selector-attr,[data-v-c274aad4] .markdown-theme-dark .hljs-selector-class,[data-v-c274aad4] .markdown-theme-dark .hljs-selector-id,[data-v-c274aad4] .markdown-theme-dark .hljs-selector-pseudo,[data-v-c274aad4] .markdown-theme-dark .hljs-selector-tag {\n color: #D7BA7D;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-addition {\n background-color: #144212;\n display: inline-block;\n width: 100%;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-deletion {\n background-color: #600;\n display: inline-block;\n width: 100%;\n}\n[data-v-c274aad4] .markdown-theme-dark .hljs-comment {\n font-style: normal;\n}\n/*\n*Author zhaoxuhui\n*/\n[data-v-c274aad4] .markdown-theme-oneDark pre {\n padding: 20px 10px!important;\n display: block;\n color: #abb2bf;\n font-family: Menlo, Consolas, "Courier New", Courier, FreeMono, monospace;\n background: #292c34;\n border-radius: 4px;\n overflow-y: hidden !important;\n overflow-x: auto !important;\n margin: 10px 0 !important;\n}\n[data-v-c274aad4] .markdown-theme-oneDark pre * {\n line-height: 1.6 !important;\n font-size: 14px;\n font-family: Menlo, Consolas, "Courier New", Courier, FreeMono, monospace;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-comment,[data-v-c274aad4] .markdown-theme-oneDark .hljs-quote {\n color: #5c6370;\n font-style: italic;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-doctag,[data-v-c274aad4] .markdown-theme-oneDark .hljs-formula,[data-v-c274aad4] .markdown-theme-oneDark .hljs-keyword {\n color: #c678dd;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-deletion,[data-v-c274aad4] .markdown-theme-oneDark .hljs-name,[data-v-c274aad4] .markdown-theme-oneDark .hljs-section,[data-v-c274aad4] .markdown-theme-oneDark .hljs-selector-tag,[data-v-c274aad4] .markdown-theme-oneDark .hljs-subst {\n color: #e06c75;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-literal {\n color: #56b6c2;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-addition,[data-v-c274aad4] .markdown-theme-oneDark .hljs-attribute,[data-v-c274aad4] .markdown-theme-oneDark .hljs-meta-string,[data-v-c274aad4] .markdown-theme-oneDark .hljs-regexp,[data-v-c274aad4] .markdown-theme-oneDark .hljs-string {\n color: #98c379;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-built_in,[data-v-c274aad4] .markdown-theme-oneDark .hljs-class .hljs-title {\n color: #e6c07b;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-attr,[data-v-c274aad4] .markdown-theme-oneDark .hljs-number,[data-v-c274aad4] .markdown-theme-oneDark .hljs-selector-attr,[data-v-c274aad4] .markdown-theme-oneDark .hljs-selector-class,[data-v-c274aad4] .markdown-theme-oneDark .hljs-selector-pseudo,[data-v-c274aad4] .markdown-theme-oneDark .hljs-template-variable,[data-v-c274aad4] .markdown-theme-oneDark .hljs-type,[data-v-c274aad4] .markdown-theme-oneDark .hljs-variable {\n color: #d19a66;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-bullet,[data-v-c274aad4] .markdown-theme-oneDark .hljs-link,[data-v-c274aad4] .markdown-theme-oneDark .hljs-meta,[data-v-c274aad4] .markdown-theme-oneDark .hljs-selector-id,[data-v-c274aad4] .markdown-theme-oneDark .hljs-symbol,[data-v-c274aad4] .markdown-theme-oneDark .hljs-title {\n color: #61aeee;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-emphasis {\n font-style: italic;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-strong {\n font-weight: bold;\n}\n[data-v-c274aad4] .markdown-theme-oneDark .hljs-link {\n text-decoration: underline;\n}\n/*\n*Author zhaoxuhui\n*/\n[data-v-c274aad4] .markdown-theme-gitHub pre {\n padding: 20px 10px!important;\n display: block;\n overflow-x: auto;\n color: #333;\n background: #f7f8fa !important;\n font-size: 13px;\n line-height: 20px;\n border-radius: 4px;\n margin: 10px 0 !important;\n overflow-x: auto !important;\n}\n[data-v-c274aad4] .markdown-theme-gitHub pre * {\n font-family: Consolas !important;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-comment,[data-v-c274aad4] .markdown-theme-gitHub .hljs-quote {\n color: #998;\n font-style: italic;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-selector-tag,[data-v-c274aad4] .markdown-theme-gitHub .hljs-subst {\n color: #333;\n font-weight: bold;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-keyword {\n color: #d73a49;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-literal,[data-v-c274aad4] .markdown-theme-gitHub .hljs-number,[data-v-c274aad4] .markdown-theme-gitHub .hljs-tag .hljs-attr,[data-v-c274aad4] .markdown-theme-gitHub .hljs-template-variable,[data-v-c274aad4] .markdown-theme-gitHub .hljs-variable {\n color: #008080;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-doctag,[data-v-c274aad4] .markdown-theme-gitHub .hljs-string {\n color: #d73a49;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-section,[data-v-c274aad4] .markdown-theme-gitHub .hljs-selector-id,[data-v-c274aad4] .markdown-theme-gitHub .hljs-title {\n color: #900;\n font-weight: bold;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-subst {\n font-weight: normal;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-class .hljs-title,[data-v-c274aad4] .markdown-theme-gitHub .hljs-type {\n color: #458;\n font-weight: bold;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-attribute,[data-v-c274aad4] .markdown-theme-gitHub .hljs-name,[data-v-c274aad4] .markdown-theme-gitHub .hljs-tag {\n color: #000080;\n font-weight: normal;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-link,[data-v-c274aad4] .markdown-theme-gitHub .hljs-regexp {\n color: #009926;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-bullet,[data-v-c274aad4] .markdown-theme-gitHub .hljs-symbol {\n color: #990073;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-built_in,[data-v-c274aad4] .markdown-theme-gitHub .hljs-builtin-name {\n color: #0086b3;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-meta {\n color: #999;\n font-weight: bold;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-deletion {\n background: #fdd;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-addition {\n background: #dfd;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-emphasis {\n font-style: italic;\n}\n[data-v-c274aad4] .markdown-theme-gitHub .hljs-strong {\n font-weight: bold;\n}\n.markdown[data-v-c274aad4] {\n overflow: hidden;\n position: relative;\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-direction: column;\n background: #f7f7f7;\n}\n.markdown.border[data-v-c274aad4] {\n border: 1px solid #d9d9d9;\n}\n.markdown *[data-v-c274aad4] {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n.markdown.fullscreen[data-v-c274aad4] {\n position: fixed;\n z-index: 999999;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100% !important;\n width: 100%;\n border: none;\n}\n.markdown.fullscreen .markdown-content[data-v-c274aad4] {\n padding: 0;\n padding-top: 10px;\n}\n.markdown .markdown-toolbars[data-v-c274aad4] {\n width: 100%;\n display: flex;\n align-items: center;\n list-style: none;\n background: #fff;\n color: #6a6f7b;\n height: 40px;\n cursor: pointer;\n padding-left: 4px;\n border-bottom: 1px solid #d9d9d9;\n}\n.markdown .markdown-toolbars > li[data-v-c274aad4] {\n position: relative;\n cursor: pointer;\n margin: 0;\n line-height: normal;\n min-height: auto;\n}\n.markdown .markdown-toolbars > li[data-v-c274aad4]:after {\n display: block;\n content: attr(name);\n position: absolute;\n z-index: 999999999999;\n top: 32px;\n left: 20px;\n background: #000;\n color: #fff;\n white-space: nowrap;\n font-size: 12px;\n line-height: 28px;\n padding: 0 6px;\n transition: all 0.3s 0.1s;\n transform: scale(0);\n opacity: 0;\n transform-origin: top;\n border-radius: 2px;\n}\n.markdown .markdown-toolbars > li[data-v-c274aad4]:hover:after {\n transform: scale(1);\n opacity: 1;\n}\n.markdown .markdown-toolbars > li[data-v-c274aad4]:last-child:after {\n right: 20%;\n left: auto;\n}\n.markdown .markdown-toolbars > li .title[data-v-c274aad4] {\n font-size: 16px !important;\n}\n.markdown .markdown-toolbars > li .icon-svg[data-v-c274aad4] {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.markdown .markdown-toolbars .empty[data-v-c274aad4] {\n flex: 1;\n width: 12px;\n}\n.markdown .markdown-toolbars span[data-v-c274aad4] {\n font-size: 18px;\n color: #999;\n cursor: pointer;\n display: block;\n width: 30px;\n height: 30px;\n border-radius: 3px;\n line-height: 30px;\n text-align: center;\n}\n.markdown .markdown-toolbars span[data-v-c274aad4]:hover {\n background: #f7f7f7;\n color: #1890ff;\n}\n.markdown .markdown-toolbars .title[data-v-c274aad4] {\n padding-left: 4px;\n padding-right: 10px;\n}\n.markdown .markdown-toolbars li:last-child span[data-v-c274aad4] {\n font-size: 20px !important;\n margin-right: 4px;\n}\n.markdown .markdown-toolbars .shift-theme[data-v-c274aad4],\n.markdown .markdown-toolbars .export-file[data-v-c274aad4] {\n height: 46px;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.markdown .markdown-toolbars .shift-theme span[data-v-c274aad4],\n.markdown .markdown-toolbars .export-file span[data-v-c274aad4] {\n padding: 0 8px;\n transition: all 0.3s;\n font-size: 18px;\n display: inline-block;\n line-height: 32px;\n}\n.markdown .markdown-toolbars .shift-theme span[data-v-c274aad4]:hover,\n.markdown .markdown-toolbars .export-file span[data-v-c274aad4]:hover {\n color: #0084ff;\n background: #f7f7f7;\n border-radius: 3px;\n}\n.markdown .markdown-toolbars .shift-theme ul[data-v-c274aad4],\n.markdown .markdown-toolbars .export-file ul[data-v-c274aad4] {\n transform: scale(0);\n transition: all 0.3s;\n left: -50%;\n top: 40px;\n width: 160px;\n transform-origin: top center;\n list-style: none;\n margin: 0;\n padding: 6px 0;\n box-sizing: border-box;\n border: 1px solid #d9d9d9;\n background: #fff;\n border-radius: 4px;\n position: absolute;\n z-index: 9999999;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);\n}\n.markdown .markdown-toolbars .shift-theme ul.active[data-v-c274aad4],\n.markdown .markdown-toolbars .export-file ul.active[data-v-c274aad4] {\n opacity: 1;\n transform: scaleY(1);\n}\n.markdown .markdown-toolbars .shift-theme ul li[data-v-c274aad4],\n.markdown .markdown-toolbars .export-file ul li[data-v-c274aad4] {\n line-height: 30px;\n padding: 0 12px;\n padding-left: 12px;\n font-size: 13px;\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n color: #262626;\n}\n.markdown .markdown-toolbars .shift-theme ul li .iconfont[data-v-c274aad4],\n.markdown .markdown-toolbars .export-file ul li .iconfont[data-v-c274aad4] {\n font-size: 14px;\n display: block;\n height: 30px;\n width: 30px;\n line-height: 30px;\n overflow: hidden;\n}\n.markdown .markdown-toolbars .shift-theme ul li .iconfont[data-v-c274aad4]:hover,\n.markdown .markdown-toolbars .export-file ul li .iconfont[data-v-c274aad4]:hover {\n color: #262626;\n}\n.markdown .markdown-toolbars .shift-theme ul li i[data-v-c274aad4],\n.markdown .markdown-toolbars .export-file ul li i[data-v-c274aad4] {\n font-size: 13px;\n display: block;\n font-style: normal;\n flex: 1;\n white-space: normal;\n}\n.markdown .markdown-toolbars .shift-theme ul li[data-v-c274aad4]:last-child,\n.markdown .markdown-toolbars .export-file ul li[data-v-c274aad4]:last-child {\n border-bottom: 0;\n}\n.markdown .markdown-toolbars .shift-theme ul li:last-child .iconfont[data-v-c274aad4],\n.markdown .markdown-toolbars .export-file ul li:last-child .iconfont[data-v-c274aad4] {\n font-size: 14px !important;\n margin: 0 !important;\n}\n.markdown .markdown-toolbars .shift-theme ul li[data-v-c274aad4]:hover,\n.markdown .markdown-toolbars .export-file ul li[data-v-c274aad4]:hover {\n background: #f7f7f7;\n}\n.markdown .markdown-toolbars .shift-theme ul li.disabled[data-v-c274aad4],\n.markdown .markdown-toolbars .export-file ul li.disabled[data-v-c274aad4] {\n cursor: not-allowed;\n color: #bbbec4;\n}\n.markdown .markdown-toolbars .shift-theme ul li.disabled[data-v-c274aad4]:hover,\n.markdown .markdown-toolbars .export-file ul li.disabled[data-v-c274aad4]:hover {\n background: transparent;\n}\n.markdown .markdown-toolbars .import-file[data-v-c274aad4] {\n position: relative;\n}\n.markdown .markdown-toolbars .import-file input[data-v-c274aad4] {\n position: absolute;\n z-index: 9999;\n left: 0;\n top: 0;\n display: block;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: pointer;\n font-size: 0;\n}\n.markdown .markdown-toolbars .import-file:hover span[data-v-c274aad4] {\n background: #f7f7f7;\n color: #1890ff;\n}\n.markdown .markdown-toolbars .import-file[data-v-c274aad4]:hover:after {\n transform: scale(1);\n opacity: 1;\n}\n.markdown .close-preview[data-v-c274aad4] {\n position: absolute;\n z-index: 999;\n right: 0;\n top: 0;\n height: 40px;\n width: 40px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n color: #262626;\n}\n.markdown .close-preview span[data-v-c274aad4] {\n font-size: 22px;\n}\n.markdown .close-preview span[data-v-c274aad4]:hover {\n color: #262626;\n}\n.markdown .markdown-content[data-v-c274aad4] {\n flex: 1;\n width: 100%;\n display: flex;\n justify-content: space-between;\n position: relative;\n overflow: hidden;\n padding-bottom: 0;\n}\n.markdown .markdown-content .markdown-editor[data-v-c274aad4] {\n flex: 1;\n height: 100%;\n position: relative;\n margin: 0 !important;\n overflow: hidden;\n overflow-y: scroll;\n display: flex;\n justify-content: space-between;\n background: #2d2d2d;\n}\n.markdown .markdown-content .markdown-editor[data-v-c274aad4]::-webkit-scrollbar {\n display: none;\n}\n.markdown .markdown-content .markdown-editor .index[data-v-c274aad4] {\n background: #272727;\n min-height: 100%;\n width: 36px;\n line-height: 22px;\n padding: 12px 0;\n}\n.markdown .markdown-content .markdown-editor .index li[data-v-c274aad4] {\n background: #272727;\n color: #ccc;\n font-size: 14px;\n text-align: center;\n font-family: Consolas;\n}\n.markdown .markdown-content .markdown-editor textarea[data-v-c274aad4] {\n width: 100%;\n min-height: 100%;\n outline: none;\n border: 0;\n background: #2d2d2d;\n line-height: 22px;\n caret-color: #ccc;\n color: #669acc;\n font-size: 14px;\n font-family: Consolas;\n resize: none;\n padding: 12px 8px;\n overflow: hidden;\n white-space: nowrap;\n overflow-x: auto;\n}\n.markdown .markdown-content .markdown-editor textarea[data-v-c274aad4]::selection {\n background: #999;\n color: #0084ff;\n}\n.markdown .markdown-content .codemirror[data-v-c274aad4] {\n flex: 1;\n width: 0;\n height: 100%;\n overflow: auto;\n}\n.markdown .markdown-content .markdown-preview[data-v-c274aad4] {\n flex: 1;\n width: 0;\n height: 100%;\n}\n.markdown ul.toc-anchor[data-v-c274aad4] {\n max-width: 260px;\n min-width: 150px;\n background-color: #f6f8fa;\n border-left: 2px solid #dcdfe6;\n overflow: auto;\n}\n.markdown ul.toc-anchor li.toc-anchor-item[data-v-c274aad4] {\n cursor: pointer;\n padding: 6px 16px;\n font-size: 12px;\n line-height: 1;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.markdown ul.toc-anchor li.toc-anchor-item span[data-v-c274aad4] {\n color: #333;\n opacity: 0.8;\n}\n.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-2[data-v-c274aad4] {\n padding-left: 16px;\n}\n.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-3[data-v-c274aad4] {\n padding-left: 32px;\n}\n.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-4[data-v-c274aad4] {\n padding-left: 48px;\n}\n.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-5[data-v-c274aad4] {\n padding-left: 64px;\n}\n.markdown ul.toc-anchor li.toc-anchor-item span.toc-link-action[data-v-c274aad4] {\n color: #2b85e4;\n opacity: 1;\n}\n.markdown ul.toc-anchor li.toc-anchor-item[data-v-c274aad4]:first-child {\n padding-top: 16px;\n}\n.markdown ul.toc-anchor li.toc-anchor-item:hover span[data-v-c274aad4] {\n opacity: 1;\n}\n.insert-img-model[data-v-c274aad4] {\n position: fixed;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n z-index: 99999;\n background: rgba(0, 0, 0, 0.3);\n padding-top: 12%;\n transition: all 0.3s;\n opacity: 0;\n display: none;\n}\n.insert-img-model .model-container[data-v-c274aad4] {\n background: #fff;\n width: 480px;\n margin: 0 auto;\n border-radius: 4px;\n transition: all 0.3s;\n transform: scale(0);\n transform-origin: center;\n}\n.insert-img-model .model-container .model-head[data-v-c274aad4] {\n line-height: 32px;\n padding: 0 12px;\n background: #f7f7f7;\n border-radius: 4px 4px 0 0;\n box-shadow: 0 1px 2px #d9d9d9;\n display: flex;\n justify-content: space-between;\n}\n.insert-img-model .model-container .model-head span[data-v-c274aad4]:nth-of-type(2) {\n font-size: 14px;\n padding-left: 12px;\n cursor: pointer;\n}\n.insert-img-model .model-container .model-head span[data-v-c274aad4]:nth-of-type(2):hover {\n color: #ed3f14;\n}\n.insert-img-model .model-container .model-content[data-v-c274aad4] {\n padding: 20px 12px;\n padding-top: 0;\n min-height: 180px;\n}\n.insert-img-model .model-container .model-content .insert-url[data-v-c274aad4] {\n padding: 42px 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.insert-img-model .model-container .model-content .insert-url input[data-v-c274aad4] {\n display: block;\n border: 1px solid #ccc;\n font-size: 14px;\n padding: 4px 8px;\n line-height: 24px;\n color: #333;\n background: #fff;\n border-radius: 4px;\n writing-mode: horizontal-tb;\n text-rendering: auto;\n transition: box-shadow 2s;\n flex: 1;\n}\n.insert-img-model .model-container .model-content .insert-url input[data-v-c274aad4]:focus {\n border-color: #1890ff;\n}\n.insert-img-model .model-container .model-content .insert-url input[data-v-c274aad4]::placeholder {\n color: #c1c1c1;\n}\n.insert-img-model .model-container .model-content .insert-url a[data-v-c274aad4] {\n display: block;\n background: #1890ff;\n color: #fff;\n line-height: 32px;\n height: 32px;\n font-size: 13px;\n padding: 0 12px;\n border-radius: 3px;\n margin-left: 20px;\n border: 1px solid #d9d9d9;\n transition: all 0.3s;\n}\n.insert-img-model .model-container .model-content .insert-url a[data-v-c274aad4]:hover {\n background: #0169af;\n}\n.insert-img-model .model-container .model-content .insert-local[data-v-c274aad4] {\n height: 120px;\n border: 1px dashed #d9d9d9;\n border-radius: 4px;\n transition: all 0.3s;\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n cursor: pointer;\n}\n.insert-img-model .model-container .model-content .insert-local span[data-v-c274aad4] {\n font-size: 40px;\n color: #d9d9d9;\n line-height: 50px;\n transition: all 0.3s;\n}\n.insert-img-model .model-container .model-content .insert-local p[data-v-c274aad4] {\n font-size: 14px;\n color: #262626;\n transition: all 0.3s;\n}\n.insert-img-model .model-container .model-content .insert-local[data-v-c274aad4]:hover {\n border-color: #1890ff;\n}\n.insert-img-model .model-container .model-content .insert-local:hover span[data-v-c274aad4],\n.insert-img-model .model-container .model-content .insert-local:hover p[data-v-c274aad4] {\n color: #1890ff;\n}\n.insert-img-model .model-container .model-content .insert-local input[data-v-c274aad4] {\n display: block;\n position: absolute;\n width: 100%;\n height: 100%;\n opacity: 0;\n}\n.insert-img-model .model-container .model-foot[data-v-c274aad4] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n padding: 10px 12px;\n display: none;\n}\n.insert-img-model .model-container .model-foot a[data-v-c274aad4] {\n display: block;\n background: #f7f7f7;\n color: #262626;\n line-height: 26px;\n height: 26px;\n font-size: 13px;\n padding: 0 12px;\n border-radius: 3px;\n margin-left: 12px;\n border: 1px solid #d9d9d9;\n transition: all 0.3s;\n}\n.insert-img-model .model-container .model-foot a[data-v-c274aad4]:hover {\n background: #d9d9d9;\n}\n.insert-img-model .model-container .model-foot a.ok[data-v-c274aad4] {\n background: #1890ff;\n color: #fff;\n border-color: #1890ff;\n}\n.insert-img-model .model-container .model-foot a.ok[data-v-c274aad4]:hover {\n background: #0169af;\n}\n.insert-img-model.active[data-v-c274aad4] {\n opacity: 1;\n display: block;\n}\n.insert-img-model.active .model-container[data-v-c274aad4] {\n transform: scale(1);\n}\nul.shift[data-v-c274aad4] {\n padding: 6px 12px;\n display: flex;\n align-items: center;\n}\nul.shift span[data-v-c274aad4] {\n font-size: 12px;\n cursor: pointer;\n user-select: none;\n}\nul.shift span.iconfont[data-v-c274aad4] {\n font-size: 14px;\n}\nul.shift label[data-v-c274aad4] {\n font-size: 12px;\n padding-right: 10px;\n position: relative;\n cursor: pointer;\n user-select: none;\n}\nul.shift input[type=\'radio\'][data-v-c274aad4],\nul.shift label[data-v-c274aad4] {\n transition: all 0.6s ease;\n box-sizing: border-box;\n}\nul.shift input[type="radio"] + label[data-v-c274aad4]::before {\n content: "\\a0";\n display: inline-block;\n vertical-align: middle;\n margin-right: 4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #292d35;\n padding: 2px;\n}\nul.shift input[type="radio"]:checked + label[data-v-c274aad4]::before {\n background-color: #292d35;\n background-clip: content-box;\n padding: 2px;\n}\nul.shift input[type="radio"][data-v-c274aad4] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n}\nul.shift input[type="radio"]:checked + label[data-v-c274aad4] {\n color: #292d35;\n}\n[data-v-c274aad4] .markdown-preview {\n flex: 1;\n overflow: hidden;\n overflow-y: scroll;\n background: #fff;\n padding: 20px 12px !important;\n font-family: \'Tahoma For Number\', \'Chinese Quote\', -apple-system, BlinkMacSystemFont, \'Segoe UI\', Roboto, \'PingFang SC\', \'Hiragino Sans GB\', \'Microsoft YaHei\', \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n /*基本样式*/\n}\n[data-v-c274aad4] .markdown-preview * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n[data-v-c274aad4] .markdown-preview > div {\n padding: 10px 12px !important;\n background: #fff;\n}\n[data-v-c274aad4] .markdown-preview > div::-webkit-scrollbar {\n display: none;\n}\n[data-v-c274aad4] .markdown-preview::-webkit-scrollbar {\n display: none;\n}\n[data-v-c274aad4] .markdown-preview em {\n font-style: oblique;\n}\n[data-v-c274aad4] .markdown-preview ul {\n list-style: none;\n padding: 0 20px;\n}\n[data-v-c274aad4] .markdown-preview ul li {\n position: relative;\n}\n[data-v-c274aad4] .markdown-preview ul li:after {\n display: block;\n content: "";\n width: 8px;\n height: 8px;\n border-radius: 50%;\n position: absolute;\n z-index: 99;\n top: 12px;\n left: -16px;\n background: #262626;\n}\n[data-v-c274aad4] .markdown-preview ol,[data-v-c274aad4] .markdown-preview ul {\n margin: 10px 0;\n}\n[data-v-c274aad4] .markdown-preview ol li,[data-v-c274aad4] .markdown-preview ul li {\n font-size: 14px !important;\n color: #262626;\n line-height: 22px !important;\n padding: 4px 0;\n padding-left: 6px;\n min-height: 28px;\n}\n[data-v-c274aad4] .markdown-preview ol li input[type="checkbox"],[data-v-c274aad4] .markdown-preview ul li input[type="checkbox"] {\n position: relative;\n cursor: pointer;\n overflow: visible;\n position: absolute;\n left: -14px;\n top: 5px;\n}\n[data-v-c274aad4] .markdown-preview ol li input[type="checkbox"]:before,[data-v-c274aad4] .markdown-preview ul li input[type="checkbox"]:before {\n font-family: "iconfont" !important;\n color: #999;\n display: block;\n width: 18px;\n height: 18px;\n position: absolute;\n content: "\\E684";\n top: 0px;\n left: -4px;\n z-index: 999999;\n background-position: center;\n background: #fff;\n font-size: 18px;\n text-align: center;\n line-height: 18px;\n}\n[data-v-c274aad4] .markdown-preview ol li input[type="checkbox"]:checked:before,[data-v-c274aad4] .markdown-preview ul li input[type="checkbox"]:checked:before {\n content: "\\E683";\n}\n[data-v-c274aad4] .markdown-preview ol.toc-anchor,[data-v-c274aad4] .markdown-preview ul.toc-anchor {\n margin: 0;\n padding: 0;\n}\n[data-v-c274aad4] .markdown-preview ol.toc-anchor li.toc-anchor-item,[data-v-c274aad4] .markdown-preview ul.toc-anchor li.toc-anchor-item {\n cursor: pointer;\n padding: 4px 0;\n font-size: 13px !important;\n line-height: 16px !important;\n min-height: auto;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n[data-v-c274aad4] .markdown-preview ol.toc-anchor li.toc-anchor-item span,[data-v-c274aad4] .markdown-preview ul.toc-anchor li.toc-anchor-item span {\n color: #2b85e4;\n opacity: 0.9;\n}\n[data-v-c274aad4] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-2,[data-v-c274aad4] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-2 {\n padding-left: 16px;\n}\n[data-v-c274aad4] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-3,[data-v-c274aad4] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-3 {\n padding-left: 32px;\n}\n[data-v-c274aad4] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-4,[data-v-c274aad4] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-4 {\n padding-left: 48px;\n}\n[data-v-c274aad4] .markdown-preview ol.toc-anchor li.toc-anchor-item span.toc-link-5,[data-v-c274aad4] .markdown-preview ul.toc-anchor li.toc-anchor-item span.toc-link-5 {\n padding-left: 64px;\n}\n[data-v-c274aad4] .markdown-preview ol.toc-anchor li.toc-anchor-item:last-child,[data-v-c274aad4] .markdown-preview ul.toc-anchor li.toc-anchor-item:last-child {\n padding-bottom: 6px;\n}\n[data-v-c274aad4] .markdown-preview ol.toc-anchor li.toc-anchor-item:hover span,[data-v-c274aad4] .markdown-preview ul.toc-anchor li.toc-anchor-item:hover span {\n opacity: 1;\n}\n[data-v-c274aad4] .markdown-preview ol {\n list-style-type: decimal;\n padding-left: 20px;\n}\n[data-v-c274aad4] .markdown-preview ol li {\n list-style: decimal;\n}\n[data-v-c274aad4] .markdown-preview hr {\n color: #d9d9d9;\n height: 1px;\n border: 0;\n border-top: 1px solid #d9d9d9;\n margin: 20px 0;\n padding: 0;\n}\n[data-v-c274aad4] .markdown-preview del,[data-v-c274aad4] .markdown-preview em,[data-v-c274aad4] .markdown-preview strong {\n display: inline-block;\n}\n[data-v-c274aad4] .markdown-preview blockquote {\n position: relative;\n background: #f7f7f7;\n padding: 6px 12px;\n border-left: 5px solid #d9d9d9;\n border-radius: 2px;\n margin: 8px 0;\n}\n[data-v-c274aad4] .markdown-preview h1,[data-v-c274aad4] .markdown-preview h2,[data-v-c274aad4] .markdown-preview h3,[data-v-c274aad4] .markdown-preview h4,[data-v-c274aad4] .markdown-preview h5,[data-v-c274aad4] .markdown-preview h6 {\n color: #262626;\n}\n[data-v-c274aad4] .markdown-preview h1 {\n font-size: 28px;\n border-bottom: 1px solid #d9d9d9;\n}\n[data-v-c274aad4] .markdown-preview h2 {\n font-size: 24px;\n}\n[data-v-c274aad4] .markdown-preview h3 {\n font-size: 18px;\n}\n[data-v-c274aad4] .markdown-preview h4 {\n font-size: 16px;\n}\n[data-v-c274aad4] .markdown-preview h5 {\n font-size: 14px;\n}\n[data-v-c274aad4] .markdown-preview h6 {\n font-size: 12px;\n}\n[data-v-c274aad4] .markdown-preview h1,[data-v-c274aad4] .markdown-preview h2,[data-v-c274aad4] .markdown-preview h3,[data-v-c274aad4] .markdown-preview h4,[data-v-c274aad4] .markdown-preview h5,[data-v-c274aad4] .markdown-preview h6 {\n padding: 8px 0;\n font-weight: 600;\n}\n[data-v-c274aad4] .markdown-preview p {\n font-size: 14px !important;\n color: #262626;\n margin-bottom: 8px;\n line-height: 22px;\n}\n[data-v-c274aad4] .markdown-preview img {\n display: block;\n max-width: 100%;\n margin: 20px 0;\n cursor: pointer;\n}\n[data-v-c274aad4] .markdown-preview table {\n width: 100%;\n border: 1px solid #d9d9d9;\n border-bottom: 0;\n background: #fff;\n border-spacing: 0;\n border-collapse: collapse;\n margin: 20px 0;\n}\n[data-v-c274aad4] .markdown-preview table tr {\n -webkit-transition: background 0.1s;\n transition: background 0.1s;\n}\n[data-v-c274aad4] .markdown-preview table tr td,[data-v-c274aad4] .markdown-preview table tr th {\n padding: 4px 8px;\n font-size: 14px;\n line-height: 24px;\n color: #333;\n border-bottom: 1px solid #d9d9d9;\n cursor: pointer;\n}\n[data-v-c274aad4] .markdown-preview table th {\n background: #f8f8f9;\n text-align: left;\n font-weight: bold;\n}\n[data-v-c274aad4] .markdown-preview table tr:nth-of-type(even) td {\n background: #fafafa;\n}\n[data-v-c274aad4] .markdown-preview table tr:hover td {\n background: #f5f5f5;\n}\n[data-v-c274aad4] .markdown-preview table td,[data-v-c274aad4] .markdown-preview table th {\n border: 1px solid #d9d9d9;\n word-break: break-all;\n}\n[data-v-c274aad4] .markdown-preview input[type="checkbox"] {\n display: inline-block;\n border-radius: 0;\n margin-right: 8px;\n}\n[data-v-c274aad4] .markdown-preview a {\n text-decoration: none;\n color: #1890ff;\n font-size: 14px;\n line-height: 22px;\n}\n[data-v-c274aad4] .markdown-preview .code-block {\n position: relative;\n padding: 0 !important;\n}\n[data-v-c274aad4] .markdown-preview .code-block .copy-code {\n position: absolute;\n z-index: 999;\n top: 5px;\n right: 10px;\n font-size: 12px;\n color: #d9d9d9;\n line-height: 20px;\n cursor: pointer;\n user-select: none;\n transition: all 0.3s;\n opacity: 0;\n}\n[data-v-c274aad4] .markdown-preview .code-block .copy-code:hover {\n color: #1890ff;\n}\n[data-v-c274aad4] .markdown-preview .code-block:hover .copy-code {\n opacity: 1;\n}\n.preview-img[data-v-c274aad4] {\n position: fixed;\n width: 100vw;\n height: 100vh;\n z-index: 99999999;\n left: 0;\n top: 0;\n background: rgba(0, 0, 0, 0.5);\n display: none;\n opacity: 0;\n transition: opacity 0.3s 0.1s;\n justify-content: center;\n align-items: center;\n}\n.preview-img .close[data-v-c274aad4] {\n position: absolute;\n right: 0;\n top: 0;\n color: #fff;\n padding: 10px;\n font-size: 20px;\n cursor: pointer;\n}\n.preview-img img[data-v-c274aad4] {\n display: block;\n}\n.preview-img img.vertical[data-v-c274aad4] {\n height: 80%;\n width: auto;\n}\n.preview-img img.horizontal[data-v-c274aad4] {\n width: 80%;\n height: auto;\n}\n.preview-img.active[data-v-c274aad4] {\n display: flex;\n opacity: 1;\n}\n',""]);const l=a},50318:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(23645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,'@font-face {font-family: "iconfont";\n src: url(\'iconfont.eot?t=1576231776697\'); /* IE9 */\n src: url(\'iconfont.eot?t=1576231776697#iefix\') format(\'embedded-opentype\'), /* IE6-IE8 */\n url(\'data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAABBoAAsAAAAAH4gAABAXAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCHNAqrGKENATYCJAOBAAtCAAQgBYRtB4I0G3MZM6M2lLTSTfZfJ3BzyOqYZkDBRZ2HprCitPZ3M8J36RIFoV+G+/sYnCYldv0I8xP3uCYjaM7/PYldjAhiEUzzMA2QIPZTSUVTap7SplSDVS1QFajwRBw61IQgv72KhZq8zPfO2kzlgJkk7T4iPTP9Ao/snqj1ZwI+AR+pnFgdsb1FKrikLeIB0AABBLNBwG3sJrh0YieT5piEFlvapTXhESZVxn7z1XMwlGSPvV8g5XsAQOD//62ldqfIqjJ5W5yyMH0RqkLWyJ0JDl3vH2ZCvMHdEpDKq5AV6vZCeyUCDyhMhanQFUJUSF+D5awMrAmEpUSMBqL+u96FgQDAQCUGYXgvHww+aDBOYL4ZcfI48GNh0DlDCfADXM0JaRCbioNPrl47gI3q6xMPkBAfIMGhwC7KNMk4AXqWejiMsp9gM2WP1KcBvJwIoADEAGiA1GkriShQPotRgtEV0vgv/nw0aIhYmpWyISIlSpGpmC1lR7A2toZtsMlp11jXnb47j+64Hg5zn6UsUfjoZBmKutd1v9rr4fphDQRixHGUMDpJirTuWd1zkP6/4AFKBLx5ISGFJwr+FLjwIISKCGIwCCRHgwMJBOCBjwA+fPmRUQPBBeYVAQDRQBvVwFICgxJYGgMBsFIM3sCGYPACNhwDCbARHF8yEhg8gU3EQAFsMgZ/YFMwKIDNwMAF2EwMHsAWAYSQxQCoIEsBEEGOAEAMaQOAgawBIBCyDgA5ZD0ANGQDABzITQBIIE8DIIC8CgAP8hoAfEgXMATAnT6Aj5IPAfCFfASAH6QLGGTwcNgSUAMAjTyBHsAsgPtJgC8GU++pILhNgQSfWmA0EEeRuu4EY14UN4/qGZcT5UhhGA+RzF1SKhUR4hBC68GmUDSfJxZ70tpH5uMJtAFv8k3IHkwQsbghCBGyO1rAEch8KV/ADNGEcnmltkOGKDqMSyXPTB0/f1gqqQ2GOhqiJgftys1wX+tg4SHhrzbqdj3PXQi/2m47jteF30zc/s3hA4btyn6r4/K6TDjNfkX8BZ51Du7ZDf/91en8caT7+06wdx/477cLWrE5JJ5vTUwUGoNjmfpWYWpMj3EjIa2djJquyNcCw/FkoZLVDe/crk7HlF2v3TZYaEO48Z1w1PX2/IHu2BudBRCCYtWvBRVSHgdpaN+n+n7rv7jBDQ41V3FSplXfmsIQFb4MONEnSxwYa4X9U0G67cNIpow0Wh0SzdewKnxLu1VOxbIVnAhqMHornbxVT0WyjfE9pdbQaK7Z+5oiSasw6tdwT1ABCOUhgLAB18k2I80+hAGCwnOPrbkI9MCNCKLYKXcZ/TjoQr+DKJrnBcZTsnHIVYM2IKHdls8KKdCbGp/gempUeVCNKPsiarRXiao7c1VaTpGsEWMZkK0EtaF+zozL/C5XUN1mc6qluTG8qp3ZRtDym7Tu9lABY77EyYCDOGGbSaX751iDcb86IXmrDLwE0OIqWKdHSLsjDVHThTg6e4hoZ0W1836P0nv3Sb9K9d17BS0TY89uRiqBtW8PD2r+uXx1QRH6ltVfNulEDoj+Tjm1OVOZHyxye8FtRMNx4u4SAx8MTWuMkQ4+KV/0Fm8XcxAikH13HgPEKC3sOv3jJfQPSis/NF8bGI8jOIpL/ZXB2cGcB5Z1ZUiOX1iO6uuYrghzg0A0c+naMI6D9DpkvdhphTJ9kdKwGkirDAkBUR5wsCOzDBCmo0JKjNunC1wOIoTbEZD+VCiMAURVWa4nDe1Uln4k54baR4hyhhCcUo33BZUwOqTO9uGIEu3sckJb9ZOAtBpUQIyUJ2wTFL+KLQjgHRCBXRiiowDDHW0vkLDrou0JF3AhCp2uQNv7oSZ/Zq8HJE+5VVSctLt8fbKj7qvd2K24Qljenm39DVKnTb/V54W3JQ4A16ajoC9ROEBhrRiupOO7TmnIt97OMqPbDs+Wd9Bq3vJckauVDIeTrXR126kpctY2WSpk9c2MHRO6XQ9XNLsrPWmuiIwVEqcdeCff1qG2zYzl3PJa3eWNcJmju/52k6wPlzQPrZSiQcZqLufWSkeANGW5t5zLe9SIPBNL1x4h9GWuIMQC46ZamifvFawQbH8TO9I0rWsNNjFoVxBYXmmJLzzjwApSTHhfP6YHrnT8ys8LlM0drRhLRqdJw6g4b54gcvmn+YmBX04ilmmEBR3wyJmoOKTz/7x2u72tOTTFq0y9YyvkJUtybl4LBb35iRHt5/TO+DOA/KGyNL40uZIiKaYvcjlOuvqIwScG1qSjFgfIfbLP6jMG8vOVPAijNL4AiM50bvAUmVSewIpmDqY1Wgcx0sAJqIgdRzrDwEEq9Ju9VwQ9uMGVQNYXahAuP79e5t78jSnVz8fdegMM8RyCb4a6viUlDgoko9Oi2TvWJofjwsQrQLviVhXtZw2YRlAB6J0fh8Wmho2cPr1dBSM3lCjc80GaD03EtTI11wPiQgXYsgRhNYuWASCFtPZOvTBqoNYTaO53H3b2Pdh5VsbHPrh06uYJD41afQ2dV1Ox53dGN6P3433qG3c4d93jvbLy4orHh6+df55b8kmvfHzFxbpnQKQHfUt5p1ImhA00zzRHfBFBLeQs4K1jFm7S5kVGDh0dNpRzCknDOjKzMjPPMVSR8n9r2tpnHEdHqOcoUjLUuUxWntVRyE92lLRftK3NINwmNLSpJfx/lbqsLqlV/p6q99SoaurrHSJ5YM2MGS5Xdr9M5CiwMO5fmMVsaY6LExZNNJvZtleQvnnPbCGYI7YnO58kSaS3nyzqAk6aunXdMQiaQJ1VPXNKS318EJljpwvbcyZxP/Jv0Rr4FOrVA/O4TJenp8KY3yDiW32/CpT5O37iS7orQBHVrJikbKa+wc0qr6jUKoH+W04U/Z3n357tnitXIiN/Q7Fdxj/Ml9kdl+An30RfEVVTAFNdmYZL2bHO9hmKfVZc6tf3L+8P6r/8ImBfnft2F7nL3MMDLo7qH32ueDL2GHUa2aRRJQNKhxQP9ZPJkM8xKUeYiysMlfqBkp/ph/pRy+0jRhoGjTQpq4hZ44bO3F69flKagSubojZwoN20wblhcHB18Kvjzg3O5OP+L1ofcTviOriSK1+8/OKK5PV60MpWzqjxrNn016KlnTs6ly66lb7Gc1H5VCYxhbvP1I/ireJ9J7JVB8mtyhbdKF2L8jvnaeBIyan0U7fDY5/dzB9VUTl8YMkgS7JbT8fei73VnWtfPndj2ewwaomyxJhzU08hxVQZzxpbVENU33jDJqlaRrSqJj73b1RmFWSnihoHU1Kaigw2kCrfQvKZP1fmGnSnqNpStG3+MwkvOlFHaH2N5LNonqTPzClC0rjV69oe+zxuk2/q2SlVKRGdwivDr3Dzfq+V8Hz69UaykNT1+vA8TprylNt/P/DHqs5x6uHq2Z2r/9z0W6NyK5NXfyAjtTChQd7W0NNW9lPPvJ95TH31jq3zhTSytHavdq9QIWKQFL4XuFKmXeAhtqmUIfXmZL/edJN5/RrdFH4tSuZ9R9n+mKud+WZTu1KKTiubkaps4mydXiG1JEXyOlVO0X5Ml/XXwZpCaadNLBW0byIxTWj2HK+/3it87M0vACmTm4KDSdEzLM2vOmLmOKzRu0UszatqHbUZmmB+rbZF49C2uhjVCfXewBMqZ5bT4VTCcdOhgH9lkX9v79pevmM6JoNaQMMIQ7dyq3Obc3vqX45upCDy6GZ6Ig6QXdu6nm4zu6+YP1OZpvzv0pMnhkC7bN+BIGXS8OHruLxgRZz36JKSRB5x+zYIbLuvd5dwO1jXu4upURy4O30Gb6IUC0Nsiij5ypBVMmWUxvY7RBPlgVYWKmyh2oShK6FuFq50tq/yW/XndFgI3qo/vuDzruKSn3DFJK3mERZHrt9KSxVnwOHtZU/GZQ5b2Jh580+7h2x2UMG86mNW6sZZyrra909Ktg0qqJ6Xk38qJy8/91Re7qsjKfk6kZ/zFM2pzvnEaoeVevADZa2pNg0GzvXCfX1xersSyI88TkzTtyh0ZkrRQtcnPt6wYfDgdqPxbppzrA0bHifW04oWyqxrUejT9K2NRrrCguZml9wbQmq8Ipbt59QVdG1Y/9w3wlRmpPl9twpTRNIjA95esJ+z4Ai04c61zLT1XQV1nHhDFHZWtFTogXRTxQzRtz9NkFyLzs4Jcpt8hkLklSit2CNK5Yv3iPV3tOSnbxMrsnu+XPfVLZvS1v7/Jcd7cjzyCrsH7zeXFzWdQq3gW4x6p7Y447os0tkV5/QyqL0jYac3CGhaWPL+FbdW+v1UNdnsTZHB30c2xBy6utz/Q6tU2Lt/LhtWJgr2rFt2FvvztIxn2/dvIgyhg7T1yrkBOiZtGZgJq0S8pdbfOwN++vWKmnF69YmCJU1Nk7Z8+pM9TuLtsds8fq75P44PWfCzq2O9XYHU8d6P/BL9a/wT/eS5zzoJcbqYlJyRkOJdOd8CRj3aLGcwZNgq3yCfJvmvYqIN0l/NTT6xu9/cX3TiWOjg1cd3nwvkBJsCxf8s0EocXp/zRWrfvk+k8cLJy5t9muvr5swGGRmYkrza/kabNJrZ83aYVu3eNZW/CvhooMuPeEn4WRK5kdxES5RK/TZtmU02Xx4lny97/pdilUIpDMXD00iX8hJNuZZE3lKpZpXikimatkqsFcGXSCuWIuFwdW7uyK1D4kODLl38t+n8gn+x3M0Wcb9U2FOkX2cdhXVfPtNzzxCNB1AXqLQZesgNc7j/U+QZFxm29kHKSY0h6KmQYPiI4auhc4ePG14spLhlhu8c8Qt/JT7rQyHFEG0efoOGNz6kBLRwLbka/jP5YHgXeX64HXHwwuHrvtp9dghG+i2fSCj+nE/bqJ+5y+Q8rGwPN2zq51+V9cLh/2m2uu6bRVW4D9IYRzX4IB9MSDyIFHSrG9HfOSyi2ecGFjuAKIMwBzTWItJAAmDCWW6Uyjn7rDytsx7ZKs/QJMFDoEmBjxBE94wxORAiyeSCj1yTQbSikwuhYAUFghYAiNLomAQ8nDFJSPAjo3Q9OxiNnl0mB14e5XExMIr+Y6cUOEMhwjbXv3wR6AKr2qeKhpNzY2Xpzf8JX0kLyXnq7BeSIyd13B1+mz+QIHWkyDd/KsUpJ9ypd8cHRKx64QtM2QU09ef93r1dxc5w1yybF4EusEr7lNNGw8kdvixTX/4TvpKWnNV+TfsLyfHolaOdgwX6EMlqtX1ZNN/8SSHaKbGscKe8Ew3iDaz0+rYuMGUnlLD7sz3ZnLMVu/ZVd2QUNuIa2EerSSBRaAwWhycQSWRKKmoaWjp6BkYmZhZWNnYOTi5unmLY2bHA8rgmyzMTYK6wG3WXt05TxqwX3CLuQ04jdm5u+Z6ItR23THbihWs/ip1flj53yJZiwsQQZ0xj0RTNnG8QzRTLwBL/OSWalIAOk7/KRVYU3ZK5J7QMK40NW4zfPK9LV4myESBZoZjMapY6ZFrWvnG2bXGOcdY3LPo627blR9MAAAAA\') format(\'woff2\'),\n url(\'iconfont.woff?t=1576231776697\') format(\'woff\'),\n url(\'iconfont.ttf?t=1576231776697\') format(\'truetype\'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */\n url(\'iconfont.svg?t=1576231776697#iconfont\') format(\'svg\'); /* iOS 4.1- */\n}\n\n.iconfont {\n font-family: "iconfont" !important;\n font-size: 16px;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.icon-md:before {\n content: "\\e604";\n}\n\n.icon-redo:before {\n content: "\\e627";\n}\n\n.icon-undo:before {\n content: "\\e633";\n}\n\n.icon-checked:before {\n content: "\\e683";\n}\n\n.icon-checked-false:before {\n content: "\\e684";\n}\n\n.icon-preview:before {\n content: "\\e63a";\n}\n\n.icon-on:before {\n content: "\\e6d8";\n}\n\n.icon-off:before {\n content: "\\e6d9";\n}\n\n.icon-download:before {\n content: "\\e6ae";\n}\n\n.icon-bold:before {\n content: "\\e677";\n}\n\n.icon-group:before {\n content: "\\e647";\n}\n\n.icon-img:before {\n content: "\\e64a";\n}\n\n.icon-under-line:before {\n content: "\\e65a";\n}\n\n.icon-close:before {\n content: "\\e690";\n}\n\n.icon-italic:before {\n content: "\\e628";\n}\n\n.icon-overline:before {\n content: "\\e63b";\n}\n\n.icon-horizontal:before {\n content: "\\e7f0";\n}\n\n.icon-theme:before {\n content: "\\e682";\n}\n\n.icon-quote:before {\n content: "\\e636";\n}\n\n.icon-table:before {\n content: "\\e603";\n}\n\n.icon-clear:before {\n content: "\\e629";\n}\n\n.icon-ul:before {\n content: "\\e624";\n}\n\n.icon-code:before {\n content: "\\e60f";\n}\n\n.icon-link:before {\n content: "\\e7e2";\n}\n\n.icon-fullscreen:before {\n content: "\\e7ec";\n}\n\n.icon-quite:before {\n content: "\\e7ed";\n}\n\n.icon-daoru:before {\n content: "\\e635";\n}\n\n.icon-ol:before {\n content: "\\e6f0";\n}\n\n.icon-upload-img:before {\n content: "\\e679";\n}\n\n.icon-save:before {\n content: "\\e648";\n}\n\n.icon-check-box:before {\n content: "\\ec58";\n}\n\n',""]);const o=i},60107:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(23645),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,"/* BASICS */\n\n.CodeMirror {\n height: 100%;\n color: black;\n direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n padding: 4px 0;\n}\n\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n padding: 0 4px;\n padding-left: 8px;\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n\n.CodeMirror-linenumbers {\n}\n\n.CodeMirror-linenumber {\n padding: 0 5px!important;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.CodeMirror-guttermarker {\n color: black;\n}\n\n.CodeMirror-guttermarker-subtle {\n color: #999;\n}\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n\n.cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n\n.cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n\n.cm-fat-cursor-mark {\n background-color: rgba(20, 255, 20, 0.5);\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n}\n\n.cm-animate-fat-cursor {\n width: auto;\n border: 0;\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n background-color: #7e7;\n}\n\n@-moz-keyframes blink {\n 0% {\n }\n 50% {\n background-color: transparent;\n }\n 100% {\n }\n}\n\n@-webkit-keyframes blink {\n 0% {\n }\n 50% {\n background-color: transparent;\n }\n 100% {\n }\n}\n\n@keyframes blink {\n 0% {\n }\n 50% {\n background-color: transparent;\n }\n 100% {\n }\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {\n}\n\n.cm-tab {\n display: inline-block;\n text-decoration: inherit;\n}\n\n.CodeMirror-rulers {\n position: absolute;\n left: 0;\n right: 0;\n top: -50px;\n bottom: 0;\n overflow: hidden;\n}\n\n.CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0;\n bottom: 0;\n position: absolute;\n}\n\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the src. You probably shouldn't touch them. */\n\n.CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .Index */\n margin-bottom: -30px;\n margin-right: -30px;\n padding-bottom: 30px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n}\n\n.CodeMirror-sizer {\n position: relative;\n border-right: 30px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n}\n\n.CodeMirror-vscrollbar {\n right: 0;\n top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n\n.CodeMirror-hscrollbar {\n bottom: 0;\n left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n\n.CodeMirror-scrollbar-filler {\n right: 0;\n bottom: 0;\n}\n\n.CodeMirror-gutter-filler {\n left: 0;\n bottom: 0;\n}\n\n.CodeMirror-gutters {\n position: absolute;\n left: 0;\n top: 0;\n min-height: 100%;\n z-index: 3;\n}\n\n.CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -30px;\n}\n\n.CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n\n.CodeMirror-gutter-background {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: 4;\n}\n\n.CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n\n.CodeMirror-gutter-wrapper ::selection {\n background-color: transparent\n}\n\n.CodeMirror-gutter-wrapper ::-moz-selection {\n background-color: transparent\n}\n\n.CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0;\n -webkit-border-radius: 0;\n border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: contextual;\n font-variant-ligatures: contextual;\n}\n\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.CodeMirror-linebackground {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 0;\n}\n\n.CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {\n}\n\n.CodeMirror-rtl pre {\n direction: rtl;\n}\n\n.CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n\n.CodeMirror-measure pre {\n position: static;\n}\n\ndiv.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\n\ndiv.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.CodeMirror-selected {\n background: #d9d9d9;\n}\n\n.CodeMirror-focused .CodeMirror-selected {\n background: #d7d4f0;\n}\n\n.CodeMirror-crosshair {\n cursor: crosshair;\n}\n\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection {\n background: #d7d4f0;\n}\n\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection {\n background: #d7d4f0;\n}\n\n.cm-searching {\n background-color: #ffa;\n background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border {\n padding-right: .1px;\n}\n\n@media print {\n /* Hide the cursor when printing */\n .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after {\n content: '';\n}\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext {\n background: none;\n}\n\n\n.cm-negative {\n color: #d44;\n}\n\n.cm-positive {\n color: #292;\n}\n\n.cm-header, .cm-strong {\n font-weight: bold;\n}\n\n.cm-em {\n font-style: italic;\n}\n\n\n.cm-strikethrough {\n text-decoration: line-through;\n}\n\n.cm-invalidchar {\n color: #f00;\n}\n\n.CodeMirror-composing {\n border-bottom: 2px solid;\n}\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {\n color: #0b0;\n}\n\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {\n color: #a22;\n}\n\n.CodeMirror-matchingtag {\n background: rgba(255, 150, 0, .3);\n}\n\n.CodeMirror-activeline-background {\n background: #e8f2ff;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default.CodeMirror,\n.cm-s-default .CodeMirror-gutters {\n background-color: #282a36 !important;\n color: #f8f8f2 !important;\n border: none;\n font-family: Menlo, Consolas, \"Courier New\", Courier, FreeMono, monospace !important;\n\n}\n\n.cm-s-default * {\n line-height: 1.6 !important;\n font-size: 14px;\n font-family: Menlo, Consolas, \"Courier New\", Courier, FreeMono, monospace !important;\n color: #ccc;\n}\n\n.cm-s-default .CodeMirror-gutters {\n color: #282a36;\n}\n\n.cm-s-default .CodeMirror-cursor {\n border-left: solid thin #f8f8f0;\n}\n\n.cm-s-default .CodeMirror-selected {\n background: rgba(255, 255, 255, 0.10);\n}\n\n.cm-s-default .CodeMirror-line::selection,\n.cm-s-default .CodeMirror-line > span::selection,\n.cm-s-default .CodeMirror-line > span > span::selection {\n background: rgba(255, 255, 255, 0.10);\n}\n\n.cm-s-default .CodeMirror-line::-moz-selection,\n.cm-s-default .CodeMirror-line > span::-moz-selection,\n.cm-s-default .CodeMirror-line > span > span::-moz-selection {\n background: rgba(255, 255, 255, 0.10);\n}\n\n.cm-s-default span.cm-comment {\n color: #999;\n}\n\n.cm-s-default span.cm-string,\n.cm-s-default span.cm-string-2 {\n color: #ce9178;\n}\n\n.cm-s-default span.cm-number {\n color: #bd93f9;\n}\n\n.cm-s-default span.cm-variable {\n color: #61afef;\n}\n\n.cm-s-default span.cm-variable-2 {\n color: #61afef;\n}\n\n.cm-s-default span.cm-def {\n color: #e0e2e4;\n}\n\n.cm-s-default span.cm-operator {\n color: #e0e2e4;\n}\n\n.cm-s-default span.cm-keyword {\n color: #c678dd;\n}\n\n.cm-s-default span.cm-atom {\n color: #bd93f9;\n}\n\n.cm-s-default span.cm-meta {\n color: #f8f8f2;\n}\n\n.cm-s-default span.cm-tag {\n color: #569cd6;\n}\n\n.cm-s-default span.cm-attribute {\n color: #9cdcfe;\n}\n\n.cm-s-default span.cm-qualifier {\n color: #9cdcfe;\n}\n\n.cm-s-default span.cm-property {\n color: #dcdcaa;\n}\n\n.cm-s-default span.cm-builtin {\n color: #50fa7b;\n}\n\n.cm-s-default span.cm-variable-3,\n.cm-s-default span.cm-type {\n color: #ffb86c;\n}\n\n.cm-s-default .CodeMirror-activeline-background {\n background: rgba(255, 255, 255, 0.1);\n}\n\n.cm-s-default .CodeMirror-matchingbracket {\n text-decoration: underline;\n color: white !important;\n}\n\n.cm-s-default .cm-header {\n color: #fff;\n}\n\n.cm-s-default .CodeMirror-gutter {\n background: #22252b;\n padding-right: 2px;\n}\n\n.cm-link {\n text-decoration: underline;\n color: #569cd6;\n}\n.cm-url{\n color: #9cdcfe!important;\n}\n",""]);const o=i},32467:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(20629);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s={name:"ImgUpload",props:{value:{},num:{},width:{},height:{},type:{},http:{type:Boolean,default:!1},otherParams:{type:Object,default:function(){return{}}},uploadIng:{type:Number,default:0}},data:function(){return{actionUrl:this.$store.state.method.apiUrl("system/imgupload"),params:{width:this.width,height:this.height},multiple:this.num>1,visible:!1,browseVisible:!1,isLoading:!1,browseList:[],browseListNext:[],imgVisible:"",defaultList:this.initItems(this.value),uploadList:[],maxNum:Math.min(Math.max($A.runNum(this.num),1),99),httpValue:"",httpType:"",maxSize:2048}},mounted:function(){var e=this;this.uploadList=this.$refs.upload.fileList,this.$emit("input",this.uploadList);var t=$A(this.$refs.browselistbox);t.scroll((function(){var n=t[0].scrollHeight;if(t[0].scrollTop+t.height()>=n&&e.browseListNext.length>0){var r=e.browseListNext;e.browseListNext=[],e.browsePictureFor(r)}}))},watch:{value:function(e){"string"!=typeof e?e!==this.$refs.upload.fileList&&(this.$refs.upload.fileList=this.initItems(e),this.uploadList=this.$refs.upload.fileList):this.$emit("input",this.initItems(e))},browseVisible:function(){this.httpType="",this.httpValue=""}},computed:a(a({},(0,r.rn)(["userToken"])),{},{uploadHeaders:function(){return{fd:this.$store.state.method.getStorageString("userWsFd"),token:this.userToken}},uploadParams:function(){return Object.keys(this.otherParams).length>0?Object.assign(this.params,this.otherParams):this.params}}),methods:{handleCallback:function(e){"callback"===this.type&&(!0===e?(this.$emit("on-callback",this.uploadList),this.$refs.upload.fileList=[],this.uploadList=this.$refs.upload.fileList):"object"===i(e)&&this.$emit("on-callback",[e])),this.browseVisible=!1},initItems:function(e){"string"==typeof e&&(e=[{url:e}]);var t=[];return $A.each(e,(function(e,n){"string"==typeof n&&(n={url:n}),n.url&&(n.active=!0,n.status="finished",void 0===n.path&&(n.path=n.url),void 0===n.thumb&&(n.thumb=n.url),t.push(n))})),t},handleView:function(e){this.visible=!0,this.imgVisible=e.url},handleRemove:function(e){var t=this.$refs.upload.fileList;this.$refs.upload.fileList.splice(t.indexOf(e),1),this.$emit("input",this.$refs.upload.fileList)},handleProgress:function(){this.$emit("update:uploadIng",this.uploadIng+1)},handleSuccess:function(e,t){this.$emit("update:uploadIng",this.uploadIng-1),1===e.ret?(t.url=e.data.url,t.path=e.data.path,t.thumb=e.data.thumb,this.handleCallback(t)):($A.noticeWarning({title:this.$L("上传失败"),desc:this.$L("文件 "+t.name+" 上传失败 "+e.msg)}),this.$refs.upload.fileList.pop()),this.$emit("input",this.$refs.upload.fileList)},handleError:function(){this.$emit("update:uploadIng",this.uploadIng-1)},handleFormatError:function(e){$A.noticeWarning({title:this.$L("文件格式不正确"),desc:this.$L("文件 "+e.name+" 格式不正确,请上传 jpg、jpeg、gif、png 格式的图片。")})},handleMaxSize:function(e){$A.noticeWarning({title:this.$L("超出文件大小限制"),desc:this.$L("文件 "+e.name+" 太大,不能超过:"+$A.bytesToSize(1024*this.maxSize))})},handleBeforeUpload:function(){var e=this.uploadList.length<this.maxNum;return e||1!=this.uploadList.length||(this.handleRemove(this.uploadList[0]),e=this.uploadList.length<this.maxNum),e||$A.noticeWarning(this.$L("最多只能上传 "+this.maxNum+" 张图片。")),this.params={width:this.width,height:this.height},e},handleClick:function(){this.handleBeforeUpload()&&this.$refs.upload.handleClick()},handleManual:function(e){this.handleBeforeUpload()&&this.$refs.upload.upload(e)},browsePicture:function(e){var t=this;this.browseVisible=!0,this.browseList=[],this.browseListNext=[],this.isLoading=!0,this.$store.dispatch("call",{url:"system/imgview",data:{path:e||""}}).then((function(e){var n=e.data;t.isLoading=!1;for(var r=n.dirs,i=0;i<r.length;i++)t.browseList.push(r[i]);t.browsePictureFor(n.files)})).catch((function(e){var n=e.msg;t.isLoading=!1,t.browseVisible=!1,$A.noticeWarning(n)}))},browsePictureFor:function(e){for(var t=0;t<e.length;t++){for(var n=0;n<this.uploadList.length;n++)if(this.uploadList[n].url===e[t].url||this.uploadList[n].url===e[t].path){e[t].active=!0;break}t<100?this.browseList.push(e[t]):this.browseListNext.push(e[t])}},browseItem:function(e){if("dir"===e.type)this.browsePicture(e.path);else if("file"===e.type){if(e.active){var t=this.$refs.upload.fileList;this.$refs.upload.fileList.splice(t.indexOf(e),1),e.active=!1}else{if(1===this.maxNum){for(var n=0;n<this.browseList.length;n++)this.browseList[n].active=!1;this.$refs.upload.fileList=[],this.uploadList=this.$refs.upload.fileList}if(!(this.uploadList.length<this.maxNum))return void $A.noticeWarning(this.$L("最多只能选择 "+this.maxNum+" 张图片。"));e.active=!0,e.status="finished",this.$refs.upload.fileList.push(e),this.uploadList=this.$refs.upload.fileList}this.$emit("input",this.$refs.upload.fileList)}},__thumb:function(e){return $A.strExists(e,"?",!1)?e+"&__thumb=true":e+"?__thumb=true"},httpEnter:function(){this.$emit("input",this.initItems(this.httpValue)),this.browseVisible=!1}}};const c=(0,n(51900).Z)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-img-update"},[e._l(e.uploadList,(function(t){return"callback"!==e.type?n("div",{staticClass:"imgcomp-upload-list"},["finished"===t.status?[n("div",{staticClass:"imgcomp-upload-img",style:{"background-image":"url("+e.__thumb(t.thumb)+")"}}),e._v(" "),n("div",{staticClass:"imgcomp-upload-list-cover"},[n("Icon",{attrs:{type:"ios-eye-outline"},nativeOn:{click:function(n){return e.handleView(t)}}}),e._v(" "),n("Icon",{attrs:{type:"ios-trash-outline"},nativeOn:{click:function(n){return e.handleRemove(t)}}})],1)]:[t.showProgress?n("Progress",{attrs:{percent:t.percentage,"hide-info":""}}):e._e()]],2):e._e()})),e._v(" "),n("div",{staticClass:"add-box",class:{"callback-add-box":"callback"===e.type}},[n("div",{staticClass:"add-box-icon"},[n("Icon",{attrs:{type:"md-add",size:"32"}})],1),e._v(" "),n("div",{staticClass:"add-box-upload"},[n("div",{staticClass:"add-box-item",on:{click:e.browsePicture}},[n("span",[e._v(e._s(e.$L("浏览"))),"callback"===e.type?n("em",[e._v(e._s(e.$L("图片")))]):e._e()])]),e._v(" "),n("div",{staticClass:"add-box-item"},[n("Upload",{ref:"upload",attrs:{name:"image",accept:"image/*",action:e.actionUrl,headers:e.uploadHeaders,data:e.uploadParams,"show-upload-list":!1,"max-size":e.maxSize,format:["jpg","jpeg","gif","png"],"default-file-list":e.defaultList,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload,multiple:e.multiple}},[n("span",[e._v(e._s(e.$L("上传"))),"callback"===e.type?n("em",[e._v(e._s(e.$L("图片")))]):e._e()])])],1)])]),e._v(" "),n("Modal",{staticClass:"img-upload-modal",attrs:{title:e.$L("浏览图片空间的图片"),width:"710"},model:{value:e.browseVisible,callback:function(t){e.browseVisible=t},expression:"browseVisible"}},[e.isLoading?n("div",{staticClass:"browse-load"},[e._v(e._s(e.$L("加载中...")))]):e._e(),e._v(" "),n("div",{ref:"browselistbox",staticClass:"browse-list",class:"input"===e.httpType?"browse-list-disabled":""},e._l(e.browseList,(function(t){return n("div",{staticClass:"browse-item",on:{click:function(n){return e.browseItem(t)}}},[t.active?n("Icon",{staticClass:"browse-icon",attrs:{type:"ios-checkmark-circle"}}):e._e(),e._v(" "),n("div",{staticClass:"browse-img",style:{"background-image":"url("+t.thumb+")"}}),e._v(" "),n("div",{staticClass:"browse-title"},[e._v(e._s(t.title))])],1)})),0),e._v(" "),n("div",{staticClass:"img-upload-foot",attrs:{slot:"footer"},slot:"footer"},["callback"!==e.type&&e.http&&""===e.httpType?n("div",{staticClass:"img-upload-foot-input",on:{click:function(t){e.httpType="input"}}},[n("Icon",{attrs:{type:"ios-image",size:"22"}}),e._v(" "),n("div",{staticClass:"img-upload-foot-httptitle"},[e._v(e._s(e.$L("自定义图片地址")))])],1):e._e(),e._v(" "),"callback"!==e.type&&e.http&&"input"===e.httpType?n("div",{staticClass:"img-upload-foot-input"},[n("Input",{attrs:{placeholder:e.$L("以 http:// 或 https:// 开头"),search:"","enter-button":e.$L("确定")},on:{"on-search":e.httpEnter},model:{value:e.httpValue,callback:function(t){e.httpValue=t},expression:"httpValue"}},[n("span",{staticStyle:{cursor:"pointer"},attrs:{slot:"prepend"},on:{click:function(t){e.httpType=""}},slot:"prepend"},[e._v(e._s(e.$L("自定义地址"))+": ")])])],1):e._e(),e._v(" "),""===e.httpType?n("Button",{on:{click:function(t){e.browseVisible=!1}}},[e._v(e._s(e.$L("关闭")))]):e._e(),e._v(" "),""===e.httpType?n("Button",{attrs:{type:"primary"},on:{click:function(t){return e.handleCallback(!0)}}},[e._v(e._s(e.$L("完成")))]):e._e()],1)]),e._v(" "),n("Modal",{staticClass:"img-upload-modal",attrs:{title:e.$L("查看图片"),draggable:""},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("div",{staticStyle:{"max-height":"480px",overflow:"auto"}},[n("a",{attrs:{href:e.imgVisible,target:"_blank"}},[e.visible?n("img",{staticStyle:{"max-width":"100%","max-height":"900px",display:"block",margin:"0 auto"},attrs:{src:e.imgVisible}}):e._e()])])])],2)}),[],!1,null,null,null).exports},8784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>xc});function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=navigator.userAgent,o=navigator.platform,a=/gecko\/\d/i.test(i),l=/MSIE \d/.test(i),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),c=/Edge\/(\d+)/.exec(i),d=l||s||c,u=d&&(l?document.documentMode||6:+(c||s)[1]),h=!c&&/WebKit\//.test(i),p=h&&/Qt\/\d+\.\d+/.test(i),f=!c&&/Chrome\//.test(i),m=/Opera\//.test(i),g=/Apple Computer/.test(navigator.vendor),v=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),b=/PhantomJS/.test(i),w=!c&&/AppleWebKit/.test(i)&&/Mobile\/\w+/.test(i),y=/Android/.test(i),k=w||y||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),x=w||/Mac/.test(o),C=/\bCrOS\b/.test(i),S=/win/i.test(o),M=m&&i.match(/Version\/(\d*\.\d*)/);M&&(M=Number(M[1])),M&&M>=15&&(m=!1,h=!0);var E=x&&(p||m&&(null==M||M<12.11)),T=a||d&&u>=9;function L(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var A,_=function(e,t){var n=e.className,r=L(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function D(e,t){return N(e).appendChild(t)}function O(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function I(e,t,n,r){var i=O(e,t,n,r);return i.setAttribute("role","presentation"),i}function z(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function F(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function R(e,t){var n=e.className;L(t).test(n)||(e.className+=(n?" ":"")+t)}function P(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!L(n[r]).test(t)&&(t+=" "+n[r]);return t}A=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var B=function(e){e.select()};function j(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function H(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function W(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var l=e.indexOf("\t",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=n-a%n,o=l+1}}w?B=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:d&&(B=function(e){try{e.select()}catch(e){}});var U=function(){this.id=null,this.f=null,this.time=0,this.handler=j(this.onTimeout,this)};function G(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}U.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},U.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var $={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},V={origin:"*mouse"},q={origin:"+move"};function Z(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var X=[""];function Y(e){for(;X.length<=e;)X.push(Q(X)+" ");return X[e]}function Q(e){return e[e.length-1]}function J(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function ee(){}function te(e,t){var n;return Object.create?n=Object.create(e):(ee.prototype=e,n=new ee),t&&H(t,n),n}var ne=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function re(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||ne.test(e))}function ie(e,t){return t?!!(t.source.indexOf("\\w")>-1&&re(e))||t.test(e):re(e)}function oe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&ae.test(e)}function se(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ce(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var de=null;function ue(e,t,n){var r;de=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:de=i)}return null!=r?r:de}var he=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,l){var s="ltr"==l?"L":"R";if(0==a.length||"ltr"==l&&!e.test(a))return!1;for(var c,d=a.length,u=[],h=0;h<d;++h)u.push((c=a.charCodeAt(h))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":8204==c?"b":"L");for(var p=0,f=s;p<d;++p){var m=u[p];"m"==m?u[p]=f:f=m}for(var g=0,v=s;g<d;++g){var b=u[g];"1"==b&&"r"==v?u[g]="n":n.test(b)&&(v=b,"r"==b&&(u[g]="R"))}for(var w=1,y=u[0];w<d-1;++w){var k=u[w];"+"==k&&"1"==y&&"1"==u[w+1]?u[w]="1":","!=k||y!=u[w+1]||"1"!=y&&"n"!=y||(u[w]=y),y=k}for(var x=0;x<d;++x){var C=u[x];if(","==C)u[x]="N";else if("%"==C){var S=void 0;for(S=x+1;S<d&&"%"==u[S];++S);for(var M=x&&"!"==u[x-1]||S<d&&"1"==u[S]?"1":"N",E=x;E<S;++E)u[E]=M;x=S-1}}for(var T=0,L=s;T<d;++T){var A=u[T];"L"==L&&"1"==A?u[T]="L":n.test(A)&&(L=A)}for(var _=0;_<d;++_)if(t.test(u[_])){var N=void 0;for(N=_+1;N<d&&t.test(u[N]);++N);for(var D="L"==(_?u[_-1]:s),O=D==("L"==(N<d?u[N]:s))?D?"L":"R":s,I=_;I<N;++I)u[I]=O;_=N-1}for(var z,F=[],R=0;R<d;)if(r.test(u[R])){var P=R;for(++R;R<d&&r.test(u[R]);++R);F.push(new o(0,P,R))}else{var B=R,j=F.length;for(++R;R<d&&"L"!=u[R];++R);for(var H=B;H<R;)if(i.test(u[H])){B<H&&F.splice(j,0,new o(1,B,H));var W=H;for(++H;H<R&&i.test(u[H]);++H);F.splice(j,0,new o(2,W,H)),B=H}else++H;B<R&&F.splice(j,0,new o(1,B,R))}return"ltr"==l&&(1==F[0].level&&(z=a.match(/^\s+/))&&(F[0].from=z[0].length,F.unshift(new o(0,0,z[0].length))),1==Q(F).level&&(z=a.match(/\s+$/))&&(Q(F).to-=z[0].length,F.push(new o(0,d-z[0].length,d)))),"rtl"==l?F.reverse():F}}();function pe(e,t){var n=e.order;return null==n&&(n=e.order=he(e.text,t)),n}var fe=[],me=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||fe).concat(n)}};function ge(e,t){return e._handlers&&e._handlers[t]||fe}function ve(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=G(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function be(e,t){var n=ge(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function we(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),be(e,n||t.type,e,t),Me(t)||t.codemirrorIgnore}function ye(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==G(n,t[r])&&n.push(t[r])}function ke(e,t){return ge(e,t).length>0}function xe(e){e.prototype.on=function(e,t){me(this,e,t)},e.prototype.off=function(e,t){ve(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Me(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ee(e){Ce(e),Se(e)}function Te(e){return e.target||e.srcElement}function Le(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),x&&e.ctrlKey&&1==t&&(t=3),t}var Ae,_e,Ne=function(){if(d&&u<9)return!1;var e=O("div");return"draggable"in e||"dragDrop"in e}();function De(e){if(null==Ae){var t=O("span","");D(e,O("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ae=t.offsetWidth<=1&&t.offsetHeight>2&&!(d&&u<8))}var n=Ae?O("span",""):O("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Oe(e){if(null!=_e)return _e;var t=D(e,document.createTextNode("AخA")),n=A(t,0,1).getBoundingClientRect(),r=A(t,1,2).getBoundingClientRect();return N(e),!(!n||n.left==n.right)&&(_e=r.right-n.right<3)}var Ie,ze=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Fe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re="oncopy"in(Ie=O("div"))||(Ie.setAttribute("oncopy","return;"),"function"==typeof Ie.oncopy),Pe=null;var Be={},je={};function He(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Be[e]=t}function We(e){if("string"==typeof e&&je.hasOwnProperty(e))e=je[e];else if(e&&"string"==typeof e.name&&je.hasOwnProperty(e.name)){var t=je[e.name];"string"==typeof t&&(t={name:t}),(e=te(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return We("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return We("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ue(e,t){t=We(t);var n=Be[t.name];if(!n)return Ue(e,"text/plain");var r=n(e,t);if(Ge.hasOwnProperty(t.name)){var i=Ge[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Ge={};function $e(e,t){H(t,Ge.hasOwnProperty(e)?Ge[e]:Ge[e]={})}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ve(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function qe(e,t,n){return!e.startState||e.startState(t,n)}var Ze=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Ye(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Qe(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Je(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function et(e){if(null==e.parent)return null;for(var t=e.parent,n=G(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function tt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a].height;if(t<l)break;t-=l}return n+a}function nt(e,t){return t>=e.first&&t<e.first+e.size}function rt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function it(e,t,n){if(void 0===n&&(n=null),!(this instanceof it))return new it(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ot(e,t){return e.line-t.line||e.ch-t.ch}function at(e,t){return e.sticky==t.sticky&&0==ot(e,t)}function lt(e){return it(e.line,e.ch)}function st(e,t){return ot(e,t)<0?t:e}function ct(e,t){return ot(e,t)<0?e:t}function dt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ut(e,t){if(t.line<e.first)return it(e.first,0);var n=e.first+e.size-1;return t.line>n?it(n,Xe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}(t,Xe(e,t.line).text.length)}function ht(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ut(e,t[r]);return n}Ze.prototype.eol=function(){return this.pos>=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ze.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ze.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ze.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ze.prototype.backUp=function(e){this.pos-=e},Ze.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=W(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.indentation=function(){return W(this.string,null,this.tabSize)-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ze.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ze.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},ft=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],o={};St(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,l=function(r){n.baseTokens=i;var l=e.state.overlays[r],s=1,c=0;n.state=!0,St(e,t.text,l.mode,n,(function(e,t){for(var n=s;c<e;){var r=i[s];r>e&&i.splice(s,1,e,i[s+1],r),s+=2,c=Math.min(e,r)}if(t)if(l.opaque)i.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function gt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=vt(e,et(t)),i=t.text.length>e.options.maxHighlightLength&&Ke(e.doc.mode,r.state),o=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ft(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=Xe(o,l-1),c=s.stateAfter;if(c&&(!n||l+(c instanceof pt?c.lookAhead:0)<=o.modeFrontier))return l;var d=W(s.text,null,e.options.tabSize);(null==i||r>d)&&(i=l-1,r=d)}return i}(e,t,n),a=o>r.first&&Xe(r,o-1).stateAfter,l=a?ft.fromSaved(r,a,o):new ft(r,qe(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?l.save():null,l.nextLine()})),n&&(r.modeFrontier=l.line),l}function bt(e,t,n,r){var i=e.doc.mode,o=new Ze(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&wt(i,n.state);!o.eol();)yt(i,o,n.state),o.start=o.pos}function wt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ve(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function yt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ve(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ft.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ft.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ft.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ft.fromSaved=function(e,t,n){return t instanceof pt?new ft(e,Ke(e.mode,t.state),n,t.lookAhead):new ft(e,Ke(e.mode,t),n)},ft.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var kt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function xt(e,t,n,r){var i,o,a=e.doc,l=a.mode,s=Xe(a,(t=ut(a,t)).line),c=vt(e,t.line,n),d=new Ze(s.text,e.options.tabSize,c);for(r&&(o=[]);(r||d.pos<t.ch)&&!d.eol();)d.start=d.pos,i=yt(l,d,c.state),r&&o.push(new kt(d,i,Ke(a.mode,c.state)));return r?o:new kt(d,i,c.state)}function Ct(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function St(e,t,n,r,i,o,a){var l=n.flattenSpans;null==l&&(l=e.options.flattenSpans);var s,c=0,d=null,u=new Ze(t,e.options.tabSize,r),h=e.options.addModeClass&&[null];for(""==t&&Ct(wt(n,r.state),o);!u.eol();){if(u.pos>e.options.maxHighlightLength?(l=!1,a&&bt(e,t,r,u.pos),u.pos=t.length,s=null):s=Ct(yt(n,u,r.state,h),o),h){var p=h[0].name;p&&(s="m-"+(s?p+" "+s:p))}if(!l||d!=s){for(;c<u.start;)i(c=Math.min(u.start,c+5e3),d);d=s}u.start=u.pos}for(;c<u.pos;){var f=Math.min(u.pos,c+5e3);i(f,d),c=f}}var Mt=!1,Et=!1;function Tt(e,t,n){this.marker=e,this.from=t,this.to=n}function Lt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function At(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function _t(e,t){if(t.full)return null;var n=nt(e,t.from.line)&&Xe(e,t.from.line).markedSpans,r=nt(e,t.to.line)&&Xe(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ot(t.from,t.to),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Tt(a,o.from,l?null:o.to))}}return r}(n,i,a),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Tt(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),c=1==t.text.length,d=Q(t.text).length+(c?i:0);if(l)for(var u=0;u<l.length;++u){var h=l[u];if(null==h.to){var p=Lt(s,h.marker);p?c&&(h.to=null==p.to?null:p.to+d):h.to=i}}if(s)for(var f=0;f<s.length;++f){var m=s[f];if(null!=m.to&&(m.to+=d),null==m.from)Lt(l,m.marker)||(m.from=d,c&&(l||(l=[])).push(m));else m.from+=d,c&&(l||(l=[])).push(m)}l&&(l=Nt(l)),s&&s!=l&&(s=Nt(s));var g=[l];if(!c){var v,b=t.text.length-2;if(b>0&&l)for(var w=0;w<l.length;++w)null==l[w].to&&(v||(v=[])).push(new Tt(l[w].marker,null,null));for(var y=0;y<b;++y)g.push(v);g.push(s)}return g}function Nt(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Dt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ot(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function It(e){return e.inclusiveLeft?-1:0}function zt(e){return e.inclusiveRight?1:0}function Ft(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ot(r.from,i.from)||It(e)-It(t);if(o)return-o;var a=ot(r.to,i.to)||zt(e)-zt(t);return a||t.id-e.id}function Rt(e,t){var n,r=Et&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Ft(n,i.marker)<0)&&(n=i.marker);return n}function Pt(e){return Rt(e,!0)}function Bt(e){return Rt(e,!1)}function jt(e,t){var n,r=Et&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Ft(n,o.marker)<0)&&(n=o.marker)}return n}function Ht(e,t,n,r,i){var o=Xe(e,t),a=Et&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var s=a[l];if(s.marker.collapsed){var c=s.marker.find(0),d=ot(c.from,n)||It(s.marker)-It(i),u=ot(c.to,r)||zt(s.marker)-zt(i);if(!(d>=0&&u<=0||d<=0&&u>=0)&&(d<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ot(c.to,n)>=0:ot(c.to,n)>0)||d>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ot(c.from,r)<=0:ot(c.from,r)<0)))return!0}}}function Wt(e){for(var t;t=Pt(e);)e=t.find(-1,!0).line;return e}function Ut(e,t){var n=Xe(e,t),r=Wt(n);return n==r?t:et(r)}function Gt(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!$t(e,r))return t;for(;n=Bt(r);)r=n.find(1,!0).line;return et(r)+1}function $t(e,t){var n=Et&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Kt(e,t,r))return!0}}function Kt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Kt(e,r.line,Lt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&Kt(e,t,i))return!0}function Vt(e){for(var t=0,n=(e=Wt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==n)break;t+=l.height}return t}function qt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Pt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Bt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Zt(e){var t=e.display,n=e.doc;t.maxLine=Xe(n,n.first),t.maxLineLength=qt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=qt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Xt=function(e,t,n){this.text=e,Ot(this,t),this.height=n?n(this):1};function Yt(e){e.parent=null,Dt(e)}Xt.prototype.lineNo=function(){return et(this)},xe(Xt);var Qt={},Jt={};function en(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Jt:Qt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function tn(e,t){var n=I("span",null,null,h?"padding-right: .1px":null),r={pre:I("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=rn,Oe(e.display.measure)&&(a=pe(o,e.doc.direction))&&(r.addToken=on(r.addToken,a)),r.map=[],ln(o,r,gt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=P(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=P(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(De(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(h){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=P(r.pre.className,r.textClass||"")),r}function nn(e){var t=O("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function rn(e,t,n,r,i,o,a){if(t){var l,s=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,c=e.cm.state.specialChars,h=!1;if(c.test(t)){l=document.createDocumentFragment();for(var p=0;;){c.lastIndex=p;var f=c.exec(t),m=f?f.index-p:t.length-p;if(m){var g=document.createTextNode(s.slice(p,p+m));d&&u<9?l.appendChild(O("span",[g])):l.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!f)break;p+=m+1;var v=void 0;if("\t"==f[0]){var b=e.cm.options.tabSize,w=b-e.col%b;(v=l.appendChild(O("span",Y(w),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=w}else"\r"==f[0]||"\n"==f[0]?((v=l.appendChild(O("span","\r"==f[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",f[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(f[0])).setAttribute("cm-text",f[0]),d&&u<9?l.appendChild(O("span",[v])):l.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,l=document.createTextNode(s),e.map.push(e.pos,e.pos+t.length,l),d&&u<9&&(h=!0),e.pos+=t.length;if(e.trailingSpace=32==s.charCodeAt(t.length-1),n||r||i||h||o){var y=n||"";r&&(y+=r),i&&(y+=i);var k=O("span",[l],y,o);if(a)for(var x in a)a.hasOwnProperty(x)&&"style"!=x&&"class"!=x&&k.setAttribute(x,a[x]);return e.content.appendChild(k)}e.content.appendChild(l)}}function on(e,t){return function(n,r,i,o,a,l,s){i=i?i+" cm-force-border":"cm-force-border";for(var c=n.pos,d=c+r.length;;){for(var u=void 0,h=0;h<t.length&&!((u=t[h]).to>c&&u.from<=c);h++);if(u.to>=d)return e(n,r,i,o,a,l,s);e(n,r.slice(0,u.to-c),i,o,null,l,s),o=null,r=r.slice(u.to-c),c=u.to}}}function an(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ln(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,l,s,c,d,u,h,p=i.length,f=0,m=1,g="",v=0;;){if(v==f){s=c=d=l="",h=null,u=null,v=1/0;for(var b=[],w=void 0,y=0;y<r.length;++y){var k=r[y],x=k.marker;if("bookmark"==x.type&&k.from==f&&x.widgetNode)b.push(x);else if(k.from<=f&&(null==k.to||k.to>f||x.collapsed&&k.to==f&&k.from==f)){if(null!=k.to&&k.to!=f&&v>k.to&&(v=k.to,c=""),x.className&&(s+=" "+x.className),x.css&&(l=(l?l+";":"")+x.css),x.startStyle&&k.from==f&&(d+=" "+x.startStyle),x.endStyle&&k.to==v&&(w||(w=[])).push(x.endStyle,k.to),x.title&&((h||(h={})).title=x.title),x.attributes)for(var C in x.attributes)(h||(h={}))[C]=x.attributes[C];x.collapsed&&(!u||Ft(u.marker,x)<0)&&(u=k)}else k.from>f&&v>k.from&&(v=k.from)}if(w)for(var S=0;S<w.length;S+=2)w[S+1]==v&&(c+=" "+w[S]);if(!u||u.from==f)for(var M=0;M<b.length;++M)an(t,0,b[M]);if(u&&(u.from||0)==f){if(an(t,(null==u.to?p+1:u.to)-f,u.marker,null==u.from),null==u.to)return;u.to==f&&(u=!1)}}if(f>=p)break;for(var E=Math.min(p,v);;){if(g){var T=f+g.length;if(!u){var L=T>E?g.slice(0,E-f):g;t.addToken(t,L,a?a+s:s,d,f+L.length==v?c:"",l,h)}if(T>=E){g=g.slice(E-f),f=E;break}f=T,d=""}g=i.slice(o,o=n[m++]),a=en(n[m++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,i.slice(o,o=n[A]),en(n[A+1],t.cm.options))}function sn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Bt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?et(Q(this.rest))-n+1:1,this.node=this.text=null,this.hidden=$t(e,t)}function cn(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new sn(e.doc,Xe(e.doc,o),o);r=o+a.size,i.push(a)}return i}var dn=null;var un=null;function hn(e,t){var n=ge(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);dn?r=dn.delayedCallbacks:un?r=un:(r=un=[],setTimeout(pn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function pn(){var e=un;un=null;for(var t=0;t<e.length;++t)e[t]()}function fn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?vn(e,t):"gutter"==o?wn(e,t,n,r):"class"==o?bn(e,t):"widget"==o&&yn(e,t,r)}t.changes=null}function mn(e){return e.node==e.text&&(e.node=O("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),d&&u<8&&(e.node.style.zIndex=2)),e.node}function gn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):tn(e,t)}function vn(e,t){var n=t.text.className,r=gn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,bn(e,t)):n&&(t.text.className=n)}function bn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=mn(t);t.background=r.insertBefore(O("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?mn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function wn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=mn(t);t.gutterBackground=O("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=mn(t),l=t.gutter=O("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),a.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=l.appendChild(O("div",rt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var c=e.display.gutterSpecs[s].className,d=o.hasOwnProperty(c)&&o[c];d&&l.appendChild(O("div",[d],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function yn(e,t,n){t.alignable&&(t.alignable=null);for(var r=t.node.firstChild,i=void 0;r;r=i)i=r.nextSibling,"CodeMirror-linewidget"==r.className&&t.node.removeChild(r);xn(e,t,n)}function kn(e,t,n,r){var i=gn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),bn(e,t),wn(e,t,n,r),xn(e,t,r),t.node}function xn(e,t,n){if(Cn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Cn(e,t.rest[r],t,n,!1)}function Cn(e,t,n,r,i){if(t.widgets)for(var o=mn(n),a=0,l=t.widgets;a<l.length;++a){var s=l[a],c=O("div",[s.node],"CodeMirror-linewidget");s.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Sn(s,c,n,r),e.display.input.setUneditable(c),i&&s.above?o.insertBefore(c,n.gutter||n.text):o.appendChild(c),hn(s,"redraw")}}function Sn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Mn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!z(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),D(t.display.measure,O("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function En(e,t){for(var n=Te(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Tn(e){return e.lineSpace.offsetTop}function Ln(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function An(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=D(e.measure,O("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function _n(e){return 30-e.display.nativeBarWidth}function Nn(e){return e.display.scroller.clientWidth-_n(e)-e.display.barWidth}function Dn(e){return e.display.scroller.clientHeight-_n(e)-e.display.barHeight}function On(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(et(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function In(e,t,n,r){return Rn(e,Fn(e,t),n,r)}function zn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[fr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Fn(e,t){var n=et(t),r=zn(e,n);r&&!r.text?r=null:r&&r.changes&&(fn(e,r,n,cr(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=et(t=Wt(t)),r=e.display.externalMeasured=new sn(e.doc,t,n);r.lineN=n;var i=r.built=tn(e,r);return r.text=i.pre,D(e.display.lineMeasure,i.pre),r}(e,t));var i=On(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Rn(e,t,n,r,i){t.before&&(n=-1);var o,a=n+(r||"");return t.cache.hasOwnProperty(a)?o=t.cache[a]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(!function(e,t,n){var r=e.options.lineWrapping,i=r&&Nn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var s=a[l],c=a[l+1];Math.abs(s.bottom-c.bottom)>2&&o.push((s.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=jn(t.map,n,r),a=o.node,l=o.start,s=o.end,c=o.collapse;if(3==a.nodeType){for(var h=0;h<4;h++){for(;l&&le(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+s<o.coverEnd&&le(t.line.text.charAt(o.coverStart+s));)++s;if((i=d&&u<9&&0==l&&s==o.coverEnd-o.coverStart?a.parentNode.getBoundingClientRect():Hn(A(a,l,s).getClientRects(),r)).left||i.right||0==l)break;s=l,l-=1,c="right"}d&&u<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Pe)return Pe;var t=D(e,O("span","x")),n=t.getBoundingClientRect(),r=A(t,0,1).getBoundingClientRect();return Pe=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;l>0&&(c=r="right"),i=e.options.lineWrapping&&(p=a.getClientRects()).length>1?p["right"==r?p.length-1:0]:a.getBoundingClientRect()}if(d&&u<9&&!l&&(!i||!i.left&&!i.right)){var f=a.parentNode.getClientRects()[0];i=f?{left:f.left,right:f.left+sr(e.display),top:f.top,bottom:f.bottom}:Bn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,b=t.view.measure.heights,w=0;w<b.length-1&&!(v<b[w]);w++);var y=w?b[w-1]:0,k=b[w],x={left:("right"==c?i.right:i.left)-t.rect.left,right:("left"==c?i.left:i.right)-t.rect.left,top:y,bottom:k};i.left||i.right||(x.bogus=!0);e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=g);return x}(e,t,n,r)).bogus||(t.cache[a]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Pn,Bn={left:0,right:0,top:0,bottom:0};function jn(e,t,n){for(var r,i,o,a,l,s,c=0;c<e.length;c+=3)if(l=e[c],s=e[c+1],t<l?(i=0,o=1,a="left"):t<s?o=(i=t-l)+1:(c==e.length-3||t==s&&e[c+3]>t)&&(i=(o=s-l)-1,t>=s&&(a="right")),null!=i){if(r=e[c+2],l==s&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&i==s-l)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:l,coverEnd:s}}function Hn(e,t){var n=Bn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Wn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Un(e){e.display.externalMeasure=null,N(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Wn(e.display.view[t])}function Gn(e){Un(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function $n(){return f&&y?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Kn(){return f&&y?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Vn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Mn(e.widgets[n]));return t}function qn(e,t,n,r,i){if(!i){var o=Vn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Vt(t);if("local"==r?a+=Tn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+("window"==r?0:Kn());var s=l.left+("window"==r?0:$n());n.left+=s,n.right+=s}return n.top+=a,n.bottom+=a,n}function Zn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=$n(),i-=Kn();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Xn(e,t,n,r,i){return r||(r=Xe(e.doc,t.line)),qn(e,r,In(e,r,t.ch,i),n)}function Yn(e,t,n,r,i,o){function a(t,a){var l=Rn(e,i,t,a?"right":"left",o);return a?l.left=l.right:l.right=l.left,qn(e,r,l,n)}r=r||Xe(e.doc,t.line),i||(i=Fn(e,r));var l=pe(r,e.doc.direction),s=t.ch,c=t.sticky;if(s>=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!l)return a("before"==c?s-1:s,"before"==c);function d(e,t,n){return a(n?e-1:e,1==l[t].level!=n)}var u=ue(l,s,c),h=de,p=d(s,u,"before"==c);return null!=h&&(p.other=d(s,h,"before"!=c)),p}function Qn(e,t){var n=0;t=ut(e.doc,t),e.options.lineWrapping||(n=sr(e.display)*t.ch);var r=Xe(e.doc,t.line),i=Vt(r)+Tn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Jn(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Jn(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return Jn(r.first+r.size-1,Xe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Xe(r,i);;){var l=ir(e,a,i,t,n),s=jt(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var c=s.find(1);if(c.line==i)return c;a=Xe(r,i=c.line)}}function tr(e,t,n,r){r-=Vn(t);var i=t.text.length,o=ce((function(t){return Rn(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=ce((function(t){return Rn(e,n,t).top>r}),o,i)}}function nr(e,t,n,r){return n||(n=Fn(e,t)),tr(e,t,n,qn(e,t,Rn(e,n,r),"line").top)}function rr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function ir(e,t,n,r,i){i-=Vt(t);var o=Fn(e,t),a=Vn(t),l=0,s=t.text.length,c=!0,d=pe(t,e.doc.direction);if(d){var u=(e.options.lineWrapping?ar:or)(e,t,n,o,d,r,i);l=(c=1!=u.level)?u.from:u.to-1,s=c?u.to:u.from-1}var h,p,f=null,m=null,g=ce((function(t){var n=Rn(e,o,t);return n.top+=a,n.bottom+=a,!!rr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(f=t,m=n),!0)}),l,s),v=!1;if(m){var b=r-m.left<m.right-r,w=b==c;g=f+(w?0:1),p=w?"after":"before",h=b?m.left:m.right}else{c||g!=s&&g!=l||g++,p=0==g?"after":g==t.text.length?"before":Rn(e,o,g-(c?1:0)).bottom+a<=i==c?"after":"before";var y=Yn(e,it(n,g,p),"line",t,o);h=y.left,v=i<y.top?-1:i>=y.bottom?1:0}return Jn(n,g=se(t.text,g,1),p,v,r-h)}function or(e,t,n,r,i,o,a){var l=ce((function(l){var s=i[l],c=1!=s.level;return rr(Yn(e,it(n,c?s.to:s.from,c?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),s=i[l];if(l>0){var c=1!=s.level,d=Yn(e,it(n,c?s.from:s.to,c?"after":"before"),"line",t,r);rr(d,o,a,!0)&&d.top>a&&(s=i[l-1])}return s}function ar(e,t,n,r,i,o,a){var l=tr(e,t,r,a),s=l.begin,c=l.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var d=null,u=null,h=0;h<i.length;h++){var p=i[h];if(!(p.from>=c||p.to<=s)){var f=Rn(e,r,1!=p.level?Math.min(c,p.to)-1:Math.max(s,p.from)).right,m=f<o?o-f+1e9:f-o;(!d||u>m)&&(d=p,u=m)}}return d||(d=i[i.length-1]),d.from<s&&(d={from:s,to:d.to,level:d.level}),d.to>c&&(d={from:d.from,to:c,level:d.level}),d}function lr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Pn){Pn=O("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Pn.appendChild(document.createTextNode("x")),Pn.appendChild(O("br"));Pn.appendChild(document.createTextNode("x"))}D(e.measure,Pn);var n=Pn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function sr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=O("span","xxxxxxxxxx"),n=O("pre",[t],"CodeMirror-line-like");D(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function cr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;n[l]=o.offsetLeft+o.clientLeft+i,r[l]=o.clientWidth}return{fixedPos:dr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function dr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function ur(e){var t=lr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/sr(e.display)-3);return function(i){if($t(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function hr(e){var t=e.doc,n=ur(e);t.iter((function(e){var t=n(e);t!=e.height&&Je(e,t)}))}function pr(e,t,n,r){var i=e.display;if(!n&&"true"==Te(t).getAttribute("cm-not-content"))return null;var o,a,l=i.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch(t){return null}var s,c=er(e,o,a);if(r&&1==c.xRel&&(s=Xe(e.doc,c.line).text).length==c.ch){var d=W(s,s.length,e.options.tabSize)-s.length;c=it(c.line,Math.max(0,Math.round((o-An(e.display).left)/sr(e.display))-d))}return c}function fr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function mr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Et&&Ut(e.doc,t)<i.viewTo&&vr(e);else if(n<=i.viewFrom)Et&&Gt(e.doc,n+r)>i.viewFrom?vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)vr(e);else if(t<=i.viewFrom){var o=br(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):vr(e)}else if(n>=i.viewTo){var a=br(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):vr(e)}else{var l=br(e,t,t,-1),s=br(e,n,n+r,1);l&&s?(i.view=i.view.slice(0,l.index).concat(cn(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):vr(e)}var c=i.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(i.externalMeasured=null))}function gr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[fr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==G(a,n)&&a.push(n)}}}function vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function br(e,t,n,r){var i,o=fr(e,t),a=e.display.view;if(!Et||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,s=0;s<o;s++)l+=a[s].size;if(l!=t){if(r>0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;Ut(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function wr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function yr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function kr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var l=n.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var s=l.empty();(s||e.options.showCursorWhenSelecting)&&xr(e,l.head,i),s||Sr(e,l,o)}}return r}function xr(e,t,n){var r=Yn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(O("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(O("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Cr(e,t){return e.top-t.top||e.left-t.left}function Sr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=An(e.display),l=a.left,s=Math.max(r.sizerWidth,Nn(e)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function d(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(O("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?s-e:n)+"px;\n height: "+(r-t)+"px"))}function u(t,n,r){var o,a,u=Xe(i,t),h=u.text.length;function p(n,r){return Xn(e,it(t,n),"div",u,r)}function f(t,n,r){var i=nr(e,u,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(u.text.charAt(i.end-1))?2:1),o)[o]}var m=pe(u,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?h:r,(function(e,t,i,u){var g="ltr"==i,v=p(e,g?"left":"right"),b=p(t-1,g?"right":"left"),w=null==n&&0==e,y=null==r&&t==h,k=0==u,x=!m||u==m.length-1;if(b.top-v.top<=3){var C=(c?y:w)&&x,S=(c?w:y)&&k?l:(g?v:b).left,M=C?s:(g?b:v).right;d(S,v.top,M-S,v.bottom)}else{var E,T,L,A;g?(E=c&&w&&k?l:v.left,T=c?s:f(e,i,"before"),L=c?l:f(t,i,"after"),A=c&&y&&x?s:b.right):(E=c?f(e,i,"before"):l,T=!c&&w&&k?s:v.right,L=!c&&y&&x?l:b.left,A=c?f(t,i,"after"):s),d(E,v.top,T-E,v.bottom),v.bottom<b.top&&d(l,v.bottom,null,b.top),d(L,b.top,A-L,b.bottom)}(!o||Cr(v,o)<0)&&(o=v),Cr(b,o)<0&&(o=b),(!a||Cr(v,a)<0)&&(a=v),Cr(b,a)<0&&(a=b)})),{start:o,end:a}}var h=t.from(),p=t.to();if(h.line==p.line)u(h.line,h.ch,p.ch);else{var f=Xe(i,h.line),m=Xe(i,p.line),g=Wt(f)==Wt(m),v=u(h.line,h.ch,g?f.text.length+1:null).end,b=u(p.line,g?0:null,p.ch).start;g&&(v.top<b.top-2?(d(v.right,v.top,null,v.bottom),d(l,b.top,b.left,b.bottom)):d(v.right,v.top,b.left-v.right,v.bottom)),v.bottom<b.top&&d(l,v.bottom,null,b.top)}n.appendChild(o)}function Mr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Er(e){e.state.focused||(e.display.input.focus(),Lr(e))}function Tr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Ar(e))}),100)}function Lr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,R(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),h&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Mr(e))}function Ar(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function _r(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,a=void 0,l=0;if(!i.hidden){if(d&&u<8){var s=i.node.offsetTop+i.node.offsetHeight;a=s-n,n=s}else{var c=i.node.getBoundingClientRect();a=c.bottom-c.top,!o&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-c.left-1)}var h=i.line.height-a;if((h>.005||h<-.005)&&(Je(i.line,a),Nr(i.line),i.rest))for(var p=0;p<i.rest.length;p++)Nr(i.rest[p]);if(l>e.display.sizerWidth){var f=Math.ceil(l/sr(e.display));f>e.display.maxLineLength&&(e.display.maxLineLength=f,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Nr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Dr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Tn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=tt(t,r),a=tt(t,i);if(n&&n.ensure){var l=n.ensure.from.line,s=n.ensure.to.line;l<o?(o=l,a=tt(t,Vt(Xe(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=tt(t,Vt(Xe(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function Or(e,t){var n=e.display,r=lr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Dn(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+Ln(n),s=t.top<r,c=t.bottom>l-r;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var d=Math.min(t.top,(c?l:t.bottom)-o);d!=i&&(a.scrollTop=d)}var u=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,h=Nn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),p=t.right-t.left>h;return p&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.left<u?a.scrollLeft=Math.max(0,t.left-(p?0:10)):t.right>h+u-3&&(a.scrollLeft=t.right+(p?0:10)-h),a}function Ir(e,t){null!=t&&(Rr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function zr(e){Rr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Fr(e,t,n){null==t&&null==n||Rr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Rr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Pr(e,Qn(e,t.from),Qn(e,t.to),t.margin))}function Pr(e,t,n,r){var i=Or(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Fr(e,i.scrollLeft,i.scrollTop)}function Br(e,t){Math.abs(e.doc.scrollTop-t)<2||(a||hi(e,{top:t}),jr(e,t,!0),a&&hi(e),li(e,100))}function jr(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Hr(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,mi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Wr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ln(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+_n(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ur=function(e,t,n){this.cm=n;var r=this.vert=O("div",[O("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=O("div",[O("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),me(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),me(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,d&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ur.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Ur.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ur.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ur.prototype.zeroWidthHack=function(){var e=x&&!v?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new U,this.disableVert=new U},Ur.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Ur.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Gr=function(){};function $r(e,t){t||(t=Wr(e));var n=e.display.barWidth,r=e.display.barHeight;Kr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&_r(e),Kr(e,Wr(e)),n=e.display.barWidth,r=e.display.barHeight}function Kr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Gr.prototype.update=function(){return{bottom:0,right:0}},Gr.prototype.setScrollLeft=function(){},Gr.prototype.setScrollTop=function(){},Gr.prototype.clear=function(){};var Vr={native:Ur,null:Gr};function qr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Vr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),me(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Hr(e,t):Br(e,t)}),e),e.display.scrollbars.addClass&&R(e.display.wrapper,e.display.scrollbars.addClass)}var Zr=0;function Xr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Zr},t=e.curOp,dn?dn.ops.push(t):t.ownsGroup=dn={ops:[t],delayedCallbacks:[]}}function Yr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{dn=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Qr(t[n]);for(var r=0;r<t.length;r++)Jr(t[r]);for(var i=0;i<t.length;i++)ei(t[i]);for(var o=0;o<t.length;o++)ti(t[o]);for(var a=0;a<t.length;a++)ni(t[a])}(e)}))}function Qr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=_n(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=_n(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Zt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ci(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Jr(e){e.updatedDisplay=e.mustUpdate&&di(e.cm,e.update)}function ei(e){var t=e.cm,n=t.display;e.updatedDisplay&&_r(t),e.barMeasure=Wr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=In(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+_n(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Nn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ti(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Hr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==F();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&$r(t,e.barMeasure),e.updatedDisplay&&fi(t,e.barMeasure),e.selectionChanged&&Mr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Er(e.cm)}function ni(e){var t=e.cm,n=t.display,r=t.doc;(e.updatedDisplay&&ui(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&jr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Hr(t,e.scrollLeft,!0,!0),e.scrollToPos)&&function(e,t){if(!we(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!b){var o=O("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Tn(e.display))+"px;\n height: "+(t.bottom-t.top+_n(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?it(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=Yn(e,t),s=n&&n!=t?Yn(e,n):l,c=Or(e,i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r}),d=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=c.scrollTop&&(Br(e,c.scrollTop),Math.abs(e.doc.scrollTop-d)>1&&(a=!0)),null!=c.scrollLeft&&(Hr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(a=!0)),!a)break}return i}(t,ut(r,e.scrollToPos.from),ut(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||be(i[a],"hide");if(o)for(var l=0;l<o.length;++l)o[l].lines.length&&be(o[l],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&be(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ri(e,t){if(e.curOp)return t();Xr(e);try{return t()}finally{Yr(e)}}function ii(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Xr(e);try{return t.apply(e,arguments)}finally{Yr(e)}}}function oi(e){return function(){if(this.curOp)return e.apply(this,arguments);Xr(this);try{return e.apply(this,arguments)}finally{Yr(this)}}}function ai(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Xr(t);try{return e.apply(this,arguments)}finally{Yr(t)}}}function li(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,j(si,e))}function si(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?Ke(t.mode,r.state):null,s=mt(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var c=o.styleClasses,d=s.classes;d?o.styleClasses=d:c&&(o.styleClasses=null);for(var u=!a||a.length!=o.styles.length||c!=d&&(!c||!d||c.bgClass!=d.bgClass||c.textClass!=d.textClass),h=0;!u&&h<a.length;++h)u=a[h]!=o.styles[h];u&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return li(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ri(e,(function(){for(var t=0;t<i.length;t++)gr(e,i[t],"text")}))}}var ci=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Dr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Nn(e),this.force=n,this.dims=cr(e),this.events=[]};function di(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return vr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==wr(e))return!1;gi(e)&&(vr(e),t.dims=cr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Et&&(o=Ut(e.doc,o),a=Gt(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=cn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=cn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(fr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(cn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,fr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Vt(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=wr(e);if(!l&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=F();if(!t||!z(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&z(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return s>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function l(t){var n=t.nextSibling;return h&&x&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var s=r.view,c=r.viewFrom,d=0;d<s.length;d++){var u=s[d];if(u.hidden);else if(u.node&&u.node.parentNode==o){for(;a!=u.node;)a=l(a);var p=i&&null!=t&&t<=c&&u.lineNumber;u.changes&&(G(u.changes,"gutter")>-1&&(p=!1),fn(e,u,c,n)),p&&(N(u.lineNumber),u.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=u.node.nextSibling}else{var f=kn(e,u,c,n);o.insertBefore(f,a)}c+=u.size}for(;a;)a=l(a)}(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=F()&&(e.activeElt.focus(),e.anchorNode&&z(document.body,e.anchorNode)&&z(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(c),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,li(e,400)),n.updateLineNumbers=null,!0}function ui(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Nn(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ln(e.display)-Dn(e),n.top)}),t.visible=Dr(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&di(e,t);r=!1){_r(e);var i=Wr(e);yr(e),$r(e,i),fi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function hi(e,t){var n=new ci(e,t);if(di(e,n)){_r(e),ui(e,n);var r=Wr(e);yr(e),$r(e,r),fi(e,r),n.finish()}}function pi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function fi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+_n(e)+"px"}function mi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=dr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var l=n[a].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function gi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=rt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(O("div",[O("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",pi(e.display),!0}return!1}function vi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function bi(e){var t=e.gutters,n=e.gutterSpecs;N(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,l=t.appendChild(O("div",null,"CodeMirror-gutter "+o));a&&(l.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",pi(e)}function wi(e){bi(e.display),mr(e),mi(e)}function yi(e,t,n,r){var i=this;this.input=n,i.scrollbarFiller=O("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=O("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=I("div",null,"CodeMirror-code"),i.selectionDiv=O("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=O("div",null,"CodeMirror-cursors"),i.measure=O("div",null,"CodeMirror-measure"),i.lineMeasure=O("div",null,"CodeMirror-measure"),i.lineSpace=I("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=I("div",[i.lineSpace],"CodeMirror-lines");i.mover=O("div",[o],null,"position: relative"),i.sizer=O("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=O("div",null,null,"position: absolute; height: 30px; width: 1px;"),i.gutters=O("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=O("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=O("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),d&&u<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),h||a&&k||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=vi(r.gutters,r.lineNumbers),bi(i),n.init(i)}ci.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},ci.prototype.finish=function(){for(var e=0;e<this.events.length;e++)be.apply(null,this.events[e])};var ki=0,xi=null;function Ci(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Si(e){var t=Ci(e);return t.x*=xi,t.y*=xi,t}function Mi(e,t){var n=Ci(t),r=n.x,i=n.y,o=e.display,l=o.scroller,s=l.scrollWidth>l.clientWidth,c=l.scrollHeight>l.clientHeight;if(r&&s||i&&c){if(i&&x&&h)e:for(var d=t.target,u=o.view;d!=l;d=d.parentNode)for(var p=0;p<u.length;p++)if(u[p].node==d){e.display.currentWheelTarget=d;break e}if(r&&!a&&!m&&null!=xi)return i&&c&&Br(e,Math.max(0,l.scrollTop+i*xi)),Hr(e,Math.max(0,l.scrollLeft+r*xi)),(!i||i&&c)&&Ce(t),void(o.wheelStartX=null);if(i&&null!=xi){var f=i*xi,g=e.doc.scrollTop,v=g+o.wrapper.clientHeight;f<0?g=Math.max(0,g+f-50):v=Math.min(e.doc.height,v+f+50),hi(e,{top:g,bottom:v})}ki<20&&(null==o.wheelStartX?(o.wheelStartX=l.scrollLeft,o.wheelStartY=l.scrollTop,o.wheelDX=r,o.wheelDY=i,setTimeout((function(){if(null!=o.wheelStartX){var e=l.scrollLeft-o.wheelStartX,t=l.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(xi=(xi*ki+n)/(ki+1),++ki)}}),200)):(o.wheelDX+=r,o.wheelDY+=i))}}d?xi=-.53:a?xi=15:f?xi=-.7:g&&(xi=-1/3);var Ei=function(e,t){this.ranges=e,this.primIndex=t};Ei.prototype.primary=function(){return this.ranges[this.primIndex]},Ei.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!at(n.anchor,r.anchor)||!at(n.head,r.head))return!1}return!0},Ei.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ti(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new Ei(e,this.primIndex)},Ei.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Ei.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ot(t,r.from())>=0&&ot(e,r.to())<=0)return n}return-1};var Ti=function(e,t){this.anchor=e,this.head=t};function Li(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=G(t,i);for(var o=1;o<t.length;o++){var a=t[o],l=t[o-1],s=ot(l.to(),a.from());if(r&&!a.empty()?s>0:s>=0){var c=ct(l.from(),a.from()),d=st(l.to(),a.to()),u=l.empty()?a.from()==a.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new Ti(u?d:c,u?c:d))}}return new Ei(t,n)}function Ai(e,t){return new Ei([new Ti(e,t||e)],0)}function _i(e){return e.text?it(e.from.line+e.text.length-1,Q(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ni(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return _i(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=_i(t).ch-t.to.ch),it(n,r)}function Di(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new Ti(Ni(i.anchor,t),Ni(i.head,t)))}return Li(e.cm,n,e.sel.primIndex)}function Oi(e,t,n){return e.line==t.line?it(n.line,e.ch-t.ch+n.ch):it(n.line+(e.line-t.line),e.ch)}function Ii(e){e.doc.mode=Ue(e.options,e.doc.modeOption),zi(e)}function zi(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,li(e,100),e.state.modeGen++,e.curOp&&mr(e)}function Fi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Q(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ri(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Dt(e),Ot(e,n);var i=r?r(e):1;i!=e.height&&Je(e,i)}(e,n,i,r),hn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Xt(c[o],i(o),r));return n}var l=t.from,s=t.to,c=t.text,d=Xe(e,l.line),u=Xe(e,s.line),h=Q(c),p=i(c.length-1),f=s.line-l.line;if(t.full)e.insert(0,a(0,c.length)),e.remove(c.length,e.size-c.length);else if(Fi(e,t)){var m=a(0,c.length-1);o(u,u.text,p),f&&e.remove(l.line,f),m.length&&e.insert(l.line,m)}else if(d==u)if(1==c.length)o(d,d.text.slice(0,l.ch)+h+d.text.slice(s.ch),p);else{var g=a(1,c.length-1);g.push(new Xt(h+d.text.slice(s.ch),p,r)),o(d,d.text.slice(0,l.ch)+c[0],i(0)),e.insert(l.line+1,g)}else if(1==c.length)o(d,d.text.slice(0,l.ch)+c[0]+u.text.slice(s.ch),i(0)),e.remove(l.line+1,f);else{o(d,d.text.slice(0,l.ch)+c[0],i(0)),o(u,h+u.text.slice(s.ch),p);var v=a(1,c.length-1);f>1&&e.remove(l.line+1,f-1),e.insert(l.line+1,v)}hn(e,"change",e,t)}function Pi(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var l=r.linked[a];if(l.doc!=i){var s=o&&l.sharedHist;n&&!s||(t(l.doc,s),e(l.doc,r,s))}}}(e,null,!0)}function Bi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,hr(e),Ii(e),ji(e),e.options.lineWrapping||Zt(e),e.options.mode=t.modeOption,mr(e)}function ji(e){("rtl"==e.doc.direction?R:_)(e.display.lineDiv,"CodeMirror-rtl")}function Hi(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Wi(e,t){var n={from:lt(t.from),to:_i(t),text:Ye(e,t.from,t.to)};return Vi(e,n,t.from.line,t.to.line+1),Pi(e,(function(e){return Vi(e,n,t.from.line,t.to.line+1)}),!0),n}function Ui(e){for(;e.length;){if(!Q(e).ranges)break;e.pop()}}function Gi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,l=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ui(e.done),Q(e.done)):e.done.length&&!Q(e.done).ranges?Q(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Q(e.done)):void 0}(i,i.lastOp==r)))a=Q(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=_i(t):o.changes.push(Wi(e,t));else{var s=Q(i.done);for(s&&s.ranges||Ki(e.sel,i.done),o={changes:[Wi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=l,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function $i(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,Q(i.done),t))?i.done[i.done.length-1]=t:Ki(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ui(i.undone)}function Ki(e,t){var n=Q(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Vi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function qi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Zi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(qi(n[i]));return r}(e,t),r=_t(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var l=0;l<a.length;++l){for(var s=a[l],c=0;c<o.length;++c)if(o[c].marker==s.marker)continue e;o.push(s)}else a&&(n[i]=a)}return n}function Xi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Ei.prototype.deepCopy.call(o):o);else{var a=o.changes,l=[];r.push({changes:l});for(var s=0;s<a.length;++s){var c=a[s],d=void 0;if(l.push({from:c.from,to:c.to,text:c.text}),t)for(var u in c)(d=u.match(/^spans_(\d+)$/))&&G(t,Number(d[1]))>-1&&(Q(l)[u]=c[u],delete c[u])}}}return r}function Yi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new Ti(i,t)}return new Ti(n||t,t)}function Qi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),ro(e,new Ei([Yi(e.sel.primary(),t,n,i)],0),r)}function Ji(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Yi(e.sel.ranges[o],t[o],null,i);ro(e,Li(e.cm,r,e.sel.primIndex),n)}function eo(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,ro(e,Li(e.cm,i,e.sel.primIndex),r)}function to(e,t,n,r){ro(e,Ai(t,n),r)}function no(e,t,n){var r=e.history.done,i=Q(r);i&&i.ranges?(r[r.length-1]=t,io(e,t,n)):ro(e,t,n)}function ro(e,t,n){io(e,t,n),$i(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function io(e,t,n){(ke(e,"beforeSelectionChange")||e.cm&&ke(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new Ti(ut(e,t[n].anchor),ut(e,t[n].head))},origin:n&&n.origin};return be(e,"beforeSelectionChange",e,r),e.cm&&be(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Li(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(ot(t.primary().head,e.sel.primary().head)<0?-1:1);oo(e,lo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||zr(e.cm)}function oo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ye(e.cm)),hn(e,"cursorActivity",e))}function ao(e){oo(e,lo(e,e.sel,null,!1))}function lo(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=co(e,a.anchor,l&&l.anchor,n,r),c=co(e,a.head,l&&l.head,n,r);(i||s!=a.anchor||c!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Ti(s,c))}return i?Li(e.cm,i,t.primIndex):t}function so(e,t,n,r,i){var o=Xe(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],s=l.marker,c="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,d="selectRight"in s?!s.selectRight:s.inclusiveRight;if((null==l.from||(c?l.from<=t.ch:l.from<t.ch))&&(null==l.to||(d?l.to>=t.ch:l.to>t.ch))){if(i&&(be(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!s.atomic)continue;if(n){var u=s.find(r<0?1:-1),h=void 0;if((r<0?d:c)&&(u=uo(e,u,-r,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(h=ot(u,n))&&(r<0?h<0:h>0))return so(e,u,t,r,i)}var p=s.find(r<0?-1:1);return(r<0?c:d)&&(p=uo(e,p,r,p.line==t.line?o:null)),p?so(e,p,t,r,i):null}}return t}function co(e,t,n,r,i){var o=r||1,a=so(e,t,n,o,i)||!i&&so(e,t,n,o,!0)||so(e,t,n,-o,i)||!i&&so(e,t,n,-o,!0);return a||(e.cantEdit=!0,it(e.first,0))}function uo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ut(e,it(t.line-1)):null:n>0&&t.ch==(r||Xe(e,t.line)).text.length?t.line<e.first+e.size-1?it(t.line+1,0):null:new it(t.line,t.ch+n)}function ho(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),K)}function po(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=ut(e,t)),n&&(r.to=ut(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),be(e,"beforeChange",e,r),e.cm&&be(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function fo(e,t,n){if(e.cm){if(!e.cm.curOp)return ii(e.cm,fo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"))||(t=po(e,t,!0))){var r=Mt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=G(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],l=a.find(0),s=0;s<i.length;++s){var c=i[s];if(!(ot(c.to,l.from)<0||ot(c.from,l.to)>0)){var d=[s,1],u=ot(c.from,l.from),h=ot(c.to,l.to);(u<0||!a.inclusiveLeft&&!u)&&d.push({from:c.from,to:l.from}),(h>0||!a.inclusiveRight&&!h)&&d.push({from:l.to,to:c.to}),i.splice.apply(i,d),s+=d.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)mo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else mo(e,t)}}function mo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=Di(e,t);Gi(e,t,n,e.cm?e.cm.curOp.id:NaN),bo(e,t,n,_t(e,t));var r=[];Pi(e,(function(e,n){n||-1!=G(r,e.history)||(xo(e.history,t),r.push(e.history)),bo(e,t,null,_t(e,t))}))}}function go(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,l="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,c=0;c<l.length&&(i=l[c],n?!i.ranges||i.equals(e.sel):i.ranges);c++);if(c!=l.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=l.pop()).ranges){if(r)return void l.push(i);break}if(Ki(i,s),n&&!i.equals(e.sel))return void ro(e,i,{clearRedo:!1});a=i}var d=[];Ki(a,s),s.push({changes:d,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var u=ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"),h=function(n){var r=i.changes[n];if(r.origin=t,u&&!po(e,r,!1))return l.length=0,{};d.push(Wi(e,r));var o=n?Di(e,r):Q(l);bo(e,r,o,Zi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:_i(r)});var a=[];Pi(e,(function(e,t){t||-1!=G(a,e.history)||(xo(e.history,r),a.push(e.history)),bo(e,r,null,Zi(e,r))}))},p=i.changes.length-1;p>=0;--p){var f=h(p);if(f)return f.v}}}}function vo(e,t){if(0!=t&&(e.first+=t,e.sel=new Ei(J(e.sel.ranges,(function(e){return new Ti(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){mr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)gr(e.cm,r,"gutter")}}function bo(e,t,n,r){if(e.cm&&!e.cm.curOp)return ii(e.cm,bo)(e,t,n,r);if(t.to.line<e.first)vo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);vo(e,i),t={from:it(e.first,0),to:it(t.to.line+i,t.to.ch),text:[Q(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:it(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ye(e,t.from,t.to),n||(n=Di(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=et(Wt(Xe(r,o.line))),r.iter(s,a.line+1,(function(e){if(e==i.maxLine)return l=!0,!0})));r.sel.contains(t.from,t.to)>-1&&ye(e);Ri(r,t,n,ur(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,(function(e){var t=qt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1)})),l&&(e.curOp.updateMaxLine=!0));(function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Xe(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}})(r,o.line),li(e,400);var c=t.text.length-(a.line-o.line)-1;t.full?mr(e):o.line!=a.line||1!=t.text.length||Fi(e.doc,t)?mr(e,o.line,a.line+1,c):gr(e,o.line,"text");var d=ke(e,"changes"),u=ke(e,"change");if(u||d){var h={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};u&&hn(e,"change",e,h),d&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}(e.cm,t,r):Ri(e,t,r),io(e,n,K),e.cantEdit&&co(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function wo(e,t,n,r,i){var o;r||(r=n),ot(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),fo(e,{from:n,to:r,text:t,origin:i})}function yo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function ko(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var l=0;l<o.ranges.length;l++)yo(o.ranges[l].anchor,t,n,r),yo(o.ranges[l].head,t,n,r)}else{for(var s=0;s<o.changes.length;++s){var c=o.changes[s];if(n<c.from.line)c.from=it(c.from.line+r,c.from.ch),c.to=it(c.to.line+r,c.to.ch);else if(t<=c.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function xo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;ko(e.done,n,r,i),ko(e.undone,n,r,i)}function Co(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Xe(e,dt(e,t)):i=et(t),null==i?null:(r(o,i)&&e.cm&&gr(e.cm,i,n),o)}function So(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function Mo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}Ti.prototype.from=function(){return ct(this.anchor,this.head)},Ti.prototype.to=function(){return st(this.anchor,this.head)},Ti.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},So.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Yt(i),hn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Mo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){var n=this;this.size-=t;for(var r=0;r<this.children.length;++r){var i=n.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e),l=i.height;if(i.removeInner(e,a),n.height-=l-i.height,o==a&&(n.children.splice(r--,1),i.parent=null),0==(t-=a))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof So))){var s=[];this.collapse(s),this.children=[new So(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){var r=this;this.size+=t.length,this.height+=n;for(var i=0;i<this.children.length;++i){var o=r.children[i],a=o.chunkSize();if(e<=a){if(o.insertInner(e,t,n),o.lines&&o.lines.length>50){for(var l=o.lines.length%25+25,s=l;s<o.lines.length;){var c=new So(o.lines.slice(s,s+=25));o.height-=c.height,r.children.splice(++i,0,c),c.parent=r}o.lines=o.lines.slice(0,l),r.maybeSpill()}break}e-=a}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Mo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=G(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new Mo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var Eo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function To(e,t,n){Vt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ir(e,n)}Eo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=et(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Mn(this);Je(n,Math.max(0,n.height-o)),e&&(ri(e,(function(){To(e,n,-o),gr(e,r,"widget")})),hn(e,"lineWidgetCleared",e,this,r))}},Eo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Mn(this)-t;i&&($t(this.doc,r)||Je(r,r.height+i),n&&ri(n,(function(){n.curOp.forceUpdate=!0,To(n,r,i),hn(n,"lineWidgetChanged",n,e,et(r))})))},xe(Eo);var Lo=0,Ao=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Lo};function _o(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=H(r)).shared=!1;var o=[_o(e,t,n,r,i)],a=o[0],l=r.widgetNode;return Pi(e,(function(e){l&&(r.widgetNode=l.cloneNode(!0)),o.push(_o(e,ut(e,t),ut(e,n),r,i));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;a=Q(o)})),new No(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ii(e.cm,_o)(e,t,n,r,i);var o=new Ao(e,i),a=ot(t,n);if(r&&H(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=I("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ht(e,t.line,t,n,o)||t.line!=n.line&&Ht(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Et=!0}o.addToHistory&&Gi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,s=t.line,c=e.cm;if(e.iter(s,n.line+1,(function(e){c&&o.collapsed&&!c.options.lineWrapping&&Wt(e)==c.display.maxLine&&(l=!0),o.collapsed&&s!=t.line&&Je(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Tt(o,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){$t(e,t)&&Je(t,0)})),o.clearOnEnter&&me(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Mt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Lo,o.atomic=!0),c){if(l&&(c.curOp.updateMaxLine=!0),o.collapsed)mr(c,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var d=t.line;d<=n.line;d++)gr(c,d,"text");o.atomic&&ao(c.doc),hn(c,"markerAdded",c,o)}return o}Ao.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&Xr(t),ke(this,"clear")){var r=this.find();r&&hn(this,"clear",r.from,r.to)}for(var i=null,o=null,a=0;a<this.lines.length;++a){var l=e.lines[a],s=Lt(l.markedSpans,e);t&&!e.collapsed?gr(t,et(l),"text"):t&&(null!=s.to&&(o=et(l)),null!=s.from&&(i=et(l))),l.markedSpans=At(l.markedSpans,s),null==s.from&&e.collapsed&&!$t(e.doc,l)&&t&&Je(l,lr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var d=Wt(e.lines[c]),u=qt(d);u>t.display.maxLineLength&&(t.display.maxLine=d,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&mr(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ao(t.doc)),t&&hn(t,"markerCleared",t,this,i,o),n&&Yr(t),this.parent&&this.parent.clear()}},Ao.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Lt(o.markedSpans,this);if(null!=a.from&&(n=it(t?o:et(o),a.from),-1==e))return n;if(null!=a.to&&(r=it(t?o:et(o),a.to),1==e))return r}return n&&{from:n,to:r}},Ao.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&ri(r,(function(){var i=t.line,o=et(t.line),a=zn(r,o);if(a&&(Wn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!$t(n.doc,i)&&null!=n.height){var l=n.height;n.height=null;var s=Mn(n)-l;s&&Je(i,i.height+s)}hn(r,"markerChanged",r,e)}))},Ao.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=G(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Ao.prototype.detachLine=function(e){if(this.lines.splice(G(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},xe(Ao);var No=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Do(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),(function(e){return e.parent}))}function Oo(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Pi(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==G(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}No.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();hn(this,"clear")}},No.prototype.find=function(e,t){return this.primary.find(e,t)},xe(No);var Io=0,zo=function e(t,n,r,i,o){if(!(this instanceof e))return new e(t,n,r,i,o);null==r&&(r=0),Mo.call(this,[new So([new Xt("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var a=it(r,0);this.sel=Ai(a),this.history=new Hi(null),this.id=++Io,this.modeOption=n,this.lineSep=i,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Ri(this,{from:a,to:a,text:t}),ro(this,Ai(a),K)};(zo.prototype=te(Mo.prototype,{constructor:zo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Qe(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ai((function(e){var t=it(this.first,0),n=this.first+this.size-1;fo(this,{from:t,to:it(n,Xe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Fr(this.cm,0,0),ro(this,Ai(t),K)})),replaceRange:function(e,t,n,r){wo(this,e,t=ut(this,t),n=n?ut(this,n):t,r)},getRange:function(e,t,n){var r=Ye(this,ut(this,e),ut(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(nt(this,e))return Xe(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Xe(this,e)),Wt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ut(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ai((function(e,t,n){to(this,ut(this,"number"==typeof e?it(e,t||0):e),null,n)})),setSelection:ai((function(e,t,n){to(this,ut(this,e),ut(this,t||e),n)})),extendSelection:ai((function(e,t,n){Qi(this,ut(this,e),t&&ut(this,t),n)})),extendSelections:ai((function(e,t){Ji(this,ht(this,e),t)})),extendSelectionsBy:ai((function(e,t){Ji(this,ht(this,J(this.sel.ranges,e)),t)})),setSelections:ai((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new Ti(ut(this,e[i].anchor),ut(this,e[i].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),ro(this,Li(this.cm,r,t),n)}})),addSelection:ai((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Ti(ut(this,e),ut(this,t||e))),ro(this,Li(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Ye(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Ye(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ai((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var l=t&&"end"!=t&&function(e,t,n){for(var r=[],i=it(e.first,0),o=i,a=0;a<t.length;a++){var l=t[a],s=Oi(l.from,i,o),c=Oi(_i(l),i,o);if(i=l.to,o=c,"around"==n){var d=e.sel.ranges[a],u=ot(d.head,d.anchor)<0;r[a]=new Ti(u?c:s,u?s:c)}else r[a]=new Ti(s,s)}return new Ei(r,e.sel.primIndex)}(this,r,t),s=r.length-1;s>=0;s--)fo(this,r[s]);l?no(this,l):this.cm&&zr(this.cm)})),undo:ai((function(){go(this,"undo")})),redo:ai((function(){go(this,"redo")})),undoSelection:ai((function(){go(this,"undo",!0)})),redoSelection:ai((function(){go(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new Hi(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Xi(this.history.done),undone:Xi(this.history.undone)}},setHistory:function(e){var t=this.history=new Hi(this.history.maxGeneration);t.done=Xi(e.done.slice(0),null,!0),t.undone=Xi(e.undone.slice(0),null,!0)},setGutterMarker:ai((function(e,t,n){return Co(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&oe(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ai((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Co(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,oe(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!nt(this,e))return null;if(t=e,!(e=Xe(this,e)))return null}else if(null==(t=et(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ai((function(e,t,n){return Co(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(L(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ai((function(e,t,n){return Co(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(L(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ai((function(e,t,n){return function(e,t,n,r){var i=new Eo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Co(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!$t(e,t)){var r=Vt(t)<e.scrollTop;Je(t,t.height+Mn(i)),r&&Ir(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&hn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:et(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return _o(this,ut(this,e),ut(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return _o(this,e=ut(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Xe(this,(e=ut(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=ut(this,e),t=ut(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var s=a[l];null!=s.to&&i==e.line&&e.ch>=s.to||null==s.from&&i!=e.line||null!=s.from&&i==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),ut(this,it(n,t))},indexFromPos:function(e){var t=(e=ut(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new zo(Qe(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new zo(Qe(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ot(o,a)){var l=_o(e,o,a,r.primary,r.primary.type);r.markers.push(l),l.parent=r}}}(r,Do(this)),r},unlinkDoc:function(e){var t=this;if(e instanceof Na&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){if(t.linked[n].doc==e){t.linked.splice(n,1),e.unlinkDoc(t),Oo(Do(t));break}}if(e.history==this.history){var r=[e.id];Pi(e,(function(e){return r.push(e.id)}),!0),e.history=new Hi(null),e.history.done=Xi(this.history.done,r),e.history.undone=Xi(this.history.undone,r)}},iterLinkedDocs:function(e){Pi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ze(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ai((function(e){var t;("rtl"!=e&&(e="ltr"),e!=this.direction)&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&ri(t=this.cm,(function(){ji(t),mr(t)})))}))})).eachLine=zo.prototype.iter;var Fo=0;function Ro(e){var t=this;if(Po(t),!we(t,e)&&!En(t.display,e)){Ce(e),d&&(Fo=+new Date);var n=pr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,l=function(e,r){if(!t.options.allowDropFileTypes||-1!=G(t.options.allowDropFileTypes,e.type)){var l=new FileReader;l.onload=ii(t,(function(){var e=l.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[r]=e,++a==i){var s={from:n=ut(t.doc,n),to:n,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};fo(t.doc,s),no(t.doc,Ai(n,_i(s)))}})),l.readAsText(e)}},s=0;s<i;++s)l(r[s],s);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var c=e.dataTransfer.getData("Text");if(c){var u;if(t.state.draggingText&&!t.state.draggingText.copy&&(u=t.listSelections()),io(t.doc,Ai(n,n)),u)for(var h=0;h<u.length;++h)wo(t.doc,"",u[h].anchor,u[h].head,"drag");t.replaceSelection(c,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Po(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Bo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var jo=!1;function Ho(){var e;jo||(me(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Bo(Wo)}),100))})),me(window,"blur",(function(){return Bo(Ar)})),jo=!0)}function Wo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Uo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Go=0;Go<10;Go++)Uo[Go+48]=Uo[Go+96]=String(Go);for(var $o=65;$o<=90;$o++)Uo[$o]=String.fromCharCode($o);for(var Ko=1;Ko<=12;Ko++)Uo[Ko+111]=Uo[Ko+63235]="F"+Ko;var Vo={};function qo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var l=o[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else{if(!/^s(hift)?$/i.test(l))throw new Error("Unrecognized modifier name: "+l);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Zo(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=J(n.split(" "),qo),o=0;o<i.length;o++){var a=void 0,l=void 0;o==i.length-1?(l=i.join(" "),a=r):(l=i.slice(0,o+1).join(" "),a="...");var s=t[l];if(s){if(s!=a)throw new Error("Inconsistent bindings for "+l)}else t[l]=a}delete e[n]}for(var c in t)e[c]=t[c];return e}function Xo(e,t,n,r){var i=(t=ea(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Xo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Xo(e,t.fallthrough[o],n,r);if(a)return a}}}function Yo(e){var t="string"==typeof e?e:Uo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Qo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(E?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(E?t.ctrlKey:t.metaKey)&&"Cmd"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Jo(e,t){if(m&&34==e.keyCode&&e.char)return!1;var n=Uo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Qo(n,e,t))}function ea(e){return"string"==typeof e?Vo[e]:e}function ta(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ot(o.from,Q(r).to)<=0;){var a=r.pop();if(ot(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}ri(e,(function(){for(var t=r.length-1;t>=0;t--)wo(e.doc,"",r[t].from,r[t].to,"+delete");zr(e)}))}function na(e,t,n){var r=se(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ra(e,t,n){var r=na(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function ia(e,t,n,r,i){if(e){var o=pe(n,t.doc.direction);if(o){var a,l=i<0?Q(o):o[0],s=i<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=Fn(t,n);a=i<0?n.text.length-1:0;var d=Rn(t,c,a).top;a=ce((function(e){return Rn(t,c,e).top==d}),i<0==(1==l.level)?l.from:l.to-1,a),"before"==s&&(a=na(n,a,1))}else a=i<0?l.to:l.from;return new it(r,a,s)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}Vo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Vo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Vo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Vo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Vo.default=x?Vo.macDefault:Vo.pcDefault;var oa={selectAll:ho,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),K)},killLine:function(e){return ta(e,(function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:it(t.head.line+1,0)}:{from:t.head,to:it(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return ta(e,(function(t){return{from:it(t.from().line,0),to:ut(e.doc,it(t.to().line+1,0))}}))},delLineLeft:function(e){return ta(e,(function(e){return{from:it(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return ta(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return ta(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return aa(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return la(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=Xe(e.doc,t),r=function(e){for(var t;t=Bt(e);)e=t.find(1,!0).line;return e}(n);r!=n&&(t=et(r));return ia(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),q)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),q)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?la(e,t.head):r}),q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=W(e.getLine(o.line),o.ch,r);t.push(Y(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ri(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Xe(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new it(i.line,i.ch-1)),i.ch>0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Xe(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ti(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return ri(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);zr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function aa(e,t){var n=Xe(e.doc,t),r=Wt(n);return r!=n&&(t=et(r)),ia(!0,e,r,t,1)}function la(e,t){var n=aa(e,t.line),r=Xe(e.doc,n.line),i=pe(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return it(n.line,a?0:o,n.sticky)}return n}function sa(e,t,n){if("string"==typeof t&&!(t=oa[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=$}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var ca=new U;function da(e,t,n,r){var i=e.state.keySeq;if(i){if(Yo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ca.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),ua(e,i+" "+t,n,r))return!0}return ua(e,t,n,r)}function ua(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Xo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Xo(t,e.options.extraKeys,n,e)||Xo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&hn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Ce(n),Mr(e)),!!i}function ha(e,t){var n=Jo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?da(e,"Shift-"+n,t,(function(t){return sa(e,t,!0)}))||da(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return sa(e,t)})):da(e,n,t,(function(t){return sa(e,t)})))}var pa=null;function fa(e){var t=this;if(t.curOp.focus=F(),!we(t,e)){d&&u<11&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=ha(t,e);m&&(pa=r?n:null,r||88!=n||Re||!(x?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(_(t,"CodeMirror-crosshair"),ve(document,"keyup",n),ve(document,"mouseover",n))}R(t,"CodeMirror-crosshair"),me(document,"keyup",n),me(document,"mouseover",n)}(t)}}function ma(e){16==e.keyCode&&(this.doc.sel.shift=!1),we(this,e)}function ga(e){var t=this;if(!(En(t.display,e)||we(t,e)||e.ctrlKey&&!e.altKey||x&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(m&&n==pa)return pa=null,void Ce(e);if(!m||e.which&&!(e.which<10)||!ha(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return da(e,"'"+n+"'",t,(function(t){return sa(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var va,ba,wa=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ya(e){var t=this,n=t.display;if(!(we(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,En(n,e))h||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ca(t,e)){var r=pr(t,e),i=Le(e),o=r?function(e,t){var n=+new Date;return ba&&ba.compare(n,e,t)?(va=ba=null,"triple"):va&&va.compare(n,e,t)?(ba=new wa(n,e,t),va=null,"double"):(va=new wa(n,e,t),ba=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o);return da(e,Qo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=oa[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=$}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){d?setTimeout(j(Er,e),0):e.curOp.focus=F();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=C?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey);null==i.addNew&&(i.addNew=x?n.metaKey:n.ctrlKey);null==i.moveOnDrag&&(i.moveOnDrag=!(x?n.altKey:n.ctrlKey));return i}(e,n,r),a=e.doc.sel;e.options.dragDrop&&Ne&&!e.isReadOnly()&&"single"==n&&(i=a.contains(t))>-1&&(ot((i=a.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,a=ii(e,(function(t){h&&(i.scroller.draggable=!1),e.state.draggingText=!1,ve(i.wrapper.ownerDocument,"mouseup",a),ve(i.wrapper.ownerDocument,"mousemove",l),ve(i.scroller,"dragstart",s),ve(i.scroller,"drop",a),o||(Ce(t),r.addNew||Qi(e.doc,n,null,null,r.extend),h||d&&9==u?setTimeout((function(){i.wrapper.ownerDocument.body.focus(),i.input.focus()}),20):i.input.focus())})),l=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},s=function(){return o=!0};h&&(i.scroller.draggable=!0);e.state.draggingText=a,a.copy=!r.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop();me(i.wrapper.ownerDocument,"mouseup",a),me(i.wrapper.ownerDocument,"mousemove",l),me(i.scroller,"dragstart",s),me(i.scroller,"drop",a),Tr(e),setTimeout((function(){return i.input.focus()}),20)}(e,r,t,o):function(e,t,n,r){var i=e.display,o=e.doc;Ce(t);var a,l,s=o.sel,c=s.ranges;r.addNew&&!r.extend?(l=o.sel.contains(n),a=l>-1?c[l]:new Ti(n,n)):(a=o.sel.primary(),l=o.sel.primIndex);if("rectangle"==r.unit)r.addNew||(a=new Ti(n,n)),n=pr(e,t,!0,!0),l=-1;else{var d=ka(e,n,r.unit);a=r.extend?Yi(a,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,ro(o,Li(e,c.concat([a]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(ro(o,Li(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):eo(o,l,a,V):(l=0,ro(o,new Ei([a],0),V),s=o.sel);var u=n;function h(t){if(0!=ot(u,t))if(u=t,"rectangle"==r.unit){for(var i=[],c=e.options.tabSize,d=W(Xe(o,n.line).text,n.ch,c),h=W(Xe(o,t.line).text,t.ch,c),p=Math.min(d,h),f=Math.max(d,h),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Xe(o,m).text,b=Z(v,p,c);p==f?i.push(new Ti(it(m,b),it(m,b))):v.length>b&&i.push(new Ti(it(m,b),it(m,Z(v,f,c))))}i.length||i.push(new Ti(n,n)),ro(o,Li(e,s.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var w,y=a,k=ka(e,t,r.unit),x=y.anchor;ot(k.anchor,x)>0?(w=k.head,x=ct(y.from(),k.anchor)):(w=k.anchor,x=st(y.to(),k.head));var C=s.ranges.slice(0);C[l]=function(e,t){var n=t.anchor,r=t.head,i=Xe(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=pe(i);if(!o)return t;var a=ue(o,n.ch,n.sticky),l=o[a];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,c=a+(l.from==n.ch==(1!=l.level)?0:1);if(0==c||c==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var d=ue(o,r.ch,r.sticky),u=d-a||(r.ch-n.ch)*(1==l.level?-1:1);s=d==c-1||d==c?u<0:u>0}var h=o[c+(s?-1:0)],p=s==(1==h.level),f=p?h.from:h.to,m=p?"after":"before";return n.ch==f&&n.sticky==m?t:new Ti(new it(n.line,f,m),r)}(e,new Ti(ut(o,x),w)),ro(o,Li(e,C,l),V)}}var p=i.wrapper.getBoundingClientRect(),f=0;function m(t){var n=++f,a=pr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ot(a,u)){e.curOp.focus=F(),h(a);var l=Dr(i,o);(a.line>=l.to||a.line<l.from)&&setTimeout(ii(e,(function(){f==n&&m(t)})),150)}else{var s=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;s&&setTimeout(ii(e,(function(){f==n&&(i.scroller.scrollTop+=s,m(t))})),50)}}function g(t){e.state.selectingText=!1,f=1/0,t&&(Ce(t),i.input.focus()),ve(i.wrapper.ownerDocument,"mousemove",v),ve(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var v=ii(e,(function(e){0!==e.buttons&&Le(e)?m(e):g(e)})),b=ii(e,g);e.state.selectingText=b,me(i.wrapper.ownerDocument,"mousemove",v),me(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):Te(e)==n.scroller&&Ce(e):2==i?(r&&Qi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(T?t.display.input.onContextMenu(e):Tr(t)))}}function ka(e,t,n){if("char"==n)return new Ti(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Ti(it(t.line,0),ut(e.doc,it(t.line+1,0)));var r=n(e,t);return new Ti(r.from,r.to)}function xa(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ce(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!ke(e,n))return Me(t);o-=l.top-a.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var c=a.gutters.childNodes[s];if(c&&c.getBoundingClientRect().right>=i)return be(e,n,e,tt(e.doc,o),e.display.gutterSpecs[s].className,t),Me(t)}}function Ca(e,t){return xa(e,t,"gutterClick",!0)}function Sa(e,t){En(e.display,t)||function(e,t){if(!ke(e,"gutterContextMenu"))return!1;return xa(e,t,"gutterContextMenu",!1)}(e,t)||we(e,t,"contextmenu")||T||e.display.input.onContextMenu(t)}function Ma(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Gn(e)}wa.prototype.compare=function(e,t,n){return this.time+400>e&&0==ot(t,this.pos)&&n==this.button};var Ea={toString:function(){return"CodeMirror.Init"}},Ta={},La={};function Aa(e,t,n){if(!t!=!(n&&n!=Ea)){var r=e.display.dragFunctions,i=t?me:ve;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function _a(e){e.options.lineWrapping?(R(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),Zt(e)),hr(e),mr(e),Gn(e),setTimeout((function(){return $r(e)}),100)}function Na(e,t){var n=this;if(!(this instanceof Na))return new Na(e,t);this.options=t=t?H(t):{},H(Ta,t,!1);var r=t.value;"string"==typeof r?r=new zo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Na.inputStyles[t.inputStyle](this),o=this.display=new yi(e,r,i,t);for(var a in o.wrapper.CodeMirror=this,Ma(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new U,keySeq:null,specialChars:null},t.autofocus&&!k&&o.input.focus(),d&&u<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;me(t.scroller,"mousedown",ii(e,ya)),me(t.scroller,"dblclick",d&&u<11?ii(e,(function(t){if(!we(e,t)){var n=pr(e,t);if(n&&!Ca(e,t)&&!En(e.display,t)){Ce(t);var r=e.findWordAt(n);Qi(e.doc,r.anchor,r.head)}}})):function(t){return we(e,t)||Ce(t)});me(t.scroller,"contextmenu",(function(t){return Sa(e,t)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function a(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}me(t.scroller,"touchstart",(function(i){if(!we(e,i)&&!o(i)&&!Ca(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),me(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),me(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!En(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,l=e.coordsChar(t.activeTouch,"page");o=!r.prev||a(r,r.prev)?new Ti(l,l):!r.prev.prev||a(r,r.prev.prev)?e.findWordAt(l):new Ti(it(l.line,0),ut(e.doc,it(l.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Ce(n)}i()})),me(t.scroller,"touchcancel",i),me(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Br(e,t.scroller.scrollTop),Hr(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))})),me(t.scroller,"mousewheel",(function(t){return Mi(e,t)})),me(t.scroller,"DOMMouseScroll",(function(t){return Mi(e,t)})),me(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){we(e,t)||Ee(t)},over:function(t){we(e,t)||(!function(e,t){var n=pr(e,t);if(n){var r=document.createDocumentFragment();xr(e,n,r),e.display.dragCursor||(e.display.dragCursor=O("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),D(e.display.dragCursor,r)}}(e,t),Ee(t))},start:function(t){return function(e,t){if(d&&(!e.state.draggingText||+new Date-Fo<100))Ee(t);else if(!we(e,t)&&!En(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!g)){var n=O("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",m&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),m&&n.parentNode.removeChild(n)}}(e,t)},drop:ii(e,Ro),leave:function(t){we(e,t)||Po(e)}};var l=t.input.getField();me(l,"keyup",(function(t){return ma.call(e,t)})),me(l,"keydown",ii(e,fa)),me(l,"keypress",ii(e,ga)),me(l,"focus",(function(t){return Lr(e,t)})),me(l,"blur",(function(t){return Ar(e,t)}))}(this),Ho(),Xr(this),this.curOp.forceUpdate=!0,Bi(this,r),t.autofocus&&!k||this.hasFocus()?setTimeout(j(Lr,this),20):Ar(this),La)La.hasOwnProperty(a)&&La[a](n,t[a],Ea);gi(this),t.finishInit&&t.finishInit(this);for(var l=0;l<Da.length;++l)Da[l](n);Yr(this),h&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto"),t.onload&&t.onload(this)}Na.defaults=Ta,Na.optionHandlers=La;var Da=[];function Oa(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=vt(e,t).state:n="prev");var a=e.options.tabSize,l=Xe(o,t),s=W(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var c,d=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&((c=o.mode.indent(i,l.text.slice(d.length),l.text))==$||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>o.first?W(Xe(o,t-1).text,null,a):0:"add"==n?c=s+e.options.indentUnit:"subtract"==n?c=s-e.options.indentUnit:"number"==typeof n&&(c=s+n),c=Math.max(0,c);var u="",h=0;if(e.options.indentWithTabs)for(var p=Math.floor(c/a);p;--p)h+=a,u+="\t";if(h<c&&(u+=Y(c-h)),u!=d)return wo(o,u,it(t,0),it(t,d.length),"+input"),l.stateAfter=null,!0;for(var f=0;f<o.sel.ranges.length;f++){var m=o.sel.ranges[f];if(m.head.line==t&&m.head.ch<d.length){var g=it(t,d.length);eo(o,f,new Ti(g,g));break}}}Na.defineInitHook=function(e){return Da.push(e)};var Ia=null;function za(e){Ia=e}function Fa(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,l="paste"==i||e.state.pasteIncoming>a,s=ze(t),c=null;if(l&&r.ranges.length>1)if(Ia&&Ia.text.join("\n")==t){if(r.ranges.length%Ia.text.length==0){c=[];for(var d=0;d<Ia.text.length;d++)c.push(o.splitLines(Ia.text[d]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=J(s,(function(e){return[e]})));for(var u=e.curOp.updateInput,h=r.ranges.length-1;h>=0;h--){var p=r.ranges[h],f=p.from(),m=p.to();p.empty()&&(n&&n>0?f=it(f.line,f.ch-n):e.state.overwrite&&!l?m=it(m.line,Math.min(Xe(o,m.line).text.length,m.ch+Q(s).length)):l&&Ia&&Ia.lineWise&&Ia.text.join("\n")==t&&(f=m=it(f.line,0)));var g={from:f,to:m,text:c?c[h%c.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};fo(e.doc,g),hn(e,"inputRead",e,g)}t&&!l&&Pa(e,t),zr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=u),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ra(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||ri(t,(function(){return Fa(t,n,0,null,"paste")})),!0}function Pa(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=Oa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Oa(e,i.head.line,"smart"));a&&hn(e,"electricInput",e,i.head.line)}}}function Ba(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:it(i,0),head:it(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function ja(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Ha(){var e=O("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=O("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return h?e.style.width="1000px":e.setAttribute("wrap","off"),w&&(e.style.border="1px solid black"),ja(e),t}function Wa(e,t,n,r,i){var o=t,a=n,l=Xe(e,t.line);function s(r){var o,a;if(null==(o=i?function(e,t,n,r){var i=pe(t,e.doc.direction);if(!i)return ra(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ue(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ra(t,n,r);var l,s=function(e,n){return na(t,e instanceof it?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(l=l||Fn(e,t),nr(e,t,l,n)):{begin:0,end:t.text.length}},d=c("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var u=1==a.level==r<0,h=s(n,u?1:-1);if(null!=h&&(u?h<=a.to&&h<=d.end:h>=a.from&&h>=d.begin)){var p=u?"before":"after";return new it(n.line,h,p)}}var f=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,s(e,1),"before"):new it(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],l=t>0==(1!=a.level),c=l?r.begin:s(r.end,-1);if(a.from<=c&&c<a.to)return o(c,l);if(c=l?a.from:s(a.to,-1),r.begin<=c&&c<r.end)return o(c,l)}},m=f(o+r,r,d);if(m)return m;var g=r>0?d.end:s(d.begin,-1);return null==g||r>0&&g==t.text.length||!(m=f(r>0?0:i.length-1,r,c(g)))?null:m}(e.cm,l,t,n):ra(l,t,n))){if(r||(a=t.line+n)<e.first||a>=e.first+e.size||(t=new it(a,t.ch,t.sticky),!(l=Xe(e,a))))return!1;t=ia(i,e.cm,l,t.line,n)}else t=o;return!0}if("char"==r)s();else if("column"==r)s(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,u=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;!(n<0)||s(!h);h=!1){var p=l.text.charAt(t.ch)||"\n",f=ie(p,u)?"w":d&&"\n"==p?"n":!d||/\s/.test(p)?null:"p";if(!d||h||f||(f="s"),c&&c!=f){n<0&&(n=1,s(),t.sticky="after");break}if(f&&(c=f),n>0&&!s(!h))break}var m=co(e,t,o,a,!0);return at(o,m)&&(m.hitSide=!0),m}function Ua(e,t,n,r){var i,o,a=e.doc,l=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(s-.5*lr(e.display),3);i=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=er(e,l,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Ga=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new U,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function $a(e,t){var n=zn(e,t.line);if(!n||n.hidden)return null;var r=Xe(e.doc,t.line),i=On(n,r,t.line),o=pe(r,e.doc.direction),a="left";o&&(a=ue(o,t.ch)%2?"right":"left");var l=jn(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function Ka(e,t){return t&&(e.bad=!0),e}function Va(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ka(e.clipPos(it(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return qa(o,t,n)}}function qa(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!z(r,t))return Ka(it(et(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Q(e.rest):e.line;return Ka(it(et(o),o.text.length),i)}var a=3==t.nodeType?t:null,l=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));l.parentNode!=r;)l=l.parentNode;var s=e.measure,c=s.maps;function d(t,n,r){for(var i=-1;i<(c?c.length:0);i++)for(var o=i<0?s.map:c[i],a=0;a<o.length;a+=3){var l=o[a+2];if(l==t||l==n){var d=et(i<0?e.line:e.rest[i]),u=o[a]+r;return(r<0||l!=t)&&(u=o[a+(r?1:0)]),it(d,u)}}}var u=d(a,l,n);if(u)return Ka(u,i);for(var h=l.nextSibling,p=a?a.nodeValue.length-n:0;h;h=h.nextSibling){if(u=d(h,h.firstChild,0))return Ka(it(u.line,u.ch-p),i);p+=h.textContent.length}for(var f=l.previousSibling,m=n;f;f=f.previousSibling){if(u=d(f,f.firstChild,-1))return Ka(it(u.line,u.ch+m),i);m+=f.textContent.length}}Ga.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){if(!we(r,e)){if(r.somethingSelected())za({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ba(r);za({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,K),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=Ia.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=Ha(),l=a.firstChild;r.display.lineSpace.insertBefore(a,r.display.lineSpace.firstChild),l.value=Ia.text.join("\n");var s=document.activeElement;B(l),setTimeout((function(){r.display.lineSpace.removeChild(a),s.focus(),s==i&&n.showPrimarySelection()}),50)}}ja(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),me(i,"paste",(function(e){we(r,e)||Ra(e,r)||u<=11&&setTimeout(ii(r,(function(){return t.updateFromDOM()})),20)})),me(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),me(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),me(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),me(i,"touchstart",(function(){return n.forceCompositionEnd()})),me(i,"input",(function(){t.composing||t.readFromDOMSoon()})),me(i,"copy",o),me(i,"cut",o)},Ga.prototype.prepareSelection=function(){var e=kr(this.cm,!1);return e.focus=this.cm.state.focused,e},Ga.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ga.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ga.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var o=Va(t,e.anchorNode,e.anchorOffset),l=Va(t,e.focusNode,e.focusOffset);if(!o||o.bad||!l||l.bad||0!=ot(ct(o,l),r)||0!=ot(st(o,l),i)){var s=t.display.view,c=r.line>=t.display.viewFrom&&$a(t,r)||{node:s[0].measure.map[2],offset:0},d=i.line<t.display.viewTo&&$a(t,i);if(!d){var u=s[s.length-1].measure,h=u.maps?u.maps[u.maps.length-1]:u.map;d={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(c&&d){var p,f=e.rangeCount&&e.getRangeAt(0);try{p=A(c.node,c.offset,d.offset,d.node)}catch(e){}p&&(!a&&t.state.focused?(e.collapse(c.node,c.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),f&&null==e.anchorNode?e.addRange(f):a&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Ga.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Ga.prototype.showMultipleSelections=function(e){D(this.cm.display.cursorDiv,e.cursors),D(this.cm.display.selectionDiv,e.selection)},Ga.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ga.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return z(this.div,t)},Ga.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ga.prototype.blur=function(){this.div.blur()},Ga.prototype.getField=function(){return this.div},Ga.prototype.supportsTouch=function(){return!0},Ga.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():ri(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},Ga.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ga.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(y&&f&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Va(t,e.anchorNode,e.anchorOffset),r=Va(t,e.focusNode,e.focusOffset);n&&r&&ri(t,(function(){ro(t.doc,Ai(n,r),K),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Ga.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),l=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=it(a.line-1,Xe(r.doc,a.line-1).length)),l.ch==Xe(r.doc,l.line).text.length&&l.line<r.lastLine()&&(l=it(l.line+1,0)),a.line<i.viewFrom||l.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=fr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var s,c,d=fr(r,l.line);if(d==i.view.length-1?(s=i.viewTo-1,c=i.lineDiv.lastChild):(s=et(i.view[d+1].line)-1,c=i.view[d+1].node.previousSibling),!n)return!1;for(var u=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function c(e){return function(t){return t.id==e}}function d(){a&&(o+=l,s&&(o+=l),a=s=!1)}function u(e){e&&(d(),o+=e)}function h(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,p=t.getAttribute("cm-marker");if(p){var f=e.findMarks(it(r,0),it(i+1,0),c(+p));return void(f.length&&(o=f[0].find(0))&&u(Ye(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&d();for(var g=0;g<t.childNodes.length;g++)h(t.childNodes[g]);/^(pre|p)$/i.test(t.nodeName)&&(s=!0),m&&(a=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;h(t),t!=n;)t=t.nextSibling,s=!1;return o}(r,n,c,t,s)),h=Ye(r.doc,it(t,0),it(s,Xe(r.doc,s).text.length));u.length>1&&h.length>1;)if(Q(u)==Q(h))u.pop(),h.pop(),s--;else{if(u[0]!=h[0])break;u.shift(),h.shift(),t++}for(var p=0,f=0,m=u[0],g=h[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var b=Q(u),w=Q(h),y=Math.min(b.length-(1==u.length?p:0),w.length-(1==h.length?p:0));f<y&&b.charCodeAt(b.length-f-1)==w.charCodeAt(w.length-f-1);)++f;if(1==u.length&&1==h.length&&t==a.line)for(;p&&p>a.ch&&b.charCodeAt(b.length-f-1)==w.charCodeAt(w.length-f-1);)p--,f++;u[u.length-1]=b.slice(0,b.length-f).replace(/^\u200b+/,""),u[0]=u[0].slice(p).replace(/\u200b+$/,"");var k=it(t,p),x=it(s,h.length?Q(h).length-f:0);return u.length>1||u[0]||ot(k,x)?(wo(r.doc,u,k,x,"+input"),!0):void 0},Ga.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ga.prototype.reset=function(){this.forceCompositionEnd()},Ga.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ga.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Ga.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ri(this.cm,(function(){return mr(e.cm)}))},Ga.prototype.setUneditable=function(e){e.contentEditable="false"},Ga.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ii(this.cm,Fa)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ga.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ga.prototype.onContextMenu=function(){},Ga.prototype.resetPosition=function(){},Ga.prototype.needsContentAttribute=!0;var Za=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new U,this.hasSelection=!1,this.composing=null};Za.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!we(r,e)){if(r.somethingSelected())za({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ba(r);za({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,K):(n.prevInput="",i.value=t.text.join("\n"),B(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),w&&(i.style.width="0px"),me(i,"input",(function(){d&&u>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),me(i,"paste",(function(e){we(r,e)||Ra(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),me(i,"cut",o),me(i,"copy",o),me(e.scroller,"paste",(function(t){if(!En(e,t)&&!we(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),me(e.lineSpace,"selectstart",(function(t){En(e,t)||Ce(t)})),me(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),me(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Za.prototype.createField=function(e){this.wrapper=Ha(),this.textarea=this.wrapper.firstChild},Za.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=kr(e);if(e.options.moveInputWithCursor){var i=Yn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Za.prototype.showSelection=function(e){var t=this.cm.display;D(t.cursorDiv,e.cursors),D(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Za.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&B(this.textarea),d&&u>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",d&&u>=9&&(this.hasSelection=null))}},Za.prototype.getField=function(){return this.textarea},Za.prototype.supportsTouch=function(){return!1},Za.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!k||F()!=this.textarea))try{this.textarea.focus()}catch(e){}},Za.prototype.blur=function(){this.textarea.blur()},Za.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Za.prototype.receivedFocus=function(){this.slowPoll()},Za.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Za.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Za.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Fe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(d&&u>=9&&this.hasSelection===i||x&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(r.length,i.length);a<l&&r.charCodeAt(a)==i.charCodeAt(a);)++a;return ri(t,(function(){Fa(t,i.slice(a),r.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Za.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Za.prototype.onKeyPress=function(){d&&u>=9&&(this.hasSelection=null),this.fastPoll()},Za.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=pr(n,e),a=r.scroller.scrollTop;if(o&&!m){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ii(n,ro)(n.doc,Ai(o),K);var l,s=i.style.cssText,c=t.wrapper.style.cssText,p=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px;\n z-index: 1000; background: "+(d?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",h&&(l=window.scrollY),r.input.focus(),h&&window.scrollTo(null,l),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),d&&u>=9&&f(),T){Ee(e);me(window,"mouseup",(function e(){ve(window,"mouseup",e),setTimeout(g,20)}))}else setTimeout(g,50)}function f(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=c,i.style.cssText=s,d&&u<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=a),null!=i.selectionStart)){(!d||d&&u<9)&&f();var e=0;r.detectingSelectAll=setTimeout((function o(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?ii(n,ho)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())}),200)}}},Za.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Za.prototype.setUneditable=function(){},Za.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ea&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ea,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Ii(e)}),!0),n("indentUnit",2,Ii,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){zi(e),Gn(e),mr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++}));for(var i=n.length-1;i>=0;i--)wo(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ea&&e.refresh()})),n("specialCharPlaceholder",nn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",k?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running src")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!S),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Ma(e),wi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=ea(t),i=n!=Ea&&ea(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,_a,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=vi(t,e.options.lineNumbers),wi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?dr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return $r(e)}),!0),n("scrollbarStyle","native",(function(e){qr(e),$r(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=vi(e.options.gutters,t),wi(e)}),!0),n("firstLineNumber",1,wi,!0),n("lineNumberFormatter",(function(e){return e}),wi,!0),n("showCursorWhenSelecting",!1,yr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Ar(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Aa),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,yr,!0),n("singleCursorHeightPerLine",!0,yr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,zi,!0),n("addModeClass",!1,zi,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,zi,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Na),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ii(this,t[e])(this,n,i),be(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](ea(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:oi((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,mr(this)})),removeOverlay:oi((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void mr(this)}})),indentLine:oi((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),nt(this.doc,e)&&Oa(this,e,t,n)})),indentSelection:oi((function(e){for(var t=this,n=this.doc.sel.ranges,r=-1,i=0;i<n.length;i++){var o=n[i];if(o.empty())o.head.line>r&&(Oa(t,o.head.line,e,!0),r=o.head.line,i==t.doc.sel.primIndex&&zr(t));else{var a=o.from(),l=o.to(),s=Math.max(r,a.line);r=Math.min(t.lastLine(),l.line-(l.ch?0:1))+1;for(var c=s;c<r;++c)Oa(t,c,e);var d=t.doc.sel.ranges;0==a.ch&&n.length==d.length&&d[i].from().ch>0&&eo(t.doc,i,new Ti(a,d[i].to()),K)}}})),getTokenAt:function(e,t){return xt(this,e,t)},getLineTokens:function(e,t){return xt(this,it(e),t,!0)},getTokenTypeAt:function(e){e=ut(this.doc,e);var t,n=gt(this,Xe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var l=t?t.indexOf("overlay "):-1;return l<0?t:0==l?null:t.slice(0,l-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var l=i[o[t][a]];l&&r.push(l)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var s=0;s<i._global.length;s++){var c=i._global[s];c.pred(o,this)&&-1==G(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return vt(this,(e=dt(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Yn(this,null==e?n.head:"object"==r(e)?ut(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Xn(this,ut(this.doc,e),t||"page")},coordsChar:function(e,t){return er(this,(e=Zn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Zn(this,{top:e,left:0},t||"page").top,tt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Xe(this.doc,e)}else r=e;return qn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Vt(r):0)},defaultTextHeight:function(){return lr(this.display)},defaultCharWidth:function(){return sr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,l,s=this.display,c=(e=Yn(this,ut(this.doc,e))).bottom,d=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var u=Math.max(s.wrapper.clientHeight,this.doc.height),h=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(c=e.bottom),d+t.offsetWidth>h&&(d=h-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==i?(d=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?d=0:"middle"==i&&(d=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=d+"px"),n&&(o=this,a={left:d,top:c,right:d+t.offsetWidth,bottom:c+t.offsetHeight},null!=(l=Or(o,a)).scrollTop&&Br(o,l.scrollTop),null!=l.scrollLeft&&Hr(o,l.scrollLeft))},triggerOnKeyDown:oi(fa),triggerOnKeyPress:oi(ga),triggerOnKeyUp:ma,triggerOnMouseDown:oi(ya),execCommand:function(e){if(oa.hasOwnProperty(e))return oa[e].call(null,this)},triggerElectric:oi((function(e){Pa(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=ut(this.doc,e),a=0;a<t&&!(o=Wa(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:oi((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Wa(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),q)})),deleteH:oi((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):ta(this,(function(n){var i=Wa(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=ut(this.doc,e),l=0;l<t;++l){var s=Yn(this,a,"div");if(null==o?o=s.left:s.left=o,(a=Ua(this,s,i,n)).hitSide)break}return a},moveV:oi((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var l=Yn(n,a.head,"div");null!=a.goalColumn&&(l.left=a.goalColumn),i.push(l.left);var s=Ua(n,l,e,t);return"page"==t&&a==r.sel.primary()&&Ir(n,Xn(n,s,"div").top-l.top),s}),q),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=Xe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ie(o,i)?function(e){return ie(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ie(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new Ti(it(e.line,n),it(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?R(this.display.cursorDiv,"CodeMirror-overwrite"):_(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==F()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:oi((function(e,t){Fr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-_n(this)-this.display.barHeight,width:e.scrollWidth-_n(this)-this.display.barWidth,clientHeight:Dn(this),clientWidth:Nn(this)}},scrollIntoView:oi((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:it(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Rr(e),e.curOp.scrollToPos=t}(this,e):Pr(this,e.from,e.to,e.margin)})),setSize:oi((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Un(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){gr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,be(this,"refresh",this)})),operation:function(e){return ri(this,e)},startOperation:function(){return Xr(this)},endOperation:function(){return Yr(this)},refresh:oi((function(){var e=this.display.cachedTextHeight;mr(this),this.curOp.forceUpdate=!0,Gn(this),Fr(this,this.doc.scrollLeft,this.doc.scrollTop),pi(this.display),(null==e||Math.abs(e-lr(this.display))>.5)&&hr(this),be(this,"refresh",this)})),swapDoc:oi((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Bi(this,e),Gn(this),this.display.input.reset(),Fr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,hn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xe(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Na);var Xa="iter insert remove copy getEditor constructor".split(" ");for(var Ya in zo.prototype)zo.prototype.hasOwnProperty(Ya)&&G(Xa,Ya)<0&&(Na.prototype[Ya]=function(e){return function(){return e.apply(this.doc,arguments)}}(zo.prototype[Ya]));xe(zo),Na.inputStyles={textarea:Za,contenteditable:Ga},Na.defineMode=function(e){Na.defaults.mode||"null"==e||(Na.defaults.mode=e),He.apply(this,arguments)},Na.defineMIME=function(e,t){je[e]=t},Na.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Na.defineMIME("text/plain","null"),Na.defineExtension=function(e,t){Na.prototype[e]=t},Na.defineDocExtension=function(e,t){zo.prototype[e]=t},Na.fromTextArea=function(e,t){if((t=t?H(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=F();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var i;if(e.form&&(me(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ve(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var l=Na((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l},function(e){e.off=ve,e.on=me,e.wheelEventPixels=Si,e.Doc=zo,e.splitLines=ze,e.countColumn=W,e.findColumn=Z,e.isWordChar=re,e.Pass=$,e.signal=be,e.Line=Xt,e.changeEnd=_i,e.scrollbarModel=Vr,e.Pos=it,e.cmpPos=ot,e.modes=Be,e.mimeModes=je,e.resolveMode=We,e.getMode=Ue,e.modeExtensions=Ge,e.extendMode=$e,e.copyState=Ke,e.startState=qe,e.innerMode=Ve,e.commands=oa,e.keyMap=Vo,e.keyName=Jo,e.isModifierKey=Yo,e.lookupKey=Xo,e.normalizeKeyMap=Zo,e.StringStream=Ze,e.SharedTextMarker=No,e.TextMarker=Ao,e.LineWidget=Eo,e.e_preventDefault=Ce,e.e_stopPropagation=Se,e.e_stop=Ee,e.addClass=R,e.contains=z,e.rmClass=_}(Na),Na.version="5.49.2",window.CodeMirror=Na;const Qa=Na;var Ja={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},el={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};function tl(e){return(tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nl(e){for(var t={},n=0;n<e.length;++n)t[e[n].toLowerCase()]=!0;return t}Qa.defineMode("xml",(function(e,t){var n,r,i=e.indentUnit,o={},a=t.htmlMode?Ja:el;for(var l in a)o[l]=a[l];for(var l in t)o[l]=t[l];function s(e,t){function r(n){return t.tokenize=n,n(e,t)}var i=e.next();return"<"==i?e.eat("!")?e.eat("[")?e.match("CDATA[")?r(d("atom","]]>")):null:e.match("--")?r(d("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),r(u(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=d("meta","?>"),"meta"):(n=e.eat("/")?"closeTag":"openTag",t.tokenize=c,"tag bracket"):"&"==i?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function c(e,t){var r,i,o=e.next();if(">"==o||"/"==o&&e.eat(">"))return t.tokenize=s,n=">"==o?"endTag":"selfcloseTag","tag bracket";if("="==o)return n="equals",null;if("<"==o){t.tokenize=s,t.state=m,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(o)?(t.tokenize=(r=o,(i=function(e,t){for(;!e.eol();)if(e.next()==r){t.tokenize=c;break}return"string"}).isInAttribute=!0,i),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=s;break}n.next()}return e}}function u(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=u(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=s;break}return n.tokenize=u(e-1),n.tokenize(t,n)}}return"meta"}}function h(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(o.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function p(e){e.context&&(e.context=e.context.prev)}function f(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!o.contextGrabbers.hasOwnProperty(n)||!o.contextGrabbers[n].hasOwnProperty(t))return;p(e)}}function m(e,t,n){return"openTag"==e?(n.tagStart=t.column(),g):"closeTag"==e?v:m}function g(e,t,n){return"word"==e?(n.tagName=t.current(),r="tag",y):o.allowMissingTagName&&"endTag"==e?(r="tag bracket",y(e,t,n)):(r="error",g)}function v(e,t,n){if("word"==e){var i=t.current();return n.context&&n.context.tagName!=i&&o.implicitlyClosed.hasOwnProperty(n.context.tagName)&&p(n),n.context&&n.context.tagName==i||!1===o.matchClosing?(r="tag",b):(r="tag error",w)}return o.allowMissingTagName&&"endTag"==e?(r="tag bracket",b(e,t,n)):(r="error",w)}function b(e,t,n){return"endTag"!=e?(r="error",b):(p(n),m)}function w(e,t,n){return r="error",b(e,0,n)}function y(e,t,n){if("word"==e)return r="attribute",k;if("endTag"==e||"selfcloseTag"==e){var i=n.tagName,a=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||o.autoSelfClosers.hasOwnProperty(i)?f(n,i):(f(n,i),n.context=new h(n,i,a==n.indented)),m}return r="error",y}function k(e,t,n){return"equals"==e?x:(o.allowMissing||(r="error"),y(e,0,n))}function x(e,t,n){return"string"==e?C:"word"==e&&o.allowUnquoted?(r="string",y):(r="error",y(e,0,n))}function C(e,t,n){return"string"==e?C:y(e,0,n)}return s.isInText=!0,{startState:function(e){var t={tokenize:s,state:m,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;n=null;var i=t.tokenize(e,t);return(i||n)&&"comment"!=i&&(r=null,t.state=t.state(n||i,e,t),r&&(i="error"==r?i+" error":r)),i},indent:function(e,t,n){var r=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+i;if(r&&r.noIndent)return Qa.Pass;if(e.tokenize!=c&&e.tokenize!=s)return n?n.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==o.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+i*(o.multilineTagIndentFactor||1);if(o.alignCDATA&&/<!\[CDATA\[/.test(t))return 0;var a=t&&/^<(\/)?([\w_:\.-]*)/.exec(t);if(a&&a[1])for(;r;){if(r.tagName==a[2]){r=r.prev;break}if(!o.implicitlyClosed.hasOwnProperty(r.tagName))break;r=r.prev}else if(a)for(;r;){var l=o.contextGrabbers[r.tagName];if(!l||!l.hasOwnProperty(a[2]))break;r=r.prev}for(;r&&r.prev&&!r.startOfLine;)r=r.prev;return r?r.indent+i:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:o.htmlMode?"html":"xml",helperType:o.htmlMode?"html":"xml",skipAttribute:function(e){e.state==x&&(e.state=y)},xmlCurrentTag:function(e){return e.tagName?{name:e.tagName,close:"closeTag"==e.type}:null},xmlCurrentContext:function(e){for(var t=[],n=e.context;n;n=n.prev)n.tagName&&t.push(n.tagName);return t.reverse()}}})),Qa.defineMIME("text/xml","xml"),Qa.defineMIME("php","xml"),Qa.defineMIME("vue","xml"),Qa.defineMIME("html","xml"),Qa.defineMIME("application/xml","xml"),Qa.mimeModes.hasOwnProperty("text/html")||Qa.defineMIME("text/html",{name:"xml",htmlMode:!0}),Qa.defineMode("css",(function(e,t){var n=t.inline;t.propertyKeywords||(t=Qa.resolveMode("text/css"));var r,i,o=e.indentUnit,a=t.tokenHooks,l=t.documentTypes||{},s=t.mediaTypes||{},c=t.mediaFeatures||{},d=t.mediaValueKeywords||{},u=t.propertyKeywords||{},h=t.nonStandardPropertyKeywords||{},p=t.fontProperties||{},f=t.counterDescriptors||{},m=t.colorKeywords||{},g=t.valueKeywords||{},v=t.allowNested,b=t.lineComment,w=!0===t.supportsAtComponent;function y(e,t){return r=t,e}function k(e,t){var n=e.next();if(a[n]){var r=a[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),y("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?y(null,"compare"):'"'==n||"'"==n?(t.tokenize=x(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),y("atom","hash")):"!"==n?(e.match(/^\s*\w*/),y("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),y("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?y(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?y("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?y(null,n):e.match(/[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/.test(e.current().toLowerCase())&&(t.tokenize=C),y("variable callee","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),y("property","word")):y(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),y("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?y("variable-2","variable-definition"):y("variable-2","variable")):e.match(/^\w+-/)?y("meta","meta"):void 0}function x(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),y("string","string")}}function C(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=x(")"),y(null,"(")}function S(e,t,n){this.type=e,this.indent=t,this.prev=n}function M(e,t,n,r){return e.context=new S(n,t.indentation()+(!1===r?0:o),e.context),n}function E(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function T(e,t,n){return _[n.context.type](e,t,n)}function L(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return T(e,t,n)}function A(e){var t=e.current().toLowerCase();i=g.hasOwnProperty(t)?"atom":m.hasOwnProperty(t)?"keyword":"variable"}var _={top:function(e,t,n){if("{"==e)return M(n,t,"block");if("}"==e&&n.context.prev)return E(n);if(w&&/@component/i.test(e))return M(n,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return M(n,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return M(n,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return n.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return M(n,t,"at");if("hash"==e)i="builtin";else if("word"==e)i="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return M(n,t,"interpolation");if(":"==e)return"pseudo";if(v&&"("==e)return M(n,t,"parens")}return n.context.type},block:function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return u.hasOwnProperty(r)?(i="property","maybeprop"):h.hasOwnProperty(r)?(i="string-2","maybeprop"):v?(i=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(i+=" error","maybeprop")}return"meta"==e?"block":v||"hash"!=e&&"qualifier"!=e?_.top(e,t,n):(i="error","block")},maybeprop:function(e,t,n){return":"==e?M(n,t,"prop"):T(e,t,n)},prop:function(e,t,n){if(";"==e)return E(n);if("{"==e&&v)return M(n,t,"propBlock");if("}"==e||"{"==e)return L(e,t,n);if("("==e)return M(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)A(t);else if("interpolation"==e)return M(n,t,"interpolation")}else i+=" error";return"prop"},propBlock:function(e,t,n){return"}"==e?E(n):"word"==e?(i="property","maybeprop"):n.context.type},parens:function(e,t,n){return"{"==e||"}"==e?L(e,t,n):")"==e?E(n):"("==e?M(n,t,"parens"):"interpolation"==e?M(n,t,"interpolation"):("word"==e&&A(t),"parens")},pseudo:function(e,t,n){return"meta"==e?"pseudo":"word"==e?(i="variable-3",n.context.type):T(e,t,n)},documentTypes:function(e,t,n){return"word"==e&&l.hasOwnProperty(t.current())?(i="tag",n.context.type):_.atBlock(e,t,n)},atBlock:function(e,t,n){if("("==e)return M(n,t,"atBlock_parens");if("}"==e||";"==e)return L(e,t,n);if("{"==e)return E(n)&&M(n,t,v?"block":"top");if("interpolation"==e)return M(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();i="only"==r||"not"==r||"and"==r||"or"==r?"keyword":s.hasOwnProperty(r)?"attribute":c.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?"keyword":u.hasOwnProperty(r)?"property":h.hasOwnProperty(r)?"string-2":g.hasOwnProperty(r)?"atom":m.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(e,t,n){return"}"==e?L(e,t,n):"{"==e?E(n)&&M(n,t,v?"block":"top",!1):("word"==e&&(i="error"),n.context.type)},atBlock_parens:function(e,t,n){return")"==e?E(n):"{"==e||"}"==e?L(e,t,n,2):_.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,n){return"{"==e?M(n,t,"restricted_atBlock"):"word"==e&&"@counter-style"==n.stateArg?(i="variable","restricted_atBlock_before"):T(e,t,n)},restricted_atBlock:function(e,t,n){return"}"==e?(n.stateArg=null,E(n)):"word"==e?(i="@font-face"==n.stateArg&&!p.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==n.stateArg&&!f.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,n){return"word"==e?(i="variable","keyframes"):"{"==e?M(n,t,"top"):T(e,t,n)},at:function(e,t,n){return";"==e?E(n):"{"==e||"}"==e?L(e,t,n):("word"==e?i="tag":"hash"==e&&(i="builtin"),"at")},interpolation:function(e,t,n){return"}"==e?E(n):"{"==e||";"==e?L(e,t,n):("word"==e?i="variable":"variable"!=e&&"("!=e&&")"!=e&&(i="error"),"interpolation")}};return{startState:function(e){return{tokenize:null,state:n?"block":"top",stateArg:null,context:new S(n?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||k)(e,t);return n&&"object"===tl(n)&&(r=n[1],n=n[0]),i=n,"comment"!=r&&(t.state=_[t.state](r,e,t)),i},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(i=Math.max(0,n.indent-o)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var rl=["domain","regexp","url","url-prefix"],il=nl(rl),ol=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],al=nl(ol),ll=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],sl=nl(ll),cl=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],dl=nl(cl),ul=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],hl=nl(ul),pl=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],fl=nl(pl),ml=nl(["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),gl=nl(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),vl=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],bl=nl(vl),wl=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],yl=nl(wl),kl=rl.concat(ol).concat(ll).concat(cl).concat(ul).concat(pl).concat(vl).concat(wl);function xl(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function Cl(e){return(Cl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sl(e,t){var n,r,i=e.indentUnit,o=t.statementIndent,a=t.jsonld,l=t.json||a,s=t.typescript,c=t.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),u=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function p(e,t,i){return n=e,r=i,t}function f(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(a&&"@"==e.peek()&&e.match(h))return t.tokenize=f,p("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=f),p("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return p("number","number");if("."==r&&e.match(".."))return p("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return p(r);if("="==r&&e.eat(">"))return p("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return p("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),p("number","number");if("/"==r)return e.eat("*")?(t.tokenize=m,m(e,t)):e.eat("/")?(e.skipToEnd(),p("comment","comment")):Ve(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),p("regexp","string-2")):(e.eat("="),p("operator","operator",e.current()));if("`"==r)return t.tokenize=g,g(e,t);if("#"==r)return e.skipToEnd(),p("error","error");if("<"==r&&e.match("!--")||"-"==r&&e.match("->"))return e.skipToEnd(),p("comment","comment");if(u.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),p("operator","operator",e.current());if(c.test(r)){e.eatWhile(c);var i=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(i)){var o=d[i];return p(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*.*?\*\/)*[\[\(\w]/,!1))return p("async","keyword",i)}return p("variable","variable",i)}}function m(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=f;break}r="*"==n}return p("comment","comment")}function g(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=f;break}r=!r&&"\\"==n}return p("quasi","string-2",e.current())}function v(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(s){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var l=e.string.charAt(a),d="([{}])".indexOf(l);if(d>=0&&d<3){if(!i){++a;break}if(0==--i){"("==l&&(o=!0);break}}else if(d>=3&&d<6)++i;else if(c.test(l))o=!0;else if(/["'\/`]/.test(l))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==l&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function w(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function y(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var k={state:null,column:null,marked:null,cc:null};function x(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function C(){return x.apply(null,arguments),!0}function S(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function M(e){var n=k.state;if(k.marked="def",n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=E(e,n.context);if(null!=r)return void(n.context=r)}else if(!S(e,n.localVars))return void(n.localVars=new A(e,n.localVars));t.globalVars&&!S(e,n.globalVars)&&(n.globalVars=new A(e,n.globalVars))}function E(e,t){if(t){if(t.block){var n=E(e,t.prev);return n?n==t.prev?t:new L(n,t.vars,!0):null}return S(e,t.vars)?t:new L(t.prev,new A(e,t.vars),!1)}return null}function T(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function L(e,t,n){this.prev=e,this.vars=t,this.block=n}function A(e,t){this.name=e,this.next=t}var _=new A("this",new A("arguments",null));function N(){k.state.context=new L(k.state.context,k.state.localVars,!1),k.state.localVars=_}function D(){k.state.context=new L(k.state.context,k.state.localVars,!0),k.state.localVars=null}function O(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function I(e,t){var n=function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new w(r,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function z(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function F(e){return function t(n){return n==e?C():";"==e||"}"==n||")"==n||"]"==n?x():C(t)}}function R(e,t){return"var"==e?C(I("vardef",t),be,F(";"),z):"keyword a"==e?C(I("form"),H,R,z):"keyword b"==e?C(I("form"),R,z):"keyword d"==e?k.stream.match(/^\s*$/,!1)?C():C(I("stat"),U,F(";"),z):"debugger"==e?C(F(";")):"{"==e?C(I("}"),D,oe,z,O):";"==e?C():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==z&&k.state.cc.pop()(),C(I("form"),H,R,z,Se)):"function"==e?C(Le):"for"==e?C(I("form"),Me,R,z):"class"==e||s&&"interface"==t?(k.marked="keyword",C(I("form","class"==e?e:t),Oe,z)):"variable"==e?s&&"declare"==t?(k.marked="keyword",C(R)):s&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?C($e):"type"==t?C(_e,F("operator"),de,F(";")):C(I("form"),we,F("{"),I("}"),oe,z,z)):s&&"namespace"==t?(k.marked="keyword",C(I("form"),B,R,z)):s&&"abstract"==t?(k.marked="keyword",C(R)):C(I("stat"),Q):"switch"==e?C(I("form"),H,F("{"),I("}","switch"),D,oe,z,z,O):"case"==e?C(B,F(":")):"default"==e?C(F(":")):"catch"==e?C(I("form"),N,P,R,z,O):"export"==e?C(I("stat"),Re,z):"import"==e?C(I("stat"),Be,z):"async"==e?C(R):"@"==t?C(B,R):x(I("stat"),B,F(";"),z)}function P(e){if("("==e)return C(Ne,F(")"))}function B(e,t){return W(e,t,!1)}function j(e,t){return W(e,t,!0)}function H(e){return"("!=e?x():C(I(")"),B,F(")"),z)}function W(e,t,n){if(k.state.fatArrowAt==k.stream.start){var r=n?Z:q;if("("==e)return C(N,I(")"),re(Ne,")"),z,F("=>"),r,O);if("variable"==e)return x(N,we,F("=>"),r,O)}var i=n?$:G;return b.hasOwnProperty(e)?C(i):"function"==e?C(Le,i):"class"==e||s&&"interface"==t?(k.marked="keyword",C(I("form"),De,z)):"keyword c"==e||"async"==e?C(n?j:B):"("==e?C(I(")"),U,F(")"),z,i):"operator"==e||"spread"==e?C(n?j:B):"["==e?C(I("]"),Ge,z,i):"{"==e?ie(ee,"}",null,i):"quasi"==e?x(K,i):"new"==e?C(function(e){return function(t){return"."==t?C(e?Y:X):"variable"==t&&s?C(me,e?$:G):x(e?j:B)}}(n)):"import"==e?C(B):C()}function U(e){return e.match(/[;\}\)\],]/)?x():x(B)}function G(e,t){return","==e?C(B):$(e,t,!1)}function $(e,t,n){var r=0==n?G:$,i=0==n?B:j;return"=>"==e?C(N,n?Z:q,O):"operator"==e?/\+\+|--/.test(t)||s&&"!"==t?C(r):s&&"<"==t&&k.stream.match(/^([^>]|<.*?>)*>\s*\(/,!1)?C(I(">"),re(de,">"),z,r):"?"==t?C(B,F(":"),i):C(i):"quasi"==e?x(K,r):";"!=e?"("==e?ie(j,")","call",r):"."==e?C(J,r):"["==e?C(I("]"),U,F("]"),z,r):s&&"as"==t?(k.marked="keyword",C(de,r)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),C(i)):void 0:void 0}function K(e,t){return"quasi"!=e?x():"${"!=t.slice(t.length-2)?C(K):C(B,V)}function V(e){if("}"==e)return k.marked="string-2",k.state.tokenize=g,C(K)}function q(e){return v(k.stream,k.state),x("{"==e?R:B)}function Z(e){return v(k.stream,k.state),x("{"==e?R:j)}function X(e,t){if("target"==t)return k.marked="keyword",C(G)}function Y(e,t){if("target"==t)return k.marked="keyword",C($)}function Q(e){return":"==e?C(z,R):x(G,F(";"),z)}function J(e){if("variable"==e)return k.marked="property",C()}function ee(e,t){return"async"==e?(k.marked="property",C(ee)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?C(te):(s&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),C(ne))):"number"==e||"string"==e?(k.marked=a?"property":k.style+" property",C(ne)):"jsonld-keyword"==e?C(ne):s&&T(t)?(k.marked="keyword",C(ee)):"["==e?C(B,ae,F("]"),ne):"spread"==e?C(j,ne):"*"==t?(k.marked="keyword",C(ee)):":"==e?x(ne):void 0;var n}function te(e){return"variable"!=e?x(ne):(k.marked="property",C(Le))}function ne(e){return":"==e?C(j):"("==e?x(Le):void 0}function re(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),C((function(n,r){return n==t||r==t?x():x(e)}),r)}return i==t||o==t?C():n&&n.indexOf(";")>-1?x(e):C(F(t))}return function(n,i){return n==t||i==t?C():x(e,r)}}function ie(e,t,n){for(var r=3;r<arguments.length;r++)k.cc.push(arguments[r]);return C(I(t,n),re(e,t),z)}function oe(e){return"}"==e?C():x(R,oe)}function ae(e,t){if(s){if(":"==e)return C(de);if("?"==t)return C(ae)}}function le(e,t){if(s&&(":"==e||"in"==t))return C(de)}function se(e){if(s&&":"==e)return k.stream.match(/^\s*\w+\s+is\b/,!1)?C(B,ce,de):C(de)}function ce(e,t){if("is"==t)return k.marked="keyword",C()}function de(e,t){return"keyof"==t||"typeof"==t||"infer"==t?(k.marked="keyword",C("typeof"==t?j:de)):"variable"==e||"void"==t?(k.marked="type",C(fe)):"|"==t||"&"==t?C(de):"string"==e||"number"==e||"atom"==e?C(fe):"["==e?C(I("]"),re(de,"]",","),z,fe):"{"==e?C(I("}"),re(he,"}",",;"),z,fe):"("==e?C(re(pe,")"),ue,fe):"<"==e?C(re(de,">"),de):void 0}function ue(e){if("=>"==e)return C(de)}function he(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",C(he)):"?"==t||"number"==e||"string"==e?C(he):":"==e?C(de):"["==e?C(F("variable"),le,F("]"),he):"("==e?x(Ae,he):void 0}function pe(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?C(pe):":"==e?C(de):"spread"==e?C(pe):x(de)}function fe(e,t){return"<"==t?C(I(">"),re(de,">"),z,fe):"|"==t||"."==e||"&"==t?C(de):"["==e?C(de,F("]"),fe):"extends"==t||"implements"==t?(k.marked="keyword",C(de)):"?"==t?C(de,F(":"),de):void 0}function me(e,t){if("<"==t)return C(I(">"),re(de,">"),z,fe)}function ge(){return x(de,ve)}function ve(e,t){if("="==t)return C(de)}function be(e,t){return"enum"==t?(k.marked="keyword",C($e)):x(we,ae,xe,Ce)}function we(e,t){return s&&T(t)?(k.marked="keyword",C(we)):"variable"==e?(M(t),C()):"spread"==e?C(we):"["==e?ie(ke,"]"):"{"==e?ie(ye,"}"):void 0}function ye(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?C(we):"}"==e?x():"["==e?C(B,F("]"),F(":"),ye):C(F(":"),we,xe)):(M(t),C(xe))}function ke(){return x(we,xe)}function xe(e,t){if("="==t)return C(j)}function Ce(e){if(","==e)return C(be)}function Se(e,t){if("keyword b"==e&&"else"==t)return C(I("form","else"),R,z)}function Me(e,t){return"await"==t?C(Me):"("==e?C(I(")"),Ee,z):void 0}function Ee(e){return"var"==e?C(be,Te):"variable"==e?C(Te):x(Te)}function Te(e,t){return")"==e?C():";"==e?C(Te):"in"==t||"of"==t?(k.marked="keyword",C(B,Te)):x(B,Te)}function Le(e,t){return"*"==t?(k.marked="keyword",C(Le)):"variable"==e?(M(t),C(Le)):"("==e?C(N,I(")"),re(Ne,")"),z,se,R,O):s&&"<"==t?C(I(">"),re(ge,">"),z,Le):void 0}function Ae(e,t){return"*"==t?(k.marked="keyword",C(Ae)):"variable"==e?(M(t),C(Ae)):"("==e?C(N,I(")"),re(Ne,")"),z,se,O):s&&"<"==t?C(I(">"),re(ge,">"),z,Ae):void 0}function _e(e,t){return"keyword"==e||"variable"==e?(k.marked="type",C(_e)):"<"==t?C(I(">"),re(ge,">"),z):void 0}function Ne(e,t){return"@"==t&&C(B,Ne),"spread"==e?C(Ne):s&&T(t)?(k.marked="keyword",C(Ne)):s&&"this"==e?C(ae,xe):x(we,ae,xe)}function De(e,t){return"variable"==e?Oe(e,t):Ie(e,t)}function Oe(e,t){if("variable"==e)return M(t),C(Ie)}function Ie(e,t){return"<"==t?C(I(">"),re(ge,">"),z,Ie):"extends"==t||"implements"==t||s&&","==e?("implements"==t&&(k.marked="keyword"),C(s?de:B,Ie)):"{"==e?C(I("}"),ze,z):void 0}function ze(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||s&&T(t))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",C(ze)):"variable"==e||"keyword"==k.style?(k.marked="property",C(s?Fe:Le,ze)):"number"==e||"string"==e?C(s?Fe:Le,ze):"["==e?C(B,ae,F("]"),s?Fe:Le,ze):"*"==t?(k.marked="keyword",C(ze)):s&&"("==e?x(Ae,ze):";"==e||","==e?C(ze):"}"==e?C():"@"==t?C(B,ze):void 0}function Fe(e,t){if("?"==t)return C(Fe);if(":"==e)return C(de,xe);if("="==t)return C(j);var n=k.state.lexical.prev;return x(n&&"interface"==n.info?Ae:Le)}function Re(e,t){return"*"==t?(k.marked="keyword",C(Ue,F(";"))):"default"==t?(k.marked="keyword",C(B,F(";"))):"{"==e?C(re(Pe,"}"),Ue,F(";")):x(R)}function Pe(e,t){return"as"==t?(k.marked="keyword",C(F("variable"))):"variable"==e?x(j,Pe):void 0}function Be(e){return"string"==e?C():"("==e?x(B):x(je,He,Ue)}function je(e,t){return"{"==e?ie(je,"}"):("variable"==e&&M(t),"*"==t&&(k.marked="keyword"),C(We))}function He(e){if(","==e)return C(je,He)}function We(e,t){if("as"==t)return k.marked="keyword",C(je)}function Ue(e,t){if("from"==t)return k.marked="keyword",C(B)}function Ge(e){return"]"==e?C():x(re(j,"]"))}function $e(){return x(I("form"),we,F("{"),I("}"),re(Ke,"}"),z,z)}function Ke(){return x(we,xe)}function Ve(e,t,n){return t.tokenize==f&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return O.lex=!0,z.lex=!0,{startState:function(e){var n={tokenize:f,lastType:"sof",cc:[],lexical:new w((e||0)-i,0,"block",!1),localVars:t.localVars,context:t.localVars&&new L(null,null,!1),indented:e||0};return t.globalVars&&"object"===Cl(t.globalVars)&&(n.globalVars=t.globalVars),n},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),v(e,t)),t.tokenize!=m&&e.eatSpace())return null;var i=t.tokenize(e,t);return"comment"==n?i:(t.lastType="operator"!=n||"++"!=r&&"--"!=r?n:"incdec",function(e,t,n,r,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?B:R)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&y(e,r)?"variable-2":t}}(t,i,n,r,e))},indent:function(e,n){if(e.tokenize==m)return Qa.Pass;if(e.tokenize!=f)return 0;var r,a=n&&n.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(n))for(var s=e.cc.length-1;s>=0;--s){var c=e.cc[s];if(c==z)l=l.prev;else if(c!=Se)break}for(;("stat"==l.type||"form"==l.type)&&("}"==a||(r=e.cc[e.cc.length-1])&&(r==G||r==$)&&!/^[,\.=+\-*:?[\(]/.test(n));)l=l.prev;o&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,h=a==d;return"vardef"==d?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==d&&"{"==a?l.indented:"form"==d?l.indented+i:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||u.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(e,n)?o||i:0):"switch"!=l.info||h||0==t.doubleIndentSwitch?l.align?l.column+(h?0:1):l.indented+(h?0:i):l.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:a,jsonMode:l,expressionAllowed:Ve,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=B&&t!=j||e.cc.pop()}}}Qa.registerHelper("hintWords","css",kl),Qa.defineMIME("text/css",{documentTypes:il,mediaTypes:al,mediaFeatures:sl,mediaValueKeywords:dl,propertyKeywords:hl,nonStandardPropertyKeywords:fl,fontProperties:ml,counterDescriptors:gl,colorKeywords:bl,valueKeywords:yl,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=xl,xl(e,t))}},name:"css"}),Qa.defineMIME("text/x-scss",{mediaTypes:al,mediaFeatures:sl,mediaValueKeywords:dl,propertyKeywords:hl,nonStandardPropertyKeywords:fl,colorKeywords:bl,valueKeywords:yl,fontProperties:ml,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=xl,xl(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),Qa.defineMIME("text/x-less",{mediaTypes:al,mediaFeatures:sl,mediaValueKeywords:dl,propertyKeywords:hl,nonStandardPropertyKeywords:fl,colorKeywords:bl,valueKeywords:yl,fontProperties:ml,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=xl,xl(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),Qa.defineMIME("text/x-gss",{documentTypes:il,mediaTypes:al,mediaFeatures:sl,propertyKeywords:hl,nonStandardPropertyKeywords:fl,fontProperties:ml,counterDescriptors:gl,colorKeywords:bl,valueKeywords:yl,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=xl,xl(e,t))}},name:"css",helperType:"gss"}),Qa.defineMIME("less","css"),Qa.defineMIME("scss","css"),Qa.defineMIME("sass","css"),Qa.defineMIME("style","css"),Qa.defineMode("javascript",Sl),Qa.defineMode("js",Sl),Qa.registerHelper("wordChars","javascript",/[\w$]/),Qa.defineMIME("json",{name:"javascript",json:!0}),Qa.defineMIME("typescript",{name:"javascript",typescript:!0}),Qa.defineMIME("ts",{name:"javascript",typescript:!0});["js","json","python","py","react","coffeescript","dart","go","jsx"].forEach((function(e){Qa.defineMIME(e,"javascript")})),Qa.defineMode("markdown",(function(e,t){var n=Qa.getMode(e,"text/html"),r="null"==n.name;void 0===t.highlightFormatting&&(t.highlightFormatting=!1),void 0===t.maxBlockquoteDepth&&(t.maxBlockquoteDepth=0),void 0===t.taskLists&&(t.taskLists=!1),void 0===t.strikethrough&&(t.strikethrough=!1),void 0===t.emoji&&(t.emoji=!1),void 0===t.fencedCodeBlockHighlighting&&(t.fencedCodeBlockHighlighting=!0),void 0===t.xml&&(t.xml=!0),void 0===t.tokenTypeOverrides&&(t.tokenTypeOverrides={});var i={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var o in i)i.hasOwnProperty(o)&&t.tokenTypeOverrides[o]&&(i[o]=t.tokenTypeOverrides[o]);var a=/^([*\-_])(?:\s*\1){2,}\s*$/,l=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,s=/^\[(x| )\](?=\s)/i,c=t.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,d=/^ *(?:\={1,}|-{1,})\s*$/,u=/^[^#!\[\]*_\\<>` "'(~:]+/,h=/^(~~~+|```+)[ \t]*([\w+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,f=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function m(e,t,n){return t.f=t.inline=n,n(e,t)}function g(e,t,n){return t.f=t.block=n,n(e,t)}function v(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==w){var t=r;if(!t){var i=Qa.innerMode(n,e.htmlState);t="xml"==i.mode.name&&null===i.state.tagStart&&!i.state.context&&i.state.tokenize.isInText}t&&(e.f=C,e.block=b,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function b(n,r){var o,u=n.column()===r.indentation,f=!(o=r.prevLine.stream)||!/\S/.test(o.string),g=r.indentedCode,v=r.prevLine.hr,b=!1!==r.list,w=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var x=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,b)){for(r.list=null;x<r.listStack[r.listStack.length-1];)r.listStack.pop(),r.listStack.length?r.indentation=r.listStack[r.listStack.length-1]:r.list=!1;!1!==r.list&&(r.indentationDiff=x-r.listStack[r.listStack.length-1])}var C=!(f||v||r.prevLine.header||b&&g||r.prevLine.fencedCodeEnd),S=(!1===r.list||v||f)&&r.indentation<=w&&n.match(a),M=null;if(r.indentationDiff>=4&&(g||r.prevLine.fencedCodeEnd||r.prevLine.header||f))return n.skipToEnd(),r.indentedCode=!0,i.code;if(n.eatSpace())return null;if(u&&r.indentation<=w&&(M=n.match(c))&&M[1].length<=6)return r.quote=0,r.header=M[1].length,r.thisLine.header=!0,t.highlightFormatting&&(r.formatting="header"),r.f=r.inline,k(r);if(r.indentation<=w&&n.eat(">"))return r.quote=u?1:r.quote+1,t.highlightFormatting&&(r.formatting="quote"),n.eatSpace(),k(r);if(!S&&!r.setext&&u&&r.indentation<=w&&(M=n.match(l))){var E=M[1]?"ol":"ul";return r.indentation=x+n.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,t.taskLists&&n.match(s,!1)&&(r.taskList=!0),r.f=r.inline,t.highlightFormatting&&(r.formatting=["list","list-"+E]),k(r)}return u&&r.indentation<=w&&(M=n.match(h,!0))?(r.quote=0,r.fencedEndRE=new RegExp(M[1]+"+ *$"),r.localMode=t.fencedCodeBlockHighlighting&&function(t){if(Qa.findModeByName){var n=Qa.findModeByName(t);n&&(t=n.mime||n.mimes[0])}var r=Qa.getMode(e,t);return"null"==r.name?null:r}(M[2]),r.localMode&&(r.localState=Qa.startState(r.localMode)),r.f=r.block=y,t.highlightFormatting&&(r.formatting="code-block"),r.code=-1,k(r)):r.setext||!(C&&b||r.quote||!1!==r.list||r.code||S||p.test(n.string))&&(M=n.lookAhead(1))&&(M=M.match(d))?(r.setext?(r.header=r.setext,r.setext=0,n.skipToEnd(),t.highlightFormatting&&(r.formatting="header")):(r.header="="==M[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,k(r)):S?(n.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,i.hr):"["===n.peek()?m(n,r,T):m(n,r,r.inline)}function w(e,t){var i=n.token(e,t.htmlState);if(!r){var o=Qa.innerMode(n,t.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=C,t.block=b,t.htmlState=null)}return i}function y(e,n){var r,o=n.listStack[n.listStack.length-1]||0,a=n.indentation<o,l=o+3;return n.fencedEndRE&&n.indentation<=l&&(a||e.match(n.fencedEndRE))?(t.highlightFormatting&&(n.formatting="code-block"),a||(r=k(n)),n.localMode=n.localState=null,n.block=b,n.f=C,n.fencedEndRE=null,n.code=0,n.thisLine.fencedCodeEnd=!0,a?g(e,n,n.block):r):n.localMode?n.localMode.token(e,n.localState):(e.skipToEnd(),i.code)}function k(e){var n=[];if(e.formatting){n.push(i.formatting),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)n.push(i.formatting+"-"+e.formatting[r]),"header"===e.formatting[r]&&n.push(i.formatting+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&(!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(i.formatting+"-"+e.formatting[r]+"-"+e.quote):n.push("error"))}if(e.taskOpen)return n.push("meta"),n.length?n.join(" "):null;if(e.taskClosed)return n.push("property"),n.length?n.join(" "):null;if(e.linkHref?n.push(i.linkHref,"url"):(e.strong&&n.push(i.strong),e.em&&n.push(i.em),e.strikethrough&&n.push(i.strikethrough),e.emoji&&n.push(i.emoji),e.linkText&&n.push(i.linkText),e.code&&n.push(i.code),e.image&&n.push(i.image),e.imageAltText&&n.push(i.imageAltText,"link"),e.imageMarker&&n.push(i.imageMarker)),e.header&&n.push(i.header,i.header+"-"+e.header),e.quote&&(n.push(i.quote),!t.maxBlockquoteDepth||t.maxBlockquoteDepth>=e.quote?n.push(i.quote+"-"+e.quote):n.push(i.quote+"-"+t.maxBlockquoteDepth)),!1!==e.list){var o=(e.listStack.length-1)%3;o?1===o?n.push(i.list2):n.push(i.list3):n.push(i.list1)}return e.trailingSpaceNewLine?n.push("trailing-space-new-line"):e.trailingSpace&&n.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),n.length?n.join(" "):null}function x(e,t){if(e.match(u,!0))return k(t)}function C(e,r){var o=r.text(e,r);if(void 0!==o)return o;if(r.list)return r.list=null,k(r);if(r.taskList)return" "===e.match(s,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,t.highlightFormatting&&(r.formatting="task"),r.taskList=!1,k(r);if(r.taskOpen=!1,r.taskClosed=!1,r.header&&e.match(/^#+$/,!0))return t.highlightFormatting&&(r.formatting="header"),k(r);var a=e.next();if(r.linkTitle){r.linkTitle=!1;var l=a;"("===a&&(l=")");var c="^\\s*(?:[^"+(l=String(l).replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+l;if(e.match(new RegExp(c),!0))return i.linkHref}if("`"===a){var d=r.formatting;t.highlightFormatting&&(r.formatting="code"),e.eatWhile("`");var u=e.current().length;if(0!=r.code||r.quote&&1!=u){if(u==r.code){var h=k(r);return r.code=0,h}return r.formatting=d,k(r)}return r.code=u,k(r)}if(r.code)return k(r);if("\\"===a&&(e.next(),t.highlightFormatting)){var p=k(r),m=i.formatting+"-escape";return p?p+" "+m:m}if("!"===a&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,t.highlightFormatting&&(r.formatting="image"),k(r);if("["===a&&r.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,t.highlightFormatting&&(r.formatting="image"),k(r);if("]"===a&&r.imageAltText){t.highlightFormatting&&(r.formatting="image");var p=k(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=M,p}if("["===a&&!r.image)return r.linkText&&e.match(/^.*?\]/)||(r.linkText=!0,t.highlightFormatting&&(r.formatting="link")),k(r);if("]"===a&&r.linkText){t.highlightFormatting&&(r.formatting="link");var p=k(r);return r.linkText=!1,r.inline=r.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?M:C,p}if("<"===a&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=S,t.highlightFormatting&&(r.formatting="link"),(p=k(r))?p+=" ":p="",p+i.linkInline;if("<"===a&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=S,t.highlightFormatting&&(r.formatting="link"),(p=k(r))?p+=" ":p="",p+i.linkEmail;if(t.xml&&"<"===a&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var v=e.string.indexOf(">",e.pos);if(-1!=v){var b=e.string.substring(e.start,v);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(b)&&(r.md_inside=!0)}return e.backUp(1),r.htmlState=Qa.startState(n),g(e,r,w)}if(t.xml&&"<"===a&&e.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===a||"_"===a){for(var y=1,x=1==e.pos?" ":e.string.charAt(e.pos-2);y<3&&e.eat(a);)y++;var E=e.peek()||" ",T=!/\s/.test(E)&&(!f.test(E)||/\s/.test(x)||f.test(x)),L=!/\s/.test(x)&&(!f.test(x)||/\s/.test(E)||f.test(E)),A=null,_=null;if(y%2&&(r.em||!T||"*"!==a&&L&&!f.test(x)?r.em!=a||!L||"*"!==a&&T&&!f.test(E)||(A=!1):A=!0),y>1&&(r.strong||!T||"*"!==a&&L&&!f.test(x)?r.strong!=a||!L||"*"!==a&&T&&!f.test(E)||(_=!1):_=!0),null!=_||null!=A){t.highlightFormatting&&(r.formatting=null==A?"strong":null==_?"em":"strong em"),!0===A&&(r.em=a),!0===_&&(r.strong=a);h=k(r);return!1===A&&(r.em=!1),!1===_&&(r.strong=!1),h}}else if(" "===a&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return k(r);e.backUp(1)}if(t.strikethrough)if("~"===a&&e.eatWhile(a)){if(r.strikethrough){t.highlightFormatting&&(r.formatting="strikethrough");h=k(r);return r.strikethrough=!1,h}if(e.match(/^[^\s]/,!1))return r.strikethrough=!0,t.highlightFormatting&&(r.formatting="strikethrough"),k(r)}else if(" "===a&&e.match(/^~~/,!0)){if(" "===e.peek())return k(r);e.backUp(2)}if(t.emoji&&":"===a&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){r.emoji=!0,t.highlightFormatting&&(r.formatting="emoji");var N=k(r);return r.emoji=!1,N}return" "===a&&(e.match(/^ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),k(r)}function S(e,n){if(">"===e.next()){n.f=n.inline=C,t.highlightFormatting&&(n.formatting="link");var r=k(n);return r?r+=" ":r="",r+i.linkInline}return e.match(/^[^>]+/,!0),i.linkInline}function M(e,n){if(e.eatSpace())return null;var r,i=e.next();return"("===i||"["===i?(n.f=n.inline=(r="("===i?")":"]",function(e,n){if(e.next()===r){n.f=n.inline=C,t.highlightFormatting&&(n.formatting="link-string");var i=k(n);return n.linkHref=!1,i}return e.match(E[r]),n.linkHref=!0,k(n)}),t.highlightFormatting&&(n.formatting="link-string"),n.linkHref=!0,k(n)):"error"}var E={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function T(e,n){return e.match(/^([^\]\\]|\\.)*\]:/,!1)?(n.f=L,e.next(),t.highlightFormatting&&(n.formatting="link"),n.linkText=!0,k(n)):m(e,n,C)}function L(e,n){if(e.match(/^\]:/,!0)){n.f=n.inline=A,t.highlightFormatting&&(n.formatting="link");var r=k(n);return n.linkText=!1,r}return e.match(/^([^\]\\]|\\.)+/,!0),i.linkText}function A(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=C,i.linkHref+" url")}var _={startState:function(){return{f:b,prevLine:{stream:null},thisLine:{stream:null},block:b,htmlState:null,indentation:0,inline:C,text:x,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&Qa.copyState(n,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?Qa.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(e,t){if(t.formatting=!1,e!=t.thisLine.stream){if(t.header=0,t.hr=!1,e.match(/^\s*$/,!0))return v(t),null;if(t.prevLine=t.thisLine,t.thisLine={stream:e},t.taskList=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,!t.localState&&(t.f=t.block,t.f!=w)){var n=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(t.indentation=n,t.indentationDiff=null,n>0)return null}}return t.f(e,t)},innerMode:function(e){return e.block==w?{state:e.htmlState,mode:n}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:_}},indent:function(e,t,r){return e.block==w&&n.indent?n.indent(e.htmlState,t,r):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,t,r):Qa.Pass},blankLine:v,getType:k,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return _}),"xml"),Qa.defineMIME("text/src","markdown"),Qa.defineMIME("text/x-src","markdown");const Ml={tabSize:4,styleActiveLine:!0,lineNumbers:!0,lineWrapping:!1,line:!0,mode:"text/x-src",theme:"default",cursorHeight:.8,lineWiseCopyCut:!0};var El=n(93379),Tl=n.n(El),Ll=n(60107),Al={insert:"head",singleton:!1};Tl()(Ll.Z,Al);Ll.Z.locals;const _l={strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!1,h5:!1,h6:!1,hr:!0,quote:!0,ul:!0,ol:!0,code:!0,link:!0,image:!0,uploadImage:!1,custom_image:!1,custom_uploadImage:!1,custom_uploadFile:!1,table:!0,checked:!0,notChecked:!0,split:!0,preview:!0,fullscreen:!0,theme:!0,exportmd:!0,importmd:!0,save:!1,clear:!1};function Nl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(n),!0).forEach((function(t){Ol(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ol(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Il={name:"markdown",props:{value:{type:[String,Number],default:""},theme:{type:String,default:"light"},width:{type:[Number,String],default:"auto"},height:{type:[Number,String],default:600},toolbars:{type:Object,default:function(){return{}}},bordered:{type:Boolean,default:!0},autoSave:{type:Boolean,default:!1},interval:{type:Number,default:1e4},exportFileName:{type:String,default:"unnamed"},markedOptions:{type:Object,default:function(){return{}}},copyCode:{type:Boolean,default:!0},copyBtnText:{type:String,default:"复制代码"},isPreview:{type:Boolean,default:!1},isCustomFullscreen:{type:Boolean,default:!1}},data:function(){return{currentValue:"",timeoutId:null,indexLenth:1,html:"",preview:!1,split:!0,fullscreen:!1,scrollSide:"",lastInsert:"",timerId:null,themeName:"",themeSlideDown:!1,imgSlideDown:!1,imgs:[],scrolling:!0,editorScrollHeight:0,previewImgModal:!1,previewImgSrc:"",previewImgMode:"",tocTrigger:!1,tocShow:!1,tocAction:"",tocLists:[]}},computed:{tools:function(){var e=this.toolbars,t=void 0===e?{}:e;return Dl(Dl({},_l),t)}},methods:{insertLink:function(){this.insertContent("\n[link](href)")},insertImage:function(){this.insertContent("\n")},insertTable:function(){this.insertContent("\nheader 1 | header 2\n---|---\nrow 1 col 1 | row 1 col 2\nrow 2 col 1 | row 2 col 2\n\n")},handleSave:function(){var e=this.currentValue,t=this.themeName,n=this.html;this.$emit("on-save",{theme:t,value:e,html:n})},toggleSlideDown:function(){this.slideDown=!this.slideDown},setThemes:function(e){this.themeName=e,this.themeSlideDown=!1,this.$emit("on-theme-change",e)},exportFile:function(){!function(e,t){var n=document.createElement("a");if(n.setAttribute("href","data:text/plain;charset=UTF-8,"+encodeURIComponent(e)),n.setAttribute("download",t),n.style.display="none",document.createEvent){var r=document.createEvent("MouseEvents");r.initEvent("click",!0,!0),n.dispatchEvent(r)}else n.click()}(this.currentValue,this.exportFileName+".md")},importFile:function(e){var t=this,n=e.target.files[0];if(n){var r=n.type;if(["text/markdown","text/src"].includes(r)){var i=new FileReader;i.readAsText(n,{encoding:"utf-8"}),i.onload=function(){t.currentValue=i.result,e.target.value="",t.pro&&t.editor.setOption("value",t.currentValue)},i.onerror=function(e){console.error(e)}}}},handlePaste:function(e,t){for(var n=t.clipboardData,r=void 0===n?{}:n,i=r.types,o=void 0===i?[]:i,a=r.items,l=null,s=0;s<o.length;s++)if("Files"===o[s]){l=a[s];break}if(l){var c=l.getAsFile();/image/gi.test(c.type)&&(this.$emit("on-upload-image",c),t.preventDefault())}},mousescrollSide:function(e){this.scrollSide=e},addImageClickListener:function(){var e=this,t=this.imgs,n=void 0===t?[]:t;if(n.length>0)for(var r=0,i=n.length;r<i;r++)n[r].onclick=null;setTimeout((function(){if(e.$refs.preview){e.imgs=e.$refs.preview.querySelectorAll("img");for(var t=function(t,n){e.imgs[t].onclick=function(){var n=e.imgs[t].getAttribute("src");e.previewImage(n)}},n=0,r=e.imgs.length;n<r;n++)t(n)}}),600)},previewImage:function(e){var t=this,n=new Image;n.src=e,n.onload=function(){var r=n.naturalWidth,i=n.naturalHeight;t.previewImgMode=i/r>1.4?"horizontal":"vertical",t.previewImgSrc=e,t.previewImgModal=!0}},chooseImage:function(){var e=this,t=document.createElement("input");t.type="file",t.accept="image/*",t.onchange=function(){var n=t.files;n[0]&&(e.$emit("on-upload-image",n[0]),t.value="")},t.click()},addCopyListener:function(){var e=this;setTimeout((function(){var t=document.querySelectorAll(".code-block .copy-code");e.btns=t;for(var n=function(n,r){t[n].onclick=function(){var r=t[n].parentNode.querySelectorAll("pre")[0].innerText,i=document.createElement("input");i.setAttribute("value",r),document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),e.$emit("on-copy",r)}},r=0,i=t.length;r<i;r++)n(r)}),600)},onCustom:function(e){this.$emit("on-custom",e)}},destroyed:function(){clearInterval(this.timerId)}};var zl={},Fl=[],Rl=Object.keys,Pl={},Bl={},jl=/^(no-?highlight|plain|text)$/i,Hl=/\blang(?:uage)?-([\w-]+)\b/i,Wl=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,Ul="</span>",Gl={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function $l(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Kl(e){return e.nodeName.toLowerCase()}function Vl(e,t){var n=e&&e.exec(t);return n&&0===n.index}function ql(e){return jl.test(e)}function Zl(e){var t,n={},r=Array.prototype.slice.call(arguments,1);for(t in e)n[t]=e[t];return r.forEach((function(e){for(t in e)n[t]=e[t]})),n}function Xl(e){var t=[];return function e(n,r){for(var i=n.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(t.push({event:"start",offset:r,node:i}),r=e(i,r),Kl(i).match(/br|hr|img|input/)||t.push({event:"stop",offset:r,node:i}));return r}(e,0),t}function Yl(e){function t(e){return e&&e.source||e}function n(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}!function r(i,o){if(!i.compiled){if(i.compiled=!0,i.keywords=i.keywords||i.beginKeywords,i.keywords){var a={},l=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach((function(e){var n=e.split("|");a[n[0]]=[t,n[1]?Number(n[1]):1]}))};"string"==typeof i.keywords?l("keyword",i.keywords):Rl(i.keywords).forEach((function(e){l(e,i.keywords[e])})),i.keywords=a}i.lexemesRe=n(i.lexemes||/\w+/,!0),o&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")\\b"),i.begin||(i.begin=/\B|\b/),i.beginRe=n(i.begin),i.endSameAsBegin&&(i.end=i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(i.endRe=n(i.end)),i.terminator_end=t(i.end)||"",i.endsWithParent&&o.terminator_end&&(i.terminator_end+=(i.end?"|":"")+o.terminator_end)),i.illegal&&(i.illegalRe=n(i.illegal)),null==i.relevance&&(i.relevance=1),i.contains||(i.contains=[]),i.contains=Array.prototype.concat.apply([],i.contains.map((function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(t){return Zl(e,{variants:null},t)}))),e.cached_variants||e.endsWithParent&&[Zl(e)]||[e]}("self"===e?i:e)}))),i.contains.forEach((function(e){r(e,i)})),i.starts&&r(i.starts,o);var s=i.contains.map((function(e){return e.beginKeywords?"\\.?(?:"+e.begin+")\\.?":e.begin})).concat([i.terminator_end,i.illegal]).map(t).filter(Boolean);i.terminators=s.length?n(function(e,n){for(var r=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,i=0,o="",a=0;a<e.length;a++){var l=i,s=t(e[a]);for(a>0&&(o+=n);s.length>0;){var c=r.exec(s);if(null==c){o+=s;break}o+=s.substring(0,c.index),s=s.substring(c.index+c[0].length),"\\"==c[0][0]&&c[1]?o+="\\"+String(Number(c[1])+l):(o+=c[0],"("==c[0]&&i++)}}return o}(s,"|"),!0):{exec:function(){return null}}}}(e)}function Ql(e,t,n,r){function i(e){return new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function o(e,t){if(Vl(e.endRe,t)){for(;e.endsParent&&e.parent;)e=e.parent;return e}if(e.endsWithParent)return o(e.parent,t)}function a(e,t){var n=u.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function l(e,t,n,r){var i='<span class="'+(r?"":Gl.classPrefix);return e?(i+=e+'">')+t+(n?"":Ul):t}function s(){m+=null!=p.subLanguage?function(){var e="string"==typeof p.subLanguage;if(e&&!Pl[p.subLanguage])return $l(g);var t=e?Ql(p.subLanguage,g,!0,f[p.subLanguage]):Jl(g,p.subLanguage.length?p.subLanguage:void 0);return p.relevance>0&&(v+=t.relevance),e&&(f[p.subLanguage]=t.top),l(t.language,t.value,!1,!0)}():function(){var e,t,n,r;if(!p.keywords)return $l(g);for(r="",t=0,p.lexemesRe.lastIndex=0,n=p.lexemesRe.exec(g);n;)r+=$l(g.substring(t,n.index)),(e=a(p,n))?(v+=e[1],r+=l(e[0],$l(n[0]))):r+=$l(n[0]),t=p.lexemesRe.lastIndex,n=p.lexemesRe.exec(g);return r+$l(g.substr(t))}(),g=""}function c(e){m+=e.className?l(e.className,"",!0):"",p=Object.create(e,{parent:{value:p}})}function d(e,t){if(g+=e,null==t)return s(),0;var r=function(e,t){var n,r;for(n=0,r=t.contains.length;n<r;n++)if(Vl(t.contains[n].beginRe,e))return t.contains[n].endSameAsBegin&&(t.contains[n].endRe=i(t.contains[n].beginRe.exec(e)[0])),t.contains[n]}(t,p);if(r)return r.skip?g+=t:(r.excludeBegin&&(g+=t),s(),r.returnBegin||r.excludeBegin||(g=t)),c(r),r.returnBegin?0:t.length;var a=o(p,t);if(a){var l=p;l.skip?g+=t:(l.returnEnd||l.excludeEnd||(g+=t),s(),l.excludeEnd&&(g=t));do{p.className&&(m+=Ul),p.skip||p.subLanguage||(v+=p.relevance),p=p.parent}while(p!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),c(a.starts)),l.returnEnd?0:t.length}if(function(e,t){return!n&&Vl(t.illegalRe,e)}(t,p))throw new Error('Illegal lexeme "'+t+'" for mode "'+(p.className||"<unnamed>")+'"');return g+=t,t.length||1}var u=rs(e);if(!u)throw new Error('Unknown language: "'+e+'"');Yl(u);var h,p=r||u,f={},m="";for(h=p;h!==u;h=h.parent)h.className&&(m=l(h.className,"",!0)+m);var g="",v=0;try{for(var b,w,y=0;p.terminators.lastIndex=y,b=p.terminators.exec(t);)w=d(t.substring(y,b.index),b[0]),y=b.index+w;for(d(t.substr(y)),h=p;h.parent;h=h.parent)h.className&&(m+=Ul);return{relevance:v,value:m,language:e,top:p}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:$l(t)};throw e}}function Jl(e,t){t=t||Gl.languages||Rl(Pl);var n={relevance:0,value:$l(e)},r=n;return t.filter(rs).filter(is).forEach((function(t){var i=Ql(t,e,!1);i.language=t,i.relevance>r.relevance&&(r=i),i.relevance>n.relevance&&(r=n,n=i)})),r.language&&(n.second_best=r),n}function es(e){return Gl.tabReplace||Gl.useBR?e.replace(Wl,(function(e,t){return Gl.useBR&&"\n"===e?"<br>":Gl.tabReplace?t.replace(/\t/g,Gl.tabReplace):""})):e}function ts(e){var t,n,r,i,o,a=function(e){var t,n,r,i,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",n=Hl.exec(o))return rs(n[1])?n[1]:"no-highlight";for(t=0,r=(o=o.split(/\s+/)).length;t<r;t++)if(ql(i=o[t])||rs(i))return i}(e);ql(a)||(Gl.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n"):t=e,o=t.textContent,r=a?Ql(a,o,!0):Jl(o),(n=Xl(t)).length&&((i=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=r.value,r.value=function(e,t,n){var r=0,i="",o=[];function a(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function l(e){i+="<"+Kl(e)+Fl.map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+$l(e.value).replace('"',""")+'"'})).join("")+">"}function s(e){i+="</"+Kl(e)+">"}function c(e){("start"===e.event?l:s)(e.node)}for(;e.length||t.length;){var d=a();if(i+=$l(n.substring(r,d[0].offset)),r=d[0].offset,d===e){o.reverse().forEach(s);do{c(d.splice(0,1)[0]),d=a()}while(d===e&&d.length&&d[0].offset===r);o.reverse().forEach(l)}else"start"===d[0].event?o.push(d[0].node):o.pop(),c(d.splice(0,1)[0])}return i+$l(n.substr(r))}(n,Xl(i),o)),r.value=es(r.value),e.innerHTML=r.value,e.className=function(e,t,n){var r=t?Bl[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),-1===e.indexOf(r)&&i.push(r),i.join(" ").trim()}(e.className,a,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function ns(){if(!ns.called){ns.called=!0;var e=document.querySelectorAll("pre code");Fl.forEach.call(e,ts)}}function rs(e){return e=(e||"").toLowerCase(),Pl[e]||Pl[Bl[e]]}function is(e){var t=rs(e);return t&&!t.disableAutodetect}zl.highlight=Ql,zl.highlightAuto=Jl,zl.fixMarkup=es,zl.highlightBlock=ts,zl.configure=function(e){Gl=Zl(Gl,e)},zl.initHighlighting=ns,zl.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",ns,!1),addEventListener("load",ns,!1)},zl.registerLanguage=function(e,t){var n=Pl[e]=t(zl);n.aliases&&n.aliases.forEach((function(t){Bl[t]=e}))},zl.listLanguages=function(){return Rl(Pl)},zl.getLanguage=rs,zl.autoDetection=is,zl.inherit=Zl,zl.IDENT_RE="[a-zA-Z]\\w*",zl.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",zl.NUMBER_RE="\\b\\d+(\\.\\d+)?",zl.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",zl.BINARY_NUMBER_RE="\\b(0b[01]+)",zl.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",zl.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},zl.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[zl.BACKSLASH_ESCAPE]},zl.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[zl.BACKSLASH_ESCAPE]},zl.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},zl.COMMENT=function(e,t,n){var r=zl.inherit({className:"comment",begin:e,end:t,contains:[]},n||{});return r.contains.push(zl.PHRASAL_WORDS_MODE),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),r},zl.C_LINE_COMMENT_MODE=zl.COMMENT("//","$"),zl.C_BLOCK_COMMENT_MODE=zl.COMMENT("/\\*","\\*/"),zl.HASH_COMMENT_MODE=zl.COMMENT("#","$"),zl.NUMBER_MODE={className:"number",begin:zl.NUMBER_RE,relevance:0},zl.C_NUMBER_MODE={className:"number",begin:zl.C_NUMBER_RE,relevance:0},zl.BINARY_NUMBER_MODE={className:"number",begin:zl.BINARY_NUMBER_RE,relevance:0},zl.CSS_NUMBER_MODE={className:"number",begin:zl.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},zl.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[zl.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[zl.BACKSLASH_ESCAPE]}]},zl.TITLE_MODE={className:"title",begin:zl.IDENT_RE,relevance:0},zl.UNDERSCORE_TITLE_MODE={className:"title",begin:zl.UNDERSCORE_IDENT_RE,relevance:0},zl.METHOD_GUARD={begin:"\\.\\s*"+zl.UNDERSCORE_IDENT_RE,relevance:0};const os=zl;var as=n(5489),ls=n.n(as),ss=n(53049),cs=n.n(ss),ds=n(40349),us=n.n(ds),hs=n(17410),ps=n.n(hs),fs=n(8650),ms=n.n(fs),gs=n(67020),vs=n.n(gs),bs=n(51988),ws=n.n(bs),ys=n(15350),ks=n.n(ys),xs=n(86507),Cs=n.n(xs),Ss=n(283),Ms=n.n(Ss),Es=n(4142),Ts=n.n(Es),Ls=n(52423),As=n.n(Ls),_s={javascript:ls(),java:cs(),css:us(),less:ps(),markdown:vs(),go:ms(),php:ws(),python:ks(),typescript:Cs(),xml:Ms(),autohotkey:Ts(),auto:As()};Object.keys(_s).forEach((function(e){os.registerLanguage(e,_s[e])}));const Ns=os,Ds={add:function(e,t){var n="toc".concat(t).concat(++this.index),r={anchor:n,level:t,text:e},i=this.tocItems;return r.level<=5&&i.push(r),n},reset:function(){this.tocItems=[],this.index=0},tocItems:[],index:0};void 0===window._goTocAction&&(window._goTocAction=function(e,t,n){var r=$A(e).parents(".markdown-preview");if(r){var i=r.find("h"+t+'[toc-id="'+n+'"]');i&&r.animate({scrollTop:i.offset().top-r.offset().top+r.scrollTop()})}});var Os={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\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:Vs,table:Vs,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function Is(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Js.defaults,this.rules=Os.normal,this.options.pedantic?this.rules=Os.pedantic:this.options.gfm&&(this.rules=Os.gfm)}Os._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Os._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Os.def=Us(Os.def).replace("label",Os._label).replace("title",Os._title).getRegex(),Os.bullet=/(?:[*+-]|\d{1,9}\.)/,Os.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Os.item=Us(Os.item,"gm").replace(/bull/g,Os.bullet).getRegex(),Os.list=Us(Os.list).replace(/bull/g,Os.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Os.def.source+")").getRegex(),Os._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",Os._comment=/<!--(?!-?>)[\s\S]*?-->/,Os.html=Us(Os.html,"i").replace("comment",Os._comment).replace("tag",Os._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Os.paragraph=Us(Os._paragraph).replace("hr",Os.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Os._tag).getRegex(),Os.blockquote=Us(Os.blockquote).replace("paragraph",Os.paragraph).getRegex(),Os.normal=qs({},Os),Os.gfm=qs({},Os.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),Os.pedantic=qs({},Os.normal,{html:Us("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Os._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:Vs,paragraph:Us(Os.normal._paragraph).replace("hr",Os.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Os.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),Is.rules=Os,Is.lex=function(e,t){return new Is(t).lex(e)},Is.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},Is.prototype.token=function(e,t){var n,r,i,o,a,l,s,c,d,u,h,p,f,m,g,v;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var b=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),b&&"paragraph"===b.type?b.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:Xs(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(l={type:"table",header:Zs(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(i[0].length),h=0;h<l.align.length;h++)/^ *-+: *$/.test(l.align[h])?l.align[h]="right":/^ *:-+: *$/.test(l.align[h])?l.align[h]="center":/^ *:-+ *$/.test(l.align[h])?l.align[h]="left":l.align[h]=null;for(h=0;h<l.cells.length;h++)l.cells[h]=Zs(l.cells[h],l.header.length);this.tokens.push(l)}else if(i=this.rules.hr.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"hr"});else if(i=this.rules.blockquote.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"blockquote_start"}),i=i[0].replace(/^ *> ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),s={type:"list_start",ordered:m=(o=i[2]).length>1,start:m?+o:"",loose:!1},this.tokens.push(s),c=[],n=!1,f=(i=i[0].match(this.rules.item)).length,h=0;h<f;h++)u=(l=i[h]).length,~(l=l.replace(/^ *([*+-]|\d+\.) */,"")).indexOf("\n ")&&(u-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+u+"}","gm"),"")),h!==f-1&&(a=Os.bullet.exec(i[h+1])[0],(o.length>1?1===a.length:a.length>1||this.options.smartLists&&a!==o)&&(e=i.slice(h+1).join("\n")+e,h=f-1)),r=n||/\n\n(?!\s*$)/.test(l),h!==f-1&&(n="\n"===l.charAt(l.length-1),r||(r=n)),r&&(s.loose=!0),v=void 0,(g=/^\[[ xX]\] /.test(l))&&(v=" "!==l[1],l=l.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:g,checked:v,loose:r},c.push(d),this.tokens.push(d),this.token(l,!1),this.tokens.push({type:"list_item_end"});if(s.loose)for(f=c.length,h=0;h<f;h++)c[h].loose=!0;this.tokens.push({type:"list_end"})}else if(i=this.rules.html.exec(e))e=e.substring(i[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):Hs(i[0]):i[0]});else if(t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),i[3]&&(i[3]=i[3].substring(1,i[3].length-1)),p=i[1].toLowerCase().replace(/\s+/g," "),this.tokens.links[p]||(this.tokens.links[p]={href:i[2],title:i[3]});else if((i=this.rules.table.exec(e))&&(l={type:"table",header:Zs(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===l.align.length){for(e=e.substring(i[0].length),h=0;h<l.align.length;h++)/^ *-+: *$/.test(l.align[h])?l.align[h]="right":/^ *:-+: *$/.test(l.align[h])?l.align[h]="center":/^ *:-+ *$/.test(l.align[h])?l.align[h]="left":l.align[h]=null;for(h=0;h<l.cells.length;h++)l.cells[h]=Zs(l.cells[h].replace(/^ *\| *| *\| *$/g,""),l.header.length);this.tokens.push(l)}else if(i=this.rules.lheading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:"="===i[2].charAt(0)?1:2,text:i[1]});else if(t&&(i=this.rules.paragraph.exec(e)))e=e.substring(i[0].length),this.tokens.push({type:"paragraph",text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1]});else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"text",text:i[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var zs={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Vs,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Vs,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};function Fs(e,t){if(this.options=t||Js.defaults,this.links=e,this.rules=zs.normal,this.renderer=this.options.renderer||new Rs,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=zs.pedantic:this.options.gfm&&(this.options.breaks?this.rules=zs.breaks:this.rules=zs.gfm)}function Rs(e){this.options=e||Js.defaults}function Ps(){}function Bs(e){this.tokens=[],this.token=null,this.options=e||Js.defaults,this.options.renderer=this.options.renderer||new Rs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new js}function js(){this.seen={}}function Hs(e,t){if(t){if(Hs.escapeTest.test(e))return e.replace(Hs.escapeReplace,(function(e){return Hs.replacements[e]}))}else if(Hs.escapeTestNoEncode.test(e))return e.replace(Hs.escapeReplaceNoEncode,(function(e){return Hs.replacements[e]}));return e}function Ws(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function Us(e,t){return e=e.source||e,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function Gs(e,t,n){if(e){try{var r=decodeURIComponent(Ws(n)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!Ks.test(n)&&(n=function(e,t){$s[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?$s[" "+e]=e+"/":$s[" "+e]=Xs(e,"/",!0));return e=$s[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}zs._punctuation="!\"#$%&'()*+,\\-./:;<=>?@\\[^_{|}~",zs.em=Us(zs.em).replace(/punctuation/g,zs._punctuation).getRegex(),zs._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,zs._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,zs._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])?)+(?![-_])/,zs.autolink=Us(zs.autolink).replace("scheme",zs._scheme).replace("email",zs._email).getRegex(),zs._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,zs.tag=Us(zs.tag).replace("comment",Os._comment).replace("attribute",zs._attribute).getRegex(),zs._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,zs._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,zs._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,zs.link=Us(zs.link).replace("label",zs._label).replace("href",zs._href).replace("title",zs._title).getRegex(),zs.reflink=Us(zs.reflink).replace("label",zs._label).getRegex(),zs.normal=qs({},zs),zs.pedantic=qs({},zs.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:Us(/^!?\[(label)\]\((.*?)\)/).replace("label",zs._label).getRegex(),reflink:Us(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",zs._label).getRegex()}),zs.gfm=qs({},zs.normal,{escape:Us(zs.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]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),zs.gfm.url=Us(zs.gfm.url,"i").replace("email",zs.gfm._extended_email).getRegex(),zs.breaks=qs({},zs.gfm,{br:Us(zs.br).replace("{2,}","*").getRegex(),text:Us(zs.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),Fs.rules=zs,Fs.output=function(e,t,n){return new Fs(t,n).output(e)},Fs.prototype.output=function(e){for(var t,n,r,i,o,a,l="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),l+=Hs(o[1]);else if(o=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(o[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(o[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.inRawBlock=!1),e=e.substring(o[0].length),l+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):Hs(o[0]):o[0];else if(o=this.rules.link.exec(e)){var s=Ys(o[2],"()");if(s>-1){var c=4+o[1].length+s;o[2]=o[2].substring(0,s),o[0]=o[0].substring(0,c).trim(),o[3]=""}e=e.substring(o[0].length),this.inLink=!0,r=o[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],i=t[3]):i="":i=o[3]?o[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),l+=this.outputLink(o,{href:Fs.escapes(r),title:Fs.escapes(i)}),this.inLink=!1}else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){l+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,l+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),l+=this.renderer.strong(this.output(o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),l+=this.renderer.em(this.output(o[6]||o[5]||o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),l+=this.renderer.codespan(Hs(o[2].trim(),!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),l+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),l+=this.renderer.del(this.output(o[1]));else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),r="@"===o[2]?"mailto:"+(n=Hs(this.mangle(o[1]))):n=Hs(o[1]),l+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.inRawBlock?l+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):Hs(o[0]):o[0]):l+=this.renderer.text(Hs(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===o[2])r="mailto:"+(n=Hs(o[0]));else{do{a=o[0],o[0]=this.rules._backpedal.exec(o[0])[0]}while(a!==o[0]);n=Hs(o[0]),r="www."===o[1]?"http://"+n:n}e=e.substring(o[0].length),l+=this.renderer.link(r,null,n)}return l},Fs.escapes=function(e){return e?e.replace(Fs.rules._escapes,"$1"):e},Fs.prototype.outputLink=function(e,t){var n=t.href,r=t.title?Hs(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,Hs(e[1]))},Fs.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},Fs.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},Rs.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return r?'<pre><code class="'+this.options.langPrefix+Hs(r,!0)+'">'+(n?e:Hs(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Hs(e,!0))+"</code></pre>"},Rs.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},Rs.prototype.html=function(e){return e},Rs.prototype.heading=function(e,t,n,r){var i=Ds.add(e,t);return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'" toc-id="'+i+'">'+e+"</h"+t+">\n":"<h"+t+' toc-id="'+i+'">'+e+"</h"+t+">\n"},Rs.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},Rs.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},Rs.prototype.listitem=function(e){var t="";return/\<input.+\>/.test(e)&&(t="list-item-checkbox",/checked/.test(e)&&(t+=" list-item-checkbox-checked")),'<li class="'.concat(t,' ">').concat(e,"</li>\n")},Rs.prototype.checkbox=function(e){return"<input "+(e?"checked ":"")+'disabled type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Rs.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},Rs.prototype.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},Rs.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},Rs.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},Rs.prototype.strong=function(e){return"<strong>"+e+"</strong>"},Rs.prototype.em=function(e){return"<em>"+e+"</em>"},Rs.prototype.codespan=function(e){return"<code>"+e+"</code>"},Rs.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},Rs.prototype.del=function(e){return"<del>"+e+"</del>"},Rs.prototype.link=function(e,t,n){if(null===(e=Gs(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+Hs(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"},Rs.prototype.image=function(e,t,n){if(null===(e=Gs(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},Rs.prototype.text=function(e){return e},Ps.prototype.strong=Ps.prototype.em=Ps.prototype.codespan=Ps.prototype.del=Ps.prototype.text=function(e){return e},Ps.prototype.link=Ps.prototype.image=function(e,t,n){return""+n},Ps.prototype.br=function(){return""},Bs.parse=function(e,t){return new Bs(t).parse(e)},Bs.prototype.parse=function(e){this.inline=new Fs(e.links,this.options),this.inlineText=new Fs(e.links,qs({},this.options,{renderer:new Ps})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},Bs.prototype.next=function(){return this.token=this.tokens.pop(),this.token},Bs.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Bs.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},Bs.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,Ws(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",r=0;r<t.length;r++)n+=this.renderer.tablecell(this.inline.output(t[r]),{header:!1,align:this.token.align[r]});o+=this.renderer.tablerow(n)}return this.renderer.table(i,o);case"blockquote_start":for(o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":o="";for(var a=this.token.ordered,l=this.token.start;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,a,l);case"list_item_start":o="";var s=this.token.loose,c=this.token.checked,d=this.token.task;for(this.token.task&&(o+=this.renderer.checkbox(c));"list_item_end"!==this.next().type;)o+=s||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(o,d,c);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText());default:var u='Token with "'+this.token.type+'" type was not found.';if(!this.options.silent)throw new Error(u);console.log(u)}},js.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},Hs.escapeTest=/[&<>"']/,Hs.escapeReplace=/[&<>"']/g,Hs.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},Hs.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,Hs.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var $s={},Ks=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Vs(){}function qs(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Zs(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function Xs(e,t,n){if(0===e.length)return"";for(var r=0;r<e.length;){var i=e.charAt(e.length-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.substr(0,e.length-r)}function Ys(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=0,r=0;r<e.length;r++)if("\\"===e[r])r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&--n<0)return r;return-1}function Qs(e){e&&e.sanitize&&!e.silent&&console.warn("index(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Js(e,t,n){if(null==e)throw new Error("index(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("index(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null),Qs(t=qs({},Js.defaults,t||{}));var r,i,o=t.highlight,a=0;try{r=Is.lex(e,t)}catch(e){return n(e)}i=r.length;var l=function(e){if(e)return t.highlight=o,n(e);var i;try{i=Bs.parse(r,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,i)};if(!o||o.length<3)return l();if(delete t.highlight,!i)return l();for(;a<r.length;a++)!function(e){"code"!==e.type?--i||l():o(e.text,e.lang,(function(t,n){return t?l(t):null==n||n===e.text?--i||l():(e.text=n,e.escaped=!0,void(--i||l()))}))}(r[a])}else try{return t&&(t=qs({},Js.defaults,t)),Qs(t),Bs.parse(Is.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||Js.defaults).silent)return"<p>An error occurred:</p><pre>"+Hs(e.message+"",!0)+"</pre>";throw e}}Vs.exec=Vs,Js.options=Js.setOptions=function(e){return qs(Js.defaults,e),Js},Js.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new Rs,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},Js.defaults=Js.getDefaults(),Js.Parser=Bs,Js.parser=Bs.parse,Js.Renderer=Rs,Js.TextRenderer=Ps,Js.Lexer=Is,Js.lexer=Is.lex,Js.InlineLexer=Fs,Js.inlineLexer=Fs.output,Js.Slugger=js,Js.parse=Js;const ec=Js;Ns.initHighlightingOnLoad();var tc=new ec.Renderer;const nc=ec.setOptions({renderer:tc,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,highlight:function(e){return Ns.highlightAuto(e).value}});function rc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){oc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ac={name:"markdown-pro",mixins:[Il],data:function(){return{pro:!0,editor:null,lastPos:""}},mounted:function(){this.init(),this.createEditor()},methods:{init:function(){var e=this;this.currentValue=this.value,this.themeName=this.theme,this.preview=this.isPreview,this.currentValue=this.value,this.isPreview||setTimeout((function(){e.autoSave&&(e.timerId=setInterval((function(){e.handleSave()}),e.interval))}),20)},createEditor:function(){var e=this;this.editor=new Qa(this.$refs.codemirror,ic({value:this.currentValue,onload:function(t){var n=t.doc.height,r=void 0===n?0:n;e.editorScrollHeight=r}},Ml)),this.addEditorLintener(),this.$emit("on-ready",{vm:this,insertContent:this.insertContent})},addEditorLintener:function(){var e=this,t=this.editor;t.on("change",(function(n){e.lastPos=t.getCursor(),e.currentValue=t.getValue();var r=n.doc.height;e.editorScrollHeight=r})),t.on("scroll",this.markdownScroll),t.on("paste",this.handlePaste),t.on("keydown",(function(t,n){83===n.keyCode?(n.metaKey||n.ctrlKey)&&(n.preventDefault(),e.handleSave()):13===n.keyCode?e.listerenKeyupEnter(n):8===n.keyCode&&e.listerenDelete(t)})),t.on("focus",(function(){e.lastPos=t.getCursor()}))},insertContent:function(e){this.editor.replaceSelection(e),this.lastInsert=e.replace(/\n/g,"")},setCursor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.editor;n.setCursor(e,t),n.focus()},insertStrong:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("**"+l+"**"):(this.insertContent("****"),this.setCursor(i,a+2))},insertItalic:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("*"+l+"*"):(this.insertContent("**"),this.setCursor(i,a+1))},insertUnderline:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("<u>"+l+"</u>"):(this.insertContent("<u></u>"),this.setCursor(i,a+3))},insertOverline:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("~~"+l+"~~"):(this.insertContent("~~~~"),this.setCursor(i,a+2))},insertTitle:function(e){var t={1:"# ",2:"## ",3:"### ",4:"#### ",5:"##### ",6:"###### "},n=this.editor,r=this.lastPos,i=(void 0===r?{}:r).line,o=n.getSelection();if(o)this.insertContent("\n"+t[e]+o+"\n");else{var a=t[e];n.isClean()?(this.insertContent(a),this.setCursor(0,a.length)):(this.insertContent("\n"+a),this.setCursor(i+1,a.length))}},insertLine:function(){this.editor.isClean()?this.insertContent("----\n"):this.insertContent("\n\n----\n")},insertQuote:function(){var e=this.editor,t=this.lastPos,n=(void 0===t?{}:t).line,r=void 0===n?0:n,i=e.getSelection();i?this.insertContent("\n> "+i+"\n\n"):e.isClean()?(this.insertContent("> "),this.setCursor(0,3)):(this.insertContent("\n> "),this.setCursor(r+1,3))},insertUl:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("\n- "+l+"\n\n"):e.isClean()||0===a?(this.insertContent("- "),this.setCursor(i,3)):(this.insertContent("\n- "),this.setCursor(i+1,3))},insertOl:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("\n1. "+l+"\n\n"):e.isClean()||0===a?(this.insertContent("1. "),this.setCursor(i,4)):(this.insertContent("\n1. "),this.setCursor(i+1,4))},insertCode:function(){var e=this.editor,t=this.lastPos,n=(void 0===t?{}:t).line,r=e.getSelection();r?this.insertContent("\n```\n"+r+"\n```\n"):e.isClean()?(this.insertContent("```\n\n```"),this.setCursor(1,0)):(this.insertContent("\n```\n\n```"),this.setCursor(n+2,0))},insertFinished:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("\n- [x] "+l+"\n\n"):e.isClean()||0===a?(this.insertContent("- [x] "),this.setCursor(i,6)):(this.insertContent("\n- [x] "),this.setCursor(i+1,6))},insertNotFinished:function(){var e=this.editor,t=this.lastPos,n=void 0===t?{}:t,r=n.line,i=void 0===r?0:r,o=n.ch,a=void 0===o?0:o,l=e.getSelection();l?this.insertContent("\n- [ ] "+l+"\n\n"):e.isClean()||0===a?(this.insertContent("- [ ] "),this.setCursor(i,6)):(this.insertContent("\n- [ ] "),this.setCursor(i+1,6))},listerenKeyupEnter:function(e){var t=this.lastInsert;if(t){["-","- [ ]","- [x]"].includes(t.trim())?(e.preventDefault(),this.insertContent("\n"+t)):/^\d+\.$/.test(t.trim())&&(e.preventDefault(),this.insertContent("\n"+(parseInt(t,0)+1)+". "))}},listerenDelete:function(){var e=this;setTimeout((function(){var t=e.editor;t.isClean()||""===t.getValue().split("\n").pop()&&(e.lastInsert="")}),20)},onDelete:function(){var e=this.currentValue.split("\n");""===e[e.length-1]&&(this.lastInsert="")},markdownScroll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.scrolling&&"left"===this.scrollSide){var t=e.doc,n=t.height,r=t.scrollTop,i=this.$refs.preview,o=i.offsetHeight,a=i.scrollHeight;i.scrollTop=parseInt(r*(a-o)/(n-o),0)}},previewScroll:function(){var e=this;if(this.scrolling&&"right"===this.scrollSide){var t=this.$refs.preview,n=t.offsetHeight,r=t.scrollHeight,i=t.scrollTop,o=parseInt(i*(this.editorScrollHeight-n)/(r-n),0);this.editor.scrollTo(0,o);var a,l,s=$A(this.$refs.preview);s.find("h1,h2,h3,h4,h5").each((function(t,n){if((a=$A(n)).offset().top-s.offset().top>=0&&(l=a.attr("toc-id")))return e.tocAction=l,!1}))}},redo:function(){var e=this.editor;e.redo(),setTimeout((function(){e.refresh()}),20)},tocLevel:function(e,t){var n=9999;return void 0===t&&(t=this.tocLists),t.forEach((function(e){var t=e.level;n=Math.min(n,t)})),9999===n?e:e-(n-1)},tocClick:function(e){this.tocAction=e.anchor;var t=$A(this.$refs.preview),n=t.find("h"+e.level+'[toc-id="'+this.tocAction+'"]');n&&t.animate({scrollTop:n.offset().top-t.offset().top+t.scrollTop()})}},watch:{currentValue:function(){var e=this;clearTimeout(this.timeoutId),this.timeoutId=setTimeout((function(){var t=e.currentValue,n=nc(t,ic({sanitize:!1},e.markedOptions)).replace(/href="/gi,'target="_blank" href="');if(e.copyCode&&""!==n&&(n=n.replace(/<pre>/g,'<div class="code-block"><span class="copy-code">'+e.copyBtnText+"</span><pre>").replace(/<\/pre>/g,"</pre></div>")),/\[\[TOC\]\]/.test(n)){var r="";Ds.tocItems.forEach((function(t){r+='<li class="toc-anchor-item" onclick="_goTocAction(this, \''.concat(t.level,"', '").concat(t.anchor,'\')"><span class="toc-link-').concat(e.tocLevel(t.level,Ds.tocItems),'" title="').concat(t.text,'">').concat(t.text,"</span></li>")})),n=n.replace(/\[\[TOC\]\]/g,'<ul class="toc-anchor">'.concat(r,"</ul>"))}e.html=n,e.tocLists=Ds.tocItems,e.tocTrigger||(e.tocShow=e.tocLists.length>1),Ds.reset(),e.addImageClickListener(),e.addCopyListener(),e.$emit("input",t)}),30)},value:function(){var e=this.value;this.currentValue!==e&&(this.currentValue=e,this.editor.setOption("value",e))}}};var lc=n(7861),sc={insert:"head",singleton:!1};Tl()(lc.Z,sc);lc.Z.locals;var cc=n(51900);const dc=(0,cc.Z)(ac,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"markdown",class:"markdown "+(e.fullscreen?"fullscreen":"")+" "+(e.bordered?"border":""),style:{width:e.width+("string"==typeof e.width?"":"px"),height:e.height+("string"==typeof e.height?"":"px")}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:!e.preview,expression:"!preview"}],staticClass:"markdown-toolbars"},[n("li",[e._t("title")],2),e._v(" "),e.tools.undo?n("li",{attrs:{name:e.$L("撤销")}},[n("span",{staticClass:"iconfont icon-undo",on:{click:function(t){return e.editor.undo()}}})]):e._e(),e._v(" "),e.tools.redo?n("li",{attrs:{name:e.$L("重做")},on:{click:e.redo}},[n("span",{staticClass:"iconfont icon-redo"})]):e._e(),e._v(" "),e.tools.strong?n("li",{attrs:{name:e.$L("粗体")}},[n("span",{staticClass:"iconfont icon-bold",on:{click:e.insertStrong}})]):e._e(),e._v(" "),e.tools.italic?n("li",{attrs:{name:e.$L("斜体")}},[n("span",{staticClass:"iconfont icon-italic",on:{click:e.insertItalic}})]):e._e(),e._v(" "),e.tools.overline?n("li",{attrs:{name:e.$L("删除线")}},[n("span",{staticClass:"iconfont icon-overline",on:{click:e.insertOverline}})]):e._e(),e._v(" "),e.tools.overline?n("li",{attrs:{name:e.$L("下划线")}},[n("span",{staticClass:"iconfont icon-under-line",on:{click:e.insertUnderline}})]):e._e(),e._v(" "),e.tools.h1?n("li",{attrs:{name:e.$L("标题1")}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(1)}}},[e._v("h1")])]):e._e(),e._v(" "),e.tools.h2?n("li",{attrs:{name:e.$L("标题2")}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(2)}}},[e._v("h2")])]):e._e(),e._v(" "),e.tools.h3?n("li",{attrs:{name:e.$L("标题3")}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(3)}}},[e._v("h3")])]):e._e(),e._v(" "),e.tools.h4?n("li",{attrs:{name:e.$L("标题4")}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(4)}}},[e._v("h4")])]):e._e(),e._v(" "),e.tools.h5?n("li",{attrs:{name:e.$L("标题5")}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(5)}}},[e._v("h5")])]):e._e(),e._v(" "),e.tools.h6?n("li",{attrs:{name:e.$L("标题6")}},[n("span",{staticStyle:{"font-size":"16px"},on:{click:function(t){return e.insertTitle(6)}}},[e._v("h6")])]):e._e(),e._v(" "),e.tools.hr?n("li",{attrs:{name:e.$L("分割线")}},[n("span",{staticClass:"iconfont icon-horizontal",on:{click:e.insertLine}})]):e._e(),e._v(" "),e.tools.quote?n("li",{attrs:{name:e.$L("引用")}},[n("span",{staticClass:"iconfont icon-quote",staticStyle:{"font-size":"16px"},on:{click:e.insertQuote}})]):e._e(),e._v(" "),e.tools.ul?n("li",{attrs:{name:e.$L("无序列表")}},[n("span",{staticClass:"iconfont icon-ul",on:{click:e.insertUl}})]):e._e(),e._v(" "),e.tools.ol?n("li",{attrs:{name:e.$L("有序列表")}},[n("span",{staticClass:"iconfont icon-ol",on:{click:e.insertOl}})]):e._e(),e._v(" "),e.tools.code?n("li",{attrs:{name:e.$L("代码块")}},[n("span",{staticClass:"iconfont icon-code",on:{click:e.insertCode}})]):e._e(),e._v(" "),e.tools.notChecked?n("li",{attrs:{name:e.$L("未完成列表")}},[n("span",{staticClass:"iconfont icon-checked-false",on:{click:e.insertNotFinished}})]):e._e(),e._v(" "),e.tools.checked?n("li",{attrs:{name:e.$L("已完成列表")}},[n("span",{staticClass:"iconfont icon-checked",on:{click:e.insertFinished}})]):e._e(),e._v(" "),e.tools.link?n("li",{attrs:{name:e.$L("链接")}},[n("span",{staticClass:"iconfont icon-link",on:{click:e.insertLink}})]):e._e(),e._v(" "),e.tools.image?n("li",{attrs:{name:e.$L("图片")}},[n("span",{staticClass:"iconfont icon-img",on:{click:e.insertImage}})]):e._e(),e._v(" "),e.tools.uploadImage?n("li",{attrs:{name:e.$L("本地图片")}},[n("span",{staticClass:"iconfont icon-upload-img",on:{click:e.chooseImage}})]):e._e(),e._v(" "),e.tools.custom_image?n("li",{attrs:{name:e.$L("浏览图片")}},[n("span",{staticClass:"iconfont icon-img",on:{click:function(t){return e.onCustom("image-browse")}}})]):e._e(),e._v(" "),e.tools.custom_uploadImage?n("li",{attrs:{name:e.$L("上传图片")}},[n("span",{staticClass:"iconfont icon-upload-img",on:{click:function(t){return e.onCustom("image-upload")}}})]):e._e(),e._v(" "),e.tools.custom_uploadFile?n("li",{attrs:{name:e.$L("上传文件")}},[n("span",{staticClass:"icon-svg",on:{click:function(t){return e.onCustom("file-upload")}}},[n("svg",{staticClass:"icon",attrs:{t:"1599285632421",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"45640",width:"16",height:"16"}},[n("path",{attrs:{d:"M127.519 892.879v-763.34h655.448V514.69h63.612V81.831c0-8.783-7.12-15.903-15.903-15.903H79.81c-8.783 0-15.903 7.12-15.903 15.903v858.757c0 8.783 7.12 15.903 15.903 15.903h493.993v-63.612H127.519z",fill:"#999999","p-id":"45641"}}),n("path",{attrs:{d:"M231.608 228.388h447.269V292H231.608zM231.608 384.409h447.269v63.612H231.608zM231.608 540.43h245.141v63.612H231.608zM231.608 696.451h245.141v63.612H231.608zM923.269 762.938L745.315 584.984c-3.545-3.545-8.34-5.074-12.966-4.596a15.931 15.931 0 0 0-9.848 4.616L544.586 762.918c-6.248 6.248-6.248 16.379 0 22.627l22.353 22.353c6.248 6.248 16.379 6.248 22.627 0l112.555-112.555v245.148c0 8.837 7.163 16 16 16h31.612c8.837 0 16-7.163 16-16V695.363l112.555 112.555c6.248 6.248 16.379 6.248 22.627 0l22.353-22.353c6.249-6.248 6.249-16.378 0.001-22.627z",fill:"#999999","p-id":"45642"}})])])]):e._e(),e._v(" "),e.tools.table?n("li",{attrs:{name:e.$L("表格")}},[n("span",{staticClass:"iconfont icon-table",on:{click:e.insertTable}})]):e._e(),e._v(" "),e.tools.theme?n("li",{staticClass:"shift-theme",attrs:{name:e.$L("代码块主题")}},[n("div",[n("span",{staticClass:"iconfont icon-theme",on:{click:function(t){e.themeSlideDown=!e.themeSlideDown}}}),e._v(" "),n("ul",{class:{active:e.themeSlideDown},on:{mouseleave:function(t){e.themeSlideDown=!1}}},[n("li",{on:{click:function(t){return e.setThemes("light")}}},[e._v("Light")]),e._v(" "),n("li",{on:{click:function(t){return e.setThemes("dark")}}},[e._v("VS Code")]),e._v(" "),n("li",{on:{click:function(t){return e.setThemes("oneDark")}}},[e._v("Atom OneDark")]),e._v(" "),n("li",{on:{click:function(t){return e.setThemes("gitHub")}}},[e._v("GitHub")])])])]):e._e(),e._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:e.tools.importmd,expression:"tools.importmd"}],staticClass:"import-file",attrs:{name:e.$L("导入文件")}},[n("span",{staticClass:"iconfont icon-daoru",on:{click:e.importFile}}),e._v(" "),n("input",{attrs:{type:"file",accept:"text/markdown"},on:{change:function(t){return e.importFile(t)}}})]),e._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:e.tools.exportmd,expression:"tools.exportmd"}],attrs:{name:e.$L("保存到本地")}},[n("span",{staticClass:"iconfont icon-download",on:{click:e.exportFile}})]),e._v(" "),e.tools.split&&e.split?n("li",{attrs:{name:e.$L("全屏编辑")}},[n("span",{staticClass:"iconfont icon-md",on:{click:function(t){e.split=!1}}})]):e._e(),e._v(" "),e.tools.split&&!e.split?n("li",{attrs:{name:e.$L("分屏显示")}},[n("span",{staticClass:"iconfont icon-group",on:{click:function(t){e.split=!0}}})]):e._e(),e._v(" "),e.tools.preview?n("li",{attrs:{name:e.$L("预览")}},[n("span",{staticClass:"iconfont icon-preview",on:{click:function(t){e.preview=!0}}})]):e._e(),e._v(" "),e.tools.clear?n("li",{attrs:{name:e.$L("清空")},on:{click:function(t){e.value=""}}},[n("span",{staticClass:"iconfont icon-clear"})]):e._e(),e._v(" "),e.tools.save?n("li",{attrs:{name:e.$L("保存")},on:{click:e.handleSave}},[n("span",{staticClass:"iconfont icon-save"})]):e._e(),e._v(" "),n("li",{attrs:{name:e.$L(e.scrolling?"同步滚动:开":"同步滚动:关")}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.scrolling,expression:"scrolling"}],staticClass:"iconfont icon-on",on:{click:function(t){e.scrolling=!e.scrolling}}}),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.scrolling,expression:"!scrolling"}],staticClass:"iconfont icon-off",on:{click:function(t){e.scrolling=!e.scrolling}}})]),e._v(" "),n("li",{attrs:{name:e.$L("html转markdown")},on:{click:function(t){return e.onCustom("html2md")}}},[n("span",{staticStyle:{width:"auto","font-size":"14px",padding:"0 6px"}},[e._v("HTML2MD")])]),e._v(" "),n("li",{staticClass:"empty"}),e._v(" "),n("li",{attrs:{name:e.$L("菜单")},on:{click:function(t){e.tocTrigger=!0}}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.tocShow,expression:"tocShow"}],staticClass:"icon-svg",on:{click:function(t){e.tocShow=!e.tocShow}}},[n("svg",{staticClass:"icon",attrs:{t:"1611551476626",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4615",width:"22",height:"22"}},[n("path",{attrs:{d:"M370.1 371.5h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.1-2.6 5.7-5.7 5.7z m333.5-7.6H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.2-2.7 5.7-5.8 5.7zM370.1 712.4h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.2-2.6 5.7-5.7 5.7z m333.5-7.5H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.1-2.7 5.7-5.8 5.7zM370.1 542.5h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.1-2.6 5.7-5.7 5.7z m333.5-7.6H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.2-2.7 5.7-5.8 5.7z","p-id":"4616",fill:"#1890ff"}}),n("path",{attrs:{d:"M847.1 560.4V250.1s0-24.7-14-46.4c-10.8-16.8-30-31.8-64.2-31.8h-261c-0.2 0-0.3 0-0.5 0.1H255s-78.1 0-78.1 78.1l0.1 213.4V774s0 24.7 13.9 46.3c10.8 16.8 30 31.8 64.2 31.8h261.1c0.2 0 0.3 0 0.5-0.1H769s78.1 0 78.1-78.1l-0.1-213.4 0.1-0.1z m-39 213.6c-1.3 38.5-38.9 39-38.9 39h-514c-1.3-0.1-2.5-0.2-3.8-0.3-5.4-1.1-15.7-4.1-23.9-11.7-9-9.7-11.2-22.3-11.7-26.1v-0.7l0.1-524.2c1.3-38.5 38.9-39 38.9-39h514c1.3 0.1 2.5 0.2 3.7 0.3 5.4 1.1 15.7 4.1 23.9 11.7 9 9.7 11.2 22.2 11.7 26 0 0.2 0 0.5 0.1 0.7l-0.1 524.3z","p-id":"4617",fill:"#1890ff"}})])]),e._v(" "),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.tocShow,expression:"!tocShow"}],staticClass:"icon-svg",on:{click:function(t){e.tocShow=!e.tocShow}}},[n("svg",{staticClass:"icon",attrs:{t:"1611551476626",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4615",width:"22",height:"22"}},[n("path",{attrs:{d:"M370.1 371.5h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.1-2.6 5.7-5.7 5.7z m333.5-7.6H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.2-2.7 5.7-5.8 5.7zM370.1 712.4h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.2-2.6 5.7-5.7 5.7z m333.5-7.5H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.1-2.7 5.7-5.8 5.7zM370.1 542.5h-49.6c-3.1 0-5.7-2.5-5.7-5.7v-49.6c0-3.1 2.5-5.7 5.7-5.7h49.6c3.1 0 5.7 2.5 5.7 5.7v49.6c0 3.1-2.6 5.7-5.7 5.7z m333.5-7.6H460.5c-3.1 0-5.7-2.5-5.7-5.7v-34.5c0-3.1 2.5-5.7 5.7-5.7h243.2c3.1 0 5.7 2.5 5.7 5.7v34.5c-0.1 3.2-2.7 5.7-5.8 5.7z","p-id":"4616",fill:"#777777"}}),n("path",{attrs:{d:"M847.1 560.4V250.1s0-24.7-14-46.4c-10.8-16.8-30-31.8-64.2-31.8h-261c-0.2 0-0.3 0-0.5 0.1H255s-78.1 0-78.1 78.1l0.1 213.4V774s0 24.7 13.9 46.3c10.8 16.8 30 31.8 64.2 31.8h261.1c0.2 0 0.3 0 0.5-0.1H769s78.1 0 78.1-78.1l-0.1-213.4 0.1-0.1z m-39 213.6c-1.3 38.5-38.9 39-38.9 39h-514c-1.3-0.1-2.5-0.2-3.8-0.3-5.4-1.1-15.7-4.1-23.9-11.7-9-9.7-11.2-22.3-11.7-26.1v-0.7l0.1-524.2c1.3-38.5 38.9-39 38.9-39h514c1.3 0.1 2.5 0.2 3.7 0.3 5.4 1.1 15.7 4.1 23.9 11.7 9 9.7 11.2 22.2 11.7 26 0 0.2 0 0.5 0.1 0.7l-0.1 524.3z","p-id":"4617",fill:"#777777"}})])])]),e._v(" "),e.tools.fullscreen&&!e.fullscreen?n("li",{attrs:{name:e.$L("全屏")}},[n("span",{staticClass:"iconfont icon-fullscreen",on:{click:function(t){e.fullscreen=!e.fullscreen}}})]):e._e(),e._v(" "),e.tools.fullscreen&&e.fullscreen?n("li",{attrs:{name:e.$L("退出全屏")}},[n("span",{staticClass:"iconfont icon-quite",on:{click:function(t){e.fullscreen=!e.fullscreen}}})]):e._e(),e._v(" "),e.tools.custom_fullscreen&&!e.isCustomFullscreen?n("li",{attrs:{name:e.$L("全屏")}},[n("span",{staticClass:"iconfont icon-fullscreen",on:{click:function(t){return e.onCustom("fullscreen")}}})]):e._e(),e._v(" "),e.tools.custom_fullscreen&&e.isCustomFullscreen?n("li",{attrs:{name:e.$L("退出全屏")}},[n("span",{staticClass:"iconfont icon-quite",on:{click:function(t){return e.onCustom("fullscreen")}}})]):e._e()]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.preview&&!e.isPreview,expression:"preview && !isPreview"}],staticClass:"close-preview",on:{click:function(t){e.preview=!1}}},[n("span",{staticClass:"iconfont icon-close"})]),e._v(" "),n("div",{staticClass:"markdown-content",style:{background:e.preview?"#fff":""}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.preview,expression:"!preview"}],ref:"codemirror",staticClass:"codemirror",on:{mouseenter:function(t){return e.mousescrollSide("left")}}}),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.preview?e.preview:e.split,expression:"preview ? preview : split"}],ref:"preview",class:"markdown-preview markdown-theme-"+e.themeName,on:{scroll:e.previewScroll,mouseenter:function(t){return e.mousescrollSide("right")}}},[n("div",{ref:"previewInner",domProps:{innerHTML:e._s(e.html)}})]),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.tocShow,expression:"tocShow"}],staticClass:"toc-anchor"},e._l(e.tocLists,(function(t){return n("li",{key:t.anchor,staticClass:"toc-anchor-item",on:{click:function(n){return e.tocClick(t)}}},[n("span",{class:"toc-link-"+e.tocLevel(t.level)+(e.tocAction==t.anchor?" toc-link-action":""),attrs:{anchor:t.anchor,title:t.text}},[e._v(e._s(t.text))])])})),0)]),e._v(" "),n("div",{class:["preview-img",e.previewImgModal?"active":""]},[n("span",{staticClass:"close icon-close iconfont",on:{click:function(t){e.previewImgModal=!1}}}),e._v(" "),n("img",{class:[e.previewImgMode],attrs:{src:e.previewImgSrc,alt:""}})])])}),[],!1,null,"c274aad4",null).exports;var uc=n(32467),hc=n(20629);function pc(e){return(pc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fc(Object(n),!0).forEach((function(t){gc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vc={name:"MDEditor",components:{ImgUpload:uc.Z,MarkdownPro:dc},props:{value:{default:""},height:{default:380},toolbars:{type:Object,default:function(){return{strong:!0,italic:!0,overline:!0,h1:!0,h2:!0,h3:!0,h4:!1,h5:!1,h6:!1,hr:!0,quote:!0,ul:!0,ol:!0,code:!0,link:!0,image:!1,uploadImage:!1,table:!0,checked:!0,notChecked:!0,split:!0,preview:!0,fullscreen:!1,theme:!1,exportmd:!1,importmd:!1,save:!1,clear:!1,custom_image:!0,custom_uploadImage:!0,custom_uploadFile:!0,custom_fullscreen:!0}}}},data:function(){return{content:"",transfer:!1,html2md:!1,htmlValue:"",uploadIng:0,uploadFormat:["jpg","jpeg","png","gif","doc","docx","xls","xlsx","ppt","pptx","txt","esp","pdf","rar","zip","gz","ai","avi","bmp","cdr","eps","mov","mp3","mp4","pr","psd","svg","tif"],actionUrl:this.$store.state.method.apiUrl("system/fileupload"),maxSize:204800}},mounted:function(){this.content=this.value},activated:function(){this.content=this.value},computed:mc(mc({},(0,hc.rn)(["userToken"])),{},{headers:function(){return{fd:this.$store.state.method.getStorageString("userWsFd"),token:this.userToken}}}),watch:{value:function(e){null==e&&(e=""),this.content=e},content:function(e){this.$emit("input",e)}},methods:{editorImage:function(e){for(var t=0;t<e.length;t++){var n=e[t];"object"===pc(n)&&"string"==typeof n.url&&(this.transfer?this.$refs.md2.insertContent("\n"):this.$refs.md1.insertContent("\n"))}},customClick:function(e){switch(e){case"image-browse":this.$refs.myUpload.browsePicture();break;case"image-upload":this.$refs.myUpload.handleClick();break;case"file-upload":this.$refs.fileUpload.handleClick();break;case"fullscreen":this.transfer=!this.transfer;break;case"html2md":this.html2md=!0}},htmlOk:function(){var e=this;$A.loadScript("js/html2md.js",(function(){"function"==typeof toMarkdown?(e.transfer?e.$refs.md2.insertContent("\n"+toMarkdown(e.htmlValue,{gfm:!0})):e.$refs.md1.insertContent("\n"+toMarkdown(e.htmlValue,{gfm:!0})),e.htmlValue=""):$A.modalAlert("组件加载失败!")}))},handleUploadImageUpload:function(e){this.$refs.myUpload.handleManual(e)},handleProgress:function(){this.uploadIng++},handleSuccess:function(e,t){if(this.uploadIng--,1===e.ret){var n="[".concat(e.data.name," (").concat($A.bytesToSize(1024*e.data.size),")](").concat(e.data.url,")");this.transfer?this.$refs.md2.insertContent(n):this.$refs.md1.insertContent(n)}else $A.modalWarning({title:"上传失败",content:"文件 "+t.name+" 上传失败,"+e.msg})},handleError:function(){this.uploadIng--},handleFormatError:function(e){$A.modalWarning({title:"文件格式不正确",content:"文件 "+e.name+" 格式不正确,仅支持上传:"+this.uploadFormat.join(",")})},handleMaxSize:function(e){$A.modalWarning({title:"超出文件大小限制",content:"文件 "+e.name+" 太大,不能超过:"+$A.bytesToSize(1024*this.maxSize)+"。"})},handleBeforeUpload:function(){return!0}}};var bc=n(22686),wc={insert:"head",singleton:!1};Tl()(bc.Z,wc);bc.Z.locals;var yc=n(67864),kc={insert:"head",singleton:!1};Tl()(yc.Z,kc);yc.Z.locals;const xc=(0,cc.Z)(vc,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"mdeditor-wrapper"},[n("div",{staticClass:"mdeditor-box"},[n("MarkdownPro",{ref:"md1",attrs:{height:e.height,toolbars:e.toolbars,copyBtnText:e.$L("复制代码"),"is-custom-fullscreen":e.transfer},on:{"on-custom":e.customClick,"on-upload-image":e.handleUploadImageUpload},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}),e._v(" "),n("ImgUpload",{ref:"myUpload",staticClass:"upload-control",attrs:{type:"callback",uploadIng:e.uploadIng,num:"50"},on:{"update:uploadIng":function(t){e.uploadIng=t},"update:upload-ing":function(t){e.uploadIng=t},"on-callback":e.editorImage}}),e._v(" "),n("Upload",{ref:"fileUpload",staticClass:"upload-control",attrs:{name:"files",action:e.actionUrl,headers:e.headers,multiple:"",format:e.uploadFormat,"show-upload-list":!1,"max-size":e.maxSize,"on-progress":e.handleProgress,"on-success":e.handleSuccess,"on-error":e.handleError,"on-format-error":e.handleFormatError,"on-exceeded-size":e.handleMaxSize,"before-upload":e.handleBeforeUpload}})],1),e._v(" "),e.uploadIng>0?n("Spin",{attrs:{fix:""}},[n("Icon",{staticClass:"upload-control-spin-icon-load",attrs:{type:"ios-loading"}}),e._v(" "),n("div",[e._v(e._s(e.$L("正在上传文件...")))])],1):e._e(),e._v(" "),n("Modal",{staticClass:"mdeditor-transfer",attrs:{"footer-hide":"",fullscreen:"",transfer:"",closable:!1},model:{value:e.transfer,callback:function(t){e.transfer=t},expression:"transfer"}},[n("div",{staticClass:"mdeditor-transfer-body"},[e.transfer?n("MarkdownPro",{ref:"md2",attrs:{toolbars:e.toolbars,copyBtnText:e.$L("复制代码"),"is-custom-fullscreen":e.transfer,height:"100%"},on:{"on-custom":e.customClick,"on-upload-image":e.handleUploadImageUpload},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}):e._e()],1),e._v(" "),e.uploadIng>0?n("Spin",{attrs:{fix:""}},[n("Icon",{staticClass:"upload-control-spin-icon-load",attrs:{type:"ios-loading"}}),e._v(" "),n("div",[e._v(e._s(e.$L("正在上传文件...")))])],1):e._e()],1),e._v(" "),n("Modal",{attrs:{title:"html转markdown",okText:"转换成markdown",width:"680","class-name":"simple-modal",transfer:""},on:{"on-ok":e.htmlOk},model:{value:e.html2md,callback:function(t){e.html2md=t},expression:"html2md"}},[n("Input",{attrs:{type:"textarea",rows:14,placeholder:"请输入html代码..."},model:{value:e.htmlValue,callback:function(t){e.htmlValue=t},expression:"htmlValue"}})],1)],1)}),[],!1,null,"017b801e",null).exports}}]); |