@wangeditor-next/editor 6.4.0 → 6.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
package/dist/index.mjs
CHANGED
|
@@ -17,5 +17,5 @@ var e;function t(){"undefined"==typeof globalThis&&(window.globalThis=window)}fu
|
|
|
17
17
|
* @author Lea Verou <https://lea.verou.me>
|
|
18
18
|
* @namespace
|
|
19
19
|
* @public
|
|
20
|
-
*/e.exports&&(e.exports=t),void 0!==h&&(h.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';t.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),t.hooks.add("before-sanity-check",function(a){var s=a.element;if(s.matches(i)){a.code="",s.setAttribute(n,r);var u=s.appendChild(document.createElement("CODE"));u.textContent="Loading…";var l=s.getAttribute("data-src"),c=a.language;if("none"===c){var d=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=e[d]||d}t.util.setLanguage(u,c),t.util.setLanguage(s,c);var f=t.plugins.autoloader;f&&f.loadLanguages(c),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(l,function(e){s.setAttribute(n,o);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),a=r[0],l=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),l<0&&(l+=i.length),l=Math.max(0,Math.min(l,i.length)),e=i.slice(a,l).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}u.textContent=e,t.highlightElement(u)},function(e){s.setAttribute(n,"failed"),u.textContent=e})}}),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(fv)),fv.exports),hv=g(pv);!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)})}(Prism);var gv;gv||(gv=1,function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"];var vv;vv||(vv=1,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}(Prism)),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean;var mv;mv||(mv=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python);var yv;yv||(yv=1,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism));var bv;bv||(bv=1,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism));var Ev;Ev||(Ev=1,function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=u(i),c=RegExp(u(o+" "+i+" "+a+" "+s)),d=u(i+" "+a+" "+s),f=u(o+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),E=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,y]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,y]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,f,g]),inside:D}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,m]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,C,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var N=S+"|"+A,B=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[N]),O=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[B]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,k=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,O]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[O]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,I=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[B]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,F]),R=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[N]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,F]);function _(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:_(P,I)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:_(L,R)}],char:{pattern:RegExp(A),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};var wv;wv||(wv=1,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e}),t}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var Cv=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function Dv(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+Dv(t)},0)}var Av=function(e){var t,n,r,o=d(e,2),i=o[0],a=o[1],s=[],u=function(e){if(!Wr.isText(e))return null;var t=Os.getParentNode(null,e);if(t&&"code"===Os.getNodeType(t)){var n=Os.getParentNode(null,t);if(n&&"pre"===Os.getNodeType(n))return t}return null}(i);if(null==u)return s;var l=u.language,f=void 0===l?"":l;if(!f)return s;var p=function(e,t){if(!t)return[];var n=hv.languages[t];return n?hv.tokenize(e.text,n):[]}(i,f),h=0;try{for(var g=c(p),v=g.next();!v.done;v=g.next()){var m=v.value,y=h+Dv(m);"string"!=typeof m&&s.push(((r={})[m.type]=!0,r.anchor={path:a,offset:h},r.focus={path:a,offset:y},r)),h=y}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return s};var Sv={type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n,o=r?'class="language-'.concat(r,'"'):"";return"<code ".concat(o,">").concat(t,"</code>")}};var xv=function(){function e(){this.title=uc("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115,this.defaultCodeLang=""}return e.prototype.getOptions=function(e){var t=this,n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=void 0===r?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(e){var r=e.text,o=e.value;e.selected&&(t.defaultCodeLang=o),n.push({text:r,value:o})});var i=this.getValue(e);return n.forEach(function(e){e.value===i?e.selected=!0:e.selected=void 0}),n},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return this.defaultCodeLang;if(!Kn.isElement(t))return this.defaultCodeLang;var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some(function(e){return e.value===n})?n:this.defaultCodeLang},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};co.setNodes(e,n,{match:function(e){return Os.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=Os.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Os.getParentNode(e,t);return Kn.isElement(n)?"pre"!==n.type?null:t:null},e}(),Nv={key:"codeSelectLang",factory:function(){return new xv},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"},{text:"ABAP",value:"abap"}]}};ta&&(Zi.fn.attr=ta);var Bv={renderStyle:function(e,t){var n=e,r=t,o="";return Cv.forEach(function(e){n[e]&&(o=e)}),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token ".concat(o)),r},parseStyleHtml:function(e,t,n){var r=Zi(e);if(!Kn.isElement(t))return t;if("code"!==Os.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[Nv],elemsToHtml:[Sv]};oc("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list",lowerAlphaList:"Ordered list (a,b,c)",numberingActions:"Heading numbering actions",continueNumbering:"Continue heading numbering",restartNumbering:"Restart numbering"}}),oc("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表",lowerAlphaList:"有序列表(a,b,c)",numberingActions:"标题编号操作",continueNumbering:"继续标题编号",restartNumbering:"重新开始编号"}});var Ov=new WeakMap;function Tv(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o+=1){var i=n[o];Wr.isText(i)&&(t=i)}return null==t?"":t.color||""}function kv(e){return Os.checkNodeType(e,"list-item")}function Fv(e){return"string"==typeof e&&/^header[1-6]$/.test(e)}function Iv(e){return kv(e)&&Fv(e.headingType)?e.headingType:null}function Pv(e){return kv(e)&&e.level>0?Math.floor(e.level):0}function Rv(e){return kv(e)&&!0===e.ordered&&"outline"===e.listMode&&Fv(e.headingType)}function Lv(e){var t=Iv(e),n=null==t?null:/^header([1-6])$/.exec(t);return null!=n?Number.parseInt(n[1],10):Pv(e)+1}function _v(e){var t=e.ordered,n=void 0!==t&&t,r=e.start;return!n||"number"!=typeof r||Number.isNaN(r)?1:r}function Mv(e){var t=e.orderType;return"a"===t||"A"===t||"i"===t||"I"===t?t:"1"}function Hv(e,t){return e.ordered===t.ordered&&(!e.ordered||Mv(e)===Mv(t)&&_v(e)===_v(t))}function jv(e,t){var n,r,o=Array.from({length:6},function(){return 0});try{for(var i=c(e.children),a=i.next();!a.done;a=i.next()){var s=a.value;if(Rv(s)){for(var u=Lv(s),l=u-1,d=0;d<l;d+=1)0===o[d]&&(o[d]=1);"number"==typeof s.listRestart&&s.listRestart>0?o[l]=Math.floor(s.listRestart):0===o[l]?o[l]=1:o[l]+=1;for(var f=l+1;f<o.length;f+=1)o[f]=0;if(s===t){var p=o.slice(0,u).join(".");return 1===u?"".concat(p,"."):p}}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return""}var zv=new Set;function $v(e){return(e||"").trim().replace(/\s+/g,"").toLowerCase()}var Uv=new Set(["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"].map(function(e){return $v(e)}));function Vv(e){var t=$v(e);return"w-e-list-color-".concat(function(e){var t,n,r=7;try{for(var o=c(e),i=o.next();!i.done;i=o.next())r=(31*r+(i.value.codePointAt(0)||0))%2147483647}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r.toString(36)}("color:".concat(t)))}function Wv(e,t){var n=$v(t);return!!n&&(!!Uv.has(n)||!!function(e,t){for(var n,r=(null===(n=null==e?void 0:e.getConfig().styleClassTokens)||void 0===n?void 0:n.color)||[],o=$v(t),i=0;i<r.length;i+=1)if($v(r[i])===o)return!0;return!1}(e,t))}function Gv(e,t){if(Wv(e,t))return"class";var n=af(e),r="preserve-data";"fallback-inline"===n&&(r="inline"),"strict"===n&&(r="throw");var o="[wangeditor] Unsupported list color class token color=".concat(t,". policy=").concat(n),i="".concat(t,"|").concat(r);if(zv.has(i)||(zv.add(i),sf(e,{type:"color",value:t,scene:"toHtml",fallback:r,message:o})),"throw"===r)throw new Error(o);return"inline"===r?"inline":"preserve-data"}var qv=[],Kv=null,Yv=null;function Xv(e){return e.ordered?"ol":"ul"}function Zv(e,t,n){if("prev"===n&&0===t)return null;if("next"===n&&t===e.length-1)return null;var r=e["prev"===n?t-1:t+1];return!Os.checkNodeType(r,"list-item")||Rv(r)?null:r}var Jv={type:"list-item",elemToHtml:function(e,t,n){var r="",o="",i=e,a=Iv(i),s=null==a?null:a.replace("header","h");if(Rv(i)&&null!=s)return{html:"<".concat(s,">").concat(t,"</").concat(s,">"),prefix:"",suffix:""};null!=s&&(t="<".concat(s,">").concat(t,"</").concat(s,">"));var u=i.level,l=void 0===u?0:u,c=function(e){return e.ordered?"ol":"ul"}(i),d=function(e){var t=e.ordered;if(void 0===t||!t)return"<ul>";var n=[],r=Mv(e),o=_v(e);return"1"!==r&&n.push('type="'.concat(r,'"')),1!==o&&n.push('start="'.concat(o,'"')),null!=Iv(e)&&n.push('data-w-e-list-mode="standard"'),0===n.length?"<ol>":"<ol ".concat(n.join(" "),">")}(i),f=Ov.get(e),p=f&&Array.isArray(f.children)?f:null,h=n&&Array.isArray(n.children)?n:null,g=function(t,n){if(void 0===n&&(n=!1),!t)return null;try{var r=Os.findPath(t,e),o=1===r.length?t:Qn.get(t,Hn.parent(r)),i=Array.isArray(o.children)?o.children:[],a=r[r.length-1];return i[a]===e?{siblings:i,index:a}:null}catch(r){return n?(Yv||(Yv=function(e){var t=new WeakMap,n=function(e){e.forEach(function(r,o){Kn.isElement(r)&&(t.set(r,{siblings:e,index:o}),n(r.children))})};return n(e.children),t}(t)),Yv.get(e)||null):null}},v=h||p,m=g(h),y=g(p);m?v=h:y&&(v=p);var b=n||f;if(null==v)return{html:"<li>".concat(t,"</li>"),prefix:"",suffix:""};Kv!==v&&(qv.length=0,Kv=v,Yv=null);var E=g(v,!0);if(!E)return{html:"<li>".concat(t,"</li>"),prefix:"",suffix:""};var w=E.siblings,C=E.index,D=Zv(w,C,"prev"),A=Zv(w,C,"next"),S=!!A&&(A.level||0)>l;if(D){var x=D.level||0;if(l>x)for(T=0;T<l-x;T+=1)r+=d,qv.push(c);else if(l===x){if(!Hv(D,i)){var N=qv.pop()||Xv(D);r+="</".concat(N,">").concat(d),qv.push(c)}}else{for(var B=x-l;B>0;){N=qv.pop()||Xv(D);r+="</".concat(N,"></li>"),B-=1}var O=function(e,t,n){for(var r=t-1;r>=0;r-=1){var o=e[r];if(Os.checkNodeType(o,"list-item")&&!Rv(o)&&(o.level||0)===n)return o}return null}(w,C,l);if(O&&!Hv(O,i)){N=qv.pop()||Xv(O);r+="</".concat(N,">").concat(d),qv.push(c)}}}else{qv.length=0;for(var T=0;T<l+1;T+=1)r+=d,qv.push(c)}var k=Tv(e),F=of(b),I="",P="",R="";if(k)if("class"===F){R=' data-w-e-color="'.concat(k,'"');var L=Gv(b,k);"class"===L?P=' class="'.concat(Vv(k),'"'):"inline"===L&&(I=' style="color:'.concat(k,'"'))}else I=' style="color:'.concat(k,'"');var _="<li".concat(P).concat(R).concat(I,">").concat(t).concat(S?"":"</li>");if(!A){for(;qv.length>0;){var M=qv.pop();if(!M)break;o+="</".concat(M,">"),qv.length>0&&(o+="</li>")}Kv=null,Yv=null}return{html:_,prefix:r,suffix:o}}};function Qv(e,t){var n=function(e,t){var n=jv(e,t).split(".").filter(Boolean).pop(),r=Number.parseInt(n||"",10);return Number.isFinite(r)&&r>0?r:1}(t,e.node),r=1===n?"":' start="'.concat(n,'"');return"<ol".concat(r,' data-w-e-list-mode="outline">')}function em(e,t){var n=function(e,t){var n=Tv(e);if(!n)return[];if("class"!==of(t))return['style="color:'.concat(n,'"')];var r=['data-w-e-color="'.concat(n,'"')],o=Gv(t,n);return"class"===o?r.unshift('class="'.concat(Vv(n),'"')):"inline"===o&&r.push('style="color:'.concat(n,'"')),r}(e,t);return n.push('data-w-e-list-indent="'.concat(Lv(e)-1,'"')),"number"==typeof e.listRestart&&n.push('data-w-e-list-restart="'.concat(e.listRestart,'"')),n.push('data-w-e-outline-number="'.concat(jv(t,e),'"')),"<li ".concat(n.join(" "),">")}function tm(e,t){var n=e.items.map(function(e){var n=e.children.map(function(e){return tm(e,t)}).join("");return"".concat(em(e.node,t)).concat(e.html).concat(n,"</li>")}).join("");return"".concat(Qv(e,t)).concat(n,"</ol>")}var nm='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>';function rm(e){if(null==e.selection)return[];var t=Array.from(Pr.nodes(e,{at:e.selection,match:function(t){return Kn.isElement(t)&&Pr.isBlock(e,t)},mode:"lowest"}));return t.filter(function(e){var t=d(e,1)[0];return!["table","table-row","table-cell"].includes(t.type)})}function om(e){return Number.parseInt(e.slice(6),10)-1}var im=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.isTargetListNode=function(e){return!(!kv(e)||Boolean(e.ordered)!==this.ordered)&&(!this.ordered||Mv(e)===(this.orderType||"1"))},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this,n=rm(e);return n.length>0&&n.every(function(e){var n=d(e,1)[0];return t.isTargetListNode(n)})},e.prototype.isDisabled=function(e){var t=rm(e);return 0===t.length||t.some(function(t){var n=d(t,1)[0];return!function(e,t){return!Pr.isVoid(e,t)&&!["pre","code","table","table-row","table-cell"].includes(t.type)}(e,n)})},e.prototype.exec=function(e,t){var n=this,r=this.isActive(e),o=rm(e);0!==o.length&&Pr.withoutNormalizing(e,function(){o.forEach(function(t){var o=d(t,2),i=o[0],a=o[1];if(r){var s=Iv(i);co.setNodes(e,{type:s||"paragraph",ordered:void 0,level:void 0,start:void 0,orderType:void 0,headingType:void 0,listMode:void 0,listRestart:void 0},{at:a})}else{var u=function(e){return kv(e)?Iv(e):Fv(e.type)?e.type:null}(i),l=n.ordered&&null==n.orderType&&null!=u;co.setNodes(e,{type:"list-item",ordered:n.ordered,level:l?om(u):Pv(i),start:void 0,orderType:n.ordered?n.orderType:void 0,headingType:l?u:void 0,listMode:l?"outline":void 0,listRestart:void 0},{at:a})}})})},e}(),am=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!1,t.title=uc("listModule.unOrderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',t}return a(t,e),t}(im),sm=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!0,t.orderType="a",t.title=uc("listModule.lowerAlphaList"),t.iconSvg=nm,t}return a(t,e),t}(im),um=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!0,t.title=uc("listModule.orderedList"),t.iconSvg=nm,t}return a(t,e),t}(im),lm={key:"bulletedList",factory:function(){return new am}},cm={key:"numberedList",factory:function(){return new um}},dm={key:"numberedListLowerAlpha",factory:function(){return new sm}},fm=globalThis.Node;function pm(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==fm.ELEMENT_NODE?"":t.tagName.toLowerCase()}function hm(e){return"ol"===pm(e.parent())}function gm(e){var t=e.parent();if("ol"===pm(t)){var n=(t.attr("start")||"").trim(),r=Number.parseInt(n,10);return Number.isNaN(r)?void 0:r}}function vm(e){var t=function(e){var t=(e.attr("data-w-e-list-restart")||"").trim();if(/^\d+$/.test(t)){var n=Number.parseInt(t,10);return n>0?n:void 0}}(e);return void 0!==t?t:null==e.attr("data-w-e-outline-number")&&function(e){for(var t,n=null===(t=e[0])||void 0===t?void 0:t.previousElementSibling;null!=n;){if("li"===n.tagName.toLowerCase())return!1;n=n.previousElementSibling}return!0}(e)?gm(e):void 0}function mm(e){return Wr.isText(e)&&""===e.text.trim()}function ym(e,t,n){t.forEach(function(t){mm(t)||(Wr.isText(t)||n.isInline(t)?e.push(t):Kn.isElement(t)&&ym(e,t.children,n))})}ba&&(Zi.fn.append=ba),ta&&(Zi.fn.attr=ta),wa&&(Zi.fn.parent=wa);var bm={selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Zi(e),o=function(e){var t=(e.attr("data-w-e-list-indent")||"").trim();if(/^\d+$/.test(t))return Number.parseInt(t,10);for(var n=0,r=e.parent();r.length>0;){var o=pm(r);"ul"!==o&&"ol"!==o||(n+=1),r=r.parent()}return Math.max(0,n-1)}(r),i=[],a=[];t.forEach(function(e){mm(e)||(kv(e)&&e.level>o?a.push(e):i.push(e))});var u=function(e){var t,n;try{for(var r=c(e),o=r.next();!o.done;o=r.next()){var i=o.value;if(Kn.isElement(i)&&Fv(i.type))return i}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null}(i),l=null!=u&&Fv(u.type)?u.type:void 0,p=function(e,t){var n=e.parent().attr("data-w-e-list-mode");return"outline"===n||"standard"===n?n:hm(e)&&t.some(function(e){return Kn.isElement(e)&&Fv(e.type)})?"outline":"standard"}(r,i),h=[];ym(h,i,n),0===h.length&&h.push(a.length>0?{text:""}:{text:r.text().replace(/\s+/gm," ")});var g=hm(r),v=gm(r),m=function(e){var t=e.parent();if("ol"===pm(t)){var n=(t.attr("type")||"").trim();return"1"===n||"a"===n||"A"===n||"i"===n||"I"===n?n:void 0}}(r),y=g&&"outline"===p&&void 0!==l,b=y?vm(r):void 0,E=s(s(s(s(s(s({type:"list-item",ordered:g,level:y?Number.parseInt(l.slice(6),10)-1:o},void 0===v||y?{}:{start:v}),void 0!==m?{orderType:m}:{}),void 0!==l?{headingType:l}:{}),y?{listMode:"outline"}:{}),void 0!==b?{listRestart:b}:{}),{children:h});return 0===a.length?E:f([E],d(a),!1)}};var Em={selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}};function wm(e){var t=d(Pr.nodes(e,{at:e.selection||void 0,match:kv,universal:!0}),1)[0];return null==t?null:t}function Cm(e,t,n,r){co.setNodes(e,{type:r||Iv(n)||"paragraph",ordered:void 0,level:void 0,start:void 0,orderType:void 0,headingType:void 0,listMode:void 0,listRestart:void 0},{at:t})}var Dm=new WeakMap;function Am(e,t,n){var r=e.children.indexOf(t);r<0||co.setNodes(e,{listRestart:n},{at:[r]})}function Sm(e){var t=Dm.get(e);null!=t&&(t.dispose(),Dm.delete(e))}function xm(e,t,n){var r=e.createElement("button");return r.type="button",r.className="w-e-list-outline-action",r.textContent=t,r.addEventListener("mousedown",function(e){return e.preventDefault()}),r.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n()}),r}function Nm(e,t,n){if(!e.isDisabled()){Sm(e);var r=n.ownerDocument,o=r.createElement("div");o.className="w-e-list-outline-actions",o.setAttribute("role","menu"),o.addEventListener("mousedown",function(e){return e.preventDefault()}),o.append(xm(r,uc("listModule.continueNumbering"),function(){!function(e,t){Am(e,t)}(e,t),Sm(e)}),xm(r,uc("listModule.restartNumbering"),function(){!function(e,t){Am(e,t,1)}(e,t),Sm(e)}));var i=Os.getTextarea(e),a=i.$textAreaContainer[0],s=i.$scroll[0],u=n.getBoundingClientRect(),l=a.getBoundingClientRect();o.style.top="".concat(u.bottom-l.top+s.scrollTop+4,"px"),o.style.left="".concat(u.left-l.left+s.scrollLeft,"px"),a.append(o);var c=function(t){var r=t.target;r instanceof Node&&(o.contains(r)||n.contains(r)||Sm(e))},d=function(){return Sm(e)},f=function(){return Sm(e)};r.addEventListener("mousedown",c,!0),e.on(ni,d),e.on(ti,f),Dm.set(e,{elem:o,dispose:function(){r.removeEventListener("mousedown",c,!0),e.off(ni,d),e.off(ti,f),o.remove()}})}}function Bm(e,t){if(void 0===t&&(t=!1),e<=0)return String(e);for(var n=e,r="";n>0;){var o=(t?65:97)+(n-1)%26;r=String.fromCharCode(o)+r,n=Math.floor((n-1)/26)}return r}function Om(e,t){var n,r;if(void 0===t&&(t=!1),e<=0||e>=4e3)return String(e);var o=e,i="";try{for(var a=c([[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]]),s=a.next();!s.done;s=a.next())for(var u=d(s.value,2),l=u[0],f=u[1];o>=l;)i+=f,o-=l}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t?i:i.toLowerCase()}var Tm={type:"list-item",renderElem:function(e,t,n){Ov.set(e,n);var r=e,o=Rv(r),i=Pv(r),a={margin:"5px 0 5px ".concat(20*i,"px"),display:"flex",alignItems:"baseline"},s=Tv(r),u="";u=o?jv(n,r):r.ordered?function(e,t){switch(t){case"a":return"".concat(Bm(e),".");case"A":return"".concat(Bm(e,!0),".");case"i":return"".concat(Om(e),".");case"I":return"".concat(Om(e,!0),".");default:return"".concat(e,".")}}(function(e,t){if(!t.ordered)return 1;var n=Pv(t),r=_v(t),o=Os.findPath(e,t),i=o.length>1?Qn.get(e,o.slice(0,-1)):e,a=Array.isArray(i.children)?i.children:[],s=o[o.length-1];if(s<=0)return r;for(var u=s-1;u>=0;u-=1){var l=a[u];if(!kv(l))break;var c=Pv(l);if(c<n)break;if(c===n){if(!Hv(l,t)||Rv(l))break;r+=1}}return r}(n,r),Mv(r)):function(e){switch(void 0===e&&(e=0),e){case 0:return"•";case 1:return"◦";default:return"▪"}}(i);var l={marginRight:"0.5em",color:s},c=o?Ld("button",{type:"button",className:"w-e-list-marker",contentEditable:!1,"data-w-e-reserve":!0,"aria-label":uc("listModule.numberingActions"),title:uc("listModule.numberingActions"),style:l,on:{mousedown:function(e){return e.preventDefault()},click:function(e){e.preventDefault(),e.stopPropagation(),e.currentTarget instanceof HTMLElement&&Nm(n,r,e.currentTarget)}}},u):Ld("span",{className:"w-e-list-marker",contentEditable:!1,style:l,"data-w-e-reserve":!0},u),d=Iv(r);return Ld("div",{className:"w-e-list-item",style:a},c,Ld(null==d?"span":d.replace("header","h"),{style:{flex:"1",minWidth:"0",wordBreak:"break-word"}},t))}},km={renderElems:[Tm],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e.insertBreak,i=e;return i.insertBreak=function(){var e=wm(i);if(null==e)return o();var t=d(e,2),n=t[0],r=t[1];if(""!==Qn.string(n))return o();Cm(i,r,n,"paragraph")},i.deleteBackward=function(n){var r=i.selection;if(null==r||Gn.isExpanded(r))t(n);else{var o=wm(i);if(null!=o&&0===r.focus.offset){var a=d(o,2),s=a[0],u=a[1];if(Rv(s))Cm(i,u,s);else{var l=Pv(s);if(l<=0)Cm(i,u,s);else{var c=function(e,t,n){for(var r=void 0!==n?n:t.level||0,o=Os.findPath(e,t);;){if(0===o.length||0===o[o.length-1])return null;o=Hn.previous(o);var i=Pr.node(e,o);if(null==i||!kv(i[0]))return null;if(Pv(i[0])===r)return i[0]}}(e,s,l-1);null!=c?co.setNodes(i,{level:l-1,ordered:c.ordered,start:c.ordered?c.start:void 0,orderType:c.ordered?c.orderType:void 0},{at:u}):co.setNodes(i,{level:l-1},{at:u})}}}else t(n)}},i.handleTab=function(){var e=i.selection;if(null!=e)if(Gn.isCollapsed(e)){var t=wm(i);if(null==t||Rv(t[0])||0!==e.focus.offset)return void n();var r=d(t,2),o=r[0],a=r[1];co.setNodes(i,{level:Pv(o)+1},{at:a})}else{var s=function(e){var t=Array.from(Pr.nodes(e,{at:e.selection||void 0,match:function(t){return Kn.isElement(t)&&Pr.isBlock(e,t)},mode:"lowest"}));return t.filter(function(e){var t=d(e,1)[0];return!["table","table-row","table-cell"].includes(t.type)})}(i),u=s.filter(function(e){var t=d(e,1)[0];return kv(t)&&!Rv(t)});u.length!==s.length||u.length<=1?n():u.forEach(function(e){var t=d(e,2),n=t[0],r=t[1];co.setNodes(i,{level:Pv(n)+1},{at:r})})}else n()},i.normalizeNode=function(e){var t=d(e,2),n=t[0],o=t[1],a=Os.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||co.unwrapNodes(i,{at:o}),r([n,o])},i},menus:[lm,cm,dm],htmlTransform:function(e,t,n){var r=[],o=null,i=function(){null!=o&&0!==o.roots.length&&(r.push(o.roots.map(function(e){return tm(e,n)}).join("")),o=null)};return t.forEach(function(t,n){var a=e[n]||"";if(Rv(t))return null==o&&(o={roots:[],levels:[]}),void function(e,t,n,r){var o,i=Math.max(0,Lv(n)-1);i>t.length&&(i=t.length),t.length=i+1;var a,s=i>0?null===(o=t[i-1])||void 0===o?void 0:o.lastItem:null,u=t[i],l="number"==typeof n.listRestart;null==u||!Hv(u.container.node,n)||l?(a={node:n,items:[]},null!=s?s.children.push(a):e.push(a)):a=u.container;var c={node:n,html:r,children:[]};a.items.push(c),t[i]={container:a,lastItem:c}}(o.roots,o.levels,t,a);i(),r.push(a)}),i(),r},elemsToHtml:[Jv],parseElemsHtml:[Em,bm]};oc("en",{tableModule:{modal:{border:"Border",borderColor:"Border color",borderStyle:"Border style",borderWidth:"Border width",borderWidthDefault:"Default 1",bgColor:"Back color",align:"Text Align",verticalAlign:"Vertical Align",width:"Width mode",widthAuto:"Auto",widthFull:"Full",mixed:"Mixed",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},verticalAlign:{top:"Top",middle:"Middle",bottom:"Bottom"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Fit width",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),oc("zh-CN",{tableModule:{modal:{border:"边框",borderColor:"边框颜色",borderStyle:"边框样式",borderWidth:"边框粗细",borderWidthDefault:"默认 1",bgColor:"背景色",align:"对齐方式",verticalAlign:"垂直对齐",width:"宽度模式",widthAuto:"自适应",widthFull:"撑满",mixed:"混合",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},verticalAlign:{top:"上",middle:"中",bottom:"下"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"适应宽度",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var Fm=/^-?(?:\d+|\d*\.\d+)(?:px|em|rem|%|vh|vw|vmin|vmax|pt|pc|cm|mm|in|ch|ex|lh|rlh)$/i;var Im={type:"table",elemToHtml:function(e,t,n){var r=e,o=r.columnWidths,i=r.caption,a=r.height,s=void 0===a?"auto":a,u=null==o?void 0:o.map(function(e){return"<col width=".concat(e,"></col>")}).join(""),l=i?"<caption>".concat(i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),"</caption>"):"",c=u?'<colgroup contentEditable="false">'.concat(u,"</colgroup>"):"",d=function(e,t){var n=e.width,r=void 0===n?"auto":n,o=e.columnWidths,i=void 0===o?[]:o;if(r&&"auto"!==r)return r;var a=function(e){if(!e||"function"!=typeof e.getMenuConfig)return"explicit";var t=e.getMenuConfig("insertTable");return"explicit"===(null==t?void 0:t.widthExportMode)?"explicit":"adaptive"}(t);if("adaptive"===a)return"auto";var s=i.reduce(function(e,t){return Number.isFinite(t)?t<=0?e:e+t:e},0);return s>0?"".concat(s,"px"):"auto"}(r,n),f=of(n),p=function(e){void 0===e&&(e="auto");var t="".concat(e||"").trim();if(!t||"auto"===t)return"auto";var n=Number(t);return Number.isFinite(n)?"".concat(n,"px"):Fm.test(t)?t:"auto"}(s);if("class"===f){var h=d?' width="'.concat(d,'"'):"",g="auto"!==p?' height="'.concat(p,'"'):"",v=' data-w-e-table-height="'.concat(p,'"');return'<table class="w-e-table-layout-fixed"'.concat(h).concat(g).concat(v,">").concat(l).concat(c,"<tbody>").concat(t,"</tbody></table>")}return'<table style="width: '.concat(d,";table-layout: fixed;height:").concat(p,'">').concat(l).concat(c,"<tbody>").concat(t,"</tbody></table>")}},Pm={type:"table-row",elemToHtml:function(e,t,n){var r=e.height;if("class"===of(n))return r?'<tr height="'.concat(r,'" data-w-e-row-height="').concat(r,'px">').concat(t,"</tr>"):"<tr>".concat(t,"</tr>");var o=r?' style="height: '.concat(r,'px"'):"";return"<tr".concat(o,">").concat(t,"</tr>")}},Rm={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,s=n.isHeader,u=void 0!==s&&s,l=n.width,c=void 0===l?"auto":l,d=n.hidden;if(void 0!==d&&d)return"";var f=u?"th":"td";return"<".concat(f,' colSpan="').concat(o,'" rowSpan="').concat(a,'" width="').concat(c,'">').concat(t,"</").concat(f,">")}},Lm='<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',_m={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function Mm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=_m,o=t.map(function(e){var t;return null===(t=null==r?void 0:r.blocks)||void 0===t?void 0:t[e]});return function(e){return function(e){return!Pr.isEditor(e)&&Kn.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function Hm(e,t){for(var n=d(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=d(Qn.common(e,r,o),2),u=s[0],l=s[1];return!!Mm.apply(void 0,f([e],d(i),!1))(u,l)||!!Pr.above(e,{match:Mm.apply(void 0,f([e],d(i),!1)),at:l})}function jm(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=c(function(e,t){var n,r,o,i,a,s,u,p,h,g,v,m,y,b,E,w,C,D;return void 0===t&&(t={}),l(this,function(l){switch(l.label){case 0:if(n=d(Pr.nodes(e,{match:Mm(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=d(r,2),i=o[1],l.label=1;case 1:l.trys.push([1,6,7,8]),a=c(Pr.nodes(e,{match:Mm(e,"table"),at:i})),s=a.next(),l.label=2;case 2:if(s.done)return[3,5];u=d(s.value,2),p=u[1],h=[];try{for(C=void 0,g=c(Pr.nodes(e,{match:Mm(e,"tr"),at:p})),v=g.next();!v.done;v=g.next())m=d(v.value,2),y=m[1],h.push(f([],d(Pr.nodes(e,{match:Mm(e,"th","td"),at:y})),!1))}catch(e){C={error:e}}finally{try{v&&!v.done&&(D=g.return)&&D.call(g)}finally{if(C)throw C.error}}return[4,h];case 3:l.sent(),l.label=4;case 4:return s=a.next(),[3,2];case 5:return[3,8];case 6:return b=l.sent(),E={error:b},[3,8];case 7:try{s&&!s.done&&(w=a.return)&&w.call(a)}finally{if(E)throw E.error}return[7];case 8:return[2]}})}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var s=a.value,u=[],p=0,h=0;h<s.length;h+=1)s[h]&&(p=Math.max(p,s[h].length));for(h=0;h<s.length;h+=1)if(u[h]||(u[h]=[]),s[h])for(var g=0;g<s[h].length;g+=1)if(s[h][g]&&s[h][g][0]){for(var v=d(s[h][g],1)[0],m=v.rowSpan,y=void 0===m?1:m,b=v.colSpan,E=void 0===b?1:b,w=g;u[h]&&u[h][w];)w+=1;for(var C=0;C<E;C+=1)for(var D=0;D<y;D+=1){var A=h+D,S=w+C;u[A]||(u[A]=[]),u[A][S]||(u[A][S]=[s[h][g],{rtl:C+1,ltr:E-C,ttb:D+1,btt:y-D}])}}o.push.apply(o,f([],d(u),!1))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var zm=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();function $m(e){return e.length?e[0].tagName.toLowerCase():""}function Um(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i+=1){var a=r[i];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}function Vm(e){return 0===e.length?"":e[0].outerHTML}ba&&Zi.fn&&(Zi.fn.append=ba),aa&&Zi.fn&&(Zi.fn.on=aa),Ta&&Zi.fn&&(Zi.fn.focus=Ta),ta&&Zi.fn&&(Zi.fn.attr=ta),ia&&Zi.fn&&(Zi.fn.val=ia),va&&Zi.fn&&(Zi.fn.html=va),oa&&Zi.fn&&(Zi.fn.dataset=oa),Ji&&Zi.fn&&(Zi.fn.addClass=Ji),Qi&&Zi.fn&&(Zi.fn.removeClass=Qi),Aa&&Zi.fn&&(Zi.fn.children=Aa),ha&&Zi.fn&&(Zi.fn.each=ha),Da&&Zi.fn&&(Zi.fn.find=Da),ra&&Zi.fn&&(Zi.fn.data=ra),da&&Zi.fn&&(Zi.fn.hide=da),fa&&Zi.fn&&(Zi.fn.show=fa);var Wm=new WeakMap,Gm=new WeakMap;function qm(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);var r=document.createElement(e);return Object.entries(t).forEach(function(e){var t=d(e,2),n=t[0],o=t[1];null!=o&&!1!==o&&(!0!==o?r.setAttribute(n,o):r.setAttribute(n,""))}),n.forEach(function(e){r.append("string"==typeof e?document.createTextNode(e):e)}),r}function Km(e){return e instanceof KeyboardEvent?e:null}function Ym(e){return"Enter"===e.key||" "===e.key}var Xm=function(){function e(){this.title=uc("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=340,this.menu="table",this.propertyFields=["borderStyle","borderColor","borderWidth","backgroundColor"],this.borderStyle=[{value:"none",label:uc("tableModule.borderStyle.none")},{value:"solid",label:uc("tableModule.borderStyle.solid")},{value:"dotted",label:uc("tableModule.borderStyle.dotted")},{value:"dashed",label:uc("tableModule.borderStyle.dashed")},{value:"double",label:uc("tableModule.borderStyle.double")},{value:"groove",label:uc("tableModule.borderStyle.groove")},{value:"ridge",label:uc("tableModule.borderStyle.ridge")},{value:"inset",label:uc("tableModule.borderStyle.inset")},{value:"outset",label:uc("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:uc("justify.left"),svg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"center",label:uc("justify.center"),svg:'<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"right",label:uc("justify.right"),svg:'<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"justify",label:uc("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}],this.verticalAlignOptions=[{value:"top",label:uc("tableModule.verticalAlign.top")},{value:"middle",label:uc("tableModule.verticalAlign.middle")},{value:"bottom",label:uc("tableModule.verticalAlign.bottom")}]}return e.prototype.renderRow=function(e,t,n){void 0===n&&(n="div");var r=qm(n,{class:"babel-container w-e-table-property-row"}),o=qm("span",{class:"w-e-table-property-label"},[e]);return r.append(o,t),r},e.prototype.createFieldControl=function(e,t,n){return{field:e,root:t,input:n,setValue:function(e,t){void 0===t&&(t=!1),n.value=e||"",n.setAttribute("data-mixed",t?"true":"false")},getValue:function(){return n.value},setMixed:function(e){n.setAttribute("data-mixed",e?"true":"false")}}},e.prototype.renderSelect=function(e,t,n){var r=qm("input",{name:e,type:"hidden"}),o=qm("span",{class:"w-e-table-property-select-value"}),i=qm("button",{type:"button",class:"w-e-table-property-select-trigger","aria-label":t,"aria-haspopup":"listbox","aria-expanded":"false"},[o]),a=qm("span",{class:"w-e-table-property-select-panel",role:"listbox"});n.forEach(function(t){a.append(qm("button",{type:"button",class:"w-e-table-property-select-option","data-select-option-field":e,"data-value":t.value,role:"option"},[t.label]))});var s=qm("span",{class:"w-e-table-property-select","data-select-field":e},[i,a]),u=qm("span",{class:"babel-container-select w-e-table-property-controls"},[r,s]),l=this.renderRow(t,u),c=this.createFieldControl(e,l,r);return c.setValue=function(t,i){void 0===i&&(i=!1);var u="borderStyle"!==e||t?t:"none",l=n.find(function(e){return e.value===u}),c=i?uc("tableModule.modal.mixed"):(null==l?void 0:l.label)||"";r.value=u||"",r.setAttribute("data-mixed",i?"true":"false"),s.setAttribute("data-mixed",i?"true":"false"),o.textContent=c,Array.from(a.querySelectorAll(".w-e-table-property-select-option")).forEach(function(e){var t=!i&&e.dataset.value===u;e.classList.toggle("active",t),e.setAttribute("aria-selected",t?"true":"false")})},c.setMixed=function(e){r.setAttribute("data-mixed",e?"true":"false"),s.setAttribute("data-mixed",e?"true":"false"),e&&(o.textContent=uc("tableModule.modal.mixed"))},c},e.prototype.renderNumber=function(e,t){var n=qm("input",{name:e,type:"number",min:"0",placeholder:uc("tableModule.modal.borderWidthDefault"),"aria-label":t}),r=qm("span",{class:"w-e-table-property-number"},[n,qm("span",{class:"w-e-table-property-unit"},["px"])]),o=qm("span",{class:"babel-container-number w-e-table-property-controls"},[r]);return this.createFieldControl(e,this.renderRow(t,o,"label"),n)},e.prototype.renderColor=function(e,t,n,r){var o=qm("span",{class:"color-group-block"}),i=qm("span",{class:"color-group-label"},[r]),a=qm("input",{name:e,type:"hidden"}),s=qm("span",{class:"color-group color-group-wide","data-mark":t,title:n,role:"button",tabindex:"0"},[o,i,a]),u=qm("span",{class:"babel-container-color w-e-table-property-controls"},[s]),l=this.renderRow(n,u),c=this.createFieldControl(e,l,a);return c.setValue=function(e,t){void 0===t&&(t=!1),a.value=e||"",a.setAttribute("data-mixed",t?"true":"false"),s.setAttribute("data-mixed",t?"true":"false"),e?(o.style.backgroundColor=e,o.innerHTML="",i.textContent=e,s.classList.remove("is-empty")):(o.style.backgroundColor="",o.innerHTML=Lm,i.textContent=r,s.classList.add("is-empty")),s.setAttribute("data-empty",e?"false":"true")},c.setMixed=function(e){a.setAttribute("data-mixed",e?"true":"false"),s.setAttribute("data-mixed",e?"true":"false")},c},e.prototype.renderSegment=function(e,t,n,r){void 0===r&&(r=!1);var o=qm("input",{name:e,type:"hidden"}),i=qm("span",{class:"w-e-table-property-segment".concat(r?" w-e-table-property-segment-fill":"")});n.forEach(function(t){var n=qm("button",{type:"button",class:"w-e-table-property-segment-button".concat(t.svg?" w-e-table-property-align-button":""),"data-field":e,"data-value":t.value,title:t.label,"aria-label":t.label});t.svg?n.innerHTML=t.svg:n.textContent=t.label,i.append(n)});var a=qm("span",{class:"babel-container-align w-e-table-property-controls"},[o,i]),s=this.renderRow(t,a),u=this.createFieldControl(e,s,o);return u.setValue=function(e,t){void 0===t&&(t=!1),o.value=e||"",o.setAttribute("data-mixed",t?"true":"false"),Array.from(i.querySelectorAll("[data-field]")).forEach(function(n){var r=!t&&n.dataset.value===e;n.classList.toggle("active",r),n.setAttribute("aria-pressed",r?"true":"false")})},u},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==this.getModalContentNode(e)},e.prototype.exec=function(e,t){},e.prototype.getModalContentNode=function(e){return d(Pr.nodes(e,{match:Mm(e,"table")}),1)[0]},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t,n=this,r=this.getModalContentNode(e);if(!r)return null;var o=d(r,2),i=o[0],a=o[1],s=this.propertyFields,u=function(e){return s.includes(e)},l="cell"===this.menu,c=[this.renderSelect("borderStyle",uc("tableModule.modal.borderStyle"),this.borderStyle),this.renderColor("borderColor","color",uc("tableModule.modal.borderColor"),uc("tableModule.color.default")),this.renderNumber("borderWidth",uc("tableModule.modal.borderWidth")),this.renderColor("backgroundColor","bgColor",uc("tableModule.modal.bgColor"),uc("tableModule.color.clear"))],f=qm("div",{class:"w-e-table-property-modal"},c.map(function(e){return e.root}));if(u("textAlign")){var p=this.renderSegment("textAlign",uc("tableModule.modal.align"),this.textAlignOptions);c.push(p),f.append(p.root)}if(u("verticalAlign")){p=this.renderSegment("verticalAlign",uc("tableModule.modal.verticalAlign"),this.verticalAlignOptions);c.push(p),f.append(p.root)}f.append(qm("div",{class:"button-container"},[qm("button",{type:"button"},[uc("tableModule.modal.ok")])]));var h=Zi(f),g=new Map;c.forEach(function(e){g.set(e.field,e)});var v=new Set,m=function(){h.find(".w-e-table-property-select-panel").hide(),h.find(".w-e-table-property-select-trigger").attr("aria-expanded","false")};h.on("mousedown",function(e){var t=e.target;t instanceof Element&&(t.closest(".w-e-table-property-select")||m())});var y=function(e){null!=e&&s.includes(e)&&v.add(e)},b=function(e,t,n){var r;void 0===n&&(n=!1),null===(r=g.get(e))||void 0===r||r.setValue(t,n)},E=function(e){var t;return(null===(t=g.get(e))||void 0===t?void 0:t.getValue())||""};g.forEach(function(t,n){var r=function(t){if(!l)return i[t]||"";var n,r=Wm.get(e);if(!(null==r?void 0:r.length))return i[t]||"";var o=!1,a=!1;return r.forEach(function(e){e.forEach(function(e){var r=d(e[0],1)[0][t]||"";if(!o)return n=r,void(o=!0);n!==r&&(a=!0)})}),a?void 0:n}(n),o=function(e,t){return"borderStyle"!==e||t?t:"none"}(n,r);if(null!=r)b(n,o);else{if(b(n,"",!0),"hidden"===t.input.type){var a=t.input.closest(".color-group");a&&Zi(a).attr("data-mixed","true")}"hidden"!==t.input.type&&(t.input.placeholder=uc("tableModule.modal.mixed"))}}),null===(t=g.get("borderWidth"))||void 0===t||t.input.addEventListener("change",function(e){var t=e.currentTarget;y(t.name),t.setAttribute("data-mixed","false")}),h.find(".w-e-table-property-select-trigger").on("click",function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget;if(null!=t){var n=Zi(t),r=n.parents(".w-e-table-property-select").find(".w-e-table-property-select-panel"),o="true"===n.attr("aria-expanded");h.find(".color-group .w-e-drop-panel").hide(),m(),o||(r.show(),n.attr("aria-expanded","true"))}}),h.find(".w-e-table-property-select-trigger").on("keydown",function(e){var t=Km(e),n=e.currentTarget;if(null!=t&&n instanceof HTMLElement)return Ym(t)?(t.preventDefault(),void n.click()):void("Escape"===t.key&&(t.preventDefault(),m()))}),h.find(".w-e-table-property-select-option").on("click",function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget;if(null!=t){var n=Zi(t),r=n.attr("data-select-option-field"),o=n.attr("data-value")||"";b(r,o),y(r),m()}}),h.find(".w-e-table-property-select-option").on("keydown",function(e){var t=Km(e),n=e.currentTarget;if(null!=t&&n instanceof HTMLElement)return Ym(t)?(t.preventDefault(),void n.click()):void("Escape"===t.key&&(t.preventDefault(),m()))}),h.find("[data-field]").on("click",function(e){var t=e.currentTarget;if(null!=t){var n=Zi(t),r=n.attr("data-value")||"",o=n.attr("data-field");b(o,r),y(o)}});return h.find(".color-group").each(function(t){var r=Zi(t),o=function(){m(),h.find(".color-group .w-e-drop-panel").hide();var o=r.data("panel"),i=r.data("mark"),a="color"===i?"borderColor":"backgroundColor";o?(n.updateColorPanelActive(o,E(a)),o.show()):(o=n.getPanelContentElem(e,{mark:i,selectedColor:E(a),callback:function(e){var n,r;b(a,e||""),Zi(t).attr("data-mixed","false"),y(a),"borderColor"===a&&e&&(n=E("borderStyle"),r=E("borderWidth"),n&&"none"!==n||(b("borderStyle","solid"),y("borderStyle")),r&&"0"!==r||(b("borderWidth","1"),y("borderWidth"))),o.hide()}}),r.append(o),r.data("panel",o))};r.on("click",function(){o()}),r.on("keydown",function(e){var t=Km(e);null!=t&&Ym(t)&&(t.preventDefault(),o())})}),h.find(".button-container button").on("click",function(){var t=Array.from(g).reduce(function(e,t){var n=d(t,2),r=n[0],o=n[1];return v.has(r)?(e[r]=o.getValue(),e):e},{});if(0!==Object.keys(t).length){var r=Wm.get(e);"cell"===n.menu&&(null==r?void 0:r.length)?r.forEach(function(n){n.forEach(function(n){co.setNodes(e,t,{at:n[0][1]})})}):co.setNodes(e,t,{at:a}),setTimeout(function(){e.focus()})}else e.focus()}),h[0]},e.prototype.getPanelContentElem=function(e,t){var n=t.mark,r=t.selectedColor,o=t.callback,i=Zi(qm("ul",{class:"w-e-panel-content-color"}));i.on("click","li",function(e){var t=e.target;if(t){e.preventDefault(),e.stopPropagation();var n=Zi(t).attr("data-value");o(n)}});var a=e.getMenuConfig(n).colors;(void 0===a?[]:a).forEach(function(e){var t=Zi(qm("div",{class:"color-block","data-value":e}));t.css("background-color",e);var n=Zi(qm("li",{"data-value":e}));r===e&&n.addClass("active"),n.append(t),i.append(n)});var s="";"color"===n&&(s=uc("tableModule.color.default")),"bgColor"===n&&(s=uc("tableModule.color.clear"));var u=qm("li",{"data-value":"",class:"clear"});u.innerHTML=Lm,u.append(document.createTextNode(s));var l=Zi(u);i.prepend(l);var c=Zi(qm("div",{class:"w-e-drop-panel"}));return c.append(i),c},e.prototype.updateColorPanelActive=function(e,t){e.find("li").each(function(e){var n=Zi(e);n.attr("data-value")===t?n.addClass("active"):n.removeClass("active")})},e}(),Zm=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.title=uc("tableModule.cellProperty"),t.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',t.tag="button",t.showModal=!0,t.modalWidth=360,t.menu="cell",t.propertyFields=["borderStyle","borderColor","borderWidth","backgroundColor","textAlign","verticalAlign"],t}return a(t,e),t.prototype.getModalContentNode=function(e){return d(Pr.nodes(e,{match:Mm(e,"td")}),1)[0]},t}(Xm),Jm=function(){function e(){this.title=uc("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||null==Os.getSelectedNodeByType(e,"table-cell"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")},universal:!0}),1),r=d(n[0],2),o=r[0],i=r[1],a=Os.getParentNode(e,o),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)co.removeNodes(e,{mode:"highest"});else if(null!=Os.getParentNode(e,a)){var u=jm(e),l=0;e:for(var p=0;p<u.length;p+=1)for(var h=0;h<u[p].length;h+=1){var g=d(u[p][h],1),v=d(g[0],2)[1];if(Hn.equals(i,v)){l=h;break e}}Pr.withoutNormalizing(e,function(){for(var t,n,r=new Set,o=new Set,i=0;i<u.length;i+=1)if(u[i]&&u[i][l]){var a=d(u[i][l],2),s=d(a[0],2)[1],p=a[1],h=p.rtl,g=p.ltr,v=p.ttb,m=p.btt,y=s.join(",");if(h>1||g>1||v>1||m>1){var b=i-(v-1),E=l-(h-1);if(b<0||b>=u.length||!u[b]||!u[b][E])continue;var w=d(u[b][E],1),C=d(w[0],2),D=C[0],A=C[1],S=A.join(",");if(!o.has(S)){o.add(S);var x=D.rowSpan,N=void 0===x?1:x,B=D.colSpan,O=void 0===B?1:B,T=Math.max(O-1,1);co.setNodes(e,{rowSpan:N,colSpan:T},{at:A})}}else r.add(y)}var k=Array.from(r);k.sort(function(e,t){var n=e.split(",").map(Number),r=t.split(",").map(Number);return n[n.length-2]!==r[r.length-2]?r[r.length-2]-n[n.length-2]:r[r.length-1]-n[n.length-1]});try{for(var F=c(k),I=F.next();!I.done;I=F.next()){var P=I.value.split(",").map(Number);try{Pr.hasPath(e,P)&&co.removeNodes(e,{at:P})}catch(e){console.warn("删除单元格失败:",P,e)}}}catch(e){t={error:e}}finally{try{I&&!I.done&&(n=F.return)&&n.call(F)}finally{if(t)throw t.error}}var R=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table")},universal:!0}),1),L=R[0];if(L){var _=d(L,2),M=_[0],H=_[1],j=M.columnWidths,z=f([],d(void 0===j?[]:j),!1);z.splice(l,1),co.setNodes(e,{columnWidths:z},{at:H})}})}}},e}();function Qm(e){return void 0===e&&(e={}),s(s({type:"table-cell"},e),{children:[{type:"paragraph",children:[{text:""}]}]})}function ey(e){return e.map(function(e){return Wr.isText(e)?s({},e):s(s({},e),{children:ey(e.children)})})}function ty(e){var t=[],n=[],r=function(){0!==n.length&&(t.push({type:"paragraph",children:n}),n=[])};return e.forEach(function(e){Wr.isText(e)?n.push(s({},e)):(r(),t.push(e))}),r(),t.length>0?t:Qm().children}function ny(e,t){return t.children.every(function(t){return!!Wr.isText(t)||Kn.isElement(t)&&e.isInline(t)&&ny(e,t)})}function ry(e,t){return!!Kn.isElement(t)&&("paragraph"===t.type||"list-item"===t.type?ny(e,t):"pre"===t.type?1===t.children.length&&Kn.isElement(t.children[0])&&"code"===t.children[0].type&&t.children[0].children.every(Wr.isText):"video"===t.type&&(e.isVoid(t)&&t.children.every(Wr.isText)))}function oy(e){return e.map(function(e){if(Wr.isText(e))return e;if("table-cell"===e.type)return s(s({},e),{children:ty(e.children)});var t=oy(e.children);return t.every(function(t,n){return t===e.children[n]})?e:s(s({},e),{children:t})})}function iy(e,t,n){try{var r=Os.findPath(e,t);co.setNodes(e,n,{at:r})}catch(e){}}function ay(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function sy(e){return ay(e).every(function(e){return!!e.isHeader})}var uy=function(){function e(){this.title=uc("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||null==Os.getSelectedNodeByType(e,"table-row"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-row")},universal:!0}),1),r=d(n[0],2),o=r[0],i=r[1],a=Os.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)co.removeNodes(e,{mode:"highest"});else{var s=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")},universal:!0}),1),u=d(s[0],2)[1],l=jm(e),p=0;e:for(var h=0;h<l.length;h+=1)for(var g=0;g<l[h].length;g+=1){var v=d(l[h][g],1),m=d(v[0],2)[1];if(Hn.equals(u,m)){p=h;break e}}Pr.withoutNormalizing(e,function(){for(var t,n,r=[],o=0;o<l[p].length;o+=1){var a=d(l[p][o],2),s=d(a[0],1)[0].hidden,u=a[1],h=u.ttb,g=u.btt,v=u.rtl;if(h>1||g>1){var m=p-(h-1);if(m<0||m>=l.length||!l[m]||!l[m][o])continue;var y=d(l[m][o],1),b=d(y[0],2),E=b[0],w=b[1],C=E,D=C.rowSpan,A=void 0===D?1:D,S=C.colSpan,x=void 0===S?1:S;if(s)co.setNodes(e,{rowSpan:Math.max(A-1,1),colSpan:x},{at:w});else if(1===h&&1===v){if(p+1<l.length&&A>1){var N={type:"table-cell",rowSpan:A-1,colSpan:x,hidden:!1,children:ey(C.children)};C.isHeader&&(N.isHeader=C.isHeader),C.width&&(N.width=C.width),C.backgroundColor&&(N.backgroundColor=C.backgroundColor),C.borderWidth&&(N.borderWidth=C.borderWidth),C.borderStyle&&(N.borderStyle=C.borderStyle),C.borderColor&&(N.borderColor=C.borderColor),C.textAlign&&(N.textAlign=C.textAlign),C.verticalAlign&&(N.verticalAlign=C.verticalAlign),r.push({cell:N,columnIndex:o})}else co.setNodes(e,{rowSpan:Math.max(A-1,1),colSpan:x},{at:w})}else co.setNodes(e,{rowSpan:Math.max(A-1,1),colSpan:x},{at:w})}}if(co.removeNodes(e,{at:i}),r.length>0){var B=i;try{r.sort(function(e,t){return e.columnIndex-t.columnIndex});try{for(var O=c(r),T=O.next();!T.done;T=O.next()){var k=T.value,F=k.cell,I=k.columnIndex;try{var P=f(f([],d(B),!1),[I],!1);co.insertNodes(e,F,{at:P})}catch(t){try{var R=d(Pr.node(e,B),1)[0].children.length,L=f(f([],d(B),!1),[R],!1);co.insertNodes(e,F,{at:L})}catch(e){console.warn("插入新单元格失败:",e)}}}}catch(e){t={error:e}}finally{try{T&&!T.done&&(n=O.return)&&n.call(O)}finally{if(t)throw t.error}}}catch(e){console.warn("插入新单元格失败:",e)}}})}}},e}(),ly=function(){function e(){this.title=uc("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Os.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||co.removeNodes(e,{mode:"highest"})},e}(),cy=function(){function e(){this.title=uc("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Os.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||null==Os.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Os.getSelectedNodeByType(e,"table");if(n){var r={width:"100%"===n.width?"auto":"100%"};co.setNodes(e,r,{mode:"highest"})}}},e}(),dy=function(){function e(){this.title=uc("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;if(null==t)return!0;if(!Gn.isCollapsed(t))return!0;var n=Os.getSelectedNodeByType(e,"table");if(null==n)return!0;try{var r=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")},universal:!0}),1),o=r[0];if(!o)return!0;for(var i=d(o,2)[1],a=jm(e),s=-1,u=0;u<a.length;u+=1){for(var l=0;l<a[u].length;l+=1){var c=d(a[u][l],1),f=d(c[0],2)[1];if(Hn.equals(i,f)){s=l;break}}if(-1!==s)break}if(-1===s)return!0;var p=n.columnWidths,h=(void 0===p?[]:p)[s];if(h&&h<20)return!0}catch(e){return!0}return!1},e.prototype.exec=function(e,t){var n;if(!this.isDisabled(e)){var r=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")},universal:!0}),1),o=d(r[0],2),i=o[0],a=o[1],s=Os.getParentNode(e,i);if(null!=s){var u=Os.getParentNode(e,s);if(null!=u){for(var l=jm(e),c=-1,p=0;p<l.length;p+=1){for(var h=0;h<l[p].length;h+=1){var g=d(l[p][h],1),v=d(g[0],2)[1];if(Hn.equals(a,v)){c=h;break}}if(-1!==c)break}if(-1!==c){var m=i.colSpan||1,y=(e.getMenuConfig("insertTableCol")||{}).insertPosition,b="after"===(void 0===y?"before":y)?"after":"before",E=(null===(n=l[0])||void 0===n?void 0:n.length)||0,w="after"===b?Math.min(c+m,E):c,C=w<E?w:-1;Pr.withoutNormalizing(e,function(){for(var t=new Set,n=new Set,r=0;r<l.length;r+=1)if(!(C<0)&&l[r]&&l[r][C]){var o=d(l[r][C],2);d(o[0],1);var i=o[1],a=i.rtl,s=i.ltr,p=i.ttb,h=i.btt;if(a>1||s>1||p>1||h>1){var g=r-(p-1),v=C-(a-1);if(g<0||g>=l.length||!l[g]||!l[g][v])continue;var m=d(l[g][v],1),y=d(m[0],2),E=y[0],D=y[1],A=D.join(",");if(t.has(A))n.add(r);else{t.add(A);var S=E.rowSpan,x=void 0===S?1:S,N=E.colSpan,B=(void 0===N?1:N)+1;E.hidden||co.setNodes(e,{colSpan:B},{at:D});for(var O=0;O<x;O+=1)n.add(g+O)}}}for(r=0;r<l.length;r+=1)if(!n.has(r)){var T=l[r];if(T&&0!==T.length){var k=Qm();0===r&&sy(u)&&(k.isHeader=!0);var F=void 0;if(w<T.length){var I=d(T[w],1);F=d(I[0],2)[1]}else{var P=d(T[T.length-1],1),R=d(P[0],2)[1];F=Hn.next(R)}co.insertNodes(e,k,{at:F})}}var L=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table")},universal:!0}),1),_=L[0];if(_){var M=d(_,2),H=M[0],j=M[1],z=H.columnWidths,$=void 0===z?[]:z,U=f([],d($),!1),V=e.getMenuConfig("insertTable").minWidth,W=void 0===V?60:V,G=$[c]||parseInt(W.toString(),10)||60,q=Math.floor(G/2),K=G-q;"after"===b?(U[c]=K,U.splice(c+1,0,q)):(U.splice(c,0,q),U[c+1]=K),co.setNodes(e,{columnWidths:U},{at:j})}})}}}}},e}(),fy=function(){function e(){this.title=uc("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||null==Os.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){var n;if(!this.isDisabled(e)){var r=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")},universal:!0}),1),o=d(r[0],2)[1],i=jm(e),a=0;e:for(var s=0;s<i.length;s+=1)for(var u=0;u<i[s].length;u+=1){var l=d(i[s][u],1),c=d(l[0],2)[1];if(Hn.equals(o,c)){a=s;break e}}var f=(null===(n=i[a])||void 0===n?void 0:n.length)||0;0!==f&&Pr.withoutNormalizing(e,function(){for(var t=a+1,n=t>=0&&t<i.length,r=[],s=0;n&&s<i[a].length;s+=1){var u=d(i[a][s],2)[1],l=u.ttb,c=u.btt;if(l>1||c>1){var p=a-(l-1);if(p<0||p>=i.length||!i[p]||!i[p][s])continue;var h=d(i[p][s],1),g=d(h[0],2),v=g[0],m=g[1],y=v.rowSpan||1;r.push(s),v.hidden||co.setNodes(e,{rowSpan:y+1},{at:m})}}for(var b=(e.getMenuConfig("insertTable")||{}).minRowHeight,E={type:"table-row",children:[],height:parseInt((void 0===b?30:b).toString(),10)||30},w=0;w<f;w+=1)if(!r.includes(w)){var C=Qm();E.children.push(C)}var D=Hn.parent(o),A=Hn.next(D);co.insertNodes(e,E,{at:A})})}},e}();var py=function(){function e(){this.title=uc("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||!!Os.getSelectedElems(e).some(function(t){var n=Os.getNodeType(t);return"pre"===n||("table"===n||("list-item"===n||!!e.isVoid(t)))}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Zi('<div class="w-e-panel-content-table"></div>'),r=Zi("<span>0 × 0</span>"),o=Zi("<table></table>"),i=0;i<10;i+=1){for(var a=Zi("<tr></tr>"),s=0;s<10;s+=1){var u=Zi("<td></td>");u.attr("data-x",s.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",function(e){var t=e.target;if(null!=t){var n=Zi(t).dataset(),i=n.x,a=n.y;r[0].innerHTML="".concat(i+1," × ").concat(a+1),o.children().each(function(e){Zi(e).children().each(function(e){var t=Zi(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")})})}}),u.on("click",function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Zi(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}})}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){Os.isSelectedEmptyParagraph(e)&&co.removeNodes(e,{mode:"highest"});var i=function(e,t,n){for(var r,o=[],i=e.getMenuConfig("insertTable"),a=i.minWidth,s=void 0===a?60:a,u=i.minRowHeight,l=void 0===u?30:u,c=i.tableFullWidth,d=i.tableHeader,f=Array(n).fill(parseInt(s,10)||60),p=0;p<t;p+=1){for(var h=[],g=0;g<n;g+=1){var v=Qm();0===p&&(v.isHeader=null===(r=null==d?void 0:d.selected)||void 0===r||r),h.push(v)}o.push({type:"table-row",children:h,height:parseInt(l,10)||30})}return{type:"table",width:(null==c?void 0:c.selected)?"100%":"auto",children:o,columnWidths:f}}(e,r,o);co.insertNodes(e,i,{mode:"highest"})}},e}(),hy={isInTable:function(e,t){return void 0===t&&(t={}),!!d(Pr.nodes(e,{match:Mm(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,s,u;return l(this,function(l){switch(l.label){case 0:t=Wm.get(e),n=0,l.label=1;case 1:if(!(t&&n<t.length))return[3,4];for(r=[],o=0;o<t[n].length;o+=1)i=d(t[n][o],2),a=i[0],s=i[1],u=s.ltr,1===s.ttb&&r.push(a),o+=u-1;return[4,r];case 2:l.sent(),l.label=3;case 3:return n+=1,[3,1];case 4:return[2]}})},unselect:function(e){Gm.delete(e),Wm.delete(e)},isSelected:function(e,t){var n=Gm.get(e);return!!n&&n.has(t)},hasSelected:function(e){return Wm.has(e)}},gy=function(){function e(){this.title=uc("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),hy.unselect(e))},e.prototype.canMerge=function(e){var t=Wm.get(e);if(!t||!t.length)return!1;var n=d(t[t.length-1][t[t.length-1].length-1],1),r=d(n[0],2)[1],o=d(t[0][0],1);return!!Hm(e,[d(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=Wm.get(e);if(t&&t.length){var n=d(t[0][0],1),r=d(n[0],2)[1],o=d(Qn.children(e,r,{reverse:!0}),1),i=d(o[0],2)[1];Pr.withoutNormalizing(e,function(){for(var n,o,a,s,u,l,f=new Map,p=[],h=1/0,g=-1/0,v=1/0,m=-1/0,y=0;y<t.length;y+=1)for(var b=0;b<t[y].length;b+=1){var E=d(t[y][b],2),w=d(E[0],2),C=w[0],D=w[1],A=E[1].ttb,S=D.join(",");if(1===A&&!f.has(S)){f.set(S,{path:D,x:y,y:b,element:C});var x=C.rowSpan,N=void 0===x?1:x,B=C.colSpan,O=y,T=y+N-1,k=b,F=b+(void 0===B?1:B)-1;h=Math.min(h,O),g=Math.max(g,T),v=Math.min(v,k),m=Math.max(m,F)}}var I=g-h+1,P=m-v+1;try{for(var R=c(f),L=R.next();!L.done;L=R.next()){D=d(L.value,2)[1].path;Hn.equals(r,D)||p.push(D)}}catch(e){n={error:e}}finally{try{L&&!L.done&&(o=R.return)&&o.call(R)}finally{if(n)throw n.error}}p.sort(function(e,t){for(var n=0;n<Math.min(e.length,t.length);n+=1)if(e[n]!==t[n])return t[n]-e[n];return t.length-e.length});try{for(var _=c(p),M=_.next();!M.done;M=_.next()){D=M.value;try{if(!Pr.hasPath(e,D))continue;try{for(var H=(u=void 0,c(Qn.children(e,D,{reverse:!0}))),j=H.next();!j.done;j=H.next()){var z=d(j.value,2)[1];co.moveNodes(e,{to:Hn.next(i),at:z})}}catch(e){u={error:e}}finally{try{j&&!j.done&&(l=H.return)&&l.call(H)}finally{if(u)throw u.error}}co.removeNodes(e,{at:D})}catch(e){}}}catch(e){a={error:e}}finally{try{M&&!M.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}co.setNodes(e,{rowSpan:I,colSpan:P},{at:r})})}}},e}(),vy=function(){function e(){this.title=uc("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")}}),1),n=t[0];if(!n)return!0;var r=d(n,1)[0],o=r.rowSpan,i=void 0===o?1:o,a=r.colSpan;return!(i>1||(void 0===a?1:a)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var n=d(Pr.nodes(e,{match:Mm(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=sy(d(r,1)[0]),a=d(o,2),s=a[0],u=a[1],l=s.rowSpan,c=void 0===l?1:l,p=s.colSpan,h=void 0===p?1:p;1===c&&1===h||Pr.withoutNormalizing(e,function(){co.setNodes(e,{rowSpan:1,colSpan:1},{at:u});for(var t=1;t<h;t+=1){var n=Qm();0===u[u.length-2]&&i&&(n.isHeader=!0);var r=u.slice(0,-1),o=u[u.length-1]+t,a=f(f([],d(r),!1),[o],!1);try{co.insertNodes(e,n,{at:a})}catch(t){try{var s=d(Pr.node(e,r),1)[0].children.length,l=f(f([],d(r),!1),[s],!1);co.insertNodes(e,n,{at:l})}catch(e){console.warn("插入同行单元格失败: ".concat(e instanceof Error?e.message:String(e)))}}}for(var p=1;p<c;p+=1){var g=u[u.length-2]+p,v=f(f([],d(u.slice(0,-2)),!1),[g],!1);try{var m=d(Pr.node(e,v),1)[0];if(!m){console.warn("目标行 ".concat(g," 不存在"));continue}for(t=0;t<h;t+=1){n=Qm(),o=u[u.length-1]+t,a=f(f([],d(v),!1),[o],!1);try{var y=m.children.length;if(o>=y){var b=f(f([],d(v),!1),[y],!1);co.insertNodes(e,n,{at:b})}else co.insertNodes(e,n,{at:a})}catch(t){try{var E=m.children.length;l=f(f([],d(v),!1),[E],!1);co.insertNodes(e,n,{at:l})}catch(e){console.warn("插入单元格到第".concat(p,"行失败: ").concat(e instanceof Error?e.message:String(e)))}}}}catch(e){console.warn("处理第".concat(p,"行时出错: ").concat(e instanceof Error?e.message:String(e)))}}})}},e}(),my=function(){function e(){this.title=uc("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Os.getSelectedNodeByType(e,"table");return null!=t&&sy(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||null==Os.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=Os.getSelectedNodeByType(e,"table");if(null!=r)ay(r).forEach(function(t){return co.setNodes(e,{isHeader:n},{at:Os.findPath(e,t)})})}},e}(),yy={key:"insertTable",config:{minWidth:60,minRowHeight:30,tableHeader:{selected:!0},tableFullWidth:{selected:!1},widthExportMode:"explicit"},factory:function(){return new py}},by={key:"deleteTable",factory:function(){return new ly}},Ey={key:"insertTableRow",factory:function(){return new fy}},wy={key:"deleteTableRow",factory:function(){return new uy}},Cy={key:"insertTableCol",factory:function(){return new dy}},Dy={key:"deleteTableCol",factory:function(){return new Jm}},Ay={key:"tableHeader",factory:function(){return new my}},Sy={key:"tableFullWidth",factory:function(){return new cy}},xy={key:"mergeTableCell",factory:function(){return new gy}},Ny={key:"splitTableCell",factory:function(){return new vy}},By={key:"setTableProperty",factory:function(){return new Xm}},Oy={key:"setTableCellProperty",factory:function(){return new Zm}};function Ty(e,t){void 0===t&&(t=0);var n=parseInt(e||"",10);return Number.isNaN(n)?t:n}function ky(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var r=(e||"").trim().toLowerCase(),o=parseFloat(r);if(Number.isNaN(o))return t;if(r.endsWith("pt"))return Math.round(4*o/3);if(r.endsWith("%")){var i=n>0?n:600;return Math.round(o/100*i)}return Math.round(o)}var Fy={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Zi(e),o=r.text().replace(/\s+/gm," ").trim();0===(t=t.filter(function(e){return!!Wr.isText(e)||(!!n.isInline(e)||ry(n,e))})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),t=ty(t);var i=parseInt(r.attr("colSpan")||"1",10),a=parseInt(r.attr("rowSpan")||"1",10),s="none"===Um(r,"display")&&0===o.length,u=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===$m(r),colSpan:i,rowSpan:a,width:u,children:t,hidden:s}}};var Iy={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){for(var r=Zi(e),o=[],i=0;i<t.length;i+=1){var a=t[i];if("table-cell"===Os.getNodeType(a)){var s=a;if(s.hidden)continue;o.push(s)}}return{type:"table-row",height:Ty(Um(r,"height")||r.attr("data-w-e-row-height")||r.attr("height"))||void 0,children:o}}};var Py,Ry={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r,o,i=Zi(e),a=(i.find("caption").text()||"").replace(/\s+/gm," ").trim()||void 0,s="auto",u=Um(i,"width"),l=i.attr("width")||"",c=i.hasClass("w-e-table-layout-fixed")||!!i.attr("data-w-e-table-height");"100%"===u&&(s="100%"),"100%"===i.attr("width")&&(s="100%"),c&&l&&"auto"!==l&&"100%"!==l&&(s=l);var d={type:"table",width:s,caption:a,height:Ty(Um(i,"height")||i.attr("data-w-e-table-height")||i.attr("height")),children:t.filter(function(e){return"table-row"===Os.getNodeType(e)})},f=(null===(r=i.find("tr")[0])||void 0===r?void 0:r.children)||[],p=(null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null,h=function(e){var t=Um(e,"width"),n=e.attr("width")||"",r=t||n;return r&&"100%"!==r.trim()?ky(r,0):0}(i),g=function(e,t){if(!e||0===e.length)return[];var n=[];return Array.from(e).forEach(function(e){var r=parseInt(e.getAttribute("span")||"1",10),o=ky(e.getAttribute("width")||Um(Zi(e),"width"),90,t);if(!Number.isNaN(o))for(var i=0;i<r;i+=1)n.push(o)}),n}(p,h);if(g.length>0)d.columnWidths=g;else if(f.length>0){var v=[];Array.from(f).forEach(function(e){var t=parseInt(Zi(e).attr("colSpan")||"1",10),n=ky(Um(Zi(e),"width"),90,h);v.push(n);for(var r=1;r<t;r+=1)v.push(90)}),d.columnWidths=v}return d}},Ly=null===(Py=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===Py?void 0:Py.getPropertyValue("--w-e-textarea-border-color");var _y="\n";function My(e,t){return t.length>0&&t.every(function(t){return!!Wr.isText(t)||ry(e,t)})}function Hy(e){var t=e.selection;if(null==t)return!1;var n=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")}}),1),r=n[0];if(r){var o=d(r,2)[1],i=Pr.start(e,o);if(Mr.equals(t.anchor,i))return!0}return!1}function jy(e,t,n){var r=e.selection;if(null==r||"line"===t)return!1;var o=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")}}),1),i=o[0],a=r.anchor;if("backward"===n&&0===r.anchor.offset&&(a=Pr.before(e,r)),"forward"===n&&Pr.isEnd(e,r.anchor,r.anchor.path)&&(a=Pr.after(e,r)),null==a)return!1;var s=Pr.above(e,{at:a,match:function(e){return Os.checkNodeType(e,"table-cell")}});if(null==s||null==i||!Hn.equals(s[1],i[1]))return!1;var u=Pr.node(e,a);if(!Wr.isText(u[0])||u[0].text.length<1)return!1;var l="backward"===n?a.offset-1:a.offset,c="backward"===n?a.offset:a.offset+1;if(l<0)return!1;var f=Qn.string(u[0]);return!(f.slice(l,c)!==_y)&&(co.insertText(e,f.slice(0,l)+f.slice(c),{at:{anchor:Pr.start(e,a.path),focus:Pr.end(e,a.path)}}),co.select(e,{anchor:{path:a.path,offset:l},focus:{path:a.path,offset:l}}),!0)}function zy(e,t){var n=Pr.nodes(e,{at:t,match:function(e){return"table"===Os.getNodeType(e)}});return!!f([],d(n),!1).find(function(){return!0})}function $y(e){var t,n;try{for(var r=c(["paragraph","header1","header2","header3","header4","header5","header6","blockquote","list-item","todo","divider"]),o=r.next();!o.done;o=r.next()){var i=o.value;if(Os.getSelectedNodeByType(e,i))return!0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1}function Uy(e){if(function(e){var t=(e.attr("width")||"").trim().toLowerCase(),n=e[0].style.width.trim().toLowerCase(),r=e[0].style.tableLayout.trim().toLowerCase();return!(e.hasClass("w-e-table-layout-fixed")||e.attr("data-w-e-table-height")||"auto"!==t&&"auto"!==n||"fixed"!==r)}(e)&&!function(e){for(var t=e.find("colgroup"),n=0;n<t.length;n+=1)for(var r=t[n],o=0;o<r.children.length;o+=1){var i=r.children[o],a=(i.getAttribute("width")||"").trim().toLowerCase(),s=(i.style.width||"").trim().toLowerCase();if(a&&"auto"!==a)return!0;if(s&&"auto"!==s)return!0}return!1}(e)&&!function(e){for(var t=e.find("td, th"),n=0;n<t.length;n+=1){var r=t[n],o=(r.getAttribute("width")||"").trim().toLowerCase(),i=(r.style.width||"").trim().toLowerCase();if(o&&"auto"!==o)return!0;if(i&&"auto"!==i)return!0}return!1}(e)){var t=function(e){if("undefined"==typeof document||!document.body)return[];var t=document.createElement("div");t.style.position="fixed",t.style.top="-10000px",t.style.left="0",t.style.visibility="hidden",t.style.pointerEvents="none";var n=e.cloneNode(!0);t.appendChild(n),document.body.appendChild(t);try{var r=n.querySelector("tr");if(!r)return[];var o=Array.from(r.children).filter(function(e){var t=e.tagName.toLowerCase();return"td"===t||"th"===t});if(0===o.length)return[];for(var i=[],a=0;a<o.length;a+=1){var s=o[a],u=parseInt(s.getAttribute("colspan")||"1",10),l=Number.isFinite(u)&&u>0?u:1,c=s.getBoundingClientRect().width;if(!Number.isFinite(c)||c<=0)return[];for(var d=Math.max(1,Math.round(c/l)),f=0;f<l;f+=1)i.push(d)}return i}finally{t.remove()}}(e[0]);0!==t.length&&function(e,t){if(0!==t.length){var n=e.querySelector("colgroup");n&&n.remove();var r=document.createElement("colgroup");r.setAttribute("contentEditable","false"),t.forEach(function(e){var t=document.createElement("col");t.setAttribute("width","".concat(e)),r.appendChild(t)});var o=e.querySelector("tr");o?e.insertBefore(r,o):e.appendChild(r)}}(e[0],t)}}var Vy={selector:"table",preParseHtml:function(e){var t=Zi(e);if("table"!==$m(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");t.append(r),n.remove();for(var o=t.find("td, th"),i=0;i<o.length;i+=1){var a=Zi(o[i]);a.attr("width","auto");var s=a.html()||"";s=(s=s.replace(/<o:p[^>]*>[\s\S]*?<\/o:p>/gi,"")).replace(/<\/o:p>/gi,""),a.html(s)}return Uy(t),t[0]}};var Wy=new WeakMap;function Gy(e){var t=Wy.get(e);t&&(t.eventWindow.removeEventListener("mouseup",t.stop),t.eventWindow.removeEventListener("blur",t.stop),t.anchorPathRef.unref(),Wy.delete(e))}function qy(e,t){var n=function(e){if(e.target instanceof HTMLElement){var t=e.target.closest('[data-block-type="table-cell"]');if(t)return t}var n=e.target,r=n instanceof Node?n.ownerDocument:null,o=n instanceof Node?n.getRootNode():null;return(o&&"elementsFromPoint"in o?o:r||document).elementsFromPoint(e.clientX,e.clientY).map(function(e){return e.closest('[data-block-type="table-cell"]')}).find(function(e){return null!=e})||null}(t);if(!n)return null;try{var r=Os.toSlateNode(e,n);return Kn.isElement(r)&&"table-cell"===Os.getNodeType(r)?Os.findPath(e,r):null}catch(e){return null}}function Ky(e,t){if(Gy(e),!e.isDisabled()&&0===t.button){var n=qy(e,t);if(n){var r=function(){return Gy(e)},o=function(e){var t=e.target instanceof Node?e.target.ownerDocument:null;return e.view||(null==t?void 0:t.defaultView)||window}(t);Wy.set(e,{anchorPathRef:Pr.pathRef(e,n),lastTargetPath:n,isCrossCellSelecting:!1,eventWindow:o,stop:r}),o.addEventListener("mouseup",r),o.addEventListener("blur",r)}}}function Yy(e,t){var n=Wy.get(e);if(n)if(1&t.buttons){var r=n.anchorPathRef.current;if(r){var o=qy(e,t);if(o&&function(e,t){return!(e.length<3||t.length<3)&&Hn.equals(e.slice(0,-2),t.slice(0,-2))}(r,o)){var i=Hn.equals(r,o);!n.isCrossCellSelecting&&i||(t.preventDefault(),Hn.equals(n.lastTargetPath,o)||(n.isCrossCellSelecting=!0,n.lastTargetPath=o,e.select(function(e,t,n){return Hn.compare(t,n)<=0?{anchor:Pr.start(e,t),focus:Pr.end(e,n)}:{anchor:Pr.end(e,t),focus:Pr.start(e,n)}}(e,r,o))))}}else Gy(e)}else Gy(e)}function Xy(e){var t,n,r=[],o=0;try{for(var i=c(e),a=i.next();!a.done;a=i.next()){o+=a.value,r.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Zy(e){var t,n,r=[],o=e.reduce(function(e,t){return e+t},0);try{for(var i=c(e),a=i.next();!a.done;a=i.next()){var s=a.value;r.push(s/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var Jy=new Map;function Qy(e){var t=Jy.get(e);t&&(t.observer.disconnect(),t.tablePathRef.unref(),Jy.delete(e))}function eb(e){var t,n;if(Ra(e))Qy(e);else try{for(var r=c(Jy.keys()),o=r.next();!o.done;o=r.next()){Qy(o.value)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}function tb(e,t,n){if(Ra(t)){var r=t.querySelector("table");if(r){var o;eb(t);try{o=Pr.pathRef(e,Os.findPath(e,n))}catch(e){return}var i=new ResizeObserver(function(t){var n=d(t,1)[0].contentRect,i=o.current;if(null!==i){try{var a=d(Pr.node(e,i),1)[0];if(Pr.isEditor(a)||!Kn.isElement(a)||"table"!==a.type)return}catch(e){return}var s=function(e){return Array.from(e.querySelectorAll("tr")).map(function(e){var t=e.getBoundingClientRect();return Math.max(1,Math.round(100*t.height)/100)})}(r);co.setNodes(e,{scrollWidth:n.width,height:n.height,rowHeights:s},{at:i})}});i.observe(r),Jy.set(t,{observer:i,tablePathRef:o})}}}var nb=!1,rb=!1,ob=0,ib=null,ab=null,sb=Zi(window);sb.on("mousedown",function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))nb=!0;else if("DIV"===t.tagName&&t.closest(".column-resizer-item")){if(null===ib||null===ab)return;rb=!0;var n=e.clientX;ob=n,document.body.style.cursor="col-resize",e.preventDefault()}sb.on("mousemove",ub),sb.on("mouseup",lb)});var ub=kc(function(e){if(rb&&null!==ib&&null!==ab){e.preventDefault();var t=e.clientX,n=t-ob,r=null,o=null;try{var i=d(Pr.node(ib,ab),2),a=i[0],s=i[1];if(Pr.isEditor(a)||!Kn.isElement(a)||"table"!==a.type)return;r=a,o=s}catch(e){return}if(null!==r&&null!==o){var u=r.width,l=void 0===u?"auto":u,c=r.columnWidths,p=void 0===c?[]:c,h=r.resizingIndex,g=void 0===h?-1:h,v=r.scrollWidth,m=void 0===v?0:v;if(!(0===p.length||g<0||g>=p.length)){var y,b=p,E=null;try{E=Os.toDOMNode(ib,r)}catch(e){E=null}if("100%"===l&&m>0){var w=p.reduce(function(e,t){return e+t},0);w>0&&(b=Zy(p).map(function(e){return e*m}))}var C=null==E?void 0:E.querySelector(".table");if(C)y=function(e,t,n,r,o){var i=f([],d(e),!1);if(t<0||t>=e.length)return i;var a=o.getMenuConfig("insertTable").minWidth,s=parseInt((void 0===a?60:a).toString(),10)||60,u=n-(0===t?0:r[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(b,g,t-C.getBoundingClientRect().left,Xy(b),ib);else y=function(e,t,n,r){var o=f([],d(e),!1),i=r.getMenuConfig("insertTable").minWidth,a=parseInt((void 0===i?60:i).toString(),10)||60,s=o[t],u=Math.max(a,s+n);return o[t]=Math.floor(100*u)/100,o}(b,g,n,ib);var D={columnWidths:y};"100%"===l&&(D.width="auto"),co.setNodes(ib,D,{at:o})}}}},100);function lb(e){rb&&ub.flush(),ub.cancel(),nb=!1,rb=!1,ib=null,ab=null,document.body.style.cursor="",sb.off("mousemove",ub),sb.off("mouseup",lb)}function cb(e,t,n){"mouseenter"===n.type?iy(e,t,{isResizing:!0}):iy(e,t,{isResizing:!1})}function db(e){var t,n,r=[],o=0;try{for(var i=c(e),a=i.next();!a.done;a=i.next()){o+=a.value,r.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function fb(e){var t=e.children,n=e.rowHeights,r=void 0===n?[]:n,o=r.length===t.length&&r.every(function(e){return Number.isFinite(e)&&e>0});return o?r:t.map(function(e){return e.height||30})}var pb=!1,hb=0,gb=null,vb=null,mb=Zi(window);var yb=kc(function(e){if(pb&&null!==gb&&null!==vb){e.preventDefault();var t,n,r=e.clientY,o=r-hb;try{var i=d(Pr.node(gb,vb),2),a=i[0],s=i[1];if(Pr.isEditor(a)||!Kn.isElement(a)||"table"!==a.type)return;t=a,n=s}catch(e){return}var u,l=t.resizingRowIndex,c=void 0===l?-1:l,p=fb(t),h=null;try{h=Os.toDOMNode(gb,t)}catch(e){h=null}var g=null==h?void 0:h.querySelector(".table");if(g)u=function(e,t,n,r,o){var i=f([],d(e),!1);if(t<0||t>=e.length)return i;var a=(o.getMenuConfig("insertTable")||{}).minRowHeight,s=parseInt((void 0===a?30:a).toString(),10)||30,u=n-(0===t?0:r[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(p,c,r-g.getBoundingClientRect().top,db(p),gb);else u=function(e,t,n,r){var o=f([],d(e),!1),i=(r.getMenuConfig("insertTable")||{}).minRowHeight,a=parseInt((void 0===i?30:i).toString(),10)||30,s=o[t],u=Math.max(a,s+n);return o[t]=Math.floor(100*u)/100,o}(p,c,o,gb);if(c>=0&&c<u.length){var v=f(f([],d(n),!1),[c],!1);try{co.setNodes(gb,{height:u[c]},{at:v})}catch(e){console.warn("更新行高度失败:",e)}}}},100);function bb(e){pb&&yb.flush(),yb.cancel(),pb=!1,gb=null,vb=null,document.body.style.cursor="",mb.off("mousemove",yb),mb.off("mouseup",bb)}function Eb(e,t,n){"mouseenter"===n.type?iy(e,t,{isResizingRow:!0}):iy(e,t,{isResizingRow:!1})}mb.on("mousedown",function(e){var t=e.target;if("DIV"===t.tagName&&t.closest(".row-resizer-item")){if(null===gb)return;pb=!0;var n=e.clientY;hb=n,document.body.style.cursor="row-resize",e.preventDefault()}mb.on("mousemove",yb),mb.on("mouseup",bb)});var wb=.01,Cb=100;function Db(e){return Math.round(100*e)/100}function Ab(e,t,n){var r=Db(t),o=e.get(r)||[];o.push(n),e.set(r,o)}function Sb(e){e.forEach(function(t,n){e.set(n,function(e){var t=f([],d(e),!1).sort(function(e,t){return d(e,1)[0]-d(t,1)[0]});return t.reduce(function(e,t){var n=e[e.length-1];return n&&t[0]<=n[1]+wb?(n[1]=Math.max(n[1],t[1]),e):(e.push(f([],d(t),!1)),e)},[])}(t))})}function xb(e){var t=new Map,n=new Map,r=new Map,o=new Map;e.forEach(function(e){Ab(t,e.top,[e.left,e.right]),Ab(n,e.right,[e.top,e.bottom]),Ab(r,e.bottom,[e.left,e.right]),Ab(o,e.left,[e.top,e.bottom])}),Sb(t),Sb(n),Sb(r),Sb(o);var i=[],a=function(e,t,n,r){(function(e,t){var n,r,o=d(e,2),i=o[0],a=o[1],s=[],u=i;try{for(var l=c(t),f=l.next();!f.done;f=l.next()){var p=d(f.value,2),h=p[0],g=p[1],v=Math.max(i,h),m=Math.min(a,g);if(!(m<=u+wb)&&(v>u+wb&&s.push([u,v]),(u=Math.max(u,m))>=a-wb))break}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return u<a-wb&&s.push([u,a]),s})(n,r.get(Db(t))||[]).forEach(function(n){var r=d(n,2),o=r[0],a=r[1];i.push({side:e,offset:t,start:o,end:a})})};return e.forEach(function(e){a("top",e.top,[e.left,e.right],r),a("right",e.right,[e.top,e.bottom],o),a("bottom",e.bottom,[e.left,e.right],t),a("left",e.left,[e.top,e.bottom],n)}),function(e){var t=f([],d(e),!1).sort(function(e,t){return e.side.localeCompare(t.side)||e.offset-t.offset||e.start-t.start});return t.reduce(function(e,t){var n=e[e.length-1];return n&&n.side===t.side&&Db(n.offset)===Db(t.offset)&&t.start<=n.end+wb?(n.end=Math.max(n.end,t.end),e):(e.push(s({},t)),e)},[])}(i)}function Nb(e,t){for(;e.firstChild;)e.removeChild(e.firstChild);t&&e.appendChild(t)}function Bb(e){if(Ra(e)){var t=function(e){var t=e.parentElement,n=Array.from((null==t?void 0:t.children)||[]).find(function(e){return"TABLE"===e.tagName});return Ra(t)&&Ra(n)&&"TABLE"===n.tagName?{container:t,table:n}:null}(e);if(t){var n=t.table,r=Array.from(n.querySelectorAll("td.w-e-selected, th.w-e-selected")).filter(function(e){return e.closest("table")===n});if(0!==r.length){var o=function(e){var t=e.ownerDocument.createElement("span");t.style.position="absolute",t.style.display="block",t.style.top="0",t.style.left="0",t.style.width="".concat(Cb,"px"),t.style.height="".concat(Cb,"px"),t.style.margin="0",t.style.padding="0",t.style.border="0",t.style.boxSizing="border-box",t.style.visibility="hidden",t.style.pointerEvents="none",t.style.transform="none",e.appendChild(t);var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.removeChild(t);var o=r.width/Cb,i=r.height/Cb;return{overlayRect:n,scaleX:Number.isFinite(o)&&o>0?o:1,scaleY:Number.isFinite(i)&&i>0?i:1}}(e),i=o.overlayRect,a=o.scaleX,s=o.scaleY,u=r.map(function(e){return e.getBoundingClientRect()}).filter(function(e){return e.width>0&&e.height>0}).map(function(e){return{top:(e.top-i.top)/s,right:(e.right-i.left)/a,bottom:(e.bottom-i.top)/s,left:(e.left-i.left)/a}}),l=e.ownerDocument.createDocumentFragment();xb(u).forEach(function(t){var n=e.ownerDocument.createElement("span"),r="top"===t.side||"bottom"===t.side,o=r?t.start:t.offset-("right"===t.side?3:0),i=r?t.offset-("bottom"===t.side?3:0):t.start;n.className=["w-e-table-selection-segment","w-e-table-selection-segment-".concat(t.side),r?"w-e-table-selection-segment-horizontal":"w-e-table-selection-segment-vertical"].join(" "),n.setAttribute("data-selection-edge",t.side),n.style.left="".concat(o,"px"),n.style.top="".concat(i,"px"),n.style.width="".concat(r?t.end-t.start:3,"px"),n.style.height="".concat(r?3:t.end-t.start,"px"),l.appendChild(n)}),Nb(e,l)}else Nb(e)}else Nb(e)}}var Ob={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Gn.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=Os.findPath(e,t),a=Pr.start(e,i),s=Pr.end(e,i),u=Mr.compare(r,s)<=0&&Mr.compare(r,a)>=0,l=Mr.compare(o,s)<=0&&Mr.compare(o,a)>=0;return!!(u&&l&&Hn.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e,i=o.width,a=void 0===i?"auto":i,s=o.caption,u=o.columnWidths,l=void 0===u?[]:u,c=o.rowHeights,f=void 0===c?[]:c,p=o.scrollWidth,h=void 0===p?0:p,g=o.isHoverCellBorder,v=o.resizingIndex,m=o.isResizing,y=o.isHoverRowBorder,b=o.resizingRowIndex,E=o.isResizingRow,w=function(e){var t=e.height,n=e.rowHeights,r=void 0===n?[]:n,o=e.children,i=void 0===o?[]:o;return"number"==typeof t&&Number.isFinite(t)&&t>0?t:r.length===i.length&&r.every(function(e){return"number"==typeof e&&Number.isFinite(e)&&e>0})?r.reduce(function(e,t){return e+t},0):i.reduce(function(e,t){var n=t.height;return e+("number"==typeof n&&Number.isFinite(n)&&n>0?n:30)},0)}(e),C=Os.isNodeSelected(n,e),D=d(hy.selection(n),1)[0],A=Zy(l),S=Ld("div",{className:"table-container","data-selected":C,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&(hy.unselect(n),Ky(n,t));var r=Os.findPath(n,e),o=Pr.start(n,r),i=n.selection;if(null!=i)i.anchor.path[0]!==r[0]&&"DIV"===t.target.tagName&&n.select(o);else n.select(o)}},mousemove:function(e){return Yy(n,e)}}},Ld("table",{width:a,contentEditable:r,className:"table ".concat(D?"table-selection-none":""),style:{width:"100%"===a?a:"".concat(l.reduce(function(e,t){return e+t},0),"px")},on:{mousemove:fl(function(t){hy.hasSelected(n)||(function(e,t,n,r){if(!e.isDisabled()&&!nb&&!rb){var o=t,i=o.width,a=void 0===i?"auto":i,s=o.columnWidths,u=void 0===s?[]:s,l=o.isHoverCellBorder,c=o.resizingIndex,d=n.clientX,f=n.target;if(Ra(f)&&d>(g=f.getBoundingClientRect()).x+5&&d<g.x+g.width-5)return void(l&&iy(e,t,{isHoverCellBorder:!1,resizingIndex:-1}));if(Ra(f)){var p=f.closest(".table");if(p)for(var h=n.clientX,g=p.getBoundingClientRect(),v="100%"===a?Zy(u).map(function(e){return e*r}):u,m=Xy(v),y=0;y<m.length;y+=1)if(h-g.x>=m[y]-5&&h-g.x<m[y]+5){if(c===y)return;return void iy(e,t,{isHoverCellBorder:!0,resizingIndex:y})}}!0===l&&iy(e,t,{isHoverCellBorder:!1,resizingIndex:-1})}}(n,e,t,h),function(e,t,n){if(!e.isDisabled()&&!pb){var r=t,o=r.isHoverRowBorder,i=r.resizingRowIndex,a=n.target;if(Ra(a)){var s=a.closest(".table");if(s)for(var u=n.clientY,l=s.getBoundingClientRect(),c=db(fb(r)),d=0;d<c.length;d+=1)if(u-l.y>=c[d]-5&&u-l.y<c[d]+5){if(i===d)return;return void iy(e,t,{isHoverRowBorder:!0,resizingRowIndex:d})}}!0===o&&iy(e,t,{isHoverRowBorder:!1,resizingRowIndex:-1})}}(n,e,t))},25)}},s?Ld("caption",{contentEditable:!1},s):null,Ld("colgroup",{contentEditable:!1},l.map(function(e){return Ld("col",{width:e})})),Ld("tbody",null,t)),Ld("div",{className:"column-resizer",contentEditable:!1},l.map(function(t,r){var o=t;return"100%"===a&&(o=A[r]*h),Ld("div",{className:"column-resizer-item",style:{minWidth:"".concat(o,"px")}},Ld("div",{className:"resizer-line-hotzone ".concat(g&&r===v?"visible ":"").concat(m&&r===v?"highlight":""),style:{height:"".concat(w,"px")},on:{mouseenter:function(t){return cb(n,e,t)},mouseleave:function(t){return cb(n,e,t)},mousedown:function(t){return function(e,t){if(!rb){ib=e;try{ab=Os.findPath(e,t)}catch(e){ab=null}}}(n,e)}}},Ld("div",{className:"resizer-line"})))})),Ld("div",{className:"row-resizer",contentEditable:!1},e.children.map(function(t,r){var o=l.reduce(function(e,t){return e+t},0),i=f[r],a=Number.isFinite(i)&&i>0?i:t.height||30;return Ld("div",{className:"row-resizer-item",style:{minHeight:"".concat(a,"px")}},Ld("div",{className:"resizer-line-hotzone-horizontal ".concat(y&&r===b?"visible ":"").concat(E&&r===b?"highlight":""),style:{width:"".concat(o,"px")},on:{mouseenter:function(t){return Eb(n,e,t)},mouseleave:function(t){return Eb(n,e,t)},mousedown:function(t){return function(e,t){if(!pb){gb=e;try{vb=Os.findPath(e,t)}catch(e){vb=null}}}(n,e)}}},Ld("div",{className:"resizer-line-horizontal"})))})),vd("div.w-e-table-selection-overlay",{attrs:{"aria-hidden":"true",contenteditable:"false"},hook:{insert:function(e){return Bb(e.elm)},postpatch:function(e,t){return Bb(t.elm)}}})),x=vd("div",{hook:{insert:function(t){var r=t.elm;return tb(n,r,e)},destroy:function(e){eb(e.elm)}}},S);return x}},Tb={type:"table-row",renderElem:function(e,t,n){var r=e.height;return Ld("tr",{style:r?{height:"".concat(r,"px")}:{}},t)}},kb={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=Os.getParentNode(e,t);if(null==n)return!1;var r=Os.getParentNode(e,n);return null!=r&&ay(r).some(function(e){return e===t})}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,s=o.rowSpan,u=void 0===s?1:s,l=o.isHeader,c=void 0!==l&&l,d=o.hidden,f=void 0!==d&&d,p=hy.isSelected(n,e);return Ld(r&&c?"th":"td",{colSpan:a,rowSpan:u,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:f?"none":""}},t)}};function Fb(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}var Ib=new Set(["solid","dotted","dashed","double","groove","ridge","inset","outset"]),Pb=new Set;function Rb(e){return"".concat(e||"").trim().toLowerCase().replace(/\s+/g," ")}var Lb={renderStyle:function(e,t){var n,r;if(!Kn.isElement(e))return t;var o=e,i=o.backgroundColor,a=o.borderWidth,s=o.borderStyle,u=o.borderColor,l=o.textAlign,c=o.verticalAlign,d={};if(i&&(d.backgroundColor=i),a){/^\d+(\.\d+)?$/.test(a)?d.borderWidth="".concat(a,"px"):d.borderWidth=a}s&&(d.borderStyle="none"===s?"":s),u&&(d.borderColor=u),l&&(d.textAlign=l),c&&(d.verticalAlign=c);var f=t;return"table"===e.type?Fb(null===(r=(null===(n=f.children)||void 0===n?void 0:n[0]).children)||void 0===r?void 0:r[0],d):Fb(f,d),f},styleToHtml:function(e,t,n){if("table"!==e.type&&"table-cell"!==e.type)return t;var r=e.backgroundColor,o=e.borderWidth,i=e.borderStyle,a=e.borderColor,s=e.textAlign,u=e.verticalAlign;if(!(r||o||i||a||s||u))return t;var l=Zi(t);if("class"===of(n)){if(r&&(l.attr("bgcolor",r),l.attr("data-w-e-background-color",r)),o){var c="".concat(o).trim();c&&(l.attr("data-w-e-border-width",c),l.attr("border",c))}if(i){var d=Rb(i),f=function(e,t){var n=Rb(t);if(!n||"none"===n)return"skip";if(Ib.has(n))return"class";var r=af(e),o="preserve-data";"fallback-inline"===r&&(o="inline"),"strict"===r&&(o="throw");var i='[wangeditor] Unsupported table border-style token "'.concat(n,'" in class mode. policy=').concat(r),a="".concat(n,"|").concat(o);if(Pb.has(a)||(Pb.add(a),sf(e,{type:"table-border-style",value:n,scene:"toHtml",fallback:o,message:i})),"throw"===o)throw new Error(i);return"inline"===o?"inline":"preserve-data"}(n,d);"skip"!==f&&l.attr("data-w-e-border-line",d),"class"===f?l.addClass(function(e){var t=(e||"").trim().toLowerCase();return t&&"none"!==t?"w-e-table-border-style-".concat(t):""}(d)):"inline"===f&&l.css("border-style",d)}return a&&(l.attr("bordercolor",a),l.attr("data-w-e-border-color",a)),s&&(l.attr("align",s),l.attr("data-w-e-text-align",s)),u&&(l.attr("valign",u),l.attr("data-w-e-vertical-align",u)),Vm(l)}return r&&l.css("background-color",r),o&&l.css("border-width","".concat(o,"px")),i&&l.css("border-style","none"===i?"":i),a&&l.css("border-color",a),s&&l.css("text-align",s),u&&l.css("vertical-align",u),Vm(l)},parseStyleHtml:function(e,t,n){if(!["TABLE","TD","TH"].includes(e.tagName))return t;var r=Zi(e),o=t,i=Um(r,"background-color");i||(i=Um(r,"background")),i||(i=r.attr("bgcolor")||""),i||(i=r.attr("data-w-e-background-color")||""),i&&(o.backgroundColor=i);for(var a=Um(r,"border"),s=r.attr("data-w-e-border-width")||"",u=r.attr("data-w-e-border-line")||"",l=r.attr("data-w-e-border-color")||"",c=r.attr("border")||"",f=r.attr("bordercolor")||"",p=(r.attr("class")||"").trim().split(/\s+/).filter(Boolean),h="",g=0;g<p.length;g+=1){var v=p[g];if(v.startsWith("w-e-table-border-style-")){h=v.replace("w-e-table-border-style-","");break}}var m=!!(s||u||l||c||f||h);a||"TD"!==e.tagName||m||(a="1px solid ".concat(Ly));var y,b=d((null==a?void 0:a.split(" "))||[],3),E=b[0],w=b[1],C=b[2];(E=Um(r,"border-width")||E)||(E=s),E||(E=c),E&&(o.borderWidth=(y=E.trim())&&"string"==typeof y&&y.includes("pt")?y.replace(/(\d+(\.\d+)?)\s*pt/g,function(e,t){var n=(4*parseFloat(t)/3).toFixed(2);return"".concat(n,"px")}):y),(w=Um(r,"border-style")||w)||(w=u),w||(w=h),w&&(o.borderStyle="none"===w?"":w),(C=Um(r,"border-color")||C)||(C=f),C||(C=l),C&&(o.borderColor=C);var D=Um(r,"text-align");(D=Um(r,"text-align")||D)||(D=r.attr("align")||""),D||(D=r.attr("data-w-e-text-align")||""),D&&(o.textAlign=D);var A=Um(r,"vertical-align");return A||(A=r.attr("valign")||""),A||(A=r.attr("data-w-e-vertical-align")||""),A&&(o.verticalAlign=A),t},renderElems:[Ob,Tb,kb],elemsToHtml:[Im,Pm,Rm],preParseHtml:[Vy],parseElemsHtml:[Fy,Iy,Ry],menus:[yy,by,Ey,wy,Cy,Dy,Ay,Sy,xy,Ny,By,Oy],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,l=e.deleteFragment,c=e.transformInitialContent,f=e;f.transformInitialContent=function(e){return oy(c?c(e):e)},f.insertBreak=function(){var e=Pr.above(f,{match:function(e){return Os.checkNodeType(e,"table-cell")}});if(null!=e){var n=Pr.above(f,{match:function(e){return Kn.isElement(e)&&!Os.checkNodeType(e,"table-cell")}});null==n?f.insertText(_y):t()}else t()},f.deleteBackward=function(e){if(!Hy(f)&&!jy(f,e,"backward")){var t=f.selection;if(t){var r=Pr.before(f,t),o=Pr.above(f,{at:t,match:function(e){return Os.checkNodeType(e,"table-cell")}});if(r){var i=zy(f,r);if(!o&&i&&$y(f))return}}n(e)}},f.handleTab=function(){if(Os.getSelectedNodeByType(f,"table")){var t=Pr.above(e,{match:function(e){return Os.checkNodeType(e,"table-cell")}}),n=Pr.above(e,{match:function(e){return Os.checkNodeType(e,"table")}});if(t&&n){var r=d(t,2)[1],o=d(n,2)[1],i=Array.from(Pr.nodes(e,{at:o,match:function(e){return Os.checkNodeType(e,"table-cell")&&!e.hidden}})),s=i.findIndex(function(e){var t=d(e,2)[1];return Hn.equals(t,r)}),u=s>=0?i[s+1]:void 0;if(u)return void co.select(e,Pr.start(e,u[1]));var l=Hn.next(o);if(Qn.has(e,l))return void co.select(e,Pr.start(e,l))}var c=f.children||[],p=c.length;if(Os.checkNodeType(c[p-1],"table")){var h=Os.genEmptyParagraph();co.insertNodes(f,h,{at:[p]}),f.handleTab()}}else a()},f.deleteForward=function(e){if(!Hy(f)&&!jy(f,e,"forward")){var t=f.selection;if(t){var n=Pr.after(f,t),o=Pr.above(f,{at:t,match:function(e){return Os.checkNodeType(e,"table-cell")}});if(n){var i=zy(f,n);if(!o&&i&&$y(f))return}}r(e)}},f.normalizeNode=function(e){var t=d(e,2),n=t[0],r=t[1],i=Os.getNodeType(n);if("table"!==i)return"table-cell"===i&&Kn.isElement(n)&&0===n.children.length?void co.insertNodes(f,Os.genEmptyParagraph(),{at:r.concat(0)}):o([n,r]);if(Os.isLastNode(f,n)){var a=Os.genEmptyParagraph();co.insertNodes(f,a,{at:[r[0]+1]})}},f.insertData=function(e){if(null!=Os.getSelectedNodeByType(f,"table")){var t=e.getData("application/x-slate-fragment"),n=e.getData("text/html"),r=function(e,t){if(!t)return null;try{var n=decodeURIComponent(window.atob(t)),r=JSON.parse(n);return My(e,r)?r:null}catch(e){return null}}(f,t)||function(e,t){if(!t||!/<(p|ol|ul|li|pre|figure)\b/i.test(t))return null;var n=document.createElement("div");if(n.innerHTML=t,n.querySelector("table, img"))return null;var r=us(e,t);return My(e,r)?r:null}(f,n);if(r)co.insertFragment(f,r);else{var o=e.getData("text/plain");"\n"===o||/<img[^>]+>/.test(n)?i(e):Pr.insertText(f,o)}}else i(e)},f.selectAll=function(){var e=f.selection;if(null!=e){var t=Os.getSelectedNodeByType(f,"table-cell");if(null!=t&&Kn.isElement(t)){var n=e.anchor,r=e.focus;if(Hn.equals(n.path.slice(0,3),r.path.slice(0,3))){var o=Qn.string(t);if(1===t.children.length&&Kn.isElement(t.children[0])&&"paragraph"===t.children[0].type&&0===o.length)u();else{var i=Os.findPath(f,t),a={anchor:Pr.start(f,i),focus:Pr.end(f,i)};f.select(a)}}else u()}else u()}else u()},f.deleteFragment=function(e){var t=Wm.get(f);if(t&&t.length>0){var n=[];t.forEach(function(e){e.forEach(function(e){var t=d(e[0],2)[1];n.some(function(e){return Hn.equals(e,t)})||n.push(t)})});var r=n[0];if(n.forEach(function(t){if(Qn.has(f,t)){var n=Pr.start(f,t),r=Pr.end(f,t);co.select(f,{anchor:n,focus:r}),l(e)}}),hy.unselect(f),r&&Qn.has(f,r)){var o=Pr.start(f,r);co.select(f,o)}}else l(e)},function(e){var t=e.apply;e.apply=function(n){if(!rr.isSelectionOperation(n)||!n.newProperties)return t(n);var r=s(s({},e.selection),n.newProperties);if(!Gn.isRange(r))return hy.unselect(e),t(n);var o=function(e){return Kn.isElement(e)&&("table-cell"===e.type||"th"===e.type||"td"===e.type)},i=d(Pr.nodes(e,{match:o,at:Gn.start(r),mode:"lowest"}),1)[0],a=d(Pr.nodes(e,{match:o,at:Gn.end(r),mode:"lowest"}),1)[0];if(!i||!a)return hy.unselect(e),t(n);var u=d(i,2)[1],l=d(a,2)[1];if(Hn.equals(u,l)||!Hm(e,[u,l],"table"))return hy.unselect(e),t(n);try{var c=jm(e,{at:u});if(!c||0===c.length)return hy.unselect(e),t(n);for(var f=zm.valueOf(0,0),p=zm.valueOf(0,0),h=!1,g=!1,v=0;v<c.length;v+=1)if(c[v])for(var m=0;m<c[v].length;m+=1)if(c[v][m]){var y=d(c[v][m],1),b=d(y[0],2)[1];Hn.equals(u,b)&&(f.x=v,f.y=m,h=!0),Hn.equals(l,b)&&(p.x=v,p.y=m,g=!0)}if(!h||!g)return hy.unselect(e),t(n);for(var E=zm.valueOf(Math.min(f.x,p.x),Math.min(f.y,p.y)),w=zm.valueOf(Math.max(f.x,p.x),Math.max(f.y,p.y));;){var C=zm.valueOf(E.x,E.y),D=zm.valueOf(w.x,w.y);for(v=C.x;v<=D.x&&v<c.length;v+=1)if(c[v])for(m=C.y;m<=D.y&&m<c[v].length;m+=1)if(c[v][m]){var A=d(c[v][m],2)[1];if(A){var S=A.rtl,x=A.ltr,N=A.btt,B=A.ttb;C.x=Math.min(C.x,v-(B-1)),C.y=Math.min(C.y,m-(S-1)),D.x=Math.max(D.x,v+(N-1)),D.y=Math.max(D.y,m+(x-1))}}if(zm.equals(E,C)&&zm.equals(w,D))break;E=C,w=D}var O=[],T=new WeakSet;for(v=E.x;v<=w.x&&v<c.length;v+=1)if(c[v]){var k=[];for(m=E.y;m<=w.y&&m<c[v].length;m+=1)if(c[v][m]){var F=d(c[v][m],1),I=d(F[0],1)[0];I&&(T.add(I),k.push(c[v][m]))}k.length>0&&O.push(k)}Wm.set(e,O),Gm.set(e,T)}catch(r){return hy.unselect(e),t(n)}t(n)}}(f),f.getTableSelection=function(){return Wm.get(f)||null};var p=f.addMark,h=f.removeMark,g=s({},co);return f.addMark=function(e,t){var n=Wm.get(f);if(n&&n.length>0){var r=f.selection;n.forEach(function(n){n.forEach(function(n){var r=d(n[0],2)[1],o=Pr.start(f,r),i=Pr.end(f,r);co.select(f,{anchor:o,focus:i}),p(e,t)})}),r&&co.select(f,r)}else p(e,t)},f.removeMark=function(e){var t=Wm.get(f);if(t&&t.length>0){var n=f.selection;t.forEach(function(t){t.forEach(function(t){var n=d(t[0],2)[1],r=Pr.start(f,n),o=Pr.end(f,n);co.select(f,{anchor:r,focus:o}),h(e)})}),n&&co.select(f,n)}else h(e)},co.setNodes=function(e,t,n){if(void 0===n&&(n={}),e===f){var r=Wm.get(f);if(r&&r.length>0)return"hidden"in t||"rowSpan"in t||"colSpan"in t?void g.setNodes(e,t,n):void r.forEach(function(r){r.forEach(function(r){var o=d(r[0],2)[1];g.setNodes(e,t,s(s({},n),{at:o}))})})}g.setNodes(e,t,n)},f}};oc("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),oc("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});ba&&(Zi.fn.append=ba),aa&&(Zi.fn.on=aa),Sa&&(Zi.fn.remove=Sa),ia&&(Zi.fn.val=ia),Oa&&(Zi.fn.click=Oa),da&&(Zi.fn.hide=da);var _b=new WeakMap;function Mb(e){return e.getMenuConfig("uploadImage")}function Hb(e,t){return u(this,void 0,void 0,function(){return l(this,function(n){return[2,new Promise(function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;ih(e,i,t.name,a),n("ok")}}})]})})}function jb(e,t){return u(this,void 0,void 0,function(){var n,r;return l(this,function(o){switch(o.label){case 0:return n=function(e){var t=_b.get(e);if(null!=t)return t;var n=Mb(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=Bn(s(s({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n,r){return ih(e,t,n,r)}),void r(t,n);var o=n.errno,s=void 0===o?1:o,u=n.data,l=void 0===u?{}:u;if(0===s){if(Array.isArray(l))l.forEach(function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;ih(e,r,i,void 0===a?"":a)});else{var c=l.url,d=void 0===c?"":c,f=l.alt,p=void 0===f?"":f,h=l.href;ih(e,d,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}}),e),_b.set(e,t),t}(e),r=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}function zb(e,t){return u(this,void 0,void 0,function(){var n,r,o,i,a,s,u,c,d,f,h,g,v,m,y;return l(this,function(l){switch(l.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=Mb(e),o=r.customUpload,i=r.base64LimitSize,a=[],l.label=1;case 1:l.trys.push([1,10,11,16]),s=!0,u=p(n),l.label=2;case 2:return[4,u.next()];case 3:return c=l.sent(),(g=c.done)?[3,9]:(y=c.value,s=!1,f=(d=y).size,i&&f<=i?[4,Hb(e,d)]:[3,5]);case 4:return l.sent(),[3,8];case 5:return o?[4,o(d,function(t,n,r){return ih(e,t,n,r)},e)]:[3,7];case 6:return l.sent(),[3,8];case 7:a.push(d),l.label=8;case 8:return s=!0,[3,2];case 9:return[3,16];case 10:return h=l.sent(),v={error:h},[3,16];case 11:return l.trys.push([11,,14,15]),s||g||!(m=u.return)?[3,13]:[4,m.call(u)];case 12:l.sent(),l.label=13;case 13:return[3,15];case 14:if(v)throw v.error;return[7];case 15:return[7];case 16:return a.length>0?[4,jb(e,a)]:[3,18];case 17:l.sent(),l.label=18;case 18:return[2]}})})}var $b=function(){function e(){this.title=uc("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return nh(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n,r){return ih(e,t,n,r)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=Zi("body"),u=Zi('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;zb(e,t)})}},e}();var Ub={menus:[{key:"uploadImage",factory:function(){return new $b},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,n){console.error("'".concat(e.name,"' upload error"),n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(nh(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;if(o.length<=0)t(r);else Array.prototype.slice.call(o).some(function(e){return"image"===d(e.type.split("/"),1)[0]})?zb(e,o):t(r)}},n}};function Vb(e){return e.length?e[0].tagName.toLowerCase():""}function Wb(e,t,n,r,o){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={}),void 0===o&&(o=!1);var i=Zi(e),a=r.width,s=void 0===a?"":a,u=r.height,l=void 0===u?"":u,c=s?'data-w-e-style-width="'.concat(s,'"'):"",d=l?'data-w-e-style-height="'.concat(l,'"'):"";if(i.attr("width",t),i.attr("height",n),o)c&&i.attr("data-w-e-style-width",s),d&&i.attr("data-w-e-style-height",l),i.removeAttr("style");else{var f="display: block; max-width: 100%;";s&&(f+=" width: ".concat(s,";")),l&&(f+=" height: ".concat(l,";")),i.attr("style",f)}return i[0].outerHTML}oc("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height",alignLeft:"Align video left",alignCenter:"Center video",alignRight:"Align video right"}}),oc("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度",alignLeft:"视频左对齐",alignCenter:"视频居中",alignRight:"视频右对齐"}}),ba&&(Zi.fn.append=ba),aa&&(Zi.fn.on=aa),Ta&&(Zi.fn.focus=Ta),ta&&(Zi.fn.attr=ta),ia&&(Zi.fn.val=ia),va&&(Zi.fn.html=va),wa&&(Zi.fn.parent=wa),ea&&(Zi.fn.hasClass=ea),xa&&(Zi.fn.empty=xa);var Gb="center",qb=["left","center","right"];function Kb(e){if("string"!=typeof e)return Gb;var t=e.trim().toLowerCase();return qb.includes(t)?t:Gb}function Yb(e){var t=e.align;return Kb(t||e.textAlign)}function Xb(e){return"w-e-video-align-".concat(e)}var Zb={type:"video",elemToHtml:function(e,t,n){var r=e,o=r.src,i=void 0===o?"":o,a=r.poster,s=void 0===a?"":a,u=r.width,l=void 0===u?"auto":u,c=r.height,d=void 0===c?"auto":c,f=r.style,p=void 0===f?{}:f,h=of(n),g=Yb(e),v=' data-w-e-align="'.concat(g,'"'),m="class"===h?"".concat(v,' class="w-e-video ').concat(Xb(g),'"'):"".concat(v,' style="display: flex; justify-content: ').concat(function(e){return"left"===e?"flex-start":"right"===e?"flex-end":"center"}(g),'; margin: 0; max-width: 100%; width: 100%;"'),y='<figure data-w-e-type="video" data-w-e-is-void'.concat(m,">\n");if(0===i.trim().indexOf("<iframe ")){y+=Wb(i,l,d,p,"class"===h)}else{var b=p.width,E=void 0===b?"":b,w=p.height,C=void 0===w?"":w;if("class"===h){var D=E?' data-w-e-style-width="'.concat(E,'"'):"",A=C?' data-w-e-style-height="'.concat(C,'"'):"";y+='<video poster="'.concat(s,'" controls="true" width="').concat(l,'" height="').concat(d,'"').concat(D).concat(A,'><source src="').concat(i,'" type="video/mp4"/></video>')}else{var S="display: block; max-width: 100%;";E&&(S+=" width: ".concat(E,";")),C&&(S+=" height: ".concat(C,";")),y+='<video poster="'.concat(s,'" controls="true" width="').concat(l,'" height="').concat(d,'" style="').concat(S,'"><source src="').concat(i,'" type="video/mp4"/></video>')}}return y+="\n</figure>"}};function Jb(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(wn())}function Qb(e){var t={};return e.trim().split(";").forEach(function(e){if(e){var n=d(e.split(":"),2),r=n[0],o=n[1];r&&o&&(t[r.trim()]=o.trim())}}),t}function eE(){return Jb("w-e-insert-video")}var tE=function(){function e(){this.title=uc("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=eE(),this.heightInputId=eE(),this.buttonId=eE()}return e.prototype.getSelectedVideoNode=function(e){return Os.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=d(bc(uc("videoModule.width"),n,"auto"),2),a=i[0],u=Zi(i[1]),l=d(bc(uc("videoModule.height"),r,"auto"),2),c=l[0],f=Zi(l[1]),p=d(wc(o,uc("videoModule.ok")),1)[0],h=this.getSelectedVideoNode(e);if(null==this.$content){var g=Zi("<div></div>");g.on("click","#".concat(o),function(t){t.preventDefault();var o=g.find("#".concat(n)).val().trim(),i=g.find("#".concat(r)).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},l="auto",c="auto";a(o)?l=o:u(o)&&(l="".concat(parseInt(o,10),"px")),a(i)?c=i:u(i)&&(c="".concat(parseInt(i,10),"px"));var d=h.style,f=void 0===d?{}:d;e.restoreSelection();var p={style:s(s({},f),{width:l,height:c})};co.setNodes(e,p,{match:function(e){return Os.checkNodeType(e,"video")}}),e.hidePanelOrModal()}),this.$content=g}var v=this.$content;if(v.empty(),v.append(a),v.append(c),v.append(p),null==h)return v[0];var m=h.style,y=void 0===m?{}:m,b=y.width,E=void 0===b?"":b,w=y.height,C=void 0===w?"":w;return u.val(E),f.val(C),setTimeout(function(){u.focus()}),v[0]},e}();function nE(){return Jb("w-e-edit-video")}var rE=function(){function e(){this.title=uc("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=nE(),this.posterInputId=nE(),this.buttonId=nE()}return e.prototype.getSelectedVideoNode=function(e){return Os.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=d(bc(uc("videoModule.videoSrc"),r,uc("videoModule.videoSrcPlaceHolder")),2),s=a[0],c=a[1],f=d(bc(uc("videoModule.videoPoster"),o,uc("videoModule.videoPosterPlaceHolder")),2),p=f[0],h=f[1],g=Zi(c),v=Zi(h),m=d(wc(i,uc("videoModule.ok")),1)[0];if(null==this.$content){var y=Zi("<div></div>");y.on("click","#".concat(i),function(n){return u(t,void 0,void 0,function(){var t,i,a,s;return l(this,function(u){return n.preventDefault(),t=y.find("#".concat(r)).val().trim(),i=y.find("#".concat(o)).val().trim(),a=Jb("video-"),s={src:t,poster:i,key:a},e.restoreSelection(),co.setNodes(e,s,{match:function(e){return Os.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]})})}),this.$content=y}var b=this.$content;b.empty(),b.append(s),b.append(p),b.append(m);var E=this.getSelectedVideoNode(e);if(null==E)return b[0];var w=E.src,C=void 0===w?"":w,D=E.poster,A=void 0===D?"":D;return g.val(C),v.val(A),setTimeout(function(){g.focus()}),b[0]},e}();function oE(e,t){return u(this,arguments,void 0,function(e,t,n,r,o){var i,a,s,u,c,d,f,p;return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=""),l(this,function(l){switch(l.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,s=i.checkVideo,u=i.parseVideoSrc,[4,s(t,n)]):[2];case 1:return"string"==typeof(c=l.sent())?(e.alert(c,"error"),[2]):null==c?[2]:[4,u(t)];case 2:return 0!==(d=l.sent()).trim().indexOf("<iframe ")&&(d=function(e){return e.replace(/</g,"<").replace(/>/g,">")}(d)),f={type:"video",src:d,poster:n,align:"center",children:[{text:""}],style:{width:r,height:o}},p=null!=Os.getSelectedNodeByType(e,"table-cell"),Promise.resolve().then(function(){!p&&Os.isSelectedEmptyParagraph(e)&&co.removeNodes(e,{mode:"highest"}),p?co.insertNodes(e,f):co.insertNodes(e,f,{mode:"highest"})}),a(f),[2]}})})}function iE(){return Jb("w-e-insert-video")}var aE=function(){function e(){this.title=uc("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=iE(),this.posterInputId=iE(),this.buttonId=iE()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||!!Os.getSelectedElems(e).some(function(t){return"pre"===Os.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=d(bc(uc("videoModule.videoSrc"),r,uc("videoModule.videoSrcPlaceHolder")),2),s=a[0],c=a[1],f=d(bc(uc("videoModule.videoPoster"),o,uc("videoModule.videoPosterPlaceHolder")),2),p=f[0],h=f[1],g=Zi(c),v=Zi(h),m=d(wc(i,uc("videoModule.ok")),1)[0];if(null==this.$content){var y=Zi("<div></div>");y.on("click","#".concat(i),function(n){return u(t,void 0,void 0,function(){var t,i;return l(this,function(a){switch(a.label){case 0:return n.preventDefault(),t=y.find("#".concat(r)).val().trim(),i=y.find("#".concat(o)).val().trim(),[4,oE(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=y}var b=this.$content;return b.empty(),b.append(s),b.append(p),b.append(m),g.val(""),v.val(""),setTimeout(function(){g.focus()}),b[0]},e}();function sE(e){return e.getMenuConfig("uploadVideo")}var uE=new WeakMap;function lE(e,t){return u(this,void 0,void 0,function(){var n,r;return l(this,function(o){switch(o.label){case 0:return n=function(e){var t=uE.get(e);if(null!=t)return t;var n=sE(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=Bn(s(s({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n){return oE(e,t,n)}),void r(t,n);var o=n.errno,s=void 0===o?1:o,u=n.data,l=void 0===u?{}:u;if(0===s){var c=l.url,d=void 0===c?"":c,f=l.poster;oE(e,d,void 0===f?"":f),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}}),e),uE.set(e,t),t}(e),r=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}var cE=function(){function e(){this.title=uc("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n){return oE(e,t,n)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=Zi("body"),c=Zi('<input type="file" '.concat(a," multiple/>"));c.hide(),s.append(c),c.click(),c.on("change",function(){var t=c[0].files;!function(e,t){u(this,void 0,void 0,function(){var n,r,o,i,a,s,u,c,d,f,h,g;return l(this,function(l){switch(l.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=[],o=sE(e).customUpload,l.label=1;case 1:l.trys.push([1,8,9,14]),i=!0,a=p(n),l.label=2;case 2:return[4,a.next()];case 3:return s=l.sent(),(d=s.done)?[3,7]:(g=s.value,i=!1,u=g,o?[4,o(u,function(t,n){return oE(e,t,n)},e)]:[3,5]);case 4:return l.sent(),[3,6];case 5:r.push(u),l.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return c=l.sent(),f={error:c},[3,14];case 9:return l.trys.push([9,,12,13]),i||d||!(h=a.return)?[3,11]:[4,h.call(a)];case 10:l.sent(),l.label=11;case 11:return[3,13];case 12:if(f)throw f.error;return[7];case 13:return[7];case 14:return r.length>0?[4,lE(e,r)]:[3,16];case 15:l.sent(),l.label=16;case 16:return[2]}})})}(e,t)})}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||!!Os.getSelectedElems(e).some(function(t){return"pre"===Os.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),dE=function(){function e(e,t,n){this.align=e,this.iconSvg=n,this.tag="button",this.title=uc(t)}return e.prototype.getSelectedVideo=function(e){return Os.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){var t=this.getSelectedVideo(e);return!!t&&Yb(t)},e.prototype.isActive=function(e){return this.getValue(e)===this.align},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideo(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={align:this.align};co.setNodes(e,n,{match:function(e){return Os.checkNodeType(e,"video")}})}},e}();function fE(e,t,n,r,o,i){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}],align:i}}function pE(e){var t=(e.attr("data-w-e-align")||"").trim();if(t)return Kb(t);var n=Qb(e.attr("style")||""),r=n["justify-content"];if("flex-start"===r)return"left";if("flex-end"===r)return"right";if("center"===r)return"center";var o=function(e){for(var t=(e.attr("class")||"").trim().split(/\s+/).filter(Boolean),n=0;n<t.length;n+=1){var r=t[n];if(r.startsWith("w-e-video-align-"))return r.replace("w-e-video-align-","")}return""}(e);if(o)return Kb(o);var i=n["text-align"],a=(e.attr("data-w-e-text-align")||"").trim();return Kb(i||a)}function hE(e){var t=Qb(e),n={};return t.width&&(n.width=t.width),t.height&&(n.height=t.height),n}var gE={selector:'figure[data-w-e-type="video"],div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Zi(e),o="",i="",a="auto",s="auto",u={},l=r.find("iframe");if(l.length>0){a=l.attr("width")||"auto",s=l.attr("height")||"auto",u=hE(l.attr("style")||"");var c=l.attr("data-w-e-style-width")||"",d=l.attr("data-w-e-style-height")||"";return!u.width&&c&&(u.width=c),!u.height&&d&&(u.height=d),fE(o=l[0].outerHTML,i,a,s,u,pE(r))}var f=r.find("video");(o=f.attr("src")||"")||f.length>0&&(o=f.find("source").attr("src")||""),a=f.attr("width")||"auto",s=f.attr("height")||"auto",i=f.attr("poster")||"",u=hE(f.attr("style")||"");var p=f.attr("data-w-e-style-width")||"",h=f.attr("data-w-e-style-height")||"";return!u.width&&p&&(u.width=p),!u.height&&h&&(u.height=h),fE(o,i,a,s,u,pE(r))}};var vE={selector:"iframe,video,p",preParseHtml:function(e){var t=Zi(e),n=t;if("p"===Vb(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Zi(o))}}var a=Vb(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var s=Zi('<figure data-w-e-type="video" data-w-e-is-void data-w-e-align="center" class="w-e-video w-e-video-align-center"></figure>');return s.append(n),s[0]}};var mE={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,s=o.poster,u=void 0===s?"":s,l=o.key,c=void 0===l?"":l,d=o.width,f=void 0===d?"auto":d,p=o.height,h=void 0===p?"auto":p,g=o.style,v=void 0===g?{}:g,m=Yb(e),y=["w-e-video","w-e-textarea-video-container",Xb(m)].join(" "),b=Os.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){r=Ld("figure",{className:y,"data-selected":b?"true":"","data-w-e-align":m,innerHTML:Wb(a,f,h,v)})}else{var E=Ld("video",{key:c,poster:u,controls:!0,style:v},Ld("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==f&&(E.data.width=f),"auto"!==h&&(E.data.height=h),r=Ld("figure",{className:y,"data-selected":b?"true":"","data-w-e-align":m},E)}var w=vd("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r);return w}},yE={renderElems:[mE],elemsToHtml:[Zb],preParseHtml:[vE],parseElemsHtml:[gE],menus:[{key:"insertVideo",factory:function(){return new aE},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new cE},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,n){console.error("'".concat(e.name," upload error"),t,n)}}},{key:"editVideoSize",factory:function(){return new tE}},{key:"editVideoSrc",factory:function(){return new rE}},{key:"videoAlignLeft",factory:function(){return new dE("left","videoModule.alignLeft",'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>')}},{key:"videoAlignCenter",factory:function(){return new dE("center","videoModule.alignCenter",'<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>')}},{key:"videoAlignRight",factory:function(){return new dE("right","videoModule.alignRight",'<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>')}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=d(e,2),o=t[0],i=t[1];"video"===Os.getNodeType(o)&&(Os.isLastNode(r,o)&&co.insertNodes(r,Os.genEmptyParagraph(),{at:[i[0]+1]}));return n([o,i])},r}},bE=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=s(s({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=s(s({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=s(s({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=s(s({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){li(e,t)},e.registerRenderElem=function(e){var t,n,r;n=(t=e).type,r=t.renderElem,jd[n||""]=r},e.registerRenderStyle=function(e){!function(e){_d.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;gs[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){cs.push(e)}(e)},e.registerHtmlTransform=function(e){!function(e){ds.push(e)}(e)},e.registerPreParseHtml=function(e){var t;t=e,Ya.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;Za[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){Xa.push(e)}(e)},e.registerModule=function(e){EE(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function EE(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.htmlTransform,s=e.preParseHtml,u=e.parseElemsHtml,l=e.parseStyleHtml,c=e.editorPlugin;t&&t.forEach(function(e){return bE.registerMenu(e)}),n&&n.forEach(function(e){return bE.registerRenderElem(e)}),r&&bE.registerRenderStyle(r),o&&o.forEach(function(e){return bE.registerElemToHtml(e)}),i&&bE.registerStyleToHtml(i),a&&bE.registerHtmlTransform(a),s&&s.forEach(function(e){return bE.registerPreParseHtml(e)}),u&&u.forEach(function(e){return bE.registerParseElemHtml(e)}),l&&bE.registerParseStyleHtml(l),c&&bE.registerPlugin(c)}cv.forEach(function(e){return EE(e)}),EE(km),EE(Lb),EE(yE),EE(Ub),EE(Bv);var wE={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","previewImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell","setTableProperty","setTableCellProperty"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","videoAlignLeft","videoAlignCenter","videoAlignRight","editVideoSize","editVideoSrc"]}};var CE='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var DE={hoverbarKeys:s(s({},wE),{text:{menuKeys:["formatPainter","headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};bE.setEditorConfig(s(s({},DE),{decorate:Av}));var AE={hoverbarKeys:wE};bE.setSimpleEditorConfig(s(s({},AE),{decorate:Av}));var SE={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:uc("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","wavyUnderline","emphasisDot","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:uc("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:uc("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:uc("editor.image"),iconSvg:CE,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:uc("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","formatPainter","fullScreen"]};bE.setToolbarConfig(SE);var xE={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:uc("editor.image"),iconSvg:CE,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function NE(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,l=e.mode,c="simple"===(void 0===l?"default":l)?bE.simpleEditorConfig:bE.editorConfig,d=s(s({},c.hoverbarKeys||{}),u.hoverbarKeys||{});return tf({selector:n,config:s(s(s({},c),u),{hoverbarKeys:d}),content:o,html:i,plugins:bE.plugins})}function BE(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?bE.simpleToolbarConfig:bE.toolbarConfig;return rf(n,{selector:t,config:s(s({},u),o)})}bE.setSimpleToolbarConfig(xE);var OE={};export{bE as Boot,Os as DomEditor,Pr as SlateEditor,Kn as SlateElement,Qn as SlateNode,Hn as SlatePath,Mr as SlatePoint,Gn as SlateRange,Wr as SlateText,co as SlateTransforms,nf as Toolbar,NE as createEditor,BE as createToolbar,Bn as createUploader,OE as default,wc as genModalButtonElems,bc as genModalInputElems,Ec as genModalTextareaElems,af as getClassStylePolicy,of as getTextStyleMode,oc as i18nAddResources,ic as i18nChangeLanguage,ac as i18nGetResources,sf as reportUnsupportedClassStyle,uc as t};
|
|
20
|
+
*/e.exports&&(e.exports=t),void 0!==h&&(h.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r="loading",o="loaded",i="pre[data-src]:not(["+n+'="'+o+'"]):not(['+n+'="'+r+'"])';t.hooks.add("before-highlightall",function(e){e.selector+=", "+i}),t.hooks.add("before-sanity-check",function(a){var s=a.element;if(s.matches(i)){a.code="",s.setAttribute(n,r);var u=s.appendChild(document.createElement("CODE"));u.textContent="Loading…";var l=s.getAttribute("data-src"),c=a.language;if("none"===c){var d=(/\.(\w+)$/.exec(l)||[,"none"])[1];c=e[d]||d}t.util.setLanguage(u,c),t.util.setLanguage(s,c);var f=t.plugins.autoloader;f&&f.loadLanguages(c),function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4==r.readyState&&(r.status<400&&r.responseText?t(r.responseText):r.status>=400?n("✖ Error "+r.status+" while fetching file: "+r.statusText):n("✖ Error: File does not exist or is empty"))},r.send(null)}(l,function(e){s.setAttribute(n,o);var r=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],o=t[3];return r?o?[n,Number(o)]:[n,void 0]:[n,n]}}(s.getAttribute("data-range"));if(r){var i=e.split(/\r\n?|\n/g),a=r[0],l=null==r[1]?i.length:r[1];a<0&&(a+=i.length),a=Math.max(0,Math.min(a-1,i.length)),l<0&&(l+=i.length),l=Math.max(0,Math.min(l,i.length)),e=i.slice(a,l).join("\n"),s.hasAttribute("data-start")||s.setAttribute("data-start",String(a+1))}u.textContent=e,t.highlightElement(u)},function(e){s.setAttribute(n,"failed"),u.textContent=e})}}),t.plugins.fileHighlight={highlight:function(e){for(var n,r=(e||document).querySelectorAll(i),o=0;n=r[o++];)t.highlightElement(n)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}(fv)),fv.exports),hv=g(pv);!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,function(){return n}).replace(/<BRACES>/g,function(){return r}).replace(/<SPREAD>/g,function(){return o}),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)})}(Prism);var gv;gv||(gv=1,function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"];var vv;vv||(vv=1,function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")})}(Prism)),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean;var mv;mv||(mv=1,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python);var yv;yv||(yv=1,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism));var bv;bv||(bv=1,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism));var Ev;Ev||(Ev=1,function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=u(i),c=RegExp(u(o+" "+i+" "+a+" "+s)),d=u(i+" "+a+" "+s),f=u(o+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),m=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,v]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[m,y]),E=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,y]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[E]),C=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,m,y]),D={keyword:c,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,S=/"(?:\\.|[^\\"\r\n])*"/.source,x=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[S]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[m]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:D},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:D},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[m]),lookbehind:!0,inside:D},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:D},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,f,g]),inside:D}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:D},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,m]),inside:D,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:D,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:D}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,C,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[v,h]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(C),greedy:!0,inside:D},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var N=S+"|"+A,B=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[N]),O=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[B]),2),T=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,k=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[m,O]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[T,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[T]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[O]),inside:e.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var F=/:[^}\r\n]+/.source,I=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[B]),2),P=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,F]),R=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[N]),2),L=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,F]);function _(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,F]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[P]),lookbehind:!0,greedy:!0,inside:_(P,I)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[L]),lookbehind:!0,greedy:!0,inside:_(L,R)}],char:{pattern:RegExp(A),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)),Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/};var wv;wv||(wv=1,function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",r=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+r),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+r+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(function(e){var t=e.replace(a,"");return t=t.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e}),t}(t.content),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},function(e){var t={pattern:/((?:^|[^\\$])(?:\\{2})*)\$(?:\w+|\{[^{}]*\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}};e.languages.groovy=e.languages.extend("clike",{string:{pattern:/'''(?:[^\\]|\\[\s\S])*?'''|'(?:\\.|[^\\'\r\n])*'/,greedy:!0},keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),e.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment",greedy:!0},"interpolation-string":{pattern:/"""(?:[^\\]|\\[\s\S])*?"""|(["/])(?:\\.|(?!\1)[^\\\r\n])*\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}}}),e.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),e.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.inside.expression.inside=e.languages.groovy}(Prism),Prism.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:\*-INPUT|\?TO|ABAP-SOURCE|ABBREVIATED|ABS|ABSTRACT|ACCEPT|ACCEPTING|ACCESSPOLICY|ACCORDING|ACOS|ACTIVATION|ACTUAL|ADD|ADD-CORRESPONDING|ADJACENT|AFTER|ALIAS|ALIASES|ALIGN|ALL|ALLOCATE|ALPHA|ANALYSIS|ANALYZER|AND|ANY|APPEND|APPENDAGE|APPENDING|APPLICATION|ARCHIVE|AREA|ARITHMETIC|AS|ASCENDING|ASIN|ASPECT|ASSERT|ASSIGN|ASSIGNED|ASSIGNING|ASSOCIATION|ASYNCHRONOUS|AT|ATAN|ATTRIBUTES|AUTHORITY|AUTHORITY-CHECK|AVG|BACK|BACKGROUND|BACKUP|BACKWARD|BADI|BASE|BEFORE|BEGIN|BETWEEN|BIG|BINARY|BINDING|BIT|BIT-AND|BIT-NOT|BIT-OR|BIT-XOR|BLACK|BLANK|BLANKS|BLOB|BLOCK|BLOCKS|BLUE|BOUND|BOUNDARIES|BOUNDS|BOXED|BREAK-POINT|BT|BUFFER|BY|BYPASSING|BYTE|BYTE-CA|BYTE-CN|BYTE-CO|BYTE-CS|BYTE-NA|BYTE-NS|BYTE-ORDER|C|CA|CALL|CALLING|CASE|CAST|CASTING|CATCH|CEIL|CENTER|CENTERED|CHAIN|CHAIN-INPUT|CHAIN-REQUEST|CHANGE|CHANGING|CHANNELS|CHAR-TO-HEX|CHARACTER|CHARLEN|CHECK|CHECKBOX|CIRCULAR|CI_|CLASS|CLASS-CODING|CLASS-DATA|CLASS-EVENTS|CLASS-METHODS|CLASS-POOL|CLEANUP|CLEAR|CLIENT|CLOB|CLOCK|CLOSE|CN|CNT|CO|COALESCE|CODE|CODING|COLLECT|COLOR|COLUMN|COLUMNS|COL_BACKGROUND|COL_GROUP|COL_HEADING|COL_KEY|COL_NEGATIVE|COL_NORMAL|COL_POSITIVE|COL_TOTAL|COMMENT|COMMENTS|COMMIT|COMMON|COMMUNICATION|COMPARING|COMPONENT|COMPONENTS|COMPRESSION|COMPUTE|CONCAT|CONCATENATE|COND|CONDENSE|CONDITION|CONNECT|CONNECTION|CONSTANTS|CONTEXT|CONTEXTS|CONTINUE|CONTROL|CONTROLS|CONV|CONVERSION|CONVERT|COPIES|COPY|CORRESPONDING|COS|COSH|COUNT|COUNTRY|COVER|CP|CPI|CREATE|CREATING|CRITICAL|CS|CURRENCY|CURRENCY_CONVERSION|CURRENT|CURSOR|CURSOR-SELECTION|CUSTOMER|CUSTOMER-FUNCTION|DANGEROUS|DATA|DATABASE|DATAINFO|DATASET|DATE|DAYLIGHT|DBMAXLEN|DD\/MM\/YY|DD\/MM\/YYYY|DDMMYY|DEALLOCATE|DECIMALS|DECIMAL_SHIFT|DECLARATIONS|DEEP|DEFAULT|DEFERRED|DEFINE|DEFINING|DEFINITION|DELETE|DELETING|DEMAND|DEPARTMENT|DESCENDING|DESCRIBE|DESTINATION|DETAIL|DIALOG|DIRECTORY|DISCONNECT|DISPLAY|DISPLAY-MODE|DISTANCE|DISTINCT|DIV|DIVIDE|DIVIDE-CORRESPONDING|DIVISION|DO|DUMMY|DUPLICATE|DUPLICATES|DURATION|DURING|DYNAMIC|DYNPRO|E|EACH|EDIT|EDITOR-CALL|ELSE|ELSEIF|EMPTY|ENABLED|ENABLING|ENCODING|END|END-ENHANCEMENT-SECTION|END-LINES|END-OF-DEFINITION|END-OF-FILE|END-OF-PAGE|END-OF-SELECTION|ENDAT|ENDCASE|ENDCATCH|ENDCHAIN|ENDCLASS|ENDDO|ENDENHANCEMENT|ENDEXEC|ENDFOR|ENDFORM|ENDFUNCTION|ENDIAN|ENDIF|ENDING|ENDINTERFACE|ENDLOOP|ENDMETHOD|ENDMODULE|ENDON|ENDPROVIDE|ENDSELECT|ENDTRY|ENDWHILE|ENGINEERING|ENHANCEMENT|ENHANCEMENT-POINT|ENHANCEMENT-SECTION|ENHANCEMENTS|ENTRIES|ENTRY|ENVIRONMENT|EQ|EQUAL|EQUIV|ERRORMESSAGE|ERRORS|ESCAPE|ESCAPING|EVENT|EVENTS|EXACT|EXCEPT|EXCEPTION|EXCEPTION-TABLE|EXCEPTIONS|EXCLUDE|EXCLUDING|EXEC|EXECUTE|EXISTS|EXIT|EXIT-COMMAND|EXP|EXPAND|EXPANDING|EXPIRATION|EXPLICIT|EXPONENT|EXPORT|EXPORTING|EXTEND|EXTENDED|EXTENSION|EXTRACT|FAIL|FETCH|FIELD|FIELD-GROUPS|FIELD-SYMBOL|FIELD-SYMBOLS|FIELDS|FILE|FILTER|FILTER-TABLE|FILTERS|FINAL|FIND|FIRST|FIRST-LINE|FIXED-POINT|FKEQ|FKGE|FLOOR|FLUSH|FONT|FOR|FORM|FORMAT|FORWARD|FOUND|FRAC|FRAME|FRAMES|FREE|FRIENDS|FROM|FUNCTION|FUNCTION-POOL|FUNCTIONALITY|FURTHER|GAPS|GE|GENERATE|GET|GIVING|GKEQ|GKGE|GLOBAL|GRANT|GREATER|GREEN|GROUP|GROUPS|GT|HANDLE|HANDLER|HARMLESS|HASHED|HAVING|HDB|HEAD-LINES|HEADER|HEADERS|HEADING|HELP-ID|HELP-REQUEST|HIDE|HIGH|HINT|HOLD|HOTSPOT|I|ICON|ID|IDENTIFICATION|IDENTIFIER|IDS|IF|IGNORE|IGNORING|IMMEDIATELY|IMPLEMENTATION|IMPLEMENTATIONS|IMPLEMENTED|IMPLICIT|IMPORT|IMPORTING|IN|INACTIVE|INCL|INCLUDE|INCLUDES|INCLUDING|INCREMENT|INDEX|INDEX-LINE|INFOTYPES|INHERITING|INIT|INITIAL|INITIALIZATION|INNER|INOUT|INPUT|INSERT|INSTANCES|INTENSIFIED|INTERFACE|INTERFACE-POOL|INTERFACES|INTERNAL|INTERVALS|INTO|INVERSE|INVERTED-DATE|IS|ISO|ITERATOR|ITNO|JOB|JOIN|KEEP|KEEPING|KERNEL|KEY|KEYS|KEYWORDS|KIND|LANGUAGE|LAST|LATE|LAYOUT|LE|LEADING|LEAVE|LEFT|LEFT-JUSTIFIED|LEFTPLUS|LEFTSPACE|LEGACY|LENGTH|LESS|LET|LEVEL|LEVELS|LIKE|LINE|LINE-COUNT|LINE-SELECTION|LINE-SIZE|LINEFEED|LINES|LIST|LIST-PROCESSING|LISTBOX|LITTLE|LLANG|LOAD|LOAD-OF-PROGRAM|LOB|LOCAL|LOCALE|LOCATOR|LOG|LOG-POINT|LOG10|LOGFILE|LOGICAL|LONG|LOOP|LOW|LOWER|LPAD|LPI|LT|M|MAIL|MAIN|MAJOR-ID|MAPPING|MARGIN|MARK|MASK|MATCH|MATCHCODE|MAX|MAXIMUM|MEDIUM|MEMBERS|MEMORY|MESH|MESSAGE|MESSAGE-ID|MESSAGES|MESSAGING|METHOD|METHODS|MIN|MINIMUM|MINOR-ID|MM\/DD\/YY|MM\/DD\/YYYY|MMDDYY|MOD|MODE|MODIF|MODIFIER|MODIFY|MODULE|MOVE|MOVE-CORRESPONDING|MULTIPLY|MULTIPLY-CORRESPONDING|NA|NAME|NAMETAB|NATIVE|NB|NE|NESTED|NESTING|NEW|NEW-LINE|NEW-PAGE|NEW-SECTION|NEXT|NO|NO-DISPLAY|NO-EXTENSION|NO-GAP|NO-GAPS|NO-GROUPING|NO-HEADING|NO-SCROLLING|NO-SIGN|NO-TITLE|NO-TOPOFPAGE|NO-ZERO|NODE|NODES|NON-UNICODE|NON-UNIQUE|NOT|NP|NS|NULL|NUMBER|NUMOFCHAR|O|OBJECT|OBJECTS|OBLIGATORY|OCCURRENCE|OCCURRENCES|OCCURS|OF|OFF|OFFSET|OLE|ON|ONLY|OPEN|OPTION|OPTIONAL|OPTIONS|OR|ORDER|OTHER|OTHERS|OUT|OUTER|OUTPUT|OUTPUT-LENGTH|OVERFLOW|OVERLAY|PACK|PACKAGE|PAD|PADDING|PAGE|PAGES|PARAMETER|PARAMETER-TABLE|PARAMETERS|PART|PARTIALLY|PATTERN|PERCENTAGE|PERFORM|PERFORMING|PERSON|PF|PF-STATUS|PINK|PLACES|POOL|POSITION|POS_HIGH|POS_LOW|PRAGMAS|PRECOMPILED|PREFERRED|PRESERVING|PRIMARY|PRINT|PRINT-CONTROL|PRIORITY|PRIVATE|PROCEDURE|PROCESS|PROGRAM|PROPERTY|PROTECTED|PROVIDE|PUBLIC|PUSHBUTTON|PUT|QUEUE-ONLY|QUICKINFO|RADIOBUTTON|RAISE|RAISING|RANGE|RANGES|RAW|READ|READ-ONLY|READER|RECEIVE|RECEIVED|RECEIVER|RECEIVING|RED|REDEFINITION|REDUCE|REDUCED|REF|REFERENCE|REFRESH|REGEX|REJECT|REMOTE|RENAMING|REPLACE|REPLACEMENT|REPLACING|REPORT|REQUEST|REQUESTED|RESERVE|RESET|RESOLUTION|RESPECTING|RESPONSIBLE|RESULT|RESULTS|RESUMABLE|RESUME|RETRY|RETURN|RETURNCODE|RETURNING|RIGHT|RIGHT-JUSTIFIED|RIGHTPLUS|RIGHTSPACE|RISK|RMC_COMMUNICATION_FAILURE|RMC_INVALID_STATUS|RMC_SYSTEM_FAILURE|ROLE|ROLLBACK|ROUND|ROWS|RTTI|RUN|SAP|SAP-SPOOL|SAVING|SCALE_PRESERVING|SCALE_PRESERVING_SCIENTIFIC|SCAN|SCIENTIFIC|SCIENTIFIC_WITH_LEADING_ZERO|SCREEN|SCROLL|SCROLL-BOUNDARY|SCROLLING|SEARCH|SECONDARY|SECONDS|SECTION|SELECT|SELECT-OPTIONS|SELECTION|SELECTION-SCREEN|SELECTION-SET|SELECTION-SETS|SELECTION-TABLE|SELECTIONS|SELECTOR|SEND|SEPARATE|SEPARATED|SET|SHARED|SHIFT|SHORT|SHORTDUMP-ID|SIGN|SIGN_AS_POSTFIX|SIMPLE|SIN|SINGLE|SINH|SIZE|SKIP|SKIPPING|SMART|SOME|SORT|SORTABLE|SORTED|SOURCE|SPACE|SPECIFIED|SPLIT|SPOOL|SPOTS|SQL|SQLSCRIPT|SQRT|STABLE|STAMP|STANDARD|START-OF-SELECTION|STARTING|STATE|STATEMENT|STATEMENTS|STATIC|STATICS|STATUSINFO|STEP-LOOP|STOP|STRLEN|STRUCTURE|STRUCTURES|STYLE|SUBKEY|SUBMATCHES|SUBMIT|SUBROUTINE|SUBSCREEN|SUBSTRING|SUBTRACT|SUBTRACT-CORRESPONDING|SUFFIX|SUM|SUMMARY|SUMMING|SUPPLIED|SUPPLY|SUPPRESS|SWITCH|SWITCHSTATES|SYMBOL|SYNCPOINTS|SYNTAX|SYNTAX-CHECK|SYNTAX-TRACE|SYSTEM-CALL|SYSTEM-EXCEPTIONS|SYSTEM-EXIT|TAB|TABBED|TABLE|TABLES|TABLEVIEW|TABSTRIP|TAN|TANH|TARGET|TASK|TASKS|TEST|TESTING|TEXT|TEXTPOOL|THEN|THROW|TIME|TIMES|TIMESTAMP|TIMEZONE|TITLE|TITLE-LINES|TITLEBAR|TO|TOKENIZATION|TOKENS|TOP-LINES|TOP-OF-PAGE|TRACE-FILE|TRACE-TABLE|TRAILING|TRANSACTION|TRANSFER|TRANSFORMATION|TRANSLATE|TRANSPORTING|TRMAC|TRUNC|TRUNCATE|TRUNCATION|TRY|TYPE|TYPE-POOL|TYPE-POOLS|TYPES|ULINE|UNASSIGN|UNDER|UNICODE|UNION|UNIQUE|UNIT|UNIT_CONVERSION|UNIX|UNPACK|UNTIL|UNWIND|UP|UPDATE|UPPER|USER|USER-COMMAND|USING|UTF-8|VALID|VALUE|VALUE-REQUEST|VALUES|VARY|VARYING|VERIFICATION-MESSAGE|VERSION|VIA|VIEW|VISIBLE|WAIT|WARNING|WHEN|WHENEVER|WHERE|WHILE|WIDTH|WINDOW|WINDOWS|WITH|WITH-HEADING|WITH-TITLE|WITHOUT|WORD|WORK|WRITE|WRITER|X|XML|XOR|XSD|XSTRLEN|YELLOW|YES|YYMMDD|Z|ZERO|ZONE)(?![\w-])/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/};var Cv=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function Dv(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce(function(e,t){return e+Dv(t)},0)}var Av=function(e){var t,n,r,o=d(e,2),i=o[0],a=o[1],s=[],u=function(e){if(!Wr.isText(e))return null;var t=Os.getParentNode(null,e);if(t&&"code"===Os.getNodeType(t)){var n=Os.getParentNode(null,t);if(n&&"pre"===Os.getNodeType(n))return t}return null}(i);if(null==u)return s;var l=u.language,f=void 0===l?"":l;if(!f)return s;var p=function(e,t){if(!t)return[];var n=hv.languages[t];return n?hv.tokenize(e.text,n):[]}(i,f),h=0;try{for(var g=c(p),v=g.next();!v.done;v=g.next()){var m=v.value,y=h+Dv(m);"string"!=typeof m&&s.push(((r={})[m.type]=!0,r.anchor={path:a,offset:h},r.focus={path:a,offset:y},r)),h=y}}catch(e){t={error:e}}finally{try{v&&!v.done&&(n=g.return)&&n.call(g)}finally{if(t)throw t.error}}return s};var Sv={type:"code",elemToHtml:function(e,t){var n=e.language,r=void 0===n?"":n,o=r?'class="language-'.concat(r,'"'):"";return"<code ".concat(o,">").concat(t,"</code>")}};var xv=function(){function e(){this.title=uc("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115,this.defaultCodeLang=""}return e.prototype.getOptions=function(e){var t=this,n=[],r=e.getMenuConfig("codeSelectLang").codeLangs,o=void 0===r?[]:r;n.push({text:"plain text",value:""}),o.forEach(function(e){var r=e.text,o=e.value;e.selected&&(t.defaultCodeLang=o),n.push({text:r,value:o})});var i=this.getValue(e);return n.forEach(function(e){e.value===i?e.selected=!0:e.selected=void 0}),n},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);if(null==t)return this.defaultCodeLang;if(!Kn.isElement(t))return this.defaultCodeLang;var n=t.language.toString(),r=e.getMenuConfig("codeSelectLang").codeLangs;return(void 0===r?[]:r).some(function(e){return e.value===n})?n:this.defaultCodeLang},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};co.setNodes(e,n,{match:function(e){return Os.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=Os.getSelectedNodeByType(e,"code");if(null==t)return null;var n=Os.getParentNode(e,t);return Kn.isElement(n)?"pre"!==n.type?null:t:null},e}(),Nv={key:"codeSelectLang",factory:function(){return new xv},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"},{text:"ABAP",value:"abap"}]}};ta&&(Zi.fn.attr=ta);var Bv={renderStyle:function(e,t){var n=e,r=t,o="";return Cv.forEach(function(e){n[e]&&(o=e)}),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token ".concat(o)),r},parseStyleHtml:function(e,t,n){var r=Zi(e);if(!Kn.isElement(t))return t;if("code"!==Os.getNodeType(t))return t;var o=t,i=r.attr("class")||"";return 0===i.indexOf("language-")?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[Nv],elemsToHtml:[Sv]};oc("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list",lowerAlphaList:"Ordered list (a,b,c)",numberingActions:"Heading numbering actions",continueNumbering:"Continue heading numbering",restartNumbering:"Restart numbering"}}),oc("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表",lowerAlphaList:"有序列表(a,b,c)",numberingActions:"标题编号操作",continueNumbering:"继续标题编号",restartNumbering:"重新开始编号"}});var Ov=new WeakMap;function Tv(e){var t,n=e.children||[],r=n.length;if(0===r)return"";for(var o=0;o<r&&!t;o+=1){var i=n[o];Wr.isText(i)&&(t=i)}return null==t?"":t.color||""}function kv(e){return Os.checkNodeType(e,"list-item")}function Fv(e){return"string"==typeof e&&/^header[1-6]$/.test(e)}function Iv(e){return kv(e)&&Fv(e.headingType)?e.headingType:null}function Pv(e){return kv(e)&&e.level>0?Math.floor(e.level):0}function Rv(e){return kv(e)&&!0===e.ordered&&"outline"===e.listMode&&Fv(e.headingType)}function Lv(e){var t=Iv(e),n=null==t?null:/^header([1-6])$/.exec(t);return null!=n?Number.parseInt(n[1],10):Pv(e)+1}function _v(e){var t=e.ordered,n=void 0!==t&&t,r=e.start;return!n||"number"!=typeof r||Number.isNaN(r)?1:r}function Mv(e){var t=e.orderType;return"a"===t||"A"===t||"i"===t||"I"===t?t:"1"}function Hv(e,t){return e.ordered===t.ordered&&(!e.ordered||Mv(e)===Mv(t)&&_v(e)===_v(t))}function jv(e,t){var n,r,o=Array.from({length:6},function(){return 0});try{for(var i=c(e.children),a=i.next();!a.done;a=i.next()){var s=a.value;if(Rv(s)){for(var u=Lv(s),l=u-1,d=0;d<l;d+=1)0===o[d]&&(o[d]=1);"number"==typeof s.listRestart&&s.listRestart>0?o[l]=Math.floor(s.listRestart):0===o[l]?o[l]=1:o[l]+=1;for(var f=l+1;f<o.length;f+=1)o[f]=0;if(s===t){var p=o.slice(0,u).join(".");return 1===u?"".concat(p,"."):p}}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return""}var zv=new Set;function $v(e){return(e||"").trim().replace(/\s+/g,"").toLowerCase()}var Uv=new Set(["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"].map(function(e){return $v(e)}));function Vv(e){var t=$v(e);return"w-e-list-color-".concat(function(e){var t,n,r=7;try{for(var o=c(e),i=o.next();!i.done;i=o.next())r=(31*r+(i.value.codePointAt(0)||0))%2147483647}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r.toString(36)}("color:".concat(t)))}function Wv(e,t){var n=$v(t);return!!n&&(!!Uv.has(n)||!!function(e,t){for(var n,r=(null===(n=null==e?void 0:e.getConfig().styleClassTokens)||void 0===n?void 0:n.color)||[],o=$v(t),i=0;i<r.length;i+=1)if($v(r[i])===o)return!0;return!1}(e,t))}function Gv(e,t){if(Wv(e,t))return"class";var n=af(e),r="preserve-data";"fallback-inline"===n&&(r="inline"),"strict"===n&&(r="throw");var o="[wangeditor] Unsupported list color class token color=".concat(t,". policy=").concat(n),i="".concat(t,"|").concat(r);if(zv.has(i)||(zv.add(i),sf(e,{type:"color",value:t,scene:"toHtml",fallback:r,message:o})),"throw"===r)throw new Error(o);return"inline"===r?"inline":"preserve-data"}var qv=[],Kv=null,Yv=null;function Xv(e){return e.ordered?"ol":"ul"}function Zv(e,t,n){if("prev"===n&&0===t)return null;if("next"===n&&t===e.length-1)return null;var r=e["prev"===n?t-1:t+1];return!Os.checkNodeType(r,"list-item")||Rv(r)?null:r}var Jv={type:"list-item",elemToHtml:function(e,t,n){var r="",o="",i=e,a=Iv(i),s=null==a?null:a.replace("header","h");if(Rv(i)&&null!=s)return{html:"<".concat(s,">").concat(t,"</").concat(s,">"),prefix:"",suffix:""};null!=s&&(t="<".concat(s,">").concat(t,"</").concat(s,">"));var u=i.level,l=void 0===u?0:u,c=function(e){return e.ordered?"ol":"ul"}(i),d=function(e){var t=e.ordered;if(void 0===t||!t)return"<ul>";var n=[],r=Mv(e),o=_v(e);return"1"!==r&&n.push('type="'.concat(r,'"')),1!==o&&n.push('start="'.concat(o,'"')),null!=Iv(e)&&n.push('data-w-e-list-mode="standard"'),0===n.length?"<ol>":"<ol ".concat(n.join(" "),">")}(i),f=Ov.get(e),p=f&&Array.isArray(f.children)?f:null,h=n&&Array.isArray(n.children)?n:null,g=function(t,n){if(void 0===n&&(n=!1),!t)return null;try{var r=Os.findPath(t,e),o=1===r.length?t:Qn.get(t,Hn.parent(r)),i=Array.isArray(o.children)?o.children:[],a=r[r.length-1];return i[a]===e?{siblings:i,index:a}:null}catch(r){return n?(Yv||(Yv=function(e){var t=new WeakMap,n=function(e){e.forEach(function(r,o){Kn.isElement(r)&&(t.set(r,{siblings:e,index:o}),n(r.children))})};return n(e.children),t}(t)),Yv.get(e)||null):null}},v=h||p,m=g(h),y=g(p);m?v=h:y&&(v=p);var b=n||f;if(null==v)return{html:"<li>".concat(t,"</li>"),prefix:"",suffix:""};Kv!==v&&(qv.length=0,Kv=v,Yv=null);var E=g(v,!0);if(!E)return{html:"<li>".concat(t,"</li>"),prefix:"",suffix:""};var w=E.siblings,C=E.index,D=Zv(w,C,"prev"),A=Zv(w,C,"next"),S=!!A&&(A.level||0)>l;if(D){var x=D.level||0;if(l>x)for(T=0;T<l-x;T+=1)r+=d,qv.push(c);else if(l===x){if(!Hv(D,i)){var N=qv.pop()||Xv(D);r+="</".concat(N,">").concat(d),qv.push(c)}}else{for(var B=x-l;B>0;){N=qv.pop()||Xv(D);r+="</".concat(N,"></li>"),B-=1}var O=function(e,t,n){for(var r=t-1;r>=0;r-=1){var o=e[r];if(Os.checkNodeType(o,"list-item")&&!Rv(o)&&(o.level||0)===n)return o}return null}(w,C,l);if(O&&!Hv(O,i)){N=qv.pop()||Xv(O);r+="</".concat(N,">").concat(d),qv.push(c)}}}else{qv.length=0;for(var T=0;T<l+1;T+=1)r+=d,qv.push(c)}var k=Tv(e),F=of(b),I="",P="",R="";if(k)if("class"===F){R=' data-w-e-color="'.concat(k,'"');var L=Gv(b,k);"class"===L?P=' class="'.concat(Vv(k),'"'):"inline"===L&&(I=' style="color:'.concat(k,'"'))}else I=' style="color:'.concat(k,'"');var _="<li".concat(P).concat(R).concat(I,">").concat(t).concat(S?"":"</li>");if(!A){for(;qv.length>0;){var M=qv.pop();if(!M)break;o+="</".concat(M,">"),qv.length>0&&(o+="</li>")}Kv=null,Yv=null}return{html:_,prefix:r,suffix:o}}};function Qv(e,t){var n=function(e,t){var n=jv(e,t).split(".").filter(Boolean).pop(),r=Number.parseInt(n||"",10);return Number.isFinite(r)&&r>0?r:1}(t,e.node),r=1===n?"":' start="'.concat(n,'"');return"<ol".concat(r,' data-w-e-list-mode="outline">')}function em(e,t){var n=function(e,t){var n=Tv(e);if(!n)return[];if("class"!==of(t))return['style="color:'.concat(n,'"')];var r=['data-w-e-color="'.concat(n,'"')],o=Gv(t,n);return"class"===o?r.unshift('class="'.concat(Vv(n),'"')):"inline"===o&&r.push('style="color:'.concat(n,'"')),r}(e,t);return n.push('data-w-e-list-indent="'.concat(Lv(e)-1,'"')),"number"==typeof e.listRestart&&n.push('data-w-e-list-restart="'.concat(e.listRestart,'"')),n.push('data-w-e-outline-number="'.concat(jv(t,e),'"')),"<li ".concat(n.join(" "),">")}function tm(e,t){var n=e.items.map(function(e){var n=e.children.map(function(e){return tm(e,t)}).join("");return"".concat(em(e.node,t)).concat(e.html).concat(n,"</li>")}).join("");return"".concat(Qv(e,t)).concat(n,"</ol>")}var nm='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>';function rm(e){if(null==e.selection)return[];var t=Array.from(Pr.nodes(e,{at:e.selection,match:function(t){return Kn.isElement(t)&&Pr.isBlock(e,t)},mode:"lowest"}));return t.filter(function(e){var t=d(e,1)[0];return!["table","table-row","table-cell"].includes(t.type)})}function om(e){return Number.parseInt(e.slice(6),10)-1}var im=function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.isTargetListNode=function(e){return!(!kv(e)||Boolean(e.ordered)!==this.ordered)&&(!this.ordered||Mv(e)===(this.orderType||"1"))},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){var t=this,n=rm(e);return n.length>0&&n.every(function(e){var n=d(e,1)[0];return t.isTargetListNode(n)})},e.prototype.isDisabled=function(e){var t=rm(e);return 0===t.length||t.some(function(t){var n=d(t,1)[0];return!function(e,t){return!Pr.isVoid(e,t)&&!["pre","code","table","table-row","table-cell"].includes(t.type)}(e,n)})},e.prototype.exec=function(e,t){var n=this,r=this.isActive(e),o=rm(e);0!==o.length&&Pr.withoutNormalizing(e,function(){o.forEach(function(t){var o=d(t,2),i=o[0],a=o[1];if(r){var s=Iv(i);co.setNodes(e,{type:s||"paragraph",ordered:void 0,level:void 0,start:void 0,orderType:void 0,headingType:void 0,listMode:void 0,listRestart:void 0},{at:a})}else{var u=function(e){return kv(e)?Iv(e):Fv(e.type)?e.type:null}(i),l=n.ordered&&null==n.orderType&&null!=u;co.setNodes(e,{type:"list-item",ordered:n.ordered,level:l?om(u):Pv(i),start:void 0,orderType:n.ordered?n.orderType:void 0,headingType:l?u:void 0,listMode:l?"outline":void 0,listRestart:void 0},{at:a})}})})},e}(),am=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!1,t.title=uc("listModule.unOrderedList"),t.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',t}return a(t,e),t}(im),sm=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!0,t.orderType="a",t.title=uc("listModule.lowerAlphaList"),t.iconSvg=nm,t}return a(t,e),t}(im),um=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.ordered=!0,t.title=uc("listModule.orderedList"),t.iconSvg=nm,t}return a(t,e),t}(im),lm={key:"bulletedList",factory:function(){return new am}},cm={key:"numberedList",factory:function(){return new um}},dm={key:"numberedListLowerAlpha",factory:function(){return new sm}},fm=globalThis.Node;function pm(e){if(0===e.length)return"";var t=e[0];return t.nodeType!==fm.ELEMENT_NODE?"":t.tagName.toLowerCase()}function hm(e){return"ol"===pm(e.parent())}function gm(e){var t=e.parent();if("ol"===pm(t)){var n=(t.attr("start")||"").trim(),r=Number.parseInt(n,10);return Number.isNaN(r)?void 0:r}}function vm(e){var t=function(e){var t=(e.attr("data-w-e-list-restart")||"").trim();if(/^\d+$/.test(t)){var n=Number.parseInt(t,10);return n>0?n:void 0}}(e);return void 0!==t?t:null==e.attr("data-w-e-outline-number")&&function(e){for(var t,n=null===(t=e[0])||void 0===t?void 0:t.previousElementSibling;null!=n;){if("li"===n.tagName.toLowerCase())return!1;n=n.previousElementSibling}return!0}(e)?gm(e):void 0}function mm(e){return Wr.isText(e)&&""===e.text.trim()}function ym(e,t,n){t.forEach(function(t){mm(t)||(Wr.isText(t)||n.isInline(t)?e.push(t):Kn.isElement(t)&&ym(e,t.children,n))})}ba&&(Zi.fn.append=ba),ta&&(Zi.fn.attr=ta),wa&&(Zi.fn.parent=wa);var bm={selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Zi(e),o=function(e){var t=(e.attr("data-w-e-list-indent")||"").trim();if(/^\d+$/.test(t))return Number.parseInt(t,10);for(var n=0,r=e.parent();r.length>0;){var o=pm(r);"ul"!==o&&"ol"!==o||(n+=1),r=r.parent()}return Math.max(0,n-1)}(r),i=[],a=[];t.forEach(function(e){mm(e)||(kv(e)&&e.level>o?a.push(e):i.push(e))});var u=function(e){var t,n;try{for(var r=c(e),o=r.next();!o.done;o=r.next()){var i=o.value;if(Kn.isElement(i)&&Fv(i.type))return i}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null}(i),l=null!=u&&Fv(u.type)?u.type:void 0,p=function(e,t){var n=e.parent().attr("data-w-e-list-mode");return"outline"===n||"standard"===n?n:hm(e)&&t.some(function(e){return Kn.isElement(e)&&Fv(e.type)})?"outline":"standard"}(r,i),h=[];ym(h,i,n),0===h.length&&h.push(a.length>0?{text:""}:{text:r.text().replace(/\s+/gm," ")});var g=hm(r),v=gm(r),m=function(e){var t=e.parent();if("ol"===pm(t)){var n=(t.attr("type")||"").trim();return"1"===n||"a"===n||"A"===n||"i"===n||"I"===n?n:void 0}}(r),y=g&&"outline"===p&&void 0!==l,b=y?vm(r):void 0,E=s(s(s(s(s(s({type:"list-item",ordered:g,level:y?Number.parseInt(l.slice(6),10)-1:o},void 0===v||y?{}:{start:v}),void 0!==m?{orderType:m}:{}),void 0!==l?{headingType:l}:{}),y?{listMode:"outline"}:{}),void 0!==b?{listRestart:b}:{}),{children:h});return 0===a.length?E:f([E],d(a),!1)}};var Em={selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,n){return t.flat(1/0)}};function wm(e){var t=d(Pr.nodes(e,{at:e.selection||void 0,match:kv,universal:!0}),1)[0];return null==t?null:t}function Cm(e,t,n,r){co.setNodes(e,{type:r||Iv(n)||"paragraph",ordered:void 0,level:void 0,start:void 0,orderType:void 0,headingType:void 0,listMode:void 0,listRestart:void 0},{at:t})}var Dm=new WeakMap;function Am(e,t,n){var r=e.children.indexOf(t);r<0||co.setNodes(e,{listRestart:n},{at:[r]})}function Sm(e){var t=Dm.get(e);null!=t&&(t.dispose(),Dm.delete(e))}function xm(e,t,n){var r=e.createElement("button");return r.type="button",r.className="w-e-list-outline-action",r.textContent=t,r.addEventListener("mousedown",function(e){return e.preventDefault()}),r.addEventListener("click",function(e){e.preventDefault(),e.stopPropagation(),n()}),r}function Nm(e,t,n){if(!e.isDisabled()){Sm(e);var r=n.ownerDocument,o=r.createElement("div");o.className="w-e-list-outline-actions",o.setAttribute("role","menu"),o.addEventListener("mousedown",function(e){return e.preventDefault()}),o.append(xm(r,uc("listModule.continueNumbering"),function(){!function(e,t){Am(e,t)}(e,t),Sm(e)}),xm(r,uc("listModule.restartNumbering"),function(){!function(e,t){Am(e,t,1)}(e,t),Sm(e)}));var i=Os.getTextarea(e),a=i.$textAreaContainer[0],s=i.$scroll[0],u=n.getBoundingClientRect(),l=a.getBoundingClientRect();o.style.top="".concat(u.bottom-l.top+s.scrollTop+4,"px"),o.style.left="".concat(u.left-l.left+s.scrollLeft,"px"),a.append(o);var c=function(t){var r=t.target;r instanceof Node&&(o.contains(r)||n.contains(r)||Sm(e))},d=function(){return Sm(e)},f=function(){return Sm(e)};r.addEventListener("mousedown",c,!0),e.on(ni,d),e.on(ti,f),Dm.set(e,{elem:o,dispose:function(){r.removeEventListener("mousedown",c,!0),e.off(ni,d),e.off(ti,f),o.remove()}})}}function Bm(e,t){if(void 0===t&&(t=!1),e<=0)return String(e);for(var n=e,r="";n>0;){var o=(t?65:97)+(n-1)%26;r=String.fromCharCode(o)+r,n=Math.floor((n-1)/26)}return r}function Om(e,t){var n,r;if(void 0===t&&(t=!1),e<=0||e>=4e3)return String(e);var o=e,i="";try{for(var a=c([[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]]),s=a.next();!s.done;s=a.next())for(var u=d(s.value,2),l=u[0],f=u[1];o>=l;)i+=f,o-=l}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t?i:i.toLowerCase()}var Tm={type:"list-item",renderElem:function(e,t,n){Ov.set(e,n);var r=e,o=Rv(r),i=Pv(r),a={margin:"5px 0 5px ".concat(20*i,"px"),display:"flex",alignItems:"baseline"},s=Tv(r),u="";u=o?jv(n,r):r.ordered?function(e,t){switch(t){case"a":return"".concat(Bm(e),".");case"A":return"".concat(Bm(e,!0),".");case"i":return"".concat(Om(e),".");case"I":return"".concat(Om(e,!0),".");default:return"".concat(e,".")}}(function(e,t){if(!t.ordered)return 1;var n=Pv(t),r=_v(t),o=Os.findPath(e,t),i=o.length>1?Qn.get(e,o.slice(0,-1)):e,a=Array.isArray(i.children)?i.children:[],s=o[o.length-1];if(s<=0)return r;for(var u=s-1;u>=0;u-=1){var l=a[u];if(!kv(l))break;var c=Pv(l);if(c<n)break;if(c===n){if(!Hv(l,t)||Rv(l))break;r+=1}}return r}(n,r),Mv(r)):function(e){switch(void 0===e&&(e=0),e){case 0:return"•";case 1:return"◦";default:return"▪"}}(i);var l={marginRight:"0.5em",color:s},c=o?Ld("button",{type:"button",className:"w-e-list-marker",contentEditable:!1,"data-w-e-reserve":!0,"aria-label":uc("listModule.numberingActions"),title:uc("listModule.numberingActions"),style:l,on:{mousedown:function(e){return e.preventDefault()},click:function(e){e.preventDefault(),e.stopPropagation(),e.currentTarget instanceof HTMLElement&&Nm(n,r,e.currentTarget)}}},u):Ld("span",{className:"w-e-list-marker",contentEditable:!1,style:l,"data-w-e-reserve":!0},u),d=Iv(r);return Ld("div",{className:"w-e-list-item",style:a},c,Ld(null==d?"span":d.replace("header","h"),{style:{flex:"1",minWidth:"0",wordBreak:"break-word"}},t))}},km={renderElems:[Tm],editorPlugin:function(e){var t=e.deleteBackward,n=e.handleTab,r=e.normalizeNode,o=e.insertBreak,i=e;return i.insertBreak=function(){var e=wm(i);if(null==e)return o();var t=d(e,2),n=t[0],r=t[1];if(""!==Qn.string(n))return o();Cm(i,r,n,"paragraph")},i.deleteBackward=function(n){var r=i.selection;if(null==r||Gn.isExpanded(r))t(n);else{var o=wm(i);if(null!=o&&0===r.focus.offset){var a=d(o,2),s=a[0],u=a[1];if(Rv(s))Cm(i,u,s);else{var l=Pv(s);if(l<=0)Cm(i,u,s);else{var c=function(e,t,n){for(var r=void 0!==n?n:t.level||0,o=Os.findPath(e,t);;){if(0===o.length||0===o[o.length-1])return null;o=Hn.previous(o);var i=Pr.node(e,o);if(null==i||!kv(i[0]))return null;if(Pv(i[0])===r)return i[0]}}(e,s,l-1);null!=c?co.setNodes(i,{level:l-1,ordered:c.ordered,start:c.ordered?c.start:void 0,orderType:c.ordered?c.orderType:void 0},{at:u}):co.setNodes(i,{level:l-1},{at:u})}}}else t(n)}},i.handleTab=function(){var e=i.selection;if(null!=e)if(Gn.isCollapsed(e)){var t=wm(i);if(null==t||Rv(t[0])||0!==e.focus.offset)return void n();var r=d(t,2),o=r[0],a=r[1];co.setNodes(i,{level:Pv(o)+1},{at:a})}else{var s=function(e){var t=Array.from(Pr.nodes(e,{at:e.selection||void 0,match:function(t){return Kn.isElement(t)&&Pr.isBlock(e,t)},mode:"lowest"}));return t.filter(function(e){var t=d(e,1)[0];return!["table","table-row","table-cell"].includes(t.type)})}(i),u=s.filter(function(e){var t=d(e,1)[0];return kv(t)&&!Rv(t)});u.length!==s.length||u.length<=1?n():u.forEach(function(e){var t=d(e,2),n=t[0],r=t[1];co.setNodes(i,{level:Pv(n)+1},{at:r})})}else n()},i.normalizeNode=function(e){var t=d(e,2),n=t[0],o=t[1],a=Os.getNodeType(n);return"bulleted-list"!==a&&"numbered-list"!==a||co.unwrapNodes(i,{at:o}),r([n,o])},i},menus:[lm,cm,dm],htmlTransform:function(e,t,n){var r=[],o=null,i=function(){null!=o&&0!==o.roots.length&&(r.push(o.roots.map(function(e){return tm(e,n)}).join("")),o=null)};return t.forEach(function(t,n){var a=e[n]||"";if(Rv(t))return null==o&&(o={roots:[],levels:[]}),void function(e,t,n,r){var o,i=Math.max(0,Lv(n)-1);i>t.length&&(i=t.length),t.length=i+1;var a,s=i>0?null===(o=t[i-1])||void 0===o?void 0:o.lastItem:null,u=t[i],l="number"==typeof n.listRestart;null==u||!Hv(u.container.node,n)||l?(a={node:n,items:[]},null!=s?s.children.push(a):e.push(a)):a=u.container;var c={node:n,html:r,children:[]};a.items.push(c),t[i]={container:a,lastItem:c}}(o.roots,o.levels,t,a);i(),r.push(a)}),i(),r},elemsToHtml:[Jv],parseElemsHtml:[Em,bm]};oc("en",{tableModule:{modal:{border:"Border",borderColor:"Border color",borderStyle:"Border style",borderWidth:"Border width",borderWidthDefault:"Default 1",bgColor:"Back color",align:"Text Align",verticalAlign:"Vertical Align",width:"Width mode",widthAuto:"Auto",widthFull:"Full",mixed:"Mixed",ok:"OK"},color:{default:"Default color",clear:"Clear back color"},borderStyle:{none:"None",solid:"Solid",dotted:"Dotted",dashed:"Dashed",double:"Double",groove:"Groove",ridge:"Ridge",inset:"Inset",outset:"Outset"},verticalAlign:{top:"Top",middle:"Middle",bottom:"Bottom"},deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Fit width",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header",mergeCell:"merge cell",splitCell:"split cell",tableProperty:"Table property",cellProperty:"Cell property"}}),oc("zh-CN",{tableModule:{modal:{border:"边框",borderColor:"边框颜色",borderStyle:"边框样式",borderWidth:"边框粗细",borderWidthDefault:"默认 1",bgColor:"背景色",align:"对齐方式",verticalAlign:"垂直对齐",width:"宽度模式",widthAuto:"自适应",widthFull:"撑满",mixed:"混合",ok:"确定"},color:{default:"默认颜色",clear:"清除背景色"},borderStyle:{none:"无样式",solid:"实线",dotted:"点状虚线",dashed:"虚线",double:"双线",groove:"凹槽边框",ridge:"菱形边框",inset:"凹边框",outset:"凸边框"},verticalAlign:{top:"上",middle:"中",bottom:"下"},deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"适应宽度",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头",mergeCell:"合并单元格",splitCell:"拆分单元格",tableProperty:"表格属性",cellProperty:"单元格属性"}});var Fm=/^-?(?:\d+|\d*\.\d+)(?:px|em|rem|%|vh|vw|vmin|vmax|pt|pc|cm|mm|in|ch|ex|lh|rlh)$/i;var Im={type:"table",elemToHtml:function(e,t,n){var r=e,o=r.columnWidths,i=r.caption,a=r.height,s=void 0===a?"auto":a,u=null==o?void 0:o.map(function(e){return"<col width=".concat(e,"></col>")}).join(""),l=i?"<caption>".concat(i.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),"</caption>"):"",c=u?'<colgroup contentEditable="false">'.concat(u,"</colgroup>"):"",d=function(e,t){var n=e.width,r=void 0===n?"auto":n,o=e.columnWidths,i=void 0===o?[]:o;if(r&&"auto"!==r)return r;var a=function(e){if(!e||"function"!=typeof e.getMenuConfig)return"explicit";var t=e.getMenuConfig("insertTable");return"explicit"===(null==t?void 0:t.widthExportMode)?"explicit":"adaptive"}(t);if("adaptive"===a)return"auto";var s=i.reduce(function(e,t){return Number.isFinite(t)?t<=0?e:e+t:e},0);return s>0?"".concat(s,"px"):"auto"}(r,n),f=of(n),p=function(e){void 0===e&&(e="auto");var t="".concat(e||"").trim();if(!t||"auto"===t)return"auto";var n=Number(t);return Number.isFinite(n)?"".concat(n,"px"):Fm.test(t)?t:"auto"}(s);if("class"===f){var h=d?' width="'.concat(d,'"'):"",g="auto"!==p?' height="'.concat(p,'"'):"",v=' data-w-e-table-height="'.concat(p,'"');return'<table class="w-e-table-layout-fixed"'.concat(h).concat(g).concat(v,">").concat(l).concat(c,"<tbody>").concat(t,"</tbody></table>")}return'<table style="width: '.concat(d,";table-layout: fixed;height:").concat(p,'">').concat(l).concat(c,"<tbody>").concat(t,"</tbody></table>")}},Pm={type:"table-row",elemToHtml:function(e,t,n){var r=e.height;if("class"===of(n))return r?'<tr height="'.concat(r,'" data-w-e-row-height="').concat(r,'px">').concat(t,"</tr>"):"<tr>".concat(t,"</tr>");var o=r?' style="height: '.concat(r,'px"'):"";return"<tr".concat(o,">").concat(t,"</tr>")}},Rm={type:"table-cell",elemToHtml:function(e,t){var n=e,r=n.colSpan,o=void 0===r?1:r,i=n.rowSpan,a=void 0===i?1:i,s=n.isHeader,u=void 0!==s&&s,l=n.width,c=void 0===l?"auto":l,d=n.hidden;if(void 0!==d&&d)return"";var f=u?"th":"td";return"<".concat(f,' colSpan="').concat(o,'" rowSpan="').concat(a,'" width="').concat(c,'">').concat(t,"</").concat(f,">")}},Lm='<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>',_m={blocks:{td:"table-cell",th:"table-cell",content:"paragraph",tr:"table-row",table:"table",tbody:"table-body"}};function Mm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=_m,o=t.map(function(e){var t;return null===(t=null==r?void 0:r.blocks)||void 0===t?void 0:t[e]});return function(e){return function(e){return!Pr.isEditor(e)&&Kn.isElement(e)&&"type"in e}(e)&&o.includes(e.type)}}function Hm(e,t){for(var n=d(t,2),r=n[0],o=n[1],i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=d(Qn.common(e,r,o),2),u=s[0],l=s[1];return!!Mm.apply(void 0,f([e],d(i),!1))(u,l)||!!Pr.above(e,{match:Mm.apply(void 0,f([e],d(i),!1)),at:l})}function jm(e,t){var n,r;void 0===t&&(t={});var o=[];try{for(var i=c(function(e,t){var n,r,o,i,a,s,u,p,h,g,v,m,y,b,E,w,C,D;return void 0===t&&(t={}),l(this,function(l){switch(l.label){case 0:if(n=d(Pr.nodes(e,{match:Mm(e,"table"),at:t.at}),1),!(r=n[0]))return[2,[]];o=d(r,2),i=o[1],l.label=1;case 1:l.trys.push([1,6,7,8]),a=c(Pr.nodes(e,{match:Mm(e,"table"),at:i})),s=a.next(),l.label=2;case 2:if(s.done)return[3,5];u=d(s.value,2),p=u[1],h=[];try{for(C=void 0,g=c(Pr.nodes(e,{match:Mm(e,"tr"),at:p})),v=g.next();!v.done;v=g.next())m=d(v.value,2),y=m[1],h.push(f([],d(Pr.nodes(e,{match:Mm(e,"th","td"),at:y})),!1))}catch(e){C={error:e}}finally{try{v&&!v.done&&(D=g.return)&&D.call(g)}finally{if(C)throw C.error}}return[4,h];case 3:l.sent(),l.label=4;case 4:return s=a.next(),[3,2];case 5:return[3,8];case 6:return b=l.sent(),E={error:b},[3,8];case 7:try{s&&!s.done&&(w=a.return)&&w.call(a)}finally{if(E)throw E.error}return[7];case 8:return[2]}})}(e,{at:t.at})),a=i.next();!a.done;a=i.next()){for(var s=a.value,u=[],p=0,h=0;h<s.length;h+=1)s[h]&&(p=Math.max(p,s[h].length));for(h=0;h<s.length;h+=1)if(u[h]||(u[h]=[]),s[h])for(var g=0;g<s[h].length;g+=1)if(s[h][g]&&s[h][g][0]){for(var v=d(s[h][g],1)[0],m=v.rowSpan,y=void 0===m?1:m,b=v.colSpan,E=void 0===b?1:b,w=g;u[h]&&u[h][w];)w+=1;for(var C=0;C<E;C+=1)for(var D=0;D<y;D+=1){var A=h+D,S=w+C;u[A]||(u[A]=[]),u[A][S]||(u[A][S]=[s[h][g],{rtl:C+1,ltr:E-C,ttb:D+1,btt:y-D}])}}o.push.apply(o,f([],d(u),!1))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}var zm=function(){function e(e,t){this.x=e,this.y=t}return e.valueOf=function(e,t){return new this(e,t)},e.equals=function(e,t){return e.x===t.x&&e.y===t.y},e}();function $m(e){return e.length?e[0].tagName.toLowerCase():""}function Um(e,t){for(var n="",r=(e.attr("style")||"").split(";"),o=r.length,i=0;i<o;i+=1){var a=r[i];if(a){var s=a.split(":");s[0].trim()===t&&(n=s[1].trim())}}return n}function Vm(e){return 0===e.length?"":e[0].outerHTML}ba&&Zi.fn&&(Zi.fn.append=ba),aa&&Zi.fn&&(Zi.fn.on=aa),Ta&&Zi.fn&&(Zi.fn.focus=Ta),ta&&Zi.fn&&(Zi.fn.attr=ta),ia&&Zi.fn&&(Zi.fn.val=ia),va&&Zi.fn&&(Zi.fn.html=va),oa&&Zi.fn&&(Zi.fn.dataset=oa),Ji&&Zi.fn&&(Zi.fn.addClass=Ji),Qi&&Zi.fn&&(Zi.fn.removeClass=Qi),Aa&&Zi.fn&&(Zi.fn.children=Aa),ha&&Zi.fn&&(Zi.fn.each=ha),Da&&Zi.fn&&(Zi.fn.find=Da),ra&&Zi.fn&&(Zi.fn.data=ra),da&&Zi.fn&&(Zi.fn.hide=da),fa&&Zi.fn&&(Zi.fn.show=fa);var Wm=new WeakMap,Gm=new WeakMap;function qm(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);var r=document.createElement(e);return Object.entries(t).forEach(function(e){var t=d(e,2),n=t[0],o=t[1];null!=o&&!1!==o&&(!0!==o?r.setAttribute(n,o):r.setAttribute(n,""))}),n.forEach(function(e){r.append("string"==typeof e?document.createTextNode(e):e)}),r}function Km(e){return e instanceof KeyboardEvent?e:null}function Ym(e){return"Enter"===e.key||" "===e.key}var Xm=function(){function e(){this.title=uc("tableModule.tableProperty"),this.iconSvg='<svg viewBox="0 0 20 20"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',this.tag="button",this.showModal=!0,this.modalWidth=340,this.menu="table",this.propertyFields=["borderStyle","borderColor","borderWidth","backgroundColor"],this.borderStyle=[{value:"none",label:uc("tableModule.borderStyle.none")},{value:"solid",label:uc("tableModule.borderStyle.solid")},{value:"dotted",label:uc("tableModule.borderStyle.dotted")},{value:"dashed",label:uc("tableModule.borderStyle.dashed")},{value:"double",label:uc("tableModule.borderStyle.double")},{value:"groove",label:uc("tableModule.borderStyle.groove")},{value:"ridge",label:uc("tableModule.borderStyle.ridge")},{value:"inset",label:uc("tableModule.borderStyle.inset")},{value:"outset",label:uc("tableModule.borderStyle.outset")}],this.textAlignOptions=[{value:"left",label:uc("justify.left"),svg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"center",label:uc("justify.center"),svg:'<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"right",label:uc("justify.right"),svg:'<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>'},{value:"justify",label:uc("justify.justify"),svg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>'}],this.verticalAlignOptions=[{value:"top",label:uc("tableModule.verticalAlign.top")},{value:"middle",label:uc("tableModule.verticalAlign.middle")},{value:"bottom",label:uc("tableModule.verticalAlign.bottom")}]}return e.prototype.renderRow=function(e,t,n){void 0===n&&(n="div");var r=qm(n,{class:"babel-container w-e-table-property-row"}),o=qm("span",{class:"w-e-table-property-label"},[e]);return r.append(o,t),r},e.prototype.createFieldControl=function(e,t,n){return{field:e,root:t,input:n,setValue:function(e,t){void 0===t&&(t=!1),n.value=e||"",n.setAttribute("data-mixed",t?"true":"false")},getValue:function(){return n.value},setMixed:function(e){n.setAttribute("data-mixed",e?"true":"false")}}},e.prototype.renderSelect=function(e,t,n){var r=qm("input",{name:e,type:"hidden"}),o=qm("span",{class:"w-e-table-property-select-value"}),i=qm("button",{type:"button",class:"w-e-table-property-select-trigger","aria-label":t,"aria-haspopup":"listbox","aria-expanded":"false"},[o]),a=qm("span",{class:"w-e-table-property-select-panel",role:"listbox"});n.forEach(function(t){a.append(qm("button",{type:"button",class:"w-e-table-property-select-option","data-select-option-field":e,"data-value":t.value,role:"option"},[t.label]))});var s=qm("span",{class:"w-e-table-property-select","data-select-field":e},[i,a]),u=qm("span",{class:"babel-container-select w-e-table-property-controls"},[r,s]),l=this.renderRow(t,u),c=this.createFieldControl(e,l,r);return c.setValue=function(t,i){void 0===i&&(i=!1);var u="borderStyle"!==e||t?t:"none",l=n.find(function(e){return e.value===u}),c=i?uc("tableModule.modal.mixed"):(null==l?void 0:l.label)||"";r.value=u||"",r.setAttribute("data-mixed",i?"true":"false"),s.setAttribute("data-mixed",i?"true":"false"),o.textContent=c,Array.from(a.querySelectorAll(".w-e-table-property-select-option")).forEach(function(e){var t=!i&&e.dataset.value===u;e.classList.toggle("active",t),e.setAttribute("aria-selected",t?"true":"false")})},c.setMixed=function(e){r.setAttribute("data-mixed",e?"true":"false"),s.setAttribute("data-mixed",e?"true":"false"),e&&(o.textContent=uc("tableModule.modal.mixed"))},c},e.prototype.renderNumber=function(e,t){var n=qm("input",{name:e,type:"number",min:"0",placeholder:uc("tableModule.modal.borderWidthDefault"),"aria-label":t}),r=qm("span",{class:"w-e-table-property-number"},[n,qm("span",{class:"w-e-table-property-unit"},["px"])]),o=qm("span",{class:"babel-container-number w-e-table-property-controls"},[r]);return this.createFieldControl(e,this.renderRow(t,o,"label"),n)},e.prototype.renderColor=function(e,t,n,r){var o=qm("span",{class:"color-group-block"}),i=qm("span",{class:"color-group-label"},[r]),a=qm("input",{name:e,type:"hidden"}),s=qm("span",{class:"color-group color-group-wide","data-mark":t,title:n,role:"button",tabindex:"0"},[o,i,a]),u=qm("span",{class:"babel-container-color w-e-table-property-controls"},[s]),l=this.renderRow(n,u),c=this.createFieldControl(e,l,a);return c.setValue=function(e,t){void 0===t&&(t=!1),a.value=e||"",a.setAttribute("data-mixed",t?"true":"false"),s.setAttribute("data-mixed",t?"true":"false"),e?(o.style.backgroundColor=e,o.innerHTML="",i.textContent=e,s.classList.remove("is-empty")):(o.style.backgroundColor="",o.innerHTML=Lm,i.textContent=r,s.classList.add("is-empty")),s.setAttribute("data-empty",e?"false":"true")},c.setMixed=function(e){a.setAttribute("data-mixed",e?"true":"false"),s.setAttribute("data-mixed",e?"true":"false")},c},e.prototype.renderSegment=function(e,t,n,r){void 0===r&&(r=!1);var o=qm("input",{name:e,type:"hidden"}),i=qm("span",{class:"w-e-table-property-segment".concat(r?" w-e-table-property-segment-fill":"")});n.forEach(function(t){var n=qm("button",{type:"button",class:"w-e-table-property-segment-button".concat(t.svg?" w-e-table-property-align-button":""),"data-field":e,"data-value":t.value,title:t.label,"aria-label":t.label});t.svg?n.innerHTML=t.svg:n.textContent=t.label,i.append(n)});var a=qm("span",{class:"babel-container-align w-e-table-property-controls"},[o,i]),s=this.renderRow(t,a),u=this.createFieldControl(e,s,o);return u.setValue=function(e,t){void 0===t&&(t=!1),o.value=e||"",o.setAttribute("data-mixed",t?"true":"false"),Array.from(i.querySelectorAll("[data-field]")).forEach(function(n){var r=!t&&n.dataset.value===e;n.classList.toggle("active",r),n.setAttribute("aria-pressed",r?"true":"false")})},u},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==this.getModalContentNode(e)},e.prototype.exec=function(e,t){},e.prototype.getModalContentNode=function(e){return d(Pr.nodes(e,{match:Mm(e,"table")}),1)[0]},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t,n=this,r=this.getModalContentNode(e);if(!r)return null;var o=d(r,2),i=o[0],a=o[1],s=this.propertyFields,u=function(e){return s.includes(e)},l="cell"===this.menu,c=[this.renderSelect("borderStyle",uc("tableModule.modal.borderStyle"),this.borderStyle),this.renderColor("borderColor","color",uc("tableModule.modal.borderColor"),uc("tableModule.color.default")),this.renderNumber("borderWidth",uc("tableModule.modal.borderWidth")),this.renderColor("backgroundColor","bgColor",uc("tableModule.modal.bgColor"),uc("tableModule.color.clear"))],f=qm("div",{class:"w-e-table-property-modal"},c.map(function(e){return e.root}));if(u("textAlign")){var p=this.renderSegment("textAlign",uc("tableModule.modal.align"),this.textAlignOptions);c.push(p),f.append(p.root)}if(u("verticalAlign")){p=this.renderSegment("verticalAlign",uc("tableModule.modal.verticalAlign"),this.verticalAlignOptions);c.push(p),f.append(p.root)}f.append(qm("div",{class:"button-container"},[qm("button",{type:"button"},[uc("tableModule.modal.ok")])]));var h=Zi(f),g=new Map;c.forEach(function(e){g.set(e.field,e)});var v=new Set,m=function(){h.find(".w-e-table-property-select-panel").hide(),h.find(".w-e-table-property-select-trigger").attr("aria-expanded","false")};h.on("mousedown",function(e){var t=e.target;t instanceof Element&&(t.closest(".w-e-table-property-select")||m())});var y=function(e){null!=e&&s.includes(e)&&v.add(e)},b=function(e,t,n){var r;void 0===n&&(n=!1),null===(r=g.get(e))||void 0===r||r.setValue(t,n)},E=function(e){var t;return(null===(t=g.get(e))||void 0===t?void 0:t.getValue())||""};g.forEach(function(t,n){var r=function(t){if(!l)return i[t]||"";var n,r=Wm.get(e);if(!(null==r?void 0:r.length))return i[t]||"";var o=!1,a=!1;return r.forEach(function(e){e.forEach(function(e){var r=d(e[0],1)[0][t]||"";if(!o)return n=r,void(o=!0);n!==r&&(a=!0)})}),a?void 0:n}(n),o=function(e,t){return"borderStyle"!==e||t?t:"none"}(n,r);if(null!=r)b(n,o);else{if(b(n,"",!0),"hidden"===t.input.type){var a=t.input.closest(".color-group");a&&Zi(a).attr("data-mixed","true")}"hidden"!==t.input.type&&(t.input.placeholder=uc("tableModule.modal.mixed"))}}),null===(t=g.get("borderWidth"))||void 0===t||t.input.addEventListener("change",function(e){var t=e.currentTarget;y(t.name),t.setAttribute("data-mixed","false")}),h.find(".w-e-table-property-select-trigger").on("click",function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget;if(null!=t){var n=Zi(t),r=n.parents(".w-e-table-property-select").find(".w-e-table-property-select-panel"),o="true"===n.attr("aria-expanded");h.find(".color-group .w-e-drop-panel").hide(),m(),o||(r.show(),n.attr("aria-expanded","true"))}}),h.find(".w-e-table-property-select-trigger").on("keydown",function(e){var t=Km(e),n=e.currentTarget;if(null!=t&&n instanceof HTMLElement)return Ym(t)?(t.preventDefault(),void n.click()):void("Escape"===t.key&&(t.preventDefault(),m()))}),h.find(".w-e-table-property-select-option").on("click",function(e){e.preventDefault(),e.stopPropagation();var t=e.currentTarget;if(null!=t){var n=Zi(t),r=n.attr("data-select-option-field"),o=n.attr("data-value")||"";b(r,o),y(r),m()}}),h.find(".w-e-table-property-select-option").on("keydown",function(e){var t=Km(e),n=e.currentTarget;if(null!=t&&n instanceof HTMLElement)return Ym(t)?(t.preventDefault(),void n.click()):void("Escape"===t.key&&(t.preventDefault(),m()))}),h.find("[data-field]").on("click",function(e){var t=e.currentTarget;if(null!=t){var n=Zi(t),r=n.attr("data-value")||"",o=n.attr("data-field");b(o,r),y(o)}});return h.find(".color-group").each(function(t){var r=Zi(t),o=function(){m(),h.find(".color-group .w-e-drop-panel").hide();var o=r.data("panel"),i=r.data("mark"),a="color"===i?"borderColor":"backgroundColor";o?(n.updateColorPanelActive(o,E(a)),o.show()):(o=n.getPanelContentElem(e,{mark:i,selectedColor:E(a),callback:function(e){var n,r;b(a,e||""),Zi(t).attr("data-mixed","false"),y(a),"borderColor"===a&&e&&(n=E("borderStyle"),r=E("borderWidth"),n&&"none"!==n||(b("borderStyle","solid"),y("borderStyle")),r&&"0"!==r||(b("borderWidth","1"),y("borderWidth"))),o.hide()}}),r.append(o),r.data("panel",o))};r.on("click",function(){o()}),r.on("keydown",function(e){var t=Km(e);null!=t&&Ym(t)&&(t.preventDefault(),o())})}),h.find(".button-container button").on("click",function(){var t=Array.from(g).reduce(function(e,t){var n=d(t,2),r=n[0],o=n[1];return v.has(r)?(e[r]=o.getValue(),e):e},{});if(0!==Object.keys(t).length){var r=Wm.get(e);"cell"===n.menu&&(null==r?void 0:r.length)?r.forEach(function(n){n.forEach(function(n){co.setNodes(e,t,{at:n[0][1]})})}):co.setNodes(e,t,{at:a}),setTimeout(function(){e.focus()})}else e.focus()}),h[0]},e.prototype.getPanelContentElem=function(e,t){var n=t.mark,r=t.selectedColor,o=t.callback,i=Zi(qm("ul",{class:"w-e-panel-content-color"}));i.on("click","li",function(e){var t=e.target;if(t){e.preventDefault(),e.stopPropagation();var n=Zi(t).attr("data-value");o(n)}});var a=e.getMenuConfig(n).colors;(void 0===a?[]:a).forEach(function(e){var t=Zi(qm("div",{class:"color-block","data-value":e}));t.css("background-color",e);var n=Zi(qm("li",{"data-value":e}));r===e&&n.addClass("active"),n.append(t),i.append(n)});var s="";"color"===n&&(s=uc("tableModule.color.default")),"bgColor"===n&&(s=uc("tableModule.color.clear"));var u=qm("li",{"data-value":"",class:"clear"});u.innerHTML=Lm,u.append(document.createTextNode(s));var l=Zi(u);i.prepend(l);var c=Zi(qm("div",{class:"w-e-drop-panel"}));return c.append(i),c},e.prototype.updateColorPanelActive=function(e,t){e.find("li").each(function(e){var n=Zi(e);n.attr("data-value")===t?n.addClass("active"):n.removeClass("active")})},e}(),Zm=function(e){function t(){var t=e.apply(this,f([],d(arguments),!1))||this;return t.title=uc("tableModule.cellProperty"),t.iconSvg='<svg viewBox="0 0 20 20"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',t.tag="button",t.showModal=!0,t.modalWidth=360,t.menu="cell",t.propertyFields=["borderStyle","borderColor","borderWidth","backgroundColor","textAlign","verticalAlign"],t}return a(t,e),t.prototype.getModalContentNode=function(e){return d(Pr.nodes(e,{match:Mm(e,"td")}),1)[0]},t}(Xm),Jm=function(){function e(){this.title=uc("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||null==Os.getSelectedNodeByType(e,"table-cell"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")},universal:!0}),1),r=d(n[0],2),o=r[0],i=r[1],a=Os.getParentNode(e,o),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)co.removeNodes(e,{mode:"highest"});else if(null!=Os.getParentNode(e,a)){var u=jm(e),l=0;e:for(var p=0;p<u.length;p+=1)for(var h=0;h<u[p].length;h+=1){var g=d(u[p][h],1),v=d(g[0],2)[1];if(Hn.equals(i,v)){l=h;break e}}Pr.withoutNormalizing(e,function(){for(var t,n,r=new Set,o=new Set,i=0;i<u.length;i+=1)if(u[i]&&u[i][l]){var a=d(u[i][l],2),s=d(a[0],2)[1],p=a[1],h=p.rtl,g=p.ltr,v=p.ttb,m=p.btt,y=s.join(",");if(h>1||g>1||v>1||m>1){var b=i-(v-1),E=l-(h-1);if(b<0||b>=u.length||!u[b]||!u[b][E])continue;var w=d(u[b][E],1),C=d(w[0],2),D=C[0],A=C[1],S=A.join(",");if(!o.has(S)){o.add(S);var x=D.rowSpan,N=void 0===x?1:x,B=D.colSpan,O=void 0===B?1:B,T=Math.max(O-1,1);co.setNodes(e,{rowSpan:N,colSpan:T},{at:A})}}else r.add(y)}var k=Array.from(r);k.sort(function(e,t){var n=e.split(",").map(Number),r=t.split(",").map(Number);return n[n.length-2]!==r[r.length-2]?r[r.length-2]-n[n.length-2]:r[r.length-1]-n[n.length-1]});try{for(var F=c(k),I=F.next();!I.done;I=F.next()){var P=I.value.split(",").map(Number);try{Pr.hasPath(e,P)&&co.removeNodes(e,{at:P})}catch(e){console.warn("删除单元格失败:",P,e)}}}catch(e){t={error:e}}finally{try{I&&!I.done&&(n=F.return)&&n.call(F)}finally{if(t)throw t.error}}var R=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table")},universal:!0}),1),L=R[0];if(L){var _=d(L,2),M=_[0],H=_[1],j=M.columnWidths,z=f([],d(void 0===j?[]:j),!1);z.splice(l,1),co.setNodes(e,{columnWidths:z},{at:H})}})}}},e}();function Qm(e){return void 0===e&&(e={}),s(s({type:"table-cell"},e),{children:[{type:"paragraph",children:[{text:""}]}]})}function ey(e){return e.map(function(e){return Wr.isText(e)?s({},e):s(s({},e),{children:ey(e.children)})})}function ty(e){var t=[],n=[],r=function(){0!==n.length&&(t.push({type:"paragraph",children:n}),n=[])};return e.forEach(function(e){Wr.isText(e)?n.push(s({},e)):(r(),t.push(e))}),r(),t.length>0?t:Qm().children}function ny(e,t){return t.children.every(function(t){return!!Wr.isText(t)||Kn.isElement(t)&&e.isInline(t)&&ny(e,t)})}function ry(e,t){return!!Kn.isElement(t)&&("paragraph"===t.type||"list-item"===t.type?ny(e,t):"pre"===t.type?1===t.children.length&&Kn.isElement(t.children[0])&&"code"===t.children[0].type&&t.children[0].children.every(Wr.isText):"video"===t.type&&(e.isVoid(t)&&t.children.every(Wr.isText)))}function oy(e){return e.map(function(e){if(Wr.isText(e))return e;if("table-cell"===e.type)return s(s({},e),{children:ty(e.children)});var t=oy(e.children);return t.every(function(t,n){return t===e.children[n]})?e:s(s({},e),{children:t})})}function iy(e,t,n){try{var r=Os.findPath(e,t);co.setNodes(e,n,{at:r})}catch(e){}}function ay(e){var t=e.children||[];return 0===t.length?[]:(t[0]||{}).children||[]}function sy(e){return ay(e).every(function(e){return!!e.isHeader})}var uy=function(){function e(){this.title=uc("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||null==Os.getSelectedNodeByType(e,"table-row"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-row")},universal:!0}),1),r=d(n[0],2),o=r[0],i=r[1],a=Os.getParentNode(e,o);if(((null==a?void 0:a.children.length)||0)<=1)co.removeNodes(e,{mode:"highest"});else{var s=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")},universal:!0}),1),u=d(s[0],2)[1],l=jm(e),p=0;e:for(var h=0;h<l.length;h+=1)for(var g=0;g<l[h].length;g+=1){var v=d(l[h][g],1),m=d(v[0],2)[1];if(Hn.equals(u,m)){p=h;break e}}Pr.withoutNormalizing(e,function(){for(var t,n,r=[],o=0;o<l[p].length;o+=1){var a=d(l[p][o],2),s=d(a[0],1)[0].hidden,u=a[1],h=u.ttb,g=u.btt,v=u.rtl;if(h>1||g>1){var m=p-(h-1);if(m<0||m>=l.length||!l[m]||!l[m][o])continue;var y=d(l[m][o],1),b=d(y[0],2),E=b[0],w=b[1],C=E,D=C.rowSpan,A=void 0===D?1:D,S=C.colSpan,x=void 0===S?1:S;if(s)co.setNodes(e,{rowSpan:Math.max(A-1,1),colSpan:x},{at:w});else if(1===h&&1===v){if(p+1<l.length&&A>1){var N={type:"table-cell",rowSpan:A-1,colSpan:x,hidden:!1,children:ey(C.children)};C.isHeader&&(N.isHeader=C.isHeader),C.width&&(N.width=C.width),C.backgroundColor&&(N.backgroundColor=C.backgroundColor),C.borderWidth&&(N.borderWidth=C.borderWidth),C.borderStyle&&(N.borderStyle=C.borderStyle),C.borderColor&&(N.borderColor=C.borderColor),C.textAlign&&(N.textAlign=C.textAlign),C.verticalAlign&&(N.verticalAlign=C.verticalAlign),r.push({cell:N,columnIndex:o})}else co.setNodes(e,{rowSpan:Math.max(A-1,1),colSpan:x},{at:w})}else co.setNodes(e,{rowSpan:Math.max(A-1,1),colSpan:x},{at:w})}}if(co.removeNodes(e,{at:i}),r.length>0){var B=i;try{r.sort(function(e,t){return e.columnIndex-t.columnIndex});try{for(var O=c(r),T=O.next();!T.done;T=O.next()){var k=T.value,F=k.cell,I=k.columnIndex;try{var P=f(f([],d(B),!1),[I],!1);co.insertNodes(e,F,{at:P})}catch(t){try{var R=d(Pr.node(e,B),1)[0].children.length,L=f(f([],d(B),!1),[R],!1);co.insertNodes(e,F,{at:L})}catch(e){console.warn("插入新单元格失败:",e)}}}}catch(e){t={error:e}}finally{try{T&&!T.done&&(n=O.return)&&n.call(O)}finally{if(t)throw t.error}}}catch(e){console.warn("插入新单元格失败:",e)}}})}}},e}(),ly=function(){function e(){this.title=uc("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==Os.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||co.removeNodes(e,{mode:"highest"})},e}(),cy=function(){function e(){this.title=uc("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Os.getSelectedNodeByType(e,"table");return null!=t&&"100%"===t.width},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||null==Os.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Os.getSelectedNodeByType(e,"table");if(n){var r={width:"100%"===n.width?"auto":"100%"};co.setNodes(e,r,{mode:"highest"})}}},e}(),dy=function(){function e(){this.title=uc("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;if(null==t)return!0;if(!Gn.isCollapsed(t))return!0;var n=Os.getSelectedNodeByType(e,"table");if(null==n)return!0;try{var r=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")},universal:!0}),1),o=r[0];if(!o)return!0;for(var i=d(o,2)[1],a=jm(e),s=-1,u=0;u<a.length;u+=1){for(var l=0;l<a[u].length;l+=1){var c=d(a[u][l],1),f=d(c[0],2)[1];if(Hn.equals(i,f)){s=l;break}}if(-1!==s)break}if(-1===s)return!0;var p=n.columnWidths,h=(void 0===p?[]:p)[s];if(h&&h<20)return!0}catch(e){return!0}return!1},e.prototype.exec=function(e,t){var n;if(!this.isDisabled(e)){var r=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")},universal:!0}),1),o=d(r[0],2),i=o[0],a=o[1],s=Os.getParentNode(e,i);if(null!=s){var u=Os.getParentNode(e,s);if(null!=u){for(var l=jm(e),c=-1,p=0;p<l.length;p+=1){for(var h=0;h<l[p].length;h+=1){var g=d(l[p][h],1),v=d(g[0],2)[1];if(Hn.equals(a,v)){c=h;break}}if(-1!==c)break}if(-1!==c){var m=i.colSpan||1,y=(e.getMenuConfig("insertTableCol")||{}).insertPosition,b="after"===(void 0===y?"before":y)?"after":"before",E=(null===(n=l[0])||void 0===n?void 0:n.length)||0,w="after"===b?Math.min(c+m,E):c,C=w<E?w:-1;Pr.withoutNormalizing(e,function(){for(var t=new Set,n=new Set,r=0;r<l.length;r+=1)if(!(C<0)&&l[r]&&l[r][C]){var o=d(l[r][C],2);d(o[0],1);var i=o[1],a=i.rtl,s=i.ltr,p=i.ttb,h=i.btt;if(a>1||s>1||p>1||h>1){var g=r-(p-1),v=C-(a-1);if(g<0||g>=l.length||!l[g]||!l[g][v])continue;var m=d(l[g][v],1),y=d(m[0],2),E=y[0],D=y[1],A=D.join(",");if(t.has(A))n.add(r);else{t.add(A);var S=E.rowSpan,x=void 0===S?1:S,N=E.colSpan,B=(void 0===N?1:N)+1;E.hidden||co.setNodes(e,{colSpan:B},{at:D});for(var O=0;O<x;O+=1)n.add(g+O)}}}for(r=0;r<l.length;r+=1)if(!n.has(r)){var T=l[r];if(T&&0!==T.length){var k=Qm();0===r&&sy(u)&&(k.isHeader=!0);var F=void 0;if(w<T.length){var I=d(T[w],1);F=d(I[0],2)[1]}else{var P=d(T[T.length-1],1),R=d(P[0],2)[1];F=Hn.next(R)}co.insertNodes(e,k,{at:F})}}var L=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table")},universal:!0}),1),_=L[0];if(_){var M=d(_,2),H=M[0],j=M[1],z=H.columnWidths,$=void 0===z?[]:z,U=f([],d($),!1),V=e.getMenuConfig("insertTable").minWidth,W=void 0===V?60:V,G=$[c]||parseInt(W.toString(),10)||60,q=Math.floor(G/2),K=G-q;"after"===b?(U[c]=K,U.splice(c+1,0,q)):(U.splice(c,0,q),U[c+1]=K),co.setNodes(e,{columnWidths:U},{at:j})}})}}}}},e}(),fy=function(){function e(){this.title=uc("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||null==Os.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){var n;if(!this.isDisabled(e)){var r=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")},universal:!0}),1),o=d(r[0],2)[1],i=jm(e),a=0;e:for(var s=0;s<i.length;s+=1)for(var u=0;u<i[s].length;u+=1){var l=d(i[s][u],1),c=d(l[0],2)[1];if(Hn.equals(o,c)){a=s;break e}}var f=(null===(n=i[a])||void 0===n?void 0:n.length)||0;0!==f&&Pr.withoutNormalizing(e,function(){for(var t=a+1,n=t>=0&&t<i.length,r=[],s=0;n&&s<i[a].length;s+=1){var u=d(i[a][s],2)[1],l=u.ttb,c=u.btt;if(l>1||c>1){var p=a-(l-1);if(p<0||p>=i.length||!i[p]||!i[p][s])continue;var h=d(i[p][s],1),g=d(h[0],2),v=g[0],m=g[1],y=v.rowSpan||1;r.push(s),v.hidden||co.setNodes(e,{rowSpan:y+1},{at:m})}}for(var b=(e.getMenuConfig("insertTable")||{}).minRowHeight,E={type:"table-row",children:[],height:parseInt((void 0===b?30:b).toString(),10)||30},w=0;w<f;w+=1)if(!r.includes(w)){var C=Qm();E.children.push(C)}var D=Hn.parent(o),A=Hn.next(D);co.insertNodes(e,E,{at:A})})}},e}();var py=function(){function e(){this.title=uc("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||!!Os.getSelectedElems(e).some(function(t){var n=Os.getNodeType(t);return"pre"===n||("table"===n||("list-item"===n||!!e.isVoid(t)))}))},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content[0];for(var n=Zi('<div class="w-e-panel-content-table"></div>'),r=Zi("<span>0 × 0</span>"),o=Zi("<table></table>"),i=0;i<10;i+=1){for(var a=Zi("<tr></tr>"),s=0;s<10;s+=1){var u=Zi("<td></td>");u.attr("data-x",s.toString()),u.attr("data-y",i.toString()),a.append(u),u.on("mouseenter",function(e){var t=e.target;if(null!=t){var n=Zi(t).dataset(),i=n.x,a=n.y;r[0].innerHTML="".concat(i+1," × ").concat(a+1),o.children().each(function(e){Zi(e).children().each(function(e){var t=Zi(e),n=t.dataset(),r=n.x,o=n.y;r<=i&&o<=a?t.addClass("active"):t.removeClass("active")})})}}),u.on("click",function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Zi(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}})}o.append(a)}return n.append(o),n.append(r),this.$content=n,n[0]},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){Os.isSelectedEmptyParagraph(e)&&co.removeNodes(e,{mode:"highest"});var i=function(e,t,n){for(var r,o=[],i=e.getMenuConfig("insertTable"),a=i.minWidth,s=void 0===a?60:a,u=i.minRowHeight,l=void 0===u?30:u,c=i.tableFullWidth,d=i.tableHeader,f=Array(n).fill(parseInt(s,10)||60),p=0;p<t;p+=1){for(var h=[],g=0;g<n;g+=1){var v=Qm();0===p&&(v.isHeader=null===(r=null==d?void 0:d.selected)||void 0===r||r),h.push(v)}o.push({type:"table-row",children:h,height:parseInt(l,10)||30})}return{type:"table",width:(null==c?void 0:c.selected)?"100%":"auto",children:o,columnWidths:f}}(e,r,o);co.insertNodes(e,i,{mode:"highest"})}},e}(),hy={isInTable:function(e,t){return void 0===t&&(t={}),!!d(Pr.nodes(e,{match:Mm(e,"table"),at:t.at}),1)[0]},selection:function(e){var t,n,r,o,i,a,s,u;return l(this,function(l){switch(l.label){case 0:t=Wm.get(e),n=0,l.label=1;case 1:if(!(t&&n<t.length))return[3,4];for(r=[],o=0;o<t[n].length;o+=1)i=d(t[n][o],2),a=i[0],s=i[1],u=s.ltr,1===s.ttb&&r.push(a),o+=u-1;return[4,r];case 2:l.sent(),l.label=3;case 3:return n+=1,[3,1];case 4:return[2]}})},unselect:function(e){Gm.delete(e),Wm.delete(e)},isSelected:function(e,t){var n=Gm.get(e);return!!n&&n.has(t)},hasSelected:function(e){return Wm.has(e)}},gy=function(){function e(){this.title=uc("tableModule.mergeCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M482.2 508.4 331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4c2.4-1.8 2.4-5.4 0-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4c-2.3 1.8-2.3 5.3 0 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return!this.canMerge(e)},e.prototype.exec=function(e,t){this.isDisabled(e)||(this.merge(e),hy.unselect(e))},e.prototype.canMerge=function(e){var t=Wm.get(e);if(!t||!t.length)return!1;var n=d(t[t.length-1][t[t.length-1].length-1],1),r=d(n[0],2)[1],o=d(t[0][0],1);return!!Hm(e,[d(o[0],2)[1],r],"table")},e.prototype.merge=function(e){if(this.canMerge(e)){var t=Wm.get(e);if(t&&t.length){var n=d(t[0][0],1),r=d(n[0],2)[1],o=d(Qn.children(e,r,{reverse:!0}),1),i=d(o[0],2)[1];Pr.withoutNormalizing(e,function(){for(var n,o,a,s,u,l,f=new Map,p=[],h=1/0,g=-1/0,v=1/0,m=-1/0,y=0;y<t.length;y+=1)for(var b=0;b<t[y].length;b+=1){var E=d(t[y][b],2),w=d(E[0],2),C=w[0],D=w[1],A=E[1].ttb,S=D.join(",");if(1===A&&!f.has(S)){f.set(S,{path:D,x:y,y:b,element:C});var x=C.rowSpan,N=void 0===x?1:x,B=C.colSpan,O=y,T=y+N-1,k=b,F=b+(void 0===B?1:B)-1;h=Math.min(h,O),g=Math.max(g,T),v=Math.min(v,k),m=Math.max(m,F)}}var I=g-h+1,P=m-v+1;try{for(var R=c(f),L=R.next();!L.done;L=R.next()){D=d(L.value,2)[1].path;Hn.equals(r,D)||p.push(D)}}catch(e){n={error:e}}finally{try{L&&!L.done&&(o=R.return)&&o.call(R)}finally{if(n)throw n.error}}p.sort(function(e,t){for(var n=0;n<Math.min(e.length,t.length);n+=1)if(e[n]!==t[n])return t[n]-e[n];return t.length-e.length});try{for(var _=c(p),M=_.next();!M.done;M=_.next()){D=M.value;try{if(!Pr.hasPath(e,D))continue;try{for(var H=(u=void 0,c(Qn.children(e,D,{reverse:!0}))),j=H.next();!j.done;j=H.next()){var z=d(j.value,2)[1];co.moveNodes(e,{to:Hn.next(i),at:z})}}catch(e){u={error:e}}finally{try{j&&!j.done&&(l=H.return)&&l.call(H)}finally{if(u)throw u.error}}co.removeNodes(e,{at:D})}catch(e){}}}catch(e){a={error:e}}finally{try{M&&!M.done&&(s=_.return)&&s.call(_)}finally{if(a)throw a.error}}co.setNodes(e,{rowSpan:I,colSpan:P},{at:r})})}}},e}(),vy=function(){function e(){this.title=uc("tableModule.splitCell"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M362.667 494.933v53.334l25.6-25.6zm0-241.066L460.8 352V78.933H57.6v98.134h305.067zm0 535.466v57.6H57.6v98.134h403.2V691.2zM661.333 494.933v53.334l-25.6-25.6zm0-241.066L563.2 352V78.933h403.2v98.134H661.333zm0 535.466v57.6H966.4v98.134H563.2V691.2z"/><path d="M753.067 341.333 693.333 281.6 512 460.8 330.667 281.6l-59.734 59.733 181.334 181.334L270.933 704l59.734 59.733L512 582.4l181.333 181.333L753.067 704 571.733 522.667z"/></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")}}),1),n=t[0];if(!n)return!0;var r=d(n,1)[0],o=r.rowSpan,i=void 0===o?1:o,a=r.colSpan;return!(i>1||(void 0===a?1:a)>1)},e.prototype.exec=function(e,t){this.isDisabled(e)||this.split(e)},e.prototype.split=function(e,t){void 0===t&&(t={});var n=d(Pr.nodes(e,{match:Mm(e,"table","th","td"),at:t.at}),2),r=n[0],o=n[1];if(r&&o){var i=sy(d(r,1)[0]),a=d(o,2),s=a[0],u=a[1],l=s.rowSpan,c=void 0===l?1:l,p=s.colSpan,h=void 0===p?1:p;1===c&&1===h||Pr.withoutNormalizing(e,function(){co.setNodes(e,{rowSpan:1,colSpan:1},{at:u});for(var t=1;t<h;t+=1){var n=Qm();0===u[u.length-2]&&i&&(n.isHeader=!0);var r=u.slice(0,-1),o=u[u.length-1]+t,a=f(f([],d(r),!1),[o],!1);try{co.insertNodes(e,n,{at:a})}catch(t){try{var s=d(Pr.node(e,r),1)[0].children.length,l=f(f([],d(r),!1),[s],!1);co.insertNodes(e,n,{at:l})}catch(e){console.warn("插入同行单元格失败: ".concat(e instanceof Error?e.message:String(e)))}}}for(var p=1;p<c;p+=1){var g=u[u.length-2]+p,v=f(f([],d(u.slice(0,-2)),!1),[g],!1);try{var m=d(Pr.node(e,v),1)[0];if(!m){console.warn("目标行 ".concat(g," 不存在"));continue}for(t=0;t<h;t+=1){n=Qm(),o=u[u.length-1]+t,a=f(f([],d(v),!1),[o],!1);try{var y=m.children.length;if(o>=y){var b=f(f([],d(v),!1),[y],!1);co.insertNodes(e,n,{at:b})}else co.insertNodes(e,n,{at:a})}catch(t){try{var E=m.children.length;l=f(f([],d(v),!1),[E],!1);co.insertNodes(e,n,{at:l})}catch(e){console.warn("插入单元格到第".concat(p,"行失败: ").concat(e instanceof Error?e.message:String(e)))}}}}catch(e){console.warn("处理第".concat(p,"行时出错: ").concat(e instanceof Error?e.message:String(e)))}}})}},e}(),my=function(){function e(){this.title=uc("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=Os.getSelectedNodeByType(e,"table");return null!=t&&sy(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||null==Os.getSelectedNodeByType(e,"table"))},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=Os.getSelectedNodeByType(e,"table");if(null!=r)ay(r).forEach(function(t){return co.setNodes(e,{isHeader:n},{at:Os.findPath(e,t)})})}},e}(),yy={key:"insertTable",config:{minWidth:60,minRowHeight:30,tableHeader:{selected:!0},tableFullWidth:{selected:!1},widthExportMode:"explicit"},factory:function(){return new py}},by={key:"deleteTable",factory:function(){return new ly}},Ey={key:"insertTableRow",factory:function(){return new fy}},wy={key:"deleteTableRow",factory:function(){return new uy}},Cy={key:"insertTableCol",factory:function(){return new dy}},Dy={key:"deleteTableCol",factory:function(){return new Jm}},Ay={key:"tableHeader",factory:function(){return new my}},Sy={key:"tableFullWidth",factory:function(){return new cy}},xy={key:"mergeTableCell",factory:function(){return new gy}},Ny={key:"splitTableCell",factory:function(){return new vy}},By={key:"setTableProperty",factory:function(){return new Xm}},Oy={key:"setTableCellProperty",factory:function(){return new Zm}};function Ty(e,t){void 0===t&&(t=0);var n=parseInt(e||"",10);return Number.isNaN(n)?t:n}function ky(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var r=(e||"").trim().toLowerCase(),o=parseFloat(r);if(Number.isNaN(o))return t;if(r.endsWith("pt"))return Math.round(4*o/3);if(r.endsWith("%")){var i=n>0?n:600;return Math.round(o/100*i)}return Math.round(o)}var Fy={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r=Zi(e),o=r.text().replace(/\s+/gm," ").trim();0===(t=t.filter(function(e){return!!Wr.isText(e)||(!!n.isInline(e)||ry(n,e))})).length&&(t=[{text:r.text().replace(/\s+/gm," ")}]),t=ty(t);var i=parseInt(r.attr("colSpan")||"1",10),a=parseInt(r.attr("rowSpan")||"1",10),s="none"===Um(r,"display")&&0===o.length,u=r.attr("width")||"auto";return{type:"table-cell",isHeader:"th"===$m(r),colSpan:i,rowSpan:a,width:u,children:t,hidden:s}}};var Iy={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,n){for(var r=Zi(e),o=[],i=0;i<t.length;i+=1){var a=t[i];if("table-cell"===Os.getNodeType(a)){var s=a;if(s.hidden)continue;o.push(s)}}return{type:"table-row",height:Ty(Um(r,"height")||r.attr("data-w-e-row-height")||r.attr("height"))||void 0,children:o}}};var Py,Ry={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,n){var r,o,i=Zi(e),a=(i.find("caption").text()||"").replace(/\s+/gm," ").trim()||void 0,s="auto",u=Um(i,"width"),l=i.attr("width")||"",c=i.hasClass("w-e-table-layout-fixed")||!!i.attr("data-w-e-table-height");"100%"===u&&(s="100%"),"100%"===i.attr("width")&&(s="100%"),c&&l&&"auto"!==l&&"100%"!==l&&(s=l);var d={type:"table",width:s,caption:a,height:Ty(Um(i,"height")||i.attr("data-w-e-table-height")||i.attr("height")),children:t.filter(function(e){return"table-row"===Os.getNodeType(e)})},f=(null===(r=i.find("tr")[0])||void 0===r?void 0:r.children)||[],p=(null===(o=i.find("colgroup")[0])||void 0===o?void 0:o.children)||null,h=function(e){var t=Um(e,"width"),n=e.attr("width")||"",r=t||n;return r&&"100%"!==r.trim()?ky(r,0):0}(i),g=function(e,t){if(!e||0===e.length)return[];var n=[];return Array.from(e).forEach(function(e){var r=parseInt(e.getAttribute("span")||"1",10),o=ky(e.getAttribute("width")||Um(Zi(e),"width"),90,t);if(!Number.isNaN(o))for(var i=0;i<r;i+=1)n.push(o)}),n}(p,h);if(g.length>0)d.columnWidths=g;else if(f.length>0){var v=[];Array.from(f).forEach(function(e){var t=parseInt(Zi(e).attr("colSpan")||"1",10),n=ky(Um(Zi(e),"width"),90,h);v.push(n);for(var r=1;r<t;r+=1)v.push(90)}),d.columnWidths=v}return d}},Ly=null===(Py=null===window||void 0===window?void 0:window.getComputedStyle(document.documentElement))||void 0===Py?void 0:Py.getPropertyValue("--w-e-textarea-border-color");var _y="\n";function My(e,t){return t.length>0&&t.every(function(t){return!!Wr.isText(t)||ry(e,t)})}function Hy(e){var t=e.selection;if(null==t)return!1;var n=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")}}),1),r=n[0];if(r){var o=d(r,2)[1],i=Pr.start(e,o);if(Mr.equals(t.anchor,i))return!0}return!1}function jy(e,t,n){var r=e.selection;if(null==r||"line"===t)return!1;var o=d(Pr.nodes(e,{match:function(e){return Os.checkNodeType(e,"table-cell")}}),1),i=o[0],a=r.anchor;if("backward"===n&&0===r.anchor.offset&&(a=Pr.before(e,r)),"forward"===n&&Pr.isEnd(e,r.anchor,r.anchor.path)&&(a=Pr.after(e,r)),null==a)return!1;var s=Pr.above(e,{at:a,match:function(e){return Os.checkNodeType(e,"table-cell")}});if(null==s||null==i||!Hn.equals(s[1],i[1]))return!1;var u=Pr.node(e,a);if(!Wr.isText(u[0])||u[0].text.length<1)return!1;var l="backward"===n?a.offset-1:a.offset,c="backward"===n?a.offset:a.offset+1;if(l<0)return!1;var f=Qn.string(u[0]);return!(f.slice(l,c)!==_y)&&(co.insertText(e,f.slice(0,l)+f.slice(c),{at:{anchor:Pr.start(e,a.path),focus:Pr.end(e,a.path)}}),co.select(e,{anchor:{path:a.path,offset:l},focus:{path:a.path,offset:l}}),!0)}function zy(e,t){var n=Pr.nodes(e,{at:t,match:function(e){return"table"===Os.getNodeType(e)}});return!!f([],d(n),!1).find(function(){return!0})}function $y(e){var t,n;try{for(var r=c(["paragraph","header1","header2","header3","header4","header5","header6","blockquote","list-item","todo","divider"]),o=r.next();!o.done;o=r.next()){var i=o.value;if(Os.getSelectedNodeByType(e,i))return!0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1}function Uy(e){if(function(e){var t=(e.attr("width")||"").trim().toLowerCase(),n=e[0].style.width.trim().toLowerCase(),r=e[0].style.tableLayout.trim().toLowerCase();return!(e.hasClass("w-e-table-layout-fixed")||e.attr("data-w-e-table-height")||"auto"!==t&&"auto"!==n||"fixed"!==r)}(e)&&!function(e){for(var t=e.find("colgroup"),n=0;n<t.length;n+=1)for(var r=t[n],o=0;o<r.children.length;o+=1){var i=r.children[o],a=(i.getAttribute("width")||"").trim().toLowerCase(),s=(i.style.width||"").trim().toLowerCase();if(a&&"auto"!==a)return!0;if(s&&"auto"!==s)return!0}return!1}(e)&&!function(e){for(var t=e.find("td, th"),n=0;n<t.length;n+=1){var r=t[n],o=(r.getAttribute("width")||"").trim().toLowerCase(),i=(r.style.width||"").trim().toLowerCase();if(o&&"auto"!==o)return!0;if(i&&"auto"!==i)return!0}return!1}(e)){var t=function(e){if("undefined"==typeof document||!document.body)return[];var t=document.createElement("div");t.style.position="fixed",t.style.top="-10000px",t.style.left="0",t.style.visibility="hidden",t.style.pointerEvents="none";var n=e.cloneNode(!0);t.appendChild(n),document.body.appendChild(t);try{var r=n.querySelector("tr");if(!r)return[];var o=Array.from(r.children).filter(function(e){var t=e.tagName.toLowerCase();return"td"===t||"th"===t});if(0===o.length)return[];for(var i=[],a=0;a<o.length;a+=1){var s=o[a],u=parseInt(s.getAttribute("colspan")||"1",10),l=Number.isFinite(u)&&u>0?u:1,c=s.getBoundingClientRect().width;if(!Number.isFinite(c)||c<=0)return[];for(var d=Math.max(1,Math.round(c/l)),f=0;f<l;f+=1)i.push(d)}return i}finally{t.remove()}}(e[0]);0!==t.length&&function(e,t){if(0!==t.length){var n=e.querySelector("colgroup");n&&n.remove();var r=document.createElement("colgroup");r.setAttribute("contentEditable","false"),t.forEach(function(e){var t=document.createElement("col");t.setAttribute("width","".concat(e)),r.appendChild(t)});var o=e.querySelector("tr");o?e.insertBefore(r,o):e.appendChild(r)}}(e[0],t)}}var Vy={selector:"table",preParseHtml:function(e){var t=Zi(e);if("table"!==$m(t))return e;var n=t.find("tbody");if(0===n.length)return e;var r=t.find("tr");t.append(r),n.remove();for(var o=t.find("td, th"),i=0;i<o.length;i+=1){var a=Zi(o[i]);a.attr("width","auto");var s=a.html()||"";s=(s=s.replace(/<o:p[^>]*>[\s\S]*?<\/o:p>/gi,"")).replace(/<\/o:p>/gi,""),a.html(s)}return Uy(t),t[0]}};var Wy=new WeakMap;function Gy(e){var t=Wy.get(e);t&&(t.eventWindow.removeEventListener("mouseup",t.stop),t.eventWindow.removeEventListener("blur",t.stop),t.anchorPathRef.unref(),Wy.delete(e))}function qy(e,t){var n=function(e){if(e.target instanceof HTMLElement){var t=e.target.closest('[data-block-type="table-cell"]');if(t)return t}var n=e.target,r=n instanceof Node?n.ownerDocument:null,o=n instanceof Node?n.getRootNode():null;return(o&&"elementsFromPoint"in o?o:r||document).elementsFromPoint(e.clientX,e.clientY).map(function(e){return e.closest('[data-block-type="table-cell"]')}).find(function(e){return null!=e})||null}(t);if(!n)return null;try{var r=Os.toSlateNode(e,n);return Kn.isElement(r)&&"table-cell"===Os.getNodeType(r)?Os.findPath(e,r):null}catch(e){return null}}function Ky(e,t){if(Gy(e),!e.isDisabled()&&0===t.button){var n=qy(e,t);if(n){var r=function(){return Gy(e)},o=function(e){var t=e.target instanceof Node?e.target.ownerDocument:null;return e.view||(null==t?void 0:t.defaultView)||window}(t);Wy.set(e,{anchorPathRef:Pr.pathRef(e,n),lastTargetPath:n,isCrossCellSelecting:!1,eventWindow:o,stop:r}),o.addEventListener("mouseup",r),o.addEventListener("blur",r)}}}function Yy(e,t){var n=Wy.get(e);if(n)if(1&t.buttons){var r=n.anchorPathRef.current;if(r){var o=qy(e,t);if(o&&function(e,t){return!(e.length<3||t.length<3)&&Hn.equals(e.slice(0,-2),t.slice(0,-2))}(r,o)){var i=Hn.equals(r,o);!n.isCrossCellSelecting&&i||(t.preventDefault(),Hn.equals(n.lastTargetPath,o)||(n.isCrossCellSelecting=!0,n.lastTargetPath=o,e.select(function(e,t,n){return Hn.compare(t,n)<=0?{anchor:Pr.start(e,t),focus:Pr.end(e,n)}:{anchor:Pr.end(e,t),focus:Pr.start(e,n)}}(e,r,o))))}}else Gy(e)}else Gy(e)}function Xy(e){var t,n,r=[],o=0;try{for(var i=c(e),a=i.next();!a.done;a=i.next()){o+=a.value,r.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Zy(e){var t,n,r=[],o=e.reduce(function(e,t){return e+t},0);try{for(var i=c(e),a=i.next();!a.done;a=i.next()){var s=a.value;r.push(s/o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var Jy=new Map;function Qy(e){var t=Jy.get(e);t&&(t.observer.disconnect(),t.tablePathRef.unref(),Jy.delete(e))}function eb(e){var t,n;if(Ra(e))Qy(e);else try{for(var r=c(Jy.keys()),o=r.next();!o.done;o=r.next()){Qy(o.value)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}function tb(e,t,n){if(Ra(t)){var r=t.querySelector("table");if(r){var o;eb(t);try{o=Pr.pathRef(e,Os.findPath(e,n))}catch(e){return}var i=new ResizeObserver(function(t){var n=d(t,1)[0].contentRect,i=o.current;if(null!==i){try{var a=d(Pr.node(e,i),1)[0];if(Pr.isEditor(a)||!Kn.isElement(a)||"table"!==a.type)return}catch(e){return}var s=function(e){return Array.from(e.querySelectorAll("tr")).map(function(e){var t=e.getBoundingClientRect();return Math.max(1,Math.round(100*t.height)/100)})}(r);co.setNodes(e,{scrollWidth:n.width,height:n.height,rowHeights:s},{at:i})}});i.observe(r),Jy.set(t,{observer:i,tablePathRef:o})}}}var nb=!1,rb=!1,ob=0,ib=null,ab=null,sb=Zi(window);sb.on("mousedown",function(e){var t=e.target;if(t.closest('[data-block-type="table-cell"]'))nb=!0;else if("DIV"===t.tagName&&t.closest(".column-resizer-item")){if(null===ib||null===ab)return;rb=!0;var n=e.clientX;ob=n,document.body.style.cursor="col-resize",e.preventDefault()}sb.on("mousemove",ub),sb.on("mouseup",lb)});var ub=kc(function(e){if(rb&&null!==ib&&null!==ab){e.preventDefault();var t=e.clientX,n=t-ob,r=null,o=null;try{var i=d(Pr.node(ib,ab),2),a=i[0],s=i[1];if(Pr.isEditor(a)||!Kn.isElement(a)||"table"!==a.type)return;r=a,o=s}catch(e){return}if(null!==r&&null!==o){var u=r.width,l=void 0===u?"auto":u,c=r.columnWidths,p=void 0===c?[]:c,h=r.resizingIndex,g=void 0===h?-1:h,v=r.scrollWidth,m=void 0===v?0:v;if(!(0===p.length||g<0||g>=p.length)){var y,b=p,E=null;try{E=Os.toDOMNode(ib,r)}catch(e){E=null}if("100%"===l&&m>0){var w=p.reduce(function(e,t){return e+t},0);w>0&&(b=Zy(p).map(function(e){return e*m}))}var C=null==E?void 0:E.querySelector(".table");if(C)y=function(e,t,n,r,o){var i=f([],d(e),!1);if(t<0||t>=e.length)return i;var a=o.getMenuConfig("insertTable").minWidth,s=parseInt((void 0===a?60:a).toString(),10)||60,u=n-(0===t?0:r[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(b,g,t-C.getBoundingClientRect().left,Xy(b),ib);else y=function(e,t,n,r){var o=f([],d(e),!1),i=r.getMenuConfig("insertTable").minWidth,a=parseInt((void 0===i?60:i).toString(),10)||60,s=o[t],u=Math.max(a,s+n);return o[t]=Math.floor(100*u)/100,o}(b,g,n,ib);var D={columnWidths:y};"100%"===l&&(D.width="auto"),co.setNodes(ib,D,{at:o})}}}},100);function lb(e){rb&&ub.flush(),ub.cancel(),nb=!1,rb=!1,ib=null,ab=null,document.body.style.cursor="",sb.off("mousemove",ub),sb.off("mouseup",lb)}function cb(e,t,n){"mouseenter"===n.type?iy(e,t,{isResizing:!0}):iy(e,t,{isResizing:!1})}function db(e){var t,n,r=[],o=0;try{for(var i=c(e),a=i.next();!a.done;a=i.next()){o+=a.value,r.push(o)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function fb(e){var t=e.children,n=e.rowHeights,r=void 0===n?[]:n,o=r.length===t.length&&r.every(function(e){return Number.isFinite(e)&&e>0});return o?r:t.map(function(e){return e.height||30})}var pb=!1,hb=0,gb=null,vb=null,mb=Zi(window);var yb=kc(function(e){if(pb&&null!==gb&&null!==vb){e.preventDefault();var t,n,r=e.clientY,o=r-hb;try{var i=d(Pr.node(gb,vb),2),a=i[0],s=i[1];if(Pr.isEditor(a)||!Kn.isElement(a)||"table"!==a.type)return;t=a,n=s}catch(e){return}var u,l=t.resizingRowIndex,c=void 0===l?-1:l,p=fb(t),h=null;try{h=Os.toDOMNode(gb,t)}catch(e){h=null}var g=null==h?void 0:h.querySelector(".table");if(g)u=function(e,t,n,r,o){var i=f([],d(e),!1);if(t<0||t>=e.length)return i;var a=(o.getMenuConfig("insertTable")||{}).minRowHeight,s=parseInt((void 0===a?30:a).toString(),10)||30,u=n-(0===t?0:r[t-1]),l=Math.max(s,u);return i[t]=Math.floor(100*l)/100,i}(p,c,r-g.getBoundingClientRect().top,db(p),gb);else u=function(e,t,n,r){var o=f([],d(e),!1),i=(r.getMenuConfig("insertTable")||{}).minRowHeight,a=parseInt((void 0===i?30:i).toString(),10)||30,s=o[t],u=Math.max(a,s+n);return o[t]=Math.floor(100*u)/100,o}(p,c,o,gb);if(c>=0&&c<u.length){var v=f(f([],d(n),!1),[c],!1);try{co.setNodes(gb,{height:u[c]},{at:v})}catch(e){console.warn("更新行高度失败:",e)}}}},100);function bb(e){pb&&yb.flush(),yb.cancel(),pb=!1,gb=null,vb=null,document.body.style.cursor="",mb.off("mousemove",yb),mb.off("mouseup",bb)}function Eb(e,t,n){"mouseenter"===n.type?iy(e,t,{isResizingRow:!0}):iy(e,t,{isResizingRow:!1})}mb.on("mousedown",function(e){var t=e.target;if("DIV"===t.tagName&&t.closest(".row-resizer-item")){if(null===gb)return;pb=!0;var n=e.clientY;hb=n,document.body.style.cursor="row-resize",e.preventDefault()}mb.on("mousemove",yb),mb.on("mouseup",bb)});var wb=.01,Cb=100;function Db(e){return Math.round(100*e)/100}function Ab(e,t,n){var r=Db(t),o=e.get(r)||[];o.push(n),e.set(r,o)}function Sb(e){e.forEach(function(t,n){e.set(n,function(e){var t=f([],d(e),!1).sort(function(e,t){return d(e,1)[0]-d(t,1)[0]});return t.reduce(function(e,t){var n=e[e.length-1];return n&&t[0]<=n[1]+wb?(n[1]=Math.max(n[1],t[1]),e):(e.push(f([],d(t),!1)),e)},[])}(t))})}function xb(e){var t=new Map,n=new Map,r=new Map,o=new Map;e.forEach(function(e){Ab(t,e.top,[e.left,e.right]),Ab(n,e.right,[e.top,e.bottom]),Ab(r,e.bottom,[e.left,e.right]),Ab(o,e.left,[e.top,e.bottom])}),Sb(t),Sb(n),Sb(r),Sb(o);var i=[],a=function(e,t,n,r){(function(e,t){var n,r,o=d(e,2),i=o[0],a=o[1],s=[],u=i;try{for(var l=c(t),f=l.next();!f.done;f=l.next()){var p=d(f.value,2),h=p[0],g=p[1],v=Math.max(i,h),m=Math.min(a,g);if(!(m<=u+wb)&&(v>u+wb&&s.push([u,v]),(u=Math.max(u,m))>=a-wb))break}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return u<a-wb&&s.push([u,a]),s})(n,r.get(Db(t))||[]).forEach(function(n){var r=d(n,2),o=r[0],a=r[1];i.push({side:e,offset:t,start:o,end:a})})};return e.forEach(function(e){a("top",e.top,[e.left,e.right],r),a("right",e.right,[e.top,e.bottom],o),a("bottom",e.bottom,[e.left,e.right],t),a("left",e.left,[e.top,e.bottom],n)}),function(e){var t=f([],d(e),!1).sort(function(e,t){return e.side.localeCompare(t.side)||e.offset-t.offset||e.start-t.start});return t.reduce(function(e,t){var n=e[e.length-1];return n&&n.side===t.side&&Db(n.offset)===Db(t.offset)&&t.start<=n.end+wb?(n.end=Math.max(n.end,t.end),e):(e.push(s({},t)),e)},[])}(i)}function Nb(e,t){for(;e.firstChild;)e.removeChild(e.firstChild);t&&e.appendChild(t)}function Bb(e){if(Ra(e)){var t=function(e){var t=e.parentElement,n=Array.from((null==t?void 0:t.children)||[]).find(function(e){return"TABLE"===e.tagName});return Ra(t)&&Ra(n)&&"TABLE"===n.tagName?{container:t,table:n}:null}(e);if(t){var n=t.table,r=Array.from(n.querySelectorAll("td.w-e-selected, th.w-e-selected")).filter(function(e){return e.closest("table")===n});if(0!==r.length){var o=function(e){var t=e.ownerDocument.createElement("span");t.style.position="absolute",t.style.display="block",t.style.top="0",t.style.left="0",t.style.width="".concat(Cb,"px"),t.style.height="".concat(Cb,"px"),t.style.margin="0",t.style.padding="0",t.style.border="0",t.style.boxSizing="border-box",t.style.visibility="hidden",t.style.pointerEvents="none",t.style.transform="none",e.appendChild(t);var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.removeChild(t);var o=r.width/Cb,i=r.height/Cb;return{overlayRect:n,scaleX:Number.isFinite(o)&&o>0?o:1,scaleY:Number.isFinite(i)&&i>0?i:1}}(e),i=o.overlayRect,a=o.scaleX,s=o.scaleY,u=r.map(function(e){return e.getBoundingClientRect()}).filter(function(e){return e.width>0&&e.height>0}).map(function(e){return{top:(e.top-i.top)/s,right:(e.right-i.left)/a,bottom:(e.bottom-i.top)/s,left:(e.left-i.left)/a}}),l=e.ownerDocument.createDocumentFragment();xb(u).forEach(function(t){var n=e.ownerDocument.createElement("span"),r="top"===t.side||"bottom"===t.side,o=r?t.start:t.offset-("right"===t.side?3:0),i=r?t.offset-("bottom"===t.side?3:0):t.start;n.className=["w-e-table-selection-segment","w-e-table-selection-segment-".concat(t.side),r?"w-e-table-selection-segment-horizontal":"w-e-table-selection-segment-vertical"].join(" "),n.setAttribute("data-selection-edge",t.side),n.style.left="".concat(o,"px"),n.style.top="".concat(i,"px"),n.style.width="".concat(r?t.end-t.start:3,"px"),n.style.height="".concat(r?3:t.end-t.start,"px"),l.appendChild(n)}),Nb(e,l)}else Nb(e)}else Nb(e)}}var Ob={type:"table",renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(null==n)return!0;if(Gn.isCollapsed(n))return!0;var r=n.anchor,o=n.focus,i=Os.findPath(e,t),a=Pr.start(e,i),s=Pr.end(e,i),u=Mr.compare(r,s)<=0&&Mr.compare(r,a)>=0,l=Mr.compare(o,s)<=0&&Mr.compare(o,a)>=0;return!!(u&&l&&Hn.equals(r.path.slice(0,3),o.path.slice(0,3)))}(n,e),o=e,i=o.width,a=void 0===i?"auto":i,s=o.caption,u=o.columnWidths,l=void 0===u?[]:u,c=o.rowHeights,f=void 0===c?[]:c,p=o.scrollWidth,h=void 0===p?0:p,g=o.isHoverCellBorder,v=o.resizingIndex,m=o.isResizing,y=o.isHoverRowBorder,b=o.resizingRowIndex,E=o.isResizingRow,w=function(e){var t=e.height,n=e.rowHeights,r=void 0===n?[]:n,o=e.children,i=void 0===o?[]:o;return"number"==typeof t&&Number.isFinite(t)&&t>0?t:r.length===i.length&&r.every(function(e){return"number"==typeof e&&Number.isFinite(e)&&e>0})?r.reduce(function(e,t){return e+t},0):i.reduce(function(e,t){var n=t.height;return e+("number"==typeof n&&Number.isFinite(n)&&n>0?n:30)},0)}(e),C=Os.isNodeSelected(n,e),D=d(hy.selection(n),1)[0],A=Zy(l),S=Ld("div",{className:"table-container","data-selected":C,on:{mousedown:function(t){if("DIV"===t.target.tagName&&t.preventDefault(),!n.isDisabled()){t.target.closest('[data-block-type="table-cell"]')&&(hy.unselect(n),Ky(n,t));var r=Os.findPath(n,e),o=Pr.start(n,r),i=n.selection;if(null!=i)i.anchor.path[0]!==r[0]&&"DIV"===t.target.tagName&&n.select(o);else n.select(o)}},mousemove:function(e){return Yy(n,e)}}},Ld("table",{width:a,contentEditable:r,className:"table ".concat(D?"table-selection-none":""),style:{width:"100%"===a?a:"".concat(l.reduce(function(e,t){return e+t},0),"px")},on:{mousemove:fl(function(t){hy.hasSelected(n)||(function(e,t,n,r){if(!e.isDisabled()&&!nb&&!rb){var o=t,i=o.width,a=void 0===i?"auto":i,s=o.columnWidths,u=void 0===s?[]:s,l=o.isHoverCellBorder,c=o.resizingIndex,d=n.clientX,f=n.target;if(Ra(f)&&d>(g=f.getBoundingClientRect()).x+5&&d<g.x+g.width-5)return void(l&&iy(e,t,{isHoverCellBorder:!1,resizingIndex:-1}));if(Ra(f)){var p=f.closest(".table");if(p)for(var h=n.clientX,g=p.getBoundingClientRect(),v="100%"===a?Zy(u).map(function(e){return e*r}):u,m=Xy(v),y=0;y<m.length;y+=1)if(h-g.x>=m[y]-5&&h-g.x<m[y]+5){if(c===y)return;return void iy(e,t,{isHoverCellBorder:!0,resizingIndex:y})}}!0===l&&iy(e,t,{isHoverCellBorder:!1,resizingIndex:-1})}}(n,e,t,h),function(e,t,n){if(!e.isDisabled()&&!pb){var r=t,o=r.isHoverRowBorder,i=r.resizingRowIndex,a=n.target;if(Ra(a)){var s=a.closest(".table");if(s)for(var u=n.clientY,l=s.getBoundingClientRect(),c=db(fb(r)),d=0;d<c.length;d+=1)if(u-l.y>=c[d]-5&&u-l.y<c[d]+5){if(i===d)return;return void iy(e,t,{isHoverRowBorder:!0,resizingRowIndex:d})}}!0===o&&iy(e,t,{isHoverRowBorder:!1,resizingRowIndex:-1})}}(n,e,t))},25)}},s?Ld("caption",{contentEditable:!1},s):null,Ld("colgroup",{contentEditable:!1},l.map(function(e){return Ld("col",{width:e})})),Ld("tbody",null,t)),Ld("div",{className:"column-resizer",contentEditable:!1},l.map(function(t,r){var o=t;return"100%"===a&&(o=A[r]*h),Ld("div",{className:"column-resizer-item",style:{minWidth:"".concat(o,"px")}},Ld("div",{className:"resizer-line-hotzone ".concat(g&&r===v?"visible ":"").concat(m&&r===v?"highlight":""),style:{height:"".concat(w,"px")},on:{mouseenter:function(t){return cb(n,e,t)},mouseleave:function(t){return cb(n,e,t)},mousedown:function(t){return function(e,t){if(!rb){ib=e;try{ab=Os.findPath(e,t)}catch(e){ab=null}}}(n,e)}}},Ld("div",{className:"resizer-line"})))})),Ld("div",{className:"row-resizer",contentEditable:!1},e.children.map(function(t,r){var o=l.reduce(function(e,t){return e+t},0),i=f[r],a=Number.isFinite(i)&&i>0?i:t.height||30;return Ld("div",{className:"row-resizer-item",style:{minHeight:"".concat(a,"px")}},Ld("div",{className:"resizer-line-hotzone-horizontal ".concat(y&&r===b?"visible ":"").concat(E&&r===b?"highlight":""),style:{width:"".concat(o,"px")},on:{mouseenter:function(t){return Eb(n,e,t)},mouseleave:function(t){return Eb(n,e,t)},mousedown:function(t){return function(e,t){if(!pb){gb=e;try{vb=Os.findPath(e,t)}catch(e){vb=null}}}(n,e)}}},Ld("div",{className:"resizer-line-horizontal"})))})),vd("div.w-e-table-selection-overlay",{attrs:{"aria-hidden":"true",contenteditable:"false"},hook:{insert:function(e){return Bb(e.elm)},postpatch:function(e,t){return Bb(t.elm)}}})),x=vd("div",{hook:{insert:function(t){var r=t.elm;return tb(n,r,e)},destroy:function(e){eb(e.elm)}}},S);return x}},Tb={type:"table-row",renderElem:function(e,t,n){var r=e.height;return Ld("tr",{style:r?{height:"".concat(r,"px")}:{}},t)}},kb={type:"table-cell",renderElem:function(e,t,n){var r=function(e,t){var n=Os.getParentNode(e,t);if(null==n)return!1;var r=Os.getParentNode(e,n);return null!=r&&ay(r).some(function(e){return e===t})}(n,e),o=e,i=o.colSpan,a=void 0===i?1:i,s=o.rowSpan,u=void 0===s?1:s,l=o.isHeader,c=void 0!==l&&l,d=o.hidden,f=void 0!==d&&d,p=hy.isSelected(n,e);return Ld(r&&c?"th":"td",{colSpan:a,rowSpan:u,"data-block-type":"table-cell",className:p?"w-e-selected":"",style:{display:f?"none":""}},t)}};function Fb(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}var Ib=new Set(["solid","dotted","dashed","double","groove","ridge","inset","outset"]),Pb=new Set;function Rb(e){return"".concat(e||"").trim().toLowerCase().replace(/\s+/g," ")}var Lb={renderStyle:function(e,t){var n,r;if(!Kn.isElement(e))return t;var o=e,i=o.backgroundColor,a=o.borderWidth,s=o.borderStyle,u=o.borderColor,l=o.textAlign,c=o.verticalAlign,d={};if(i&&(d.backgroundColor=i),a){/^\d+(\.\d+)?$/.test(a)?d.borderWidth="".concat(a,"px"):d.borderWidth=a}s&&(d.borderStyle="none"===s?"":s),u&&(d.borderColor=u),l&&(d.textAlign=l),c&&(d.verticalAlign=c);var f=t;return"table"===e.type?Fb(null===(r=(null===(n=f.children)||void 0===n?void 0:n[0]).children)||void 0===r?void 0:r[0],d):Fb(f,d),f},styleToHtml:function(e,t,n){if("table"!==e.type&&"table-cell"!==e.type)return t;var r=e.backgroundColor,o=e.borderWidth,i=e.borderStyle,a=e.borderColor,s=e.textAlign,u=e.verticalAlign;if(!(r||o||i||a||s||u))return t;var l=Zi(t);if("class"===of(n)){if(r&&(l.attr("bgcolor",r),l.attr("data-w-e-background-color",r)),o){var c="".concat(o).trim();c&&(l.attr("data-w-e-border-width",c),l.attr("border",c))}if(i){var d=Rb(i),f=function(e,t){var n=Rb(t);if(!n||"none"===n)return"skip";if(Ib.has(n))return"class";var r=af(e),o="preserve-data";"fallback-inline"===r&&(o="inline"),"strict"===r&&(o="throw");var i='[wangeditor] Unsupported table border-style token "'.concat(n,'" in class mode. policy=').concat(r),a="".concat(n,"|").concat(o);if(Pb.has(a)||(Pb.add(a),sf(e,{type:"table-border-style",value:n,scene:"toHtml",fallback:o,message:i})),"throw"===o)throw new Error(i);return"inline"===o?"inline":"preserve-data"}(n,d);"skip"!==f&&l.attr("data-w-e-border-line",d),"class"===f?l.addClass(function(e){var t=(e||"").trim().toLowerCase();return t&&"none"!==t?"w-e-table-border-style-".concat(t):""}(d)):"inline"===f&&l.css("border-style",d)}return a&&(l.attr("bordercolor",a),l.attr("data-w-e-border-color",a)),s&&(l.attr("align",s),l.attr("data-w-e-text-align",s)),u&&(l.attr("valign",u),l.attr("data-w-e-vertical-align",u)),Vm(l)}return r&&l.css("background-color",r),o&&l.css("border-width","".concat(o,"px")),i&&l.css("border-style","none"===i?"":i),a&&l.css("border-color",a),s&&l.css("text-align",s),u&&l.css("vertical-align",u),Vm(l)},parseStyleHtml:function(e,t,n){if(!["TABLE","TD","TH"].includes(e.tagName))return t;var r=Zi(e),o=t,i=Um(r,"background-color");i||(i=Um(r,"background")),i||(i=r.attr("bgcolor")||""),i||(i=r.attr("data-w-e-background-color")||""),i&&(o.backgroundColor=i);for(var a=Um(r,"border"),s=r.attr("data-w-e-border-width")||"",u=r.attr("data-w-e-border-line")||"",l=r.attr("data-w-e-border-color")||"",c=r.attr("border")||"",f=r.attr("bordercolor")||"",p=(r.attr("class")||"").trim().split(/\s+/).filter(Boolean),h="",g=0;g<p.length;g+=1){var v=p[g];if(v.startsWith("w-e-table-border-style-")){h=v.replace("w-e-table-border-style-","");break}}var m=!!(s||u||l||c||f||h);a||"TD"!==e.tagName||m||(a="1px solid ".concat(Ly));var y,b=d((null==a?void 0:a.split(" "))||[],3),E=b[0],w=b[1],C=b[2];(E=Um(r,"border-width")||E)||(E=s),E||(E=c),E&&(o.borderWidth=(y=E.trim())&&"string"==typeof y&&y.includes("pt")?y.replace(/(\d+(\.\d+)?)\s*pt/g,function(e,t){var n=(4*parseFloat(t)/3).toFixed(2);return"".concat(n,"px")}):y),(w=Um(r,"border-style")||w)||(w=u),w||(w=h),w&&(o.borderStyle="none"===w?"":w),(C=Um(r,"border-color")||C)||(C=f),C||(C=l),C&&(o.borderColor=C);var D=Um(r,"text-align");(D=Um(r,"text-align")||D)||(D=r.attr("align")||""),D||(D=r.attr("data-w-e-text-align")||""),D&&(o.textAlign=D);var A=Um(r,"vertical-align");return A||(A=r.attr("valign")||""),A||(A=r.attr("data-w-e-vertical-align")||""),A&&(o.verticalAlign=A),t},renderElems:[Ob,Tb,kb],elemsToHtml:[Im,Pm,Rm],preParseHtml:[Vy],parseElemsHtml:[Fy,Iy,Ry],menus:[yy,by,Ey,wy,Cy,Dy,Ay,Sy,xy,Ny,By,Oy],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,l=e.deleteFragment,c=e.transformInitialContent,f=e;f.transformInitialContent=function(e){return oy(c?c(e):e)},f.insertBreak=function(){var e=Pr.above(f,{match:function(e){return Os.checkNodeType(e,"table-cell")}});if(null!=e){var n=Pr.above(f,{match:function(e){return Kn.isElement(e)&&!Os.checkNodeType(e,"table-cell")}});null==n?f.insertText(_y):t()}else t()},f.deleteBackward=function(e){if(!function(e){var t=e.selection;if(null==t||!Mr.equals(t.anchor,t.focus))return!1;var n=d(Pr.nodes(e,{at:t,match:function(e){return Os.checkNodeType(e,"table-cell")}}),1),r=n[0];if(null==r)return!1;var o=d(r,2),i=o[0],a=o[1],s=Pr.start(e,a);if(!Mr.equals(t.anchor,s)||!Kn.isElement(i))return!1;var u=d(i.children,2),l=u[0],c=u[1];if(!Kn.isElement(l)||"paragraph"!==l.type||""!==Qn.string(l)||!Kn.isElement(c)||e.isInline(c)||!e.isVoid(c))return!1;var f=a.concat(1);return co.select(e,Pr.start(e,f)),co.removeNodes(e,{at:a.concat(0)}),co.select(e,Pr.start(e,a.concat(0))),!0}(f)&&(!Hy(f)&&!jy(f,e,"backward"))){var t=f.selection;if(t){var r=Pr.before(f,t),o=Pr.above(f,{at:t,match:function(e){return Os.checkNodeType(e,"table-cell")}});if(r){var i=zy(f,r);if(!o&&i&&$y(f))return}}n(e)}},f.handleTab=function(){if(Os.getSelectedNodeByType(f,"table")){var t=Pr.above(e,{match:function(e){return Os.checkNodeType(e,"table-cell")}}),n=Pr.above(e,{match:function(e){return Os.checkNodeType(e,"table")}});if(t&&n){var r=d(t,2)[1],o=d(n,2)[1],i=Array.from(Pr.nodes(e,{at:o,match:function(e){return Os.checkNodeType(e,"table-cell")&&!e.hidden}})),s=i.findIndex(function(e){var t=d(e,2)[1];return Hn.equals(t,r)}),u=s>=0?i[s+1]:void 0;if(u)return void co.select(e,Pr.start(e,u[1]));var l=Hn.next(o);if(Qn.has(e,l))return void co.select(e,Pr.start(e,l))}var c=f.children||[],p=c.length;if(Os.checkNodeType(c[p-1],"table")){var h=Os.genEmptyParagraph();co.insertNodes(f,h,{at:[p]}),f.handleTab()}}else a()},f.deleteForward=function(e){if(!Hy(f)&&!jy(f,e,"forward")){var t=f.selection;if(t){var n=Pr.after(f,t),o=Pr.above(f,{at:t,match:function(e){return Os.checkNodeType(e,"table-cell")}});if(n){var i=zy(f,n);if(!o&&i&&$y(f))return}}r(e)}},f.normalizeNode=function(e){var t=d(e,2),n=t[0],r=t[1],i=Os.getNodeType(n);if("table"!==i)return"table-cell"===i&&Kn.isElement(n)&&0===n.children.length?void co.insertNodes(f,Os.genEmptyParagraph(),{at:r.concat(0)}):o([n,r]);if(Os.isLastNode(f,n)){var a=Os.genEmptyParagraph();co.insertNodes(f,a,{at:[r[0]+1]})}},f.insertData=function(e){if(null!=Os.getSelectedNodeByType(f,"table")){var t=e.getData("application/x-slate-fragment"),n=e.getData("text/html"),r=function(e,t){if(!t)return null;try{var n=decodeURIComponent(window.atob(t)),r=JSON.parse(n);return My(e,r)?r:null}catch(e){return null}}(f,t)||function(e,t){if(!t||!/<(p|ol|ul|li|pre|figure)\b/i.test(t))return null;var n=document.createElement("div");if(n.innerHTML=t,n.querySelector("table, img"))return null;var r=us(e,t);return My(e,r)?r:null}(f,n);if(r)co.insertFragment(f,r);else{var o=e.getData("text/plain");"\n"===o||/<img[^>]+>/.test(n)?i(e):Pr.insertText(f,o)}}else i(e)},f.selectAll=function(){var e=f.selection;if(null!=e){var t=Os.getSelectedNodeByType(f,"table-cell");if(null!=t&&Kn.isElement(t)){var n=e.anchor,r=e.focus;if(Hn.equals(n.path.slice(0,3),r.path.slice(0,3))){var o=Qn.string(t);if(1===t.children.length&&Kn.isElement(t.children[0])&&"paragraph"===t.children[0].type&&0===o.length)u();else{var i=Os.findPath(f,t),a={anchor:Pr.start(f,i),focus:Pr.end(f,i)};f.select(a)}}else u()}else u()}else u()},f.deleteFragment=function(e){var t=Wm.get(f);if(t&&t.length>0){var n=[];t.forEach(function(e){e.forEach(function(e){var t=d(e[0],2)[1];n.some(function(e){return Hn.equals(e,t)})||n.push(t)})});var r=n[0];if(n.forEach(function(t){if(Qn.has(f,t)){var n=Pr.start(f,t),r=Pr.end(f,t);co.select(f,{anchor:n,focus:r}),l(e)}}),hy.unselect(f),r&&Qn.has(f,r)){var o=Pr.start(f,r);co.select(f,o)}}else l(e)},function(e){var t=e.apply;e.apply=function(n){if(!rr.isSelectionOperation(n)||!n.newProperties)return t(n);var r=s(s({},e.selection),n.newProperties);if(!Gn.isRange(r))return hy.unselect(e),t(n);var o=function(e){return Kn.isElement(e)&&("table-cell"===e.type||"th"===e.type||"td"===e.type)},i=d(Pr.nodes(e,{match:o,at:Gn.start(r),mode:"lowest"}),1)[0],a=d(Pr.nodes(e,{match:o,at:Gn.end(r),mode:"lowest"}),1)[0];if(!i||!a)return hy.unselect(e),t(n);var u=d(i,2)[1],l=d(a,2)[1];if(Hn.equals(u,l)||!Hm(e,[u,l],"table"))return hy.unselect(e),t(n);try{var c=jm(e,{at:u});if(!c||0===c.length)return hy.unselect(e),t(n);for(var f=zm.valueOf(0,0),p=zm.valueOf(0,0),h=!1,g=!1,v=0;v<c.length;v+=1)if(c[v])for(var m=0;m<c[v].length;m+=1)if(c[v][m]){var y=d(c[v][m],1),b=d(y[0],2)[1];Hn.equals(u,b)&&(f.x=v,f.y=m,h=!0),Hn.equals(l,b)&&(p.x=v,p.y=m,g=!0)}if(!h||!g)return hy.unselect(e),t(n);for(var E=zm.valueOf(Math.min(f.x,p.x),Math.min(f.y,p.y)),w=zm.valueOf(Math.max(f.x,p.x),Math.max(f.y,p.y));;){var C=zm.valueOf(E.x,E.y),D=zm.valueOf(w.x,w.y);for(v=C.x;v<=D.x&&v<c.length;v+=1)if(c[v])for(m=C.y;m<=D.y&&m<c[v].length;m+=1)if(c[v][m]){var A=d(c[v][m],2)[1];if(A){var S=A.rtl,x=A.ltr,N=A.btt,B=A.ttb;C.x=Math.min(C.x,v-(B-1)),C.y=Math.min(C.y,m-(S-1)),D.x=Math.max(D.x,v+(N-1)),D.y=Math.max(D.y,m+(x-1))}}if(zm.equals(E,C)&&zm.equals(w,D))break;E=C,w=D}var O=[],T=new WeakSet;for(v=E.x;v<=w.x&&v<c.length;v+=1)if(c[v]){var k=[];for(m=E.y;m<=w.y&&m<c[v].length;m+=1)if(c[v][m]){var F=d(c[v][m],1),I=d(F[0],1)[0];I&&(T.add(I),k.push(c[v][m]))}k.length>0&&O.push(k)}Wm.set(e,O),Gm.set(e,T)}catch(r){return hy.unselect(e),t(n)}t(n)}}(f),f.getTableSelection=function(){return Wm.get(f)||null};var p=f.addMark,h=f.removeMark,g=s({},co);return f.addMark=function(e,t){var n=Wm.get(f);if(n&&n.length>0){var r=f.selection;n.forEach(function(n){n.forEach(function(n){var r=d(n[0],2)[1],o=Pr.start(f,r),i=Pr.end(f,r);co.select(f,{anchor:o,focus:i}),p(e,t)})}),r&&co.select(f,r)}else p(e,t)},f.removeMark=function(e){var t=Wm.get(f);if(t&&t.length>0){var n=f.selection;t.forEach(function(t){t.forEach(function(t){var n=d(t[0],2)[1],r=Pr.start(f,n),o=Pr.end(f,n);co.select(f,{anchor:r,focus:o}),h(e)})}),n&&co.select(f,n)}else h(e)},co.setNodes=function(e,t,n){if(void 0===n&&(n={}),e===f){var r=Wm.get(f);if(r&&r.length>0)return"hidden"in t||"rowSpan"in t||"colSpan"in t?void g.setNodes(e,t,n):void r.forEach(function(r){r.forEach(function(r){var o=d(r[0],2)[1];g.setNodes(e,t,s(s({},n),{at:o}))})})}g.setNodes(e,t,n)},f}};oc("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),oc("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});ba&&(Zi.fn.append=ba),aa&&(Zi.fn.on=aa),Sa&&(Zi.fn.remove=Sa),ia&&(Zi.fn.val=ia),Oa&&(Zi.fn.click=Oa),da&&(Zi.fn.hide=da);var _b=new WeakMap;function Mb(e){return e.getMenuConfig("uploadImage")}function Hb(e,t){return u(this,void 0,void 0,function(){return l(this,function(n){return[2,new Promise(function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var o=r.result;if(o){var i=o.toString(),a=0===i.indexOf("data:image")?"":i;ih(e,i,t.name,a),n("ok")}}})]})})}function jb(e,t){return u(this,void 0,void 0,function(){var n,r;return l(this,function(o){switch(o.label){case 0:return n=function(e){var t=_b.get(e);if(null!=t)return t;var n=Mb(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=Bn(s(s({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n,r){return ih(e,t,n,r)}),void r(t,n);var o=n.errno,s=void 0===o?1:o,u=n.data,l=void 0===u?{}:u;if(0===s){if(Array.isArray(l))l.forEach(function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;ih(e,r,i,void 0===a?"":a)});else{var c=l.url,d=void 0===c?"":c,f=l.alt,p=void 0===f?"":f,h=l.href;ih(e,d,p,void 0===h?"":h)}r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}}),e),_b.set(e,t),t}(e),r=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}function zb(e,t){return u(this,void 0,void 0,function(){var n,r,o,i,a,s,u,c,d,f,h,g,v,m,y;return l(this,function(l){switch(l.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=Mb(e),o=r.customUpload,i=r.base64LimitSize,a=[],l.label=1;case 1:l.trys.push([1,10,11,16]),s=!0,u=p(n),l.label=2;case 2:return[4,u.next()];case 3:return c=l.sent(),(g=c.done)?[3,9]:(y=c.value,s=!1,f=(d=y).size,i&&f<=i?[4,Hb(e,d)]:[3,5]);case 4:return l.sent(),[3,8];case 5:return o?[4,o(d,function(t,n,r){return ih(e,t,n,r)},e)]:[3,7];case 6:return l.sent(),[3,8];case 7:a.push(d),l.label=8;case 8:return s=!0,[3,2];case 9:return[3,16];case 10:return h=l.sent(),v={error:h},[3,16];case 11:return l.trys.push([11,,14,15]),s||g||!(m=u.return)?[3,13]:[4,m.call(u)];case 12:l.sent(),l.label=13;case 13:return[3,15];case 14:if(v)throw v.error;return[7];case 15:return[7];case 16:return a.length>0?[4,jb(e,a)]:[3,18];case 17:l.sent(),l.label=18;case 18:return[2]}})})}var $b=function(){function e(){this.title=uc("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return nh(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n,r){return ih(e,t,n,r)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=Zi("body"),u=Zi('<input type="file" '.concat(a," multiple/>"));u.hide(),s.append(u),u.click(),u.on("change",function(){var t=u[0].files;zb(e,t)})}},e}();var Ub={menus:[{key:"uploadImage",factory:function(){return new $b},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,n){console.error("'".concat(e.name,"' upload error"),n)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(nh(n))t(r);else if(r.getData("text/plain"))t(r);else{var o=r.files;if(o.length<=0)t(r);else Array.prototype.slice.call(o).some(function(e){return"image"===d(e.type.split("/"),1)[0]})?zb(e,o):t(r)}},n}};function Vb(e){return e.length?e[0].tagName.toLowerCase():""}function Wb(e,t,n,r,o){void 0===t&&(t="auto"),void 0===n&&(n="auto"),void 0===r&&(r={}),void 0===o&&(o=!1);var i=Zi(e),a=r.width,s=void 0===a?"":a,u=r.height,l=void 0===u?"":u,c=s?'data-w-e-style-width="'.concat(s,'"'):"",d=l?'data-w-e-style-height="'.concat(l,'"'):"";if(i.attr("width",t),i.attr("height",n),o)c&&i.attr("data-w-e-style-width",s),d&&i.attr("data-w-e-style-height",l),i.removeAttr("style");else{var f="display: block; max-width: 100%;";s&&(f+=" width: ".concat(s,";")),l&&(f+=" height: ".concat(l,";")),i.attr("style",f)}return i[0].outerHTML}oc("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",edit:"Edit video",width:"Width",height:"Height",alignLeft:"Align video left",alignCenter:"Center video",alignRight:"Align video right"}}),oc("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",edit:"编辑视频",width:"宽度",height:"高度",alignLeft:"视频左对齐",alignCenter:"视频居中",alignRight:"视频右对齐"}}),ba&&(Zi.fn.append=ba),aa&&(Zi.fn.on=aa),Ta&&(Zi.fn.focus=Ta),ta&&(Zi.fn.attr=ta),ia&&(Zi.fn.val=ia),va&&(Zi.fn.html=va),wa&&(Zi.fn.parent=wa),ea&&(Zi.fn.hasClass=ea),xa&&(Zi.fn.empty=xa);var Gb="center",qb=["left","center","right"];function Kb(e){if("string"!=typeof e)return Gb;var t=e.trim().toLowerCase();return qb.includes(t)?t:Gb}function Yb(e){var t=e.align;return Kb(t||e.textAlign)}function Xb(e){return"w-e-video-align-".concat(e)}var Zb={type:"video",elemToHtml:function(e,t,n){var r=e,o=r.src,i=void 0===o?"":o,a=r.poster,s=void 0===a?"":a,u=r.width,l=void 0===u?"auto":u,c=r.height,d=void 0===c?"auto":c,f=r.style,p=void 0===f?{}:f,h=of(n),g=Yb(e),v=' data-w-e-align="'.concat(g,'"'),m="class"===h?"".concat(v,' class="w-e-video ').concat(Xb(g),'"'):"".concat(v,' style="display: flex; justify-content: ').concat(function(e){return"left"===e?"flex-start":"right"===e?"flex-end":"center"}(g),'; margin: 0; max-width: 100%; width: 100%;"'),y='<figure data-w-e-type="video" data-w-e-is-void'.concat(m,">\n");if(0===i.trim().indexOf("<iframe ")){y+=Wb(i,l,d,p,"class"===h)}else{var b=p.width,E=void 0===b?"":b,w=p.height,C=void 0===w?"":w;if("class"===h){var D=E?' data-w-e-style-width="'.concat(E,'"'):"",A=C?' data-w-e-style-height="'.concat(C,'"'):"";y+='<video poster="'.concat(s,'" controls="true" width="').concat(l,'" height="').concat(d,'"').concat(D).concat(A,'><source src="').concat(i,'" type="video/mp4"/></video>')}else{var S="display: block; max-width: 100%;";E&&(S+=" width: ".concat(E,";")),C&&(S+=" height: ".concat(C,";")),y+='<video poster="'.concat(s,'" controls="true" width="').concat(l,'" height="').concat(d,'" style="').concat(S,'"><source src="').concat(i,'" type="video/mp4"/></video>')}}return y+="\n</figure>"}};function Jb(e){return void 0===e&&(e="r"),"".concat(e,"-").concat(wn())}function Qb(e){var t={};return e.trim().split(";").forEach(function(e){if(e){var n=d(e.split(":"),2),r=n[0],o=n[1];r&&o&&(t[r.trim()]=o.trim())}}),t}function eE(){return Jb("w-e-insert-video")}var tE=function(){function e(){this.title=uc("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=eE(),this.heightInputId=eE(),this.buttonId=eE()}return e.prototype.getSelectedVideoNode=function(e){return Os.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=t.widthInputId,r=t.heightInputId,o=t.buttonId,i=d(bc(uc("videoModule.width"),n,"auto"),2),a=i[0],u=Zi(i[1]),l=d(bc(uc("videoModule.height"),r,"auto"),2),c=l[0],f=Zi(l[1]),p=d(wc(o,uc("videoModule.ok")),1)[0],h=this.getSelectedVideoNode(e);if(null==this.$content){var g=Zi("<div></div>");g.on("click","#".concat(o),function(t){t.preventDefault();var o=g.find("#".concat(n)).val().trim(),i=g.find("#".concat(r)).val().trim(),a=function(e){return/^\d+(\.\d+)?%$/.test(e)},u=function(e){return/^\d+(\.\d+)?$/.test(e)},l="auto",c="auto";a(o)?l=o:u(o)&&(l="".concat(parseInt(o,10),"px")),a(i)?c=i:u(i)&&(c="".concat(parseInt(i,10),"px"));var d=h.style,f=void 0===d?{}:d;e.restoreSelection();var p={style:s(s({},f),{width:l,height:c})};co.setNodes(e,p,{match:function(e){return Os.checkNodeType(e,"video")}}),e.hidePanelOrModal()}),this.$content=g}var v=this.$content;if(v.empty(),v.append(a),v.append(c),v.append(p),null==h)return v[0];var m=h.style,y=void 0===m?{}:m,b=y.width,E=void 0===b?"":b,w=y.height,C=void 0===w?"":w;return u.val(E),f.val(C),setTimeout(function(){u.focus()}),v[0]},e}();function nE(){return Jb("w-e-edit-video")}var rE=function(){function e(){this.title=uc("videoModule.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=nE(),this.posterInputId=nE(),this.buttonId=nE()}return e.prototype.getSelectedVideoNode=function(e){return Os.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideoNode(e)},e.prototype.getModalPositionNode=function(e){return this.getSelectedVideoNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=d(bc(uc("videoModule.videoSrc"),r,uc("videoModule.videoSrcPlaceHolder")),2),s=a[0],c=a[1],f=d(bc(uc("videoModule.videoPoster"),o,uc("videoModule.videoPosterPlaceHolder")),2),p=f[0],h=f[1],g=Zi(c),v=Zi(h),m=d(wc(i,uc("videoModule.ok")),1)[0];if(null==this.$content){var y=Zi("<div></div>");y.on("click","#".concat(i),function(n){return u(t,void 0,void 0,function(){var t,i,a,s;return l(this,function(u){return n.preventDefault(),t=y.find("#".concat(r)).val().trim(),i=y.find("#".concat(o)).val().trim(),a=Jb("video-"),s={src:t,poster:i,key:a},e.restoreSelection(),co.setNodes(e,s,{match:function(e){return Os.checkNodeType(e,"video")}}),e.hidePanelOrModal(),[2]})})}),this.$content=y}var b=this.$content;b.empty(),b.append(s),b.append(p),b.append(m);var E=this.getSelectedVideoNode(e);if(null==E)return b[0];var w=E.src,C=void 0===w?"":w,D=E.poster,A=void 0===D?"":D;return g.val(C),v.val(A),setTimeout(function(){g.focus()}),b[0]},e}();function oE(e,t){return u(this,arguments,void 0,function(e,t,n,r,o){var i,a,s,u,c,d,f,p;return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=""),l(this,function(l){switch(l.label){case 0:return t?(e.restoreSelection(),i=e.getMenuConfig("insertVideo"),a=i.onInsertedVideo,s=i.checkVideo,u=i.parseVideoSrc,[4,s(t,n)]):[2];case 1:return"string"==typeof(c=l.sent())?(e.alert(c,"error"),[2]):null==c?[2]:[4,u(t)];case 2:return 0!==(d=l.sent()).trim().indexOf("<iframe ")&&(d=function(e){return e.replace(/</g,"<").replace(/>/g,">")}(d)),f={type:"video",src:d,poster:n,align:"center",children:[{text:""}],style:{width:r,height:o}},p=null!=Os.getSelectedNodeByType(e,"table-cell"),Promise.resolve().then(function(){!p&&Os.isSelectedEmptyParagraph(e)&&co.removeNodes(e,{mode:"highest"}),p?co.insertNodes(e,f):co.insertNodes(e,f,{mode:"highest"})}),a(f),[2]}})})}function iE(){return Jb("w-e-insert-video")}var aE=function(){function e(){this.title=uc("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=iE(),this.posterInputId=iE(),this.buttonId=iE()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||!!Os.getSelectedElems(e).some(function(t){return"pre"===Os.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.posterInputId,i=n.buttonId,a=d(bc(uc("videoModule.videoSrc"),r,uc("videoModule.videoSrcPlaceHolder")),2),s=a[0],c=a[1],f=d(bc(uc("videoModule.videoPoster"),o,uc("videoModule.videoPosterPlaceHolder")),2),p=f[0],h=f[1],g=Zi(c),v=Zi(h),m=d(wc(i,uc("videoModule.ok")),1)[0];if(null==this.$content){var y=Zi("<div></div>");y.on("click","#".concat(i),function(n){return u(t,void 0,void 0,function(){var t,i;return l(this,function(a){switch(a.label){case 0:return n.preventDefault(),t=y.find("#".concat(r)).val().trim(),i=y.find("#".concat(o)).val().trim(),[4,oE(e,t,i)];case 1:return a.sent(),e.hidePanelOrModal(),[2]}})})}),this.$content=y}var b=this.$content;return b.empty(),b.append(s),b.append(p),b.append(m),g.val(""),v.val(""),setTimeout(function(){g.focus()}),b[0]},e}();function sE(e){return e.getMenuConfig("uploadVideo")}var uE=new WeakMap;function lE(e,t){return u(this,void 0,void 0,function(){var n,r;return l(this,function(o){switch(o.label){case 0:return n=function(e){var t=uE.get(e);if(null!=t)return t;var n=sE(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,u=n.onError;return t=Bn(s(s({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)return a(n,function(t,n){return oE(e,t,n)}),void r(t,n);var o=n.errno,s=void 0===o?1:o,u=n.data,l=void 0===u?{}:u;if(0===s){var c=l.url,d=void 0===c?"":c,f=l.poster;oE(e,d,void 0===f?"":f),r(t,n)}else i(t,n)},onError:function(e,t,n){u(e,t,n)}}),e),uE.set(e,t),t}(e),r=t.map(function(e){return{name:e.name,type:e.type,size:e.size,data:e}}),n.addFiles(r),[4,n.upload()];case 1:return o.sent(),[2]}})})}var cE=function(){function e(){this.title=uc("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i(function(t,n){return oE(e,t,n)});else{var a="";o.length>0&&(a='accept="'.concat(o.join(", "),'"'));var s=Zi("body"),c=Zi('<input type="file" '.concat(a," multiple/>"));c.hide(),s.append(c),c.click(),c.on("change",function(){var t=c[0].files;!function(e,t){u(this,void 0,void 0,function(){var n,r,o,i,a,s,u,c,d,f,h,g;return l(this,function(l){switch(l.label){case 0:if(null==t)return[2];n=Array.prototype.slice.call(t),r=[],o=sE(e).customUpload,l.label=1;case 1:l.trys.push([1,8,9,14]),i=!0,a=p(n),l.label=2;case 2:return[4,a.next()];case 3:return s=l.sent(),(d=s.done)?[3,7]:(g=s.value,i=!1,u=g,o?[4,o(u,function(t,n){return oE(e,t,n)},e)]:[3,5]);case 4:return l.sent(),[3,6];case 5:r.push(u),l.label=6;case 6:return i=!0,[3,2];case 7:return[3,14];case 8:return c=l.sent(),f={error:c},[3,14];case 9:return l.trys.push([9,,12,13]),i||d||!(h=a.return)?[3,11]:[4,h.call(a)];case 10:l.sent(),l.label=11;case 11:return[3,13];case 12:if(f)throw f.error;return[7];case 13:return[7];case 14:return r.length>0?[4,lE(e,r)]:[3,16];case 15:l.sent(),l.label=16;case 16:return[2]}})})}(e,t)})}},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||(!Gn.isCollapsed(t)||!!Os.getSelectedElems(e).some(function(t){return"pre"===Os.getNodeType(t)||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadVideo")},e}(),dE=function(){function e(e,t,n){this.align=e,this.iconSvg=n,this.tag="button",this.title=uc(t)}return e.prototype.getSelectedVideo=function(e){return Os.getSelectedNodeByType(e,"video")},e.prototype.getValue=function(e){var t=this.getSelectedVideo(e);return!!t&&Yb(t)},e.prototype.isActive=function(e){return this.getValue(e)===this.align},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedVideo(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={align:this.align};co.setNodes(e,n,{match:function(e){return Os.checkNodeType(e,"video")}})}},e}();function fE(e,t,n,r,o,i){return void 0===t&&(t=""),void 0===n&&(n="auto"),void 0===r&&(r="auto"),void 0===o&&(o={}),void 0===i&&(i="center"),{type:"video",src:e,poster:t,width:n,height:r,style:o,children:[{text:""}],align:i}}function pE(e){var t=(e.attr("data-w-e-align")||"").trim();if(t)return Kb(t);var n=Qb(e.attr("style")||""),r=n["justify-content"];if("flex-start"===r)return"left";if("flex-end"===r)return"right";if("center"===r)return"center";var o=function(e){for(var t=(e.attr("class")||"").trim().split(/\s+/).filter(Boolean),n=0;n<t.length;n+=1){var r=t[n];if(r.startsWith("w-e-video-align-"))return r.replace("w-e-video-align-","")}return""}(e);if(o)return Kb(o);var i=n["text-align"],a=(e.attr("data-w-e-text-align")||"").trim();return Kb(i||a)}function hE(e){var t=Qb(e),n={};return t.width&&(n.width=t.width),t.height&&(n.height=t.height),n}var gE={selector:'figure[data-w-e-type="video"],div[data-w-e-type="video"]',parseElemHtml:function(e,t,n){var r=Zi(e),o="",i="",a="auto",s="auto",u={},l=r.find("iframe");if(l.length>0){a=l.attr("width")||"auto",s=l.attr("height")||"auto",u=hE(l.attr("style")||"");var c=l.attr("data-w-e-style-width")||"",d=l.attr("data-w-e-style-height")||"";return!u.width&&c&&(u.width=c),!u.height&&d&&(u.height=d),fE(o=l[0].outerHTML,i,a,s,u,pE(r))}var f=r.find("video");(o=f.attr("src")||"")||f.length>0&&(o=f.find("source").attr("src")||""),a=f.attr("width")||"auto",s=f.attr("height")||"auto",i=f.attr("poster")||"",u=hE(f.attr("style")||"");var p=f.attr("data-w-e-style-width")||"",h=f.attr("data-w-e-style-height")||"";return!u.width&&p&&(u.width=p),!u.height&&h&&(u.height=h),fE(o,i,a,s,u,pE(r))}};var vE={selector:"iframe,video,p",preParseHtml:function(e){var t=Zi(e),n=t;if("p"===Vb(t)){var r=t.children();if(1===r.length){var o=r[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(n=Zi(o))}}var a=Vb(n);if("iframe"!==a&&"video"!==a)return n[0];if("video"===n.parent().attr("data-w-e-type"))return n[0];var s=Zi('<figure data-w-e-type="video" data-w-e-is-void data-w-e-align="center" class="w-e-video w-e-video-align-center"></figure>');return s.append(n),s[0]}};var mE={type:"video",renderElem:function(e,t,n){var r,o=e,i=o.src,a=void 0===i?"":i,s=o.poster,u=void 0===s?"":s,l=o.key,c=void 0===l?"":l,d=o.width,f=void 0===d?"auto":d,p=o.height,h=void 0===p?"auto":p,g=o.style,v=void 0===g?{}:g,m=Yb(e),y=["w-e-video","w-e-textarea-video-container",Xb(m)].join(" "),b=Os.isNodeSelected(n,e);if(0===a.trim().indexOf("<iframe ")){r=Ld("figure",{className:y,"data-selected":b?"true":"","data-w-e-align":m,innerHTML:Wb(a,f,h,v)})}else{var E=Ld("video",{key:c,poster:u,controls:!0,style:v},Ld("source",{src:a,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉,浏览器不支持 video 视频");"auto"!==f&&(E.data.width=f),"auto"!==h&&(E.data.height=h),r=Ld("figure",{className:y,"data-selected":b?"true":"","data-w-e-align":m},E)}var w=vd("div",{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r);return w}},yE={renderElems:[mE],elemsToHtml:[Zb],preParseHtml:[vE],parseElemsHtml:[gE],menus:[{key:"insertVideo",factory:function(){return new aE},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new cE},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'".concat(e.name,"' upload failed"),t)},onError:function(e,t,n){console.error("'".concat(e.name," upload error"),t,n)}}},{key:"editVideoSize",factory:function(){return new tE}},{key:"editVideoSrc",factory:function(){return new rE}},{key:"videoAlignLeft",factory:function(){return new dE("left","videoModule.alignLeft",'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>')}},{key:"videoAlignCenter",factory:function(){return new dE("center","videoModule.alignCenter",'<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>')}},{key:"videoAlignRight",factory:function(){return new dE("right","videoModule.alignRight",'<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>')}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=d(e,2),o=t[0],i=t[1];"video"===Os.getNodeType(o)&&(Os.isLastNode(r,o)&&co.insertNodes(r,Os.genEmptyParagraph(),{at:[i[0]+1]}));return n([o,i])},r}},bE=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=s(s({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=s(s({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=s(s({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=s(s({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){li(e,t)},e.registerRenderElem=function(e){var t,n,r;n=(t=e).type,r=t.renderElem,jd[n||""]=r},e.registerRenderStyle=function(e){!function(e){_d.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;gs[t||""]=n}(e)},e.registerStyleToHtml=function(e){!function(e){cs.push(e)}(e)},e.registerHtmlTransform=function(e){!function(e){ds.push(e)}(e)},e.registerPreParseHtml=function(e){var t;t=e,Ya.push(t)},e.registerParseElemHtml=function(e){!function(e){var t=e.selector,n=e.parseElemHtml;Za[t]=n}(e)},e.registerParseStyleHtml=function(e){!function(e){Xa.push(e)}(e)},e.registerModule=function(e){EE(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function EE(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.htmlTransform,s=e.preParseHtml,u=e.parseElemsHtml,l=e.parseStyleHtml,c=e.editorPlugin;t&&t.forEach(function(e){return bE.registerMenu(e)}),n&&n.forEach(function(e){return bE.registerRenderElem(e)}),r&&bE.registerRenderStyle(r),o&&o.forEach(function(e){return bE.registerElemToHtml(e)}),i&&bE.registerStyleToHtml(i),a&&bE.registerHtmlTransform(a),s&&s.forEach(function(e){return bE.registerPreParseHtml(e)}),u&&u.forEach(function(e){return bE.registerParseElemHtml(e)}),l&&bE.registerParseStyleHtml(l),c&&bE.registerPlugin(c)}cv.forEach(function(e){return EE(e)}),EE(km),EE(Lb),EE(yE),EE(Ub),EE(Bv);var wE={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editorImageSizeMenu","editImage","previewImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable","mergeTableCell","splitTableCell","setTableProperty","setTableCellProperty"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","videoAlignLeft","videoAlignCenter","videoAlignRight","editVideoSize","editVideoSrc"]}};var CE='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var DE={hoverbarKeys:s(s({},wE),{text:{menuKeys:["formatPainter","headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};bE.setEditorConfig(s(s({},DE),{decorate:Av}));var AE={hoverbarKeys:wE};bE.setSimpleEditorConfig(s(s({},AE),{decorate:Av}));var SE={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:uc("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","wavyUnderline","emphasisDot","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:uc("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:uc("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:uc("editor.image"),iconSvg:CE,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:uc("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","formatPainter","fullScreen"]};bE.setToolbarConfig(SE);var xE={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:uc("editor.image"),iconSvg:CE,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function NE(e){void 0===e&&(e={});var t=e.selector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.html,a=e.config,u=void 0===a?{}:a,l=e.mode,c="simple"===(void 0===l?"default":l)?bE.simpleEditorConfig:bE.editorConfig,d=s(s({},c.hoverbarKeys||{}),u.hoverbarKeys||{});return tf({selector:n,config:s(s(s({},c),u),{hoverbarKeys:d}),content:o,html:i,plugins:bE.plugins})}function BE(e){var t=e.selector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u="simple"===a?bE.simpleToolbarConfig:bE.toolbarConfig;return rf(n,{selector:t,config:s(s({},u),o)})}bE.setSimpleToolbarConfig(xE);var OE={};export{bE as Boot,Os as DomEditor,Pr as SlateEditor,Kn as SlateElement,Qn as SlateNode,Hn as SlatePath,Mr as SlatePoint,Gn as SlateRange,Wr as SlateText,co as SlateTransforms,nf as Toolbar,NE as createEditor,BE as createToolbar,Bn as createUploader,OE as default,wc as genModalButtonElems,bc as genModalInputElems,Ec as genModalTextareaElems,af as getClassStylePolicy,of as getTextStyleMode,oc as i18nAddResources,ic as i18nChangeLanguage,ac as i18nGetResources,sf as reportUnsupportedClassStyle,uc as t};
|
|
21
21
|
//# sourceMappingURL=index.mjs.map
|