@waline/client 1.5.1 → 1.5.2

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.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Waline=t():e.Waline=t()}(this,(function(){return(()=>{var e={948:function(e){e.exports=function(){"use strict";var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(){return new RegExp("(?:"+t.line().source+")|(?:"+t.block().source+")","gm")};t.line=function(){return/(?:^|\s)\/\/(.+?)$/gm},t.block=function(){return/\/\*([\S\s]*?)\*\//gm}})),t=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"];return function(n,r){void 0===r&&(r={});var o=r.colors;void 0===o&&(o=t);var i=0,l={},s=new RegExp("("+/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source+"|"+/</.source+")|("+e().source+")","gmi");return n.replace(s,(function(e,t,n){if(n)return function(e){return'<span style="color: slategray">'+e+"</span>"}(n);if("<"===t)return"&lt;";var r;l[t]?r=l[t]:(r=o[i],l[t]=r);var s='<span style="color: #'+r+'">'+t+"</span>";return i=++i%o.length,s}))}}()},917:function(e){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r={exports:{}};function o(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}r.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:o,changeDefaults:function(e){r.exports.defaults=e}};var i=/[&<>"']/,l=/[&<>"']/g,s=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},c=function(e){return a[e]};var p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function d(e){return e.replace(p,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var h=/(^|[^\[])\^/g;var f=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var g={},v=/^[^:]+:\/*[^/]*$/,D=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function y(e,t){g[" "+e]||(v.test(e)?g[" "+e]=e+"/":g[" "+e]=w(e,"/",!0));var n=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(D,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(b,"$1")+t:e+t}function w(e,t,n){var r=e.length;if(0===r)return"";for(var o=0;o<r;){var i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.substr(0,r-o)}var C=function(e,t){if(t){if(i.test(e))return e.replace(l,c)}else if(s.test(e))return e.replace(u,c);return e},k=d,x=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(h,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n},E=function(e,t,n){if(e){var r;try{r=decodeURIComponent(d(n)).replace(f,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!m.test(n)&&(n=y(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},A={exec:function(){}},F=function(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},_=function(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,o=t;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},B=w,S=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,o=0;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&--r<0)return o;return-1},z=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},L=function(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},R=r.exports.defaults,T=B,I=_,O=C,$=S;function j(e,t,n,r){var o=t.href,i=t.title?O(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var s={type:"link",raw:n,href:o,title:i,text:l,tokens:r.inlineTokens(l,[])};return r.state.inLink=!1,s}return{type:"image",raw:n,href:o,title:i,text:O(l)}}var M=function(){function e(e){this.options=e||R}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:T(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=T(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}var o={type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:[]};return this.lexer.inline(o.text,o.tokens),o}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,o,i,l,s,u,a,c,p,d=t[1].trim(),h=d.length>1,f={type:"list",raw:"",ordered:h,start:h?+d.slice(0,-1):"",loose:!1,items:[]};d=h?"\\d{1,9}\\"+d.slice(-1):"\\"+d,this.options.pedantic&&(d=h?d:"[*+-]");for(var m=new RegExp("^( {0,3}"+d+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");e&&!this.rules.block.hr.test(e)&&(t=m.exec(e));){c=t[2].split("\n"),this.options.pedantic?(i=2,p=c[0].trimLeft()):(i=t[2].search(/[^ ]/),i=t[1].length+(i>4?1:i),p=c[0].slice(i-t[1].length)),s=!1,n=t[0],!c[0]&&/^ *$/.test(c[1])&&(n=t[1]+c.slice(0,2).join("\n")+"\n",f.loose=!0,c=[]);var g=new RegExp("^ {0,"+Math.min(3,i-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(l=1;l<c.length;l++){if(a=c[l],this.options.pedantic&&(a=a.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),g.test(a)){n=t[1]+c.slice(0,l).join("\n")+"\n";break}if(s){if(!(a.search(/[^ ]/)>=i)&&a.trim()){n=t[1]+c.slice(0,l).join("\n")+"\n";break}p+="\n"+a.slice(i)}else a.trim()||(s=!0),a.search(/[^ ]/)>=i?p+="\n"+a.slice(i):p+="\n"+a}f.loose||(u?f.loose=!0:/\n *\n *$/.test(n)&&(u=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(p))&&(o="[ ] "!==r[0],p=p.replace(/^\[[ xX]\] +/,"")),f.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:p}),f.raw+=n,e=e.slice(n.length)}f.items[f.items.length-1].raw=n.trimRight(),f.items[f.items.length-1].text=p.trimRight(),f.raw=f.raw.trimRight();var v=f.items.length;for(l=0;l<v;l++)this.lexer.state.top=!1,f.items[l].tokens=this.lexer.blockTokens(f.items[l].text,[]),f.items[l].tokens.some((function(e){return"space"===e.type}))&&(f.loose=!0,f.items[l].loose=!0);return f}},t.html=function(e){var t=this.rules.block.html.exec(e);if(t){var n={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(n.type="paragraph",n.text=this.options.sanitizer?this.options.sanitizer(t[0]):O(t[0]),n.tokens=[],this.lexer.inline(n.text,n.tokens)),n}},t.def=function(e){var t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}},t.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:I(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,o,i,l,s=n.align.length;for(r=0;r<s;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(s=n.rows.length,r=0;r<s;r++)n.rows[r]=I(n.rows[r],n.header.length).map((function(e){return{text:e}}));for(s=n.header.length,o=0;o<s;o++)n.header[o].tokens=[],this.lexer.inlineTokens(n.header[o].text,n.header[o].tokens);for(s=n.rows.length,o=0;o<s;o++)for(l=n.rows[o],i=0;i<l.length;i++)l[i].tokens=[],this.lexer.inlineTokens(l[i].text,l[i].tokens);return n}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){var n={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var n={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},t.text=function(e){var t=this.rules.block.text.exec(e);if(t){var n={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(n.text,n.tokens),n}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:O(t[1])}},t.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):O(t[0]):t[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var r=T(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var o=$(t[2],"()");if(o>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var l=t[2],s="";if(this.options.pedantic){var u=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);u&&(l=u[1],s=u[3])}else s=t[3]?t[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(l=this.options.pedantic&&!/>$/.test(n)?l.slice(1):l.slice(1,-1)),j(t,{href:l?l.replace(this.rules.inline._escapes,"$1"):l,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0],this.lexer)}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return j(n,r,n[0],this.lexer)}},t.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){var i,l,s=r[0].length-1,u=s,a=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);null!=(r=c.exec(t));)if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(l=i.length,r[3]||r[4])u+=l;else if(!((r[5]||r[6])&&s%3)||(s+l)%3){if(!((u-=l)>0)){if(l=Math.min(l,l+u+a),Math.min(s,l)%2){var p=e.slice(1,s+r.index+l);return{type:"em",raw:e.slice(0,s+r.index+l+1),text:p,tokens:this.lexer.inlineTokens(p,[])}}var d=e.slice(2,s+r.index+l-1);return{type:"strong",raw:e.slice(0,s+r.index+l+1),text:d,tokens:this.lexer.inlineTokens(d,[])}}}else a+=l}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=O(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},t.autolink=function(e,t){var n,r,o=this.rules.inline.autolink.exec(e);if(o)return r="@"===o[2]?"mailto:"+(n=O(this.options.mangle?t(o[1]):o[1])):n=O(o[1]),{type:"link",raw:o[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,o;if("@"===n[2])o="mailto:"+(r=O(this.options.mangle?t(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);r=O(n[0]),o="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}},t.inlineText=function(e,t){var n,r=this.rules.inline.text.exec(e);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):O(r[0]):r[0]:O(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}},e}(),U=A,P=x,N=F,V={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:U,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};V.def=P(V.def).replace("label",V._label).replace("title",V._title).getRegex(),V.bullet=/(?:[*+-]|\d{1,9}[.)])/,V.listItemStart=P(/^( *)(bull) */).replace("bull",V.bullet).getRegex(),V.list=P(V.list).replace(/bull/g,V.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+V.def.source+")").getRegex(),V._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",V._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,V.html=P(V.html,"i").replace("comment",V._comment).replace("tag",V._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),V.paragraph=P(V._paragraph).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",V._tag).getRegex(),V.blockquote=P(V.blockquote).replace("paragraph",V.paragraph).getRegex(),V.normal=N({},V),V.gfm=N({},V.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),V.gfm.table=P(V.gfm.table).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",V._tag).getRegex(),V.pedantic=N({},V.normal,{html:P("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",V._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:U,paragraph:P(V.normal._paragraph).replace("hr",V.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",V.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var q={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:U,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:U,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};q.punctuation=P(q.punctuation).replace(/punctuation/g,q._punctuation).getRegex(),q.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,q.escapedEmSt=/\\\*|\\_/g,q._comment=P(V._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),q.emStrong.lDelim=P(q.emStrong.lDelim).replace(/punct/g,q._punctuation).getRegex(),q.emStrong.rDelimAst=P(q.emStrong.rDelimAst,"g").replace(/punct/g,q._punctuation).getRegex(),q.emStrong.rDelimUnd=P(q.emStrong.rDelimUnd,"g").replace(/punct/g,q._punctuation).getRegex(),q._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,q._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,q._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,q.autolink=P(q.autolink).replace("scheme",q._scheme).replace("email",q._email).getRegex(),q._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,q.tag=P(q.tag).replace("comment",q._comment).replace("attribute",q._attribute).getRegex(),q._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,q._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,q._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,q.link=P(q.link).replace("label",q._label).replace("href",q._href).replace("title",q._title).getRegex(),q.reflink=P(q.reflink).replace("label",q._label).getRegex(),q.reflinkSearch=P(q.reflinkSearch,"g").replace("reflink",q.reflink).replace("nolink",q.nolink).getRegex(),q.normal=N({},q),q.pedantic=N({},q.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",q._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q._label).getRegex()}),q.gfm=N({},q.normal,{escape:P(q.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),q.gfm.url=P(q.gfm.url,"i").replace("email",q.gfm._extended_email).getRegex(),q.breaks=N({},q.gfm,{br:P(q.br).replace("{2,}","*").getRegex(),text:P(q.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var W={block:V,inline:q},H=M,Z=r.exports.defaults,J=W.block,K=W.inline,Q=L;function Y(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function X(e){var t,n,r="",o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var G=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Z,this.options.tokenizer=this.options.tokenizer||new H,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var t={block:J.normal,inline:K.normal};this.options.pedantic?(t.block=J.pedantic,t.inline=K.pedantic):this.options.gfm&&(t.block=J.gfm,this.options.breaks?t.inline=K.breaks:t.inline=K.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,r,o,i=t.prototype;return i.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},i.blockTokens=function(e,t){var n,r,o,i,l=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(r){return!!(n=r.call({lexer:l},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),!(r=t[t.length-1])||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),!(r=t[t.length-1])||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else if(o=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,n=e.slice(1),r=void 0;l.options.extensions.startBlock.forEach((function(e){"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),this.state.top&&(n=this.tokenizer.paragraph(o)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=o.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return this.state.top=!0,t},i.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},i.inlineTokens=function(e,t){var n,r,o,i=this;void 0===t&&(t=[]);var l,s,u,a=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(a));)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,l.index)+"["+Q("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,l.index)+"["+Q("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,l.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(s||(u=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(r){return!!(n=r.call({lexer:i},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,u))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,X))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,X))){if(o=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),r=void 0;i.options.extensions.startInline.forEach((function(e){"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}(),n=this.tokenizer.inlineText(o,Y))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(u=n.raw.slice(-1)),s=!0,(r=t[t.length-1])&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){var p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}throw new Error(p)}}else e=e.substring(n.raw.length),t.push(n);return t},n=t,o=[{key:"rules",get:function(){return{block:J,inline:K}}}],(r=null)&&e(n.prototype,r),o&&e(n,o),t}(),ee=r.exports.defaults,te=E,ne=C,re=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,r);null!=o&&o!==e&&(n=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+ne(r,!0)+'">'+(n?e:ne(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:ne(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+ne(e)+'"';return t&&(r+=' title="'+t+'"'),r+">"+n+"</a>"},t.image=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+(this.options.xhtml?"/>":">")},t.text=function(e){return e},e}(),oe=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),ie=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),le=re,se=oe,ue=ie,ae=r.exports.defaults,ce=k,pe=function(){function e(e){this.options=e||ae,this.options.renderer=this.options.renderer||new le,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new se,this.slugger=new ue}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,r,o,i,l,s,u,a,c,p,d,h,f,m,g,v,D,b,y,w="",C=e.length;for(n=0;n<C;n++)if(p=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type])||!1===(y=this.options.extensions.renderers[p.type].call({parser:this},p))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type))switch(p.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(p.tokens),p.depth,ce(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(a="",u="",i=p.header.length,r=0;r<i;r++)u+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(a+=this.renderer.tablerow(u),c="",i=p.rows.length,r=0;r<i;r++){for(u="",l=(s=p.rows[r]).length,o=0;o<l;o++)u+=this.renderer.tablecell(this.parseInline(s[o].tokens),{header:!1,align:p.align[o]});c+=this.renderer.tablerow(u)}w+=this.renderer.table(a,c);continue;case"blockquote":c=this.parse(p.tokens),w+=this.renderer.blockquote(c);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,i=p.items.length,c="",r=0;r<i;r++)v=(g=p.items[r]).checked,D=g.task,m="",g.task&&(b=this.renderer.checkbox(v),f?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=b+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=b+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:b}):m+=b),m+=this.parse(g.tokens,f),c+=this.renderer.listitem(m,D,v);w+=this.renderer.list(c,d,h);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(c=p.tokens?this.parseInline(p.tokens):p.text;n+1<C&&"text"===e[n+1].type;)c+="\n"+((p=e[++n]).tokens?this.parseInline(p.tokens):p.text);w+=t?this.renderer.paragraph(c):c;continue;default:var k='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw new Error(k)}else w+=y||"";return w},t.parseInline=function(e,t){t=t||this.renderer;var n,r,o,i="",l=e.length;for(n=0;n<l;n++)if(r=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type])||!1===(o=this.options.extensions.renderers[r.type].call({parser:this},r))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type))switch(r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:var s='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(s);throw new Error(s)}else i+=o||"";return i},e}(),de=G,he=pe,fe=M,me=re,ge=oe,ve=ie,De=F,be=z,ye=C,we=r.exports.getDefaults,Ce=r.exports.changeDefaults,ke=r.exports.defaults;function xe(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=De({},xe.defaults,t||{}),be(t),n){var r,o=t.highlight;try{r=de.lex(e,t)}catch(e){return n(e)}var i=function(e){var i;if(!e)try{t.walkTokens&&xe.walkTokens(r,t.walkTokens),i=he.parse(r,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,i)};if(!o||o.length<3)return i();if(delete t.highlight,!r.length)return i();var l=0;return xe.walkTokens(r,(function(e){"code"===e.type&&(l++,setTimeout((function(){o(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0==--l&&i()}))}),0))})),void(0===l&&i())}try{var s=de.lex(e,t);return t.walkTokens&&xe.walkTokens(s,t.walkTokens),he.parse(s,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ye(e.message+"",!0)+"</pre>";throw e}}return xe.options=xe.setOptions=function(e){return De(xe.defaults,e),Ce(xe.defaults),xe},xe.getDefaults=we,xe.defaults=ke,xe.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=De.apply(void 0,[{}].concat(t)),i=xe.defaults.extensions||{renderers:{},childTokens:{}};t.forEach((function(e){if(e.extensions&&(r=!0,e.extensions.forEach((function(e){if(!e.name)throw new Error("extension name required");if(e.renderer){var t=i.renderers?i.renderers[e.name]:null;i.renderers[e.name]=t?function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=e.renderer.apply(this,r);return!1===i&&(i=t.apply(this,r)),i}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");i[e.level]?i[e.level].unshift(e.tokenizer):i[e.level]=[e.tokenizer],e.start&&("block"===e.level?i.startBlock?i.startBlock.push(e.start):i.startBlock=[e.start]:"inline"===e.level&&(i.startInline?i.startInline.push(e.start):i.startInline=[e.start]))}e.childTokens&&(i.childTokens[e.name]=e.childTokens)}))),e.renderer&&function(){var t=xe.defaults.renderer||new me,n=function(n){var r=t[n];t[n]=function(){for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];var s=e.renderer[n].apply(t,i);return!1===s&&(s=r.apply(t,i)),s}};for(var r in e.renderer)n(r);o.renderer=t}(),e.tokenizer&&function(){var t=xe.defaults.tokenizer||new fe,n=function(n){var r=t[n];t[n]=function(){for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];var s=e.tokenizer[n].apply(t,i);return!1===s&&(s=r.apply(t,i)),s}};for(var r in e.tokenizer)n(r);o.tokenizer=t}(),e.walkTokens){var t=xe.defaults.walkTokens;o.walkTokens=function(n){e.walkTokens.call(this,n),t&&t.call(this,n)}}r&&(o.extensions=i),xe.setOptions(o)}))},xe.walkTokens=function(e,t){for(var r,o=function(){var e=r.value;switch(t.call(xe,e),e.type){case"table":for(var o,i=n(e.header);!(o=i()).done;){var l=o.value;xe.walkTokens(l.tokens,t)}for(var s,u=n(e.rows);!(s=u()).done;)for(var a,c=n(s.value);!(a=c()).done;){var p=a.value;xe.walkTokens(p.tokens,t)}break;case"list":xe.walkTokens(e.items,t);break;default:xe.defaults.extensions&&xe.defaults.extensions.childTokens&&xe.defaults.extensions.childTokens[e.type]?xe.defaults.extensions.childTokens[e.type].forEach((function(n){xe.walkTokens(e[n],t)})):e.tokens&&xe.walkTokens(e.tokens,t)}},i=n(e);!(r=i()).done;)o()},xe.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=De({},xe.defaults,t||{}),be(t);try{var n=de.lexInline(e,t);return t.walkTokens&&xe.walkTokens(n,t.walkTokens),he.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+ye(e.message+"",!0)+"</pre>";throw e}},xe.Parser=he,xe.parser=he.parse,xe.Renderer=me,xe.TextRenderer=ge,xe.Lexer=de,xe.lexer=de.lex,xe.Tokenizer=fe,xe.Slugger=ve,xe.parse=xe,xe}()},407:(e,t)=>{"use strict";t.Z=(e,t)=>{for(const[n,r]of t)e[n]=r;return e}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";function e(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(r,{default:()=>os});const t=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function o(e){return!!e||""===e}function i(e){if(x(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=B(r)?u(r):i(r);if(o)for(const e in o)t[e]=o[e]}return t}return B(e)||z(e)?e:void 0}const l=/;(?![^(]*\))/g,s=/:(.+)/;function u(e){const t={};return e.split(l).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function a(e){let t="";if(B(e))t=e;else if(x(e))for(let n=0;n<e.length;n++){const r=a(e[n]);r&&(t+=r+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function c(e,t){if(e===t)return!0;let n=F(e),r=F(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=x(e),r=x(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=c(e[r],t[r]);return n}(e,t);if(n=z(e),r=z(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!c(e[n],t[n]))return!1}}return String(e)===String(t)}function p(e,t){return e.findIndex((e=>c(e,t)))}const d=e=>null==e?"":x(e)||z(e)&&(e.toString===R||!_(e.toString))?JSON.stringify(e,h,2):String(e),h=(e,t)=>t&&t.__v_isRef?h(e,t.value):E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:A(t)?{[`Set(${t.size})`]:[...t.values()]}:!z(t)||x(t)||I(t)?t:String(t),f={},m=[],g=()=>{},v=()=>!1,D=/^on[^a-z]/,b=e=>D.test(e),y=e=>e.startsWith("onUpdate:"),w=Object.assign,C=Object.prototype.hasOwnProperty,k=(e,t)=>C.call(e,t),x=Array.isArray,E=e=>"[object Map]"===T(e),A=e=>"[object Set]"===T(e),F=e=>e instanceof Date,_=e=>"function"==typeof e,B=e=>"string"==typeof e,S=e=>"symbol"==typeof e,z=e=>null!==e&&"object"==typeof e,L=e=>z(e)&&_(e.then)&&_(e.catch),R=Object.prototype.toString,T=e=>R.call(e),I=e=>"[object Object]"===T(e),O=e=>B(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,$=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},M=/-(\w)/g,U=j((e=>e.replace(M,((e,t)=>t?t.toUpperCase():"")))),P=/\B([A-Z])/g,N=j((e=>e.replace(P,"-$1").toLowerCase())),V=j((e=>e.charAt(0).toUpperCase()+e.slice(1))),q=j((e=>e?`on${V(e)}`:"")),W=(e,t)=>!Object.is(e,t),H=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Z=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},J=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let K;const Q=()=>K||(K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});let Y;const X=[];class G{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&Y&&(this.parent=Y,this.index=(Y.scopes||(Y.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(X.push(this),Y=this)}off(){this.active&&(X.pop(),Y=X[X.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const ee=e=>{const t=new Set(e);return t.w=0,t.n=0,t},te=e=>(e.w&ie)>0,ne=e=>(e.n&ie)>0,re=new WeakMap;let oe=0,ie=1;const le=[];let se;const ue=Symbol(""),ae=Symbol("");class ce{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||Y)&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();if(!le.includes(this))try{return le.push(se=this),he.push(de),de=!0,ie=1<<++oe,oe<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ie})(this):pe(this),this.fn()}finally{oe<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];te(o)&&!ne(o)?o.delete(e):t[n++]=o,o.w&=~ie,o.n&=~ie}t.length=n}})(this),ie=1<<--oe,me(),le.pop();const e=le.length;se=e>0?le[e-1]:void 0}}stop(){this.active&&(pe(this),this.onStop&&this.onStop(),this.active=!1)}}function pe(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let de=!0;const he=[];function fe(){he.push(de),de=!1}function me(){const e=he.pop();de=void 0===e||e}function ge(e,t,n){if(!ve())return;let r=re.get(e);r||re.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=ee()),De(o)}function ve(){return de&&void 0!==se}function De(e,t){let n=!1;oe<=30?ne(e)||(e.n|=ie,n=!te(e)):n=!e.has(se),n&&(e.add(se),se.deps.push(e))}function be(e,t,n,r,o,i){const l=re.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&x(e))l.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(l.get(n)),t){case"add":x(e)?O(n)&&s.push(l.get("length")):(s.push(l.get(ue)),E(e)&&s.push(l.get(ae)));break;case"delete":x(e)||(s.push(l.get(ue)),E(e)&&s.push(l.get(ae)));break;case"set":E(e)&&s.push(l.get(ue))}if(1===s.length)s[0]&&ye(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);ye(ee(e))}}function ye(e,t){for(const t of x(e)?e:[...e])(t!==se||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const we=e("__proto__,__v_isRef,__isVue"),Ce=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(S)),ke=_e(),xe=_e(!1,!0),Ee=_e(!0),Ae=Fe();function Fe(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=ct(this);for(let e=0,t=this.length;e<t;e++)ge(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(ct)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){fe();const n=ct(this)[t].apply(this,e);return me(),n}})),e}function _e(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&o===(e?t?rt:nt:t?tt:et).get(n))return n;const i=x(n);if(!e&&i&&k(Ae,r))return Reflect.get(Ae,r,o);const l=Reflect.get(n,r,o);return(S(r)?Ce.has(r):we(r))?l:(e||ge(n,0,r),t?l:gt(l)?i&&O(r)?l:l.value:z(l)?e?it(l):ot(l):l)}}function Be(e=!1){return function(t,n,r,o){let i=t[n];if(!e&&(r=ct(r),i=ct(i),!x(t)&&gt(i)&&!gt(r)))return i.value=r,!0;const l=x(t)&&O(n)?Number(n)<t.length:k(t,n),s=Reflect.set(t,n,r,o);return t===ct(o)&&(l?W(r,i)&&be(t,"set",n,r):be(t,"add",n,r)),s}}const Se={get:ke,set:Be(),deleteProperty:function(e,t){const n=k(e,t),r=(e[t],Reflect.deleteProperty(e,t));return r&&n&&be(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return S(t)&&Ce.has(t)||ge(e,0,t),n},ownKeys:function(e){return ge(e,0,x(e)?"length":ue),Reflect.ownKeys(e)}},ze={get:Ee,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Le=w({},Se,{get:xe,set:Be(!0)}),Re=e=>e,Te=e=>Reflect.getPrototypeOf(e);function Ie(e,t,n=!1,r=!1){const o=ct(e=e.__v_raw),i=ct(t);t!==i&&!n&&ge(o,0,t),!n&&ge(o,0,i);const{has:l}=Te(o),s=r?Re:n?ht:dt;return l.call(o,t)?s(e.get(t)):l.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}function Oe(e,t=!1){const n=this.__v_raw,r=ct(n),o=ct(e);return e!==o&&!t&&ge(r,0,e),!t&&ge(r,0,o),e===o?n.has(e):n.has(e)||n.has(o)}function $e(e,t=!1){return e=e.__v_raw,!t&&ge(ct(e),0,ue),Reflect.get(e,"size",e)}function je(e){e=ct(e);const t=ct(this);return Te(t).has.call(t,e)||(t.add(e),be(t,"add",e,e)),this}function Me(e,t){t=ct(t);const n=ct(this),{has:r,get:o}=Te(n);let i=r.call(n,e);i||(e=ct(e),i=r.call(n,e));const l=o.call(n,e);return n.set(e,t),i?W(t,l)&&be(n,"set",e,t):be(n,"add",e,t),this}function Ue(e){const t=ct(this),{has:n,get:r}=Te(t);let o=n.call(t,e);o||(e=ct(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&be(t,"delete",e,void 0),i}function Pe(){const e=ct(this),t=0!==e.size,n=e.clear();return t&&be(e,"clear",void 0,void 0),n}function Ne(e,t){return function(n,r){const o=this,i=o.__v_raw,l=ct(i),s=t?Re:e?ht:dt;return!e&&ge(l,0,ue),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function Ve(e,t,n){return function(...r){const o=this.__v_raw,i=ct(o),l=E(i),s="entries"===e||e===Symbol.iterator&&l,u="keys"===e&&l,a=o[e](...r),c=n?Re:t?ht:dt;return!t&&ge(i,0,u?ae:ue),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:s?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function qe(e){return function(...t){return"delete"!==e&&this}}function We(){const e={get(e){return Ie(this,e)},get size(){return $e(this)},has:Oe,add:je,set:Me,delete:Ue,clear:Pe,forEach:Ne(!1,!1)},t={get(e){return Ie(this,e,!1,!0)},get size(){return $e(this)},has:Oe,add:je,set:Me,delete:Ue,clear:Pe,forEach:Ne(!1,!0)},n={get(e){return Ie(this,e,!0)},get size(){return $e(this,!0)},has(e){return Oe.call(this,e,!0)},add:qe("add"),set:qe("set"),delete:qe("delete"),clear:qe("clear"),forEach:Ne(!0,!1)},r={get(e){return Ie(this,e,!0,!0)},get size(){return $e(this,!0)},has(e){return Oe.call(this,e,!0)},add:qe("add"),set:qe("set"),delete:qe("delete"),clear:qe("clear"),forEach:Ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=Ve(o,!1,!1),n[o]=Ve(o,!0,!1),t[o]=Ve(o,!1,!0),r[o]=Ve(o,!0,!0)})),[e,n,t,r]}const[He,Ze,Je,Ke]=We();function Qe(e,t){const n=t?e?Ke:Je:e?Ze:He;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(k(n,r)&&r in t?n:t,r,o)}const Ye={get:Qe(!1,!1)},Xe={get:Qe(!1,!0)},Ge={get:Qe(!0,!1)},et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap;function ot(e){return e&&e.__v_isReadonly?e:lt(e,!1,Se,Ye,et)}function it(e){return lt(e,!0,ze,Ge,nt)}function lt(e,t,n,r,o){if(!z(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const l=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>T(e).slice(8,-1))(s));var s;if(0===l)return e;const u=new Proxy(e,2===l?r:n);return o.set(e,u),u}function st(e){return ut(e)?st(e.__v_raw):!(!e||!e.__v_isReactive)}function ut(e){return!(!e||!e.__v_isReadonly)}function at(e){return st(e)||ut(e)}function ct(e){const t=e&&e.__v_raw;return t?ct(t):e}function pt(e){return Z(e,"__v_skip",!0),e}const dt=e=>z(e)?ot(e):e,ht=e=>z(e)?it(e):e;function ft(e){ve()&&((e=ct(e)).dep||(e.dep=ee()),De(e.dep))}function mt(e,t){(e=ct(e)).dep&&ye(e.dep)}function gt(e){return Boolean(e&&!0===e.__v_isRef)}function vt(e){return n=!1,gt(t=e)?t:new Dt(t,n);var t,n}class Dt{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ct(e),this._value=t?e:dt(e)}get value(){return ft(this),this._value}set value(e){e=this._shallow?e:ct(e),W(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:dt(e),mt(this))}}const bt={get:(e,t,n)=>{return gt(r=Reflect.get(e,t,n))?r.value:r;var r},set:(e,t,n,r)=>{const o=e[t];return gt(o)&&!gt(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function yt(e){return st(e)?e:new Proxy(e,bt)}class wt{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new ce(e,(()=>{this._dirty||(this._dirty=!0,mt(this))})),this.__v_isReadonly=n}get value(){const e=ct(this);return ft(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ct(e,t){let n,r;const o=_(e);return o?(n=e,r=g):(n=e.get,r=e.set),new wt(n,r,o||!r)}Promise.resolve(),new Set,new Map;let kt,xt=[];function Et(e,...t){kt?kt.emit(e,...t):xt.push({event:e,args:t})}function At(e,t){kt=e,kt?(kt.enabled=!0,xt.forEach((({event:e,args:t})=>kt.emit(e,...t))),xt=[]):((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{At(e,t)})),setTimeout((()=>{xt=[]}),3e3))}const Ft=St("component:added"),_t=St("component:updated"),Bt=St("component:removed");function St(e){return t=>{Et(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function zt(e,t,...n){const r=e.vnode.props||f;let o=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in r){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:i}=r[e]||f;i?o=n.map((e=>e.trim())):t&&(o=n.map(J))}let s;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Et("component:emit",e.appContext.app,e,t,n)}(e,t,o);let u=r[s=q(t)]||r[s=q(U(t))];!u&&i&&(u=r[s=q(N(t))]),u&&vr(u,e,6,o);const a=r[s+"Once"];if(a){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,vr(a,e,6,o)}}function Lt(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits;let l={};return i?(x(i)?i.forEach((e=>l[e]=null)):w(l,i),r.set(e,l),l):(r.set(e,null),null)}function Rt(e,t){return!(!e||!b(t))&&(t=t.slice(2).replace(/Once$/,""),k(e,t[0].toLowerCase()+t.slice(1))||k(e,N(t))||k(e,t))}let Tt=null,It=null;function Ot(e){const t=Tt;return Tt=e,It=e&&e.type.__scopeId||null,t}function $t(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[l],slots:s,attrs:u,emit:a,render:c,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const D=Ot(e);try{if(4&n.shapeFlag){const e=o||r;g=Xn(c.call(e,e,p,i,h,d,f)),v=u}else{const e=t;g=Xn(e.length>1?e(i,{attrs:u,slots:s,emit:a}):e(i,null)),v=t.props?u:jt(u)}}catch(t){Tn.length=0,Dr(t,e,1),g=Jn(Ln)}let b=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(l&&e.some(y)&&(v=Mt(v,l)),b=Kn(b,v))}return n.dirs&&(b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,Ot(D),g}const jt=e=>{let t;for(const n in e)("class"===n||"style"===n||b(n))&&((t||(t={}))[n]=e[n]);return t},Mt=(e,t)=>{const n={};for(const r in e)y(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Ut(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!Rt(n,i))return!0}return!1}function Pt(e,t,n=!1){const r=sr||Tt;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&_(t)?t.call(r.proxy):t}}const Nt=[Function,Array],Vt={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Nt,onEnter:Nt,onAfterEnter:Nt,onEnterCancelled:Nt,onBeforeLeave:Nt,onLeave:Nt,onAfterLeave:Nt,onLeaveCancelled:Nt,onBeforeAppear:Nt,onAppear:Nt,onAfterAppear:Nt,onAppearCancelled:Nt},setup(e,{slots:t}){const n=ur(),r=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return en((()=>{e.isMounted=!0})),tn((()=>{e.isUnmounting=!0})),e}();let o;return()=>{const i=t.default&&Kt(t.default(),!0);if(!i||!i.length)return;const l=ct(e),{mode:s}=l,u=i[0];if(r.isLeaving)return Ht(u);const a=Zt(u);if(!a)return Ht(u);const c=Wt(a,l,r,n);Jt(a,c);const p=n.subTree,d=p&&Zt(p);let h=!1;const{getTransitionKey:f}=a.type;if(f){const e=f();void 0===o?o=e:e!==o&&(o=e,h=!0)}if(d&&d.type!==Ln&&(!Vn(a,d)||h)){const e=Wt(d,l,r,n);if(Jt(d,e),"out-in"===s)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},Ht(u);"in-out"===s&&a.type!==Ln&&(e.delayLeave=(e,t,n)=>{qt(r,d)[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=n})}return u}}};function qt(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Wt(e,t,n,r){const{appear:o,mode:i,persisted:l=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:a,onEnterCancelled:c,onBeforeLeave:p,onLeave:d,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:D}=t,b=String(e.key),y=qt(n,e),w=(e,t)=>{e&&vr(e,r,9,t)},C={mode:i,persisted:l,beforeEnter(t){let r=s;if(!n.isMounted){if(!o)return;r=m||s}t._leaveCb&&t._leaveCb(!0);const i=y[b];i&&Vn(e,i)&&i.el._leaveCb&&i.el._leaveCb(),w(r,[t])},enter(e){let t=u,r=a,i=c;if(!n.isMounted){if(!o)return;t=g||u,r=v||a,i=D||c}let l=!1;const s=e._enterCb=t=>{l||(l=!0,w(t?i:r,[e]),C.delayedLeave&&C.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();w(p,[t]);let i=!1;const l=t._leaveCb=n=>{i||(i=!0,r(),w(n?f:h,[t]),t._leaveCb=void 0,y[o]===e&&delete y[o])};y[o]=e,d?(d(t,l),d.length<=1&&l()):l()},clone:e=>Wt(e,t,n,r)};return C}function Ht(e){if(Xt(e))return(e=Kn(e)).children=null,e}function Zt(e){return Xt(e)?e.children?e.children[0]:void 0:e}function Jt(e,t){6&e.shapeFlag&&e.component?Jt(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Kt(e,t=!1){let n=[],r=0;for(let o=0;o<e.length;o++){const i=e[o];i.type===Sn?(128&i.patchFlag&&r++,n=n.concat(Kt(i.children,t))):(t||i.type!==Ln)&&n.push(i)}if(r>1)for(let e=0;e<n.length;e++)n[e].patchFlag=-2;return n}function Qt(e){return _(e)?{setup:e,name:e.name}:e}const Yt=e=>!!e.type.__asyncLoader,Xt=e=>e.type.__isKeepAlive;RegExp,RegExp;const Gt=e=>(t,n=sr)=>(!dr||"sp"===e)&&function(e,t,n=sr,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;fe(),ar(n);const o=vr(t,n,e,r);return cr(),me(),o});return r?o.unshift(i):o.push(i),i}}(e,t,n),en=(Gt("bm"),Gt("m")),tn=(Gt("bu"),Gt("u"),Gt("bum")),nn=Gt("um");function rn(e,t,n,r){const[o,i]=e.propsOptions;let l,s=!1;if(t)for(let u in t){if($(u))continue;const a=t[u];let c;o&&k(o,c=U(u))?i&&i.includes(c)?(l||(l={}))[c]=a:n[c]=a:Rt(e.emitsOptions,u)||a!==r[u]&&(r[u]=a,s=!0)}if(i){const t=ct(n),r=l||f;for(let l=0;l<i.length;l++){const s=i[l];n[s]=on(o,t,s,r[s],e,!k(r,s))}}return s}function on(e,t,n,r,o,i){const l=e[n];if(null!=l){const e=k(l,"default");if(e&&void 0===r){const e=l.default;if(l.type!==Function&&_(e)){const{propsDefaults:i}=o;n in i?r=i[n]:(ar(o),r=i[n]=e.call(null,t),cr())}else r=e}l[0]&&(i&&!e?r=!1:!l[1]||""!==r&&r!==N(n)||(r=!0))}return r}function ln(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,l={},s=[];if(!i)return r.set(e,m),m;if(x(i))for(let e=0;e<i.length;e++){const t=U(i[e]);sn(t)&&(l[t]=f)}else if(i)for(const e in i){const t=U(e);if(sn(t)){const n=i[e],r=l[t]=x(n)||_(n)?{type:n}:n;if(r){const e=cn(Boolean,r.type),n=cn(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||k(r,"default"))&&s.push(t)}}}const u=[l,s];return r.set(e,u),u}function sn(e){return"$"!==e[0]}function un(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function an(e,t){return un(e)===un(t)}function cn(e,t){return x(t)?t.findIndex((t=>an(t,e))):_(t)&&an(t,e)?0:-1}Gt("sp"),Gt("rtg"),Gt("rtc");const pn=e=>"_"===e[0]||"$stable"===e,dn=e=>x(e)?e.map(Xn):[Xn(e)],hn=(e,t,n)=>{const r=function(e,t=Tt,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&jn(-1);const o=Ot(t),i=e(...n);return Ot(o),r._d&&jn(1),__VUE_PROD_DEVTOOLS__&&_t(t),i};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>dn(t(...e))),n);return r._c=!1,r},fn=(e,t,n)=>{const r=e._ctx;for(const n in e){if(pn(n))continue;const o=e[n];if(_(o))t[n]=hn(0,o,r);else if(null!=o){const e=dn(o);t[n]=()=>e}}},mn=(e,t)=>{const n=dn(t);e.slots.default=()=>n};function gn(e,t){if(null===Tt)return e;const n=Tt.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[o,i,l,s=f]=t[e];_(o)&&(o={mounted:o,updated:o}),o.deep&&Nr(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:s})}return e}function vn(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let l=0;l<o.length;l++){const s=o[l];i&&(s.oldValue=i[l].value);let u=s.dir[r];u&&(fe(),vr(u,n,8,[e.el,s,e,t]),me())}}function Dn(){return{app:null,config:{isNativeTag:v,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let bn=0;function yn(e,t){return function(n,r=null){null==r||z(r)||(r=null);const o=Dn(),i=new Set;let l=!1;const s=o.app={_uid:bn++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:qr,get config(){return o.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&_(e.install)?(i.add(e),e.install(s,...t)):_(e)&&(i.add(e),e(s,...t))),s),mixin:e=>s,component:(e,t)=>t?(o.components[e]=t,s):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(i,u,a){if(!l){const c=Jn(n,r);return c.appContext=o,u&&t?t(c,i):e(c,i,a),l=!0,s._container=i,i.__vue_app__=s,__VUE_PROD_DEVTOOLS__&&(s._instance=c.component,function(e,t){Et("app:init",e,t,{Fragment:Sn,Text:zn,Comment:Ln,Static:Rn})}(s,qr)),mr(c.component)||c.component.proxy}},unmount(){l&&(e(null,s._container),__VUE_PROD_DEVTOOLS__&&(s._instance=null,function(e){Et("app:unmount",e)}(s)),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s)};return s}}const wn=function(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):Ir(e,Fr,Ar,_r)};function Cn(e,t){"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Q().__VUE_PROD_DEVTOOLS__=!1);const n=Q();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&At(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:i,createElement:l,createText:s,createComment:u,setText:a,setElementText:c,parentNode:p,nextSibling:d,setScopeId:h=g,cloneNode:v,insertStaticContent:D}=e,b=(e,t,n,r=null,o=null,i=null,l=!1,s=null,u=!!t.dynamicChildren)=>{if(e===t)return;e&&!Vn(e,t)&&(r=te(e),J(e,o,i,!0),e=null),-2===t.patchFlag&&(u=!1,t.dynamicChildren=null);const{type:a,ref:c,shapeFlag:p}=t;switch(a){case zn:y(e,t,n,r);break;case Ln:C(e,t,n,r);break;case Rn:null==e&&x(t,n,r,l);break;case Sn:R(e,t,n,r,o,i,l,s,u);break;default:1&p?E(e,t,n,r,o,i,l,s,u):6&p?T(e,t,n,r,o,i,l,s,u):(64&p||128&p)&&a.process(e,t,n,r,o,i,l,s,u,re)}null!=c&&o&&kn(c,e&&e.ref,i,t||e,!t)},y=(e,t,n,o)=>{if(null==e)r(t.el=s(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},C=(e,t,n,o)=>{null==e?r(t.el=u(t.children||""),n,o):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=D(e.children,t,n,r)},E=(e,t,n,r,o,i,l,s,u)=>{l=l||"svg"===t.type,null==e?A(t,n,r,o,i,l,s,u):B(e,t,o,i,l,s,u)},A=(e,t,n,o,s,u,a,p)=>{let d,h;const{type:f,props:m,shapeFlag:g,transition:D,patchFlag:b,dirs:y}=e;if(e.el&&void 0!==v&&-1===b)d=e.el=v(e.el);else{if(d=e.el=l(e.type,u,m&&m.is,m),8&g?c(d,e.children):16&g&&_(e.children,d,null,o,s,u&&"foreignObject"!==f,a,p),y&&vn(e,null,o,"created"),m){for(const t in m)"value"===t||$(t)||i(d,t,null,m[t],u,e.children,o,s,ee);"value"in m&&i(d,"value",null,m.value),(h=m.onVnodeBeforeMount)&&xn(h,o,e)}F(d,e,e.scopeId,a,o)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:o,enumerable:!1})),y&&vn(e,null,o,"beforeMount");const w=(!s||s&&!s.pendingBranch)&&D&&!D.persisted;w&&D.beforeEnter(d),r(d,t,n),((h=m&&m.onVnodeMounted)||w||y)&&wn((()=>{h&&xn(h,o,e),w&&D.enter(d),y&&vn(e,null,o,"mounted")}),s)},F=(e,t,n,r,o)=>{if(n&&h(e,n),r)for(let t=0;t<r.length;t++)h(e,r[t]);if(o&&t===o.subTree){const t=o.vnode;F(e,t,t.scopeId,t.slotScopeIds,o.parent)}},_=(e,t,n,r,o,i,l,s,u=0)=>{for(let a=u;a<e.length;a++){const u=e[a]=s?Gn(e[a]):Xn(e[a]);b(null,u,t,n,r,o,i,l,s)}},B=(e,t,n,r,o,l,s)=>{const u=t.el=e.el;let{patchFlag:a,dynamicChildren:p,dirs:d}=t;a|=16&e.patchFlag;const h=e.props||f,m=t.props||f;let g;(g=m.onVnodeBeforeUpdate)&&xn(g,n,t,e),d&&vn(t,e,n,"beforeUpdate");const v=o&&"foreignObject"!==t.type;if(p?S(e.dynamicChildren,p,u,n,r,v,l):s||P(e,t,u,null,n,r,v,l,!1),a>0){if(16&a)z(u,t,h,m,n,r,o);else if(2&a&&h.class!==m.class&&i(u,"class",null,m.class,o),4&a&&i(u,"style",h.style,m.style,o),8&a){const l=t.dynamicProps;for(let t=0;t<l.length;t++){const s=l[t],a=h[s],c=m[s];c===a&&"value"!==s||i(u,s,a,c,o,e.children,n,r,ee)}}1&a&&e.children!==t.children&&c(u,t.children)}else s||null!=p||z(u,t,h,m,n,r,o);((g=m.onVnodeUpdated)||d)&&wn((()=>{g&&xn(g,n,t,e),d&&vn(t,e,n,"updated")}),r)},S=(e,t,n,r,o,i,l)=>{for(let s=0;s<t.length;s++){const u=e[s],a=t[s],c=u.el&&(u.type===Sn||!Vn(u,a)||70&u.shapeFlag)?p(u.el):n;b(u,a,c,null,r,o,i,l,!0)}},z=(e,t,n,r,o,l,s)=>{if(n!==r){for(const u in r){if($(u))continue;const a=r[u],c=n[u];a!==c&&"value"!==u&&i(e,u,c,a,s,t.children,o,l,ee)}if(n!==f)for(const u in n)$(u)||u in r||i(e,u,n[u],null,s,t.children,o,l,ee);"value"in r&&i(e,"value",n.value,r.value)}},R=(e,t,n,o,i,l,u,a,c)=>{const p=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(r(p,n,o),r(d,n,o),_(t.children,n,d,i,l,u,a,c)):h>0&&64&h&&f&&e.dynamicChildren?(S(e.dynamicChildren,f,n,i,l,u,a),(null!=t.key||i&&t===i.subTree)&&En(e,t,!0)):P(e,t,n,d,i,l,u,a,c)},T=(e,t,n,r,o,i,l,s,u)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,l,u):I(t,n,r,o,i,l,u):O(e,t,u)},I=(e,t,n,r,o,i,l)=>{const s=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||ir,i={uid:lr++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,update:null,scope:new G(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ln(r,o),emitsOptions:Lt(r,o),emit:null,emitted:null,propsDefaults:f,inheritAttrs:r.inheritAttrs,ctx:f,data:f,props:f,attrs:f,slots:f,refs:f,setupState:f,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=zt.bind(null,i),e.ce&&e.ce(i),i}(e,r,o);if(Xt(e)&&(s.ctx.renderer=re),function(e,t=!1){dr=t;const{props:n,children:r}=e.vnode,o=pr(e);(function(e,t,n,r=!1){const o={},i={};Z(i,qn,1),e.propsDefaults=Object.create(null),rn(e,t,o,i);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:lt(o,!1,Le,Xe,tt):e.type.props?e.props=o:e.props=i,e.attrs=i})(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=ct(t),Z(t,"_",n)):fn(t,e.slots={})}else e.slots={},t&&mn(e,t);Z(e.slots,qn,1)})(e,r);const i=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=pt(new Proxy(e.ctx,or));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(ge(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;ar(e),fe();const o=gr(r,e,0,[e.props,n]);if(me(),cr(),L(o)){if(o.then(cr,cr),t)return o.then((n=>{hr(e,n,t)})).catch((t=>{Dr(t,e,0)}));e.asyncDep=o}else hr(e,o,t)}else fr(e,t)}(e,t):void 0;dr=!1}(s),s.asyncDep){if(o&&o.registerDep(s,j),!e.el){const e=s.subTree=Jn(Ln);C(null,e,t,n)}}else j(s,e,t,n,o,i,l)},O=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:l,children:s,patchFlag:u}=t,a=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&u>=0))return!(!o&&!s||s&&s.$stable)||r!==l&&(r?!l||Ut(r,l,a):!!l);if(1024&u)return!0;if(16&u)return r?Ut(r,l,a):!!l;if(8&u){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(l[n]!==r[n]&&!Rt(a,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void M(r,t,n);r.next=t,function(e){const t=wr.indexOf(e);t>Cr&&wr.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},j=(e,t,n,r,o,i,l)=>{const s=new ce((()=>{if(e.isMounted){let t,{next:n,bu:r,u,parent:a,vnode:c}=e,d=n;s.allowRecurse=!1,n?(n.el=c.el,M(e,n,l)):n=c,r&&H(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&xn(t,a,n,c),s.allowRecurse=!0;const h=$t(e),f=e.subTree;e.subTree=h,b(f,h,p(f.el),te(f),e,o,i),n.el=h.el,null===d&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,h.el),u&&wn(u,o),(t=n.props&&n.props.onVnodeUpdated)&&wn((()=>xn(t,a,n,c)),o),__VUE_PROD_DEVTOOLS__&&_t(e)}else{let l;const{el:u,props:a}=t,{bm:c,m:p,parent:d}=e,h=Yt(t);if(s.allowRecurse=!1,c&&H(c),!h&&(l=a&&a.onVnodeBeforeMount)&&xn(l,d,t),s.allowRecurse=!0,u&&ie){const n=()=>{e.subTree=$t(e),ie(u,e.subTree,e,o,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=$t(e);b(null,l,n,r,e,o,i),t.el=l.el}if(p&&wn(p,o),!h&&(l=a&&a.onVnodeMounted)){const e=t;wn((()=>xn(l,d,e)),o)}256&t.shapeFlag&&e.a&&wn(e.a,o),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Ft(e),t=n=r=null}}),(()=>Rr(e.update)),e.scope),u=e.update=s.run.bind(s);u.id=e.uid,s.allowRecurse=u.allowRecurse=!0,u()},M=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:l}}=e,s=ct(o),[u]=e.propsOptions;let a=!1;if(!(r||l>0)||16&l){let r;rn(e,t,o,i)&&(a=!0);for(const i in s)t&&(k(t,i)||(r=N(i))!==i&&k(t,r))||(u?!n||void 0===n[i]&&void 0===n[r]||(o[i]=on(u,s,i,void 0,e,!0)):delete o[i]);if(i!==s)for(const e in i)t&&k(t,e)||(delete i[e],a=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let l=n[r];const c=t[l];if(u)if(k(i,l))c!==i[l]&&(i[l]=c,a=!0);else{const t=U(l);o[t]=on(u,s,t,c,e,!1)}else c!==i[l]&&(i[l]=c,a=!0)}}a&&be(e,"set","$attrs")}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,l=f;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(w(o,t),n||1!==e||delete o._):(i=!t.$stable,fn(t,o)),l=t}else t&&(mn(e,t),l={default:1});if(i)for(const e in o)pn(e)||e in l||delete o[e]})(e,t.children,n),fe(),Or(void 0,e.update),me()},P=(e,t,n,r,o,i,l,s,u=!1)=>{const a=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void q(a,d,n,r,o,i,l,s,u);if(256&h)return void V(a,d,n,r,o,i,l,s,u)}8&f?(16&p&&ee(a,o,i),d!==a&&c(n,d)):16&p?16&f?q(a,d,n,r,o,i,l,s,u):ee(a,o,i,!0):(8&p&&c(n,""),16&f&&_(d,n,r,o,i,l,s,u))},V=(e,t,n,r,o,i,l,s,u)=>{t=t||m;const a=(e=e||m).length,c=t.length,p=Math.min(a,c);let d;for(d=0;d<p;d++){const r=t[d]=u?Gn(t[d]):Xn(t[d]);b(e[d],r,n,null,o,i,l,s,u)}a>c?ee(e,o,i,!0,!1,p):_(t,n,r,o,i,l,s,u,p)},q=(e,t,n,r,o,i,l,s,u)=>{let a=0;const c=t.length;let p=e.length-1,d=c-1;for(;a<=p&&a<=d;){const r=e[a],c=t[a]=u?Gn(t[a]):Xn(t[a]);if(!Vn(r,c))break;b(r,c,n,null,o,i,l,s,u),a++}for(;a<=p&&a<=d;){const r=e[p],a=t[d]=u?Gn(t[d]):Xn(t[d]);if(!Vn(r,a))break;b(r,a,n,null,o,i,l,s,u),p--,d--}if(a>p){if(a<=d){const e=d+1,p=e<c?t[e].el:r;for(;a<=d;)b(null,t[a]=u?Gn(t[a]):Xn(t[a]),n,p,o,i,l,s,u),a++}}else if(a>d)for(;a<=p;)J(e[a],o,i,!0),a++;else{const h=a,f=a,g=new Map;for(a=f;a<=d;a++){const e=t[a]=u?Gn(t[a]):Xn(t[a]);null!=e.key&&g.set(e.key,a)}let v,D=0;const y=d-f+1;let w=!1,C=0;const k=new Array(y);for(a=0;a<y;a++)k[a]=0;for(a=h;a<=p;a++){const r=e[a];if(D>=y){J(r,o,i,!0);continue}let c;if(null!=r.key)c=g.get(r.key);else for(v=f;v<=d;v++)if(0===k[v-f]&&Vn(r,t[v])){c=v;break}void 0===c?J(r,o,i,!0):(k[c-f]=a+1,c>=C?C=c:w=!0,b(r,t[c],n,null,o,i,l,s,u),D++)}const x=w?function(e){const t=e.slice(),n=[0];let r,o,i,l,s;const u=e.length;for(r=0;r<u;r++){const u=e[r];if(0!==u){if(o=n[n.length-1],e[o]<u){t[r]=o,n.push(r);continue}for(i=0,l=n.length-1;i<l;)s=i+l>>1,e[n[s]]<u?i=s+1:l=s;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}(k):m;for(v=x.length-1,a=y-1;a>=0;a--){const e=f+a,p=t[e],d=e+1<c?t[e+1].el:r;0===k[a]?b(null,p,n,d,o,i,l,s,u):w&&(v<0||a!==x[v]?W(p,n,d,2):v--)}}},W=(e,t,n,o,i=null)=>{const{el:l,type:s,transition:u,children:a,shapeFlag:c}=e;if(6&c)W(e.component.subTree,t,n,o);else if(128&c)e.suspense.move(t,n,o);else if(64&c)s.move(e,t,n,re);else if(s!==Sn)if(s!==Rn)if(2!==o&&1&c&&u)if(0===o)u.beforeEnter(l),r(l,t,n),wn((()=>u.enter(l)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=u,s=()=>r(l,t,n),a=()=>{e(l,(()=>{s(),i&&i()}))};o?o(l,s,a):a()}else r(l,t,n);else(({el:e,anchor:t},n,o)=>{let i;for(;e&&e!==t;)i=d(e),r(e,n,o),e=i;r(t,n,o)})(e,t,n);else{r(l,t,n);for(let e=0;e<a.length;e++)W(a[e],t,n,o);r(e.anchor,t,n)}},J=(e,t,n,r=!1,o=!1)=>{const{type:i,props:l,ref:s,children:u,dynamicChildren:a,shapeFlag:c,patchFlag:p,dirs:d}=e;if(null!=s&&kn(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const h=1&c&&d,f=!Yt(e);let m;if(f&&(m=l&&l.onVnodeBeforeUnmount)&&xn(m,t,e),6&c)X(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);h&&vn(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,o,re,r):a&&(i!==Sn||p>0&&64&p)?ee(a,t,n,!1,!0):(i===Sn&&384&p||!o&&16&c)&&ee(u,t,n),r&&K(e)}(f&&(m=l&&l.onVnodeUnmounted)||h)&&wn((()=>{m&&xn(m,t,e),h&&vn(e,null,t,"unmounted")}),n)},K=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Sn)return void Y(n,r);if(t===Rn)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),o(e),e=n;o(t)})(e);const l=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,l);r?r(e.el,l,o):o()}else l()},Y=(e,t)=>{let n;for(;e!==t;)n=d(e),o(e),e=n;o(t)},X=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:l,um:s}=e;r&&H(r),o.stop(),i&&(i.active=!1,J(l,e,t,n)),s&&wn(s,t),wn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Bt(e)},ee=(e,t,n,r=!1,o=!1,i=0)=>{for(let l=i;l<e.length;l++)J(e[l],t,n,r,o)},te=e=>6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),ne=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):b(t._vnode||null,e,t,null,null,null,n),$r(),t._vnode=e},re={p:b,um:J,m:W,r:K,mt:I,mc:_,pc:P,pbc:S,n:te,o:e};let oe,ie;return t&&([oe,ie]=t(re)),{render:ne,hydrate:oe,createApp:yn(ne,oe)}}function kn(e,t,n,r,o=!1){if(x(e))return void e.forEach(((e,i)=>kn(e,t&&(x(t)?t[i]:t),n,r,o)));if(Yt(r)&&!o)return;const i=4&r.shapeFlag?mr(r.component)||r.component.proxy:r.el,l=o?null:i,{i:s,r:u}=e,a=t&&t.r,c=s.refs===f?s.refs={}:s.refs,p=s.setupState;if(null!=a&&a!==u&&(B(a)?(c[a]=null,k(p,a)&&(p[a]=null)):gt(a)&&(a.value=null)),B(u)){const e=()=>{c[u]=l,k(p,u)&&(p[u]=l)};l?(e.id=-1,wn(e,n)):e()}else if(gt(u)){const e=()=>{u.value=l};l?(e.id=-1,wn(e,n)):e()}else _(u)&&gr(u,s,12,[l,c])}function xn(e,t,n,r=null){vr(e,t,7,[n,r])}function En(e,t,n=!1){const r=e.children,o=t.children;if(x(r)&&x(o))for(let e=0;e<r.length;e++){const t=r[e];let i=o[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=o[e]=Gn(o[e]),i.el=t.el),n||En(t,i))}}const An="components";function Fn(e,t){return function(e,t,n=!0,r=!1){const o=Tt||sr;if(o){const n=o.type;if(e===An){const e=function(e){return _(e)&&e.displayName||e.name}(n);if(e&&(e===t||e===U(t)||e===V(U(t))))return n}const i=Bn(o[e]||n[e],t)||Bn(o.appContext[e],t);return!i&&r?n:i}}(An,e,!0,t)||e}const _n=Symbol();function Bn(e,t){return e&&(e[t]||e[U(t)]||e[V(U(t))])}const Sn=Symbol(void 0),zn=Symbol(void 0),Ln=Symbol(void 0),Rn=Symbol(void 0),Tn=[];let In=null;function On(e=!1){Tn.push(In=e?null:[])}let $n=1;function jn(e){$n+=e}function Mn(e){return e.dynamicChildren=$n>0?In||m:null,Tn.pop(),In=Tn[Tn.length-1]||null,$n>0&&In&&In.push(e),e}function Un(e,t,n,r,o,i){return Mn(Zn(e,t,n,r,o,i,!0))}function Pn(e,t,n,r,o){return Mn(Jn(e,t,n,r,o,!0))}function Nn(e){return!!e&&!0===e.__v_isVNode}function Vn(e,t){return e.type===t.type&&e.key===t.key}const qn="__vInternal",Wn=({key:e})=>null!=e?e:null,Hn=({ref:e})=>null!=e?B(e)||gt(e)||_(e)?{i:Tt,r:e}:e:null;function Zn(e,t=null,n=null,r=0,o=null,i=(e===Sn?0:1),l=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wn(t),ref:t&&Hn(t),scopeId:It,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return s?(er(u,n),128&i&&e.normalize(u)):n&&(u.shapeFlag|=B(n)?8:16),$n>0&&!l&&In&&(u.patchFlag>0||6&i)&&32!==u.patchFlag&&In.push(u),u}const Jn=function(e,t=null,n=null,r=0,o=null,l=!1){if(e&&e!==_n||(e=Ln),Nn(e)){const r=Kn(e,t,!0);return n&&er(r,n),r}if(s=e,_(s)&&"__vccOpts"in s&&(e=e.__vccOpts),t){t=function(e){return e?at(e)||qn in e?w({},e):e:null}(t);let{class:e,style:n}=t;e&&!B(e)&&(t.class=a(e)),z(n)&&(at(n)&&!x(n)&&(n=w({},n)),t.style=i(n))}var s;return Zn(e,t,n,r,o,B(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:z(e)?4:_(e)?2:0,l,!0)};function Kn(e,t,n=!1){const{props:r,ref:o,patchFlag:l,children:s}=e,u=t?function(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=a([t.class,r.class]));else if("style"===e)t.style=i([t.style,r.style]);else if(b(e)){const n=t[e],o=r[e];n!==o&&(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Wn(u),ref:t&&t.ref?n&&o?x(o)?o.concat(Hn(t)):[o,Hn(t)]:Hn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Sn?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Kn(e.ssContent),ssFallback:e.ssFallback&&Kn(e.ssFallback),el:e.el,anchor:e.anchor}}function Qn(e=" ",t=0){return Jn(zn,null,e,t)}function Yn(e="",t=!1){return t?(On(),Pn(Ln,null,e)):Jn(Ln,null,e)}function Xn(e){return null==e||"boolean"==typeof e?Jn(Ln):x(e)?Jn(Sn,null,e.slice()):"object"==typeof e?Gn(e):Jn(zn,null,String(e))}function Gn(e){return null===e.el||e.memo?e:Kn(e)}function er(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(x(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),er(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||qn in t?3===r&&Tt&&(1===Tt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Tt}}else _(t)?(t={default:t,_ctx:Tt},n=32):(t=String(t),64&r?(n=16,t=[Qn(t)]):n=8);e.children=t,e.shapeFlag|=n}function tr(e,t,n,r){let o;const i=n&&n[r];if(x(e)||B(e)){o=new Array(e.length);for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,i&&i[n])}else if(z(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,l=n.length;r<l;r++){const l=n[r];o[r]=t(e[l],l,r,i&&i[r])}}else o=[];return n&&(n[r]=o),o}const nr=e=>e?pr(e)?mr(e)||e.proxy:nr(e.parent):null,rr=w(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nr(e.parent),$root:e=>nr(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>()=>Rr(e.update),$nextTick:e=>Lr.bind(e.proxy),$watch:e=>g}),or={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:l,type:s,appContext:u}=e;let a;if("$"!==t[0]){const s=l[t];if(void 0!==s)switch(s){case 0:return r[t];case 1:return o[t];case 3:return n[t];case 2:return i[t]}else{if(r!==f&&k(r,t))return l[t]=0,r[t];if(o!==f&&k(o,t))return l[t]=1,o[t];if((a=e.propsOptions[0])&&k(a,t))return l[t]=2,i[t];if(n!==f&&k(n,t))return l[t]=3,n[t];l[t]=4}}const c=rr[t];let p,d;return c?("$attrs"===t&&ge(e,0,t),c(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==f&&k(n,t)?(l[t]=3,n[t]):(d=u.config.globalProperties,k(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;if(o!==f&&k(o,t))o[t]=n;else if(r!==f&&k(r,t))r[t]=n;else if(k(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},l){let s;return void 0!==n[l]||e!==f&&k(e,l)||t!==f&&k(t,l)||(s=i[0])&&k(s,l)||k(r,l)||k(rr,l)||k(o.config.globalProperties,l)}},ir=Dn();let lr=0;let sr=null;const ur=()=>sr||Tt,ar=e=>{sr=e,e.scope.on()},cr=()=>{sr&&sr.scope.off(),sr=null};function pr(e){return 4&e.vnode.shapeFlag}let dr=!1;function hr(e,t,n){_(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=yt(t)),fr(e,n)}function fr(e,t,n){const r=e.type;e.render||(e.render=r.render||g)}function mr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(yt(pt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in rr?rr[n](e):void 0}))}function gr(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){Dr(e,t,n)}return o}function vr(e,t,n,r){if(_(e)){const o=gr(e,t,n,r);return o&&L(o)&&o.catch((e=>{Dr(e,t,n)})),o}const o=[];for(let i=0;i<e.length;i++)o.push(vr(e[i],t,n,r));return o}function Dr(e,t,n,r=!0){if(t&&t.vnode,t){let r=t.parent;const o=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const l=t.appContext.config.errorHandler;if(l)return void gr(l,null,10,[e,o,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}let br=!1,yr=!1;const wr=[];let Cr=0;const kr=[];let xr=null,Er=0;const Ar=[];let Fr=null,_r=0;const Br=Promise.resolve();let Sr=null,zr=null;function Lr(e){const t=Sr||Br;return e?t.then(this?e.bind(this):e):t}function Rr(e){wr.length&&wr.includes(e,br&&e.allowRecurse?Cr+1:Cr)||e===zr||(null==e.id?wr.push(e):wr.splice(function(e){let t=Cr+1,n=wr.length;for(;t<n;){const r=t+n>>>1;jr(wr[r])<e?t=r+1:n=r}return t}(e.id),0,e),Tr())}function Tr(){br||yr||(yr=!0,Sr=Br.then(Mr))}function Ir(e,t,n,r){x(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),Tr()}function Or(e,t=null){if(kr.length){for(zr=t,xr=[...new Set(kr)],kr.length=0,Er=0;Er<xr.length;Er++)xr[Er]();xr=null,Er=0,zr=null,Or(e,t)}}function $r(e){if(Ar.length){const e=[...new Set(Ar)];if(Ar.length=0,Fr)return void Fr.push(...e);for(Fr=e,Fr.sort(((e,t)=>jr(e)-jr(t))),_r=0;_r<Fr.length;_r++)Fr[_r]();Fr=null,_r=0}}const jr=e=>null==e.id?1/0:e.id;function Mr(e){yr=!1,br=!0,Or(e),wr.sort(((e,t)=>jr(e)-jr(t)));try{for(Cr=0;Cr<wr.length;Cr++){const e=wr[Cr];e&&!1!==e.active&&gr(e,null,14)}}finally{Cr=0,wr.length=0,$r(),br=!1,Sr=null,(wr.length||kr.length||Ar.length)&&Mr(e)}}const Ur={};function Pr(e,t,n){return function(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=f){const s=sr;let u,a,c=!1,p=!1;if(gt(e)?(u=()=>e.value,c=!!e._shallow):st(e)?(u=()=>e,r=!0):x(e)?(p=!0,c=e.some(st),u=()=>e.map((e=>gt(e)?e.value:st(e)?Nr(e):_(e)?gr(e,s,2):void 0))):u=_(e)?t?()=>gr(e,s,2):()=>{if(!s||!s.isUnmounted)return a&&a(),vr(e,s,3,[d])}:g,t&&r){const e=u;u=()=>Nr(e())}let d=e=>{a=D.onStop=()=>{gr(e,s,4)}};if(dr)return d=g,t?n&&vr(t,s,3,[u(),p?[]:void 0,d]):u(),g;let h=p?[]:Ur;const m=()=>{if(D.active)if(t){const e=D.run();(r||c||(p?e.some(((e,t)=>W(e,h[t]))):W(e,h)))&&(a&&a(),vr(t,s,3,[e,h===Ur?void 0:h,d]),h=e)}else D.run()};let v;m.allowRecurse=!!t,v="sync"===o?m:"post"===o?()=>wn(m,s&&s.suspense):()=>{!s||s.isMounted?function(e){Ir(e,xr,kr,Er)}(m):m()};const D=new ce(u,v);return t?n?m():h=D.run():"post"===o?wn(D.run.bind(D),s&&s.suspense):D.run(),()=>{D.stop(),s&&s.scope&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(s.scope.effects,D)}}(e,t,n)}function Nr(e,t){if(!z(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),gt(e))Nr(e.value,t);else if(x(e))for(let n=0;n<e.length;n++)Nr(e[n],t);else if(A(e)||E(e))e.forEach((e=>{Nr(e,t)}));else if(I(e))for(const n in e)Nr(e[n],t);return e}function Vr(e,t,n){const r=arguments.length;return 2===r?z(t)&&!x(t)?Nn(t)?Jn(e,null,[t]):Jn(e,t):Jn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Nn(n)&&(n=[n]),Jn(e,t,n))}Symbol("");const qr="3.2.20",Wr="undefined"!=typeof document?document:null,Hr=new Map,Zr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?Wr.createElementNS("http://www.w3.org/2000/svg",e):Wr.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Wr.createTextNode(e),createComment:e=>Wr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r){const o=n?n.previousSibling:t.lastChild;let i=Hr.get(e);if(!i){const t=Wr.createElement("template");if(t.innerHTML=r?`<svg>${e}</svg>`:e,i=t.content,r){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}Hr.set(e,i)}return t.insertBefore(i.cloneNode(!0),n),[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Jr=/\s*!important$/;function Kr(e,t,n){if(x(n))n.forEach((n=>Kr(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Yr[t];if(n)return n;let r=U(t);if("filter"!==r&&r in e)return Yr[t]=r;r=V(r);for(let n=0;n<Qr.length;n++){const o=Qr[n]+r;if(o in e)return Yr[t]=o}return t}(e,t);Jr.test(n)?e.setProperty(N(r),n.replace(Jr,""),"important"):e[r]=n}}const Qr=["Webkit","Moz","ms"],Yr={},Xr="http://www.w3.org/1999/xlink";let Gr=Date.now,eo=!1;if("undefined"!=typeof window){Gr()>document.createEvent("Event").timeStamp&&(Gr=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);eo=!!(e&&Number(e[1])<=53)}let to=0;const no=Promise.resolve(),ro=()=>{to=0};function oo(e,t,n,r){e.addEventListener(t,n,r)}const io=/(?:Once|Passive|Capture)$/,lo=/^on[a-z]/;"undefined"!=typeof HTMLElement&&HTMLElement;const so="transition",uo="animation",ao=(e,{slots:t})=>Vr(Vt,function(e){const t={};for(const n in e)n in co||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:a=l,appearToClass:c=s,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(z(e))return[fo(e.enter),fo(e.leave)];{const t=fo(e);return[t,t]}}(o),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:D,onEnterCancelled:b,onLeave:y,onLeaveCancelled:C,onBeforeAppear:k=v,onAppear:x=D,onAppearCancelled:E=b}=t,A=(e,t,n)=>{go(e,t?c:s),go(e,t?a:l),n&&n()},F=(e,t)=>{go(e,h),go(e,d),t&&t()},_=e=>(t,n)=>{const o=e?x:D,l=()=>A(t,e,n);po(o,[t,l]),vo((()=>{go(t,e?u:i),mo(t,e?c:s),ho(o)||bo(t,r,m,l)}))};return w(t,{onBeforeEnter(e){po(v,[e]),mo(e,i),mo(e,l)},onBeforeAppear(e){po(k,[e]),mo(e,u),mo(e,a)},onEnter:_(!1),onAppear:_(!0),onLeave(e,t){const n=()=>F(e,t);mo(e,p),document.body.offsetHeight,mo(e,d),vo((()=>{go(e,p),mo(e,h),ho(y)||bo(e,r,g,n)})),po(y,[e,n])},onEnterCancelled(e){A(e,!1),po(b,[e])},onAppearCancelled(e){A(e,!0),po(E,[e])},onLeaveCancelled(e){F(e),po(C,[e])}})}(e),t);ao.displayName="Transition";const co={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},po=(ao.props=w({},Vt.props,co),(e,t=[])=>{x(e)?e.forEach((e=>e(...t))):e&&e(...t)}),ho=e=>!!e&&(x(e)?e.some((e=>e.length>1)):e.length>1);function fo(e){return J(e)}function mo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function go(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function vo(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Do=0;function bo(e,t,n,r){const o=e._endId=++Do,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:l,timeout:s,propCount:u}=function(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r("transitionDelay"),i=r("transitionDuration"),l=yo(o,i),s=r("animationDelay"),u=r("animationDuration"),a=yo(s,u);let c=null,p=0,d=0;return t===so?l>0&&(c=so,p=l,d=i.length):t===uo?a>0&&(c=uo,p=a,d=u.length):(p=Math.max(l,a),c=p>0?l>a?so:uo:null,d=c?c===so?i.length:u.length:0),{type:c,timeout:p,propCount:d,hasTransform:c===so&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}(e,t);if(!l)return r();const a=l+"end";let c=0;const p=()=>{e.removeEventListener(a,d),i()},d=t=>{t.target===e&&++c>=u&&p()};setTimeout((()=>{c<u&&p()}),s+1),e.addEventListener(a,d)}function yo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>wo(t)+wo(e[n]))))}function wo(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const Co=e=>{const t=e.props["onUpdate:modelValue"];return x(t)?e=>H(t,e):t};function ko(e){e.target.composing=!0}function xo(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const Eo={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Co(o);const i=r||o.props&&"number"===o.props.type;oo(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():i&&(r=J(r)),e._assign(r)})),n&&oo(e,"change",(()=>{e.value=e.value.trim()})),t||(oo(e,"compositionstart",ko),oo(e,"compositionend",xo),oo(e,"change",xo))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=Co(i),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&J(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},Ao={deep:!0,created(e,t,n){e._assign=Co(n),oo(e,"change",(()=>{const t=e._modelValue,n=zo(e),r=e.checked,o=e._assign;if(x(t)){const e=p(t,n),i=-1!==e;if(r&&!i)o(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),o(n)}}else if(A(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(Lo(e,r))}))},mounted:Fo,beforeUpdate(e,t,n){e._assign=Co(n),Fo(e,t,n)}};function Fo(e,{value:t,oldValue:n},r){e._modelValue=t,x(t)?e.checked=p(t,r.props.value)>-1:A(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=c(t,Lo(e,!0)))}const _o={created(e,{value:t},n){e.checked=c(t,n.props.value),e._assign=Co(n),oo(e,"change",(()=>{e._assign(zo(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Co(r),t!==n&&(e.checked=c(t,r.props.value))}},Bo={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=A(t);oo(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?J(zo(e)):zo(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=Co(r)},mounted(e,{value:t}){So(e,t)},beforeUpdate(e,t,n){e._assign=Co(n)},updated(e,{value:t}){So(e,t)}};function So(e,t){const n=e.multiple;if(!n||x(t)||A(t)){for(let r=0,o=e.options.length;r<o;r++){const o=e.options[r],i=zo(o);if(n)x(t)?o.selected=p(t,i)>-1:o.selected=t.has(i);else if(c(zo(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function zo(e){return"_value"in e?e._value:e.value}function Lo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ro={created(e,t,n){To(e,t,n,null,"created")},mounted(e,t,n){To(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){To(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){To(e,t,n,r,"updated")}};function To(e,t,n,r,o){let i;switch(e.tagName){case"SELECT":i=Bo;break;case"TEXTAREA":i=Eo;break;default:switch(n.props&&n.props.type){case"checkbox":i=Ao;break;case"radio":i=_o;break;default:i=Eo}}const l=i[o];l&&l(e,t,n,r)}const Io=w({patchProp:(e,n,r,i,l=!1,s,u,a,c)=>{"class"===n?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,l):"style"===n?function(e,t,n){const r=e.style,o=r.display;if(n)if(B(n))t!==n&&(r.cssText=n);else{for(const e in n)Kr(r,e,n[e]);if(t&&!B(t))for(const e in t)null==n[e]&&Kr(r,e,"")}else e.removeAttribute("style");"_vod"in e&&(r.display=o)}(e,r,i):b(n)?y(n)||function(e,t,n,r,o=null){const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[n,s]=function(e){let t;if(io.test(e)){let n;for(t={};n=e.match(io);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[N(e.slice(2)),t]}(t);if(r){const l=i[t]=function(e,t){const n=e=>{const r=e.timeStamp||Gr();(eo||r>=n.attached-1)&&vr(function(e,t){if(x(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=to||(no.then(ro),to=Gr()),n}(r,o);oo(e,n,l,s)}else l&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,l,s),i[t]=void 0)}}(e,n,0,i,u):("."===n[0]?(n=n.slice(1),1):"^"===n[0]?(n=n.slice(1),0):function(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&lo.test(t)&&_(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!lo.test(t)||!B(n))&&t in e))))}(e,n,i,l))?function(e,t,n,r,i,l,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,i,l),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const r=null==n?"":n;return e.value!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const r=typeof e[t];if("boolean"===r)return void(e[t]=o(n));if(null==n&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,n,i,s,u,a,c):("true-value"===n?e._trueValue=i:"false-value"===n&&(e._falseValue=i),function(e,n,r,i,l){if(i&&n.startsWith("xlink:"))null==r?e.removeAttributeNS(Xr,n.slice(6,n.length)):e.setAttributeNS(Xr,n,r);else{const i=t(n);null==r||i&&!o(r)?e.removeAttribute(n):e.setAttribute(n,i?"":r)}}(e,n,i,l))}},Zr);let Oo;const $o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("object"==typeof e&&e.errno)throw new TypeError("Fetch ".concat(t," failed with ").concat(e.errno,": ").concat(e.errmsg));return e},jo=e=>{try{e=decodeURI(e)}catch(e){}return e},Mo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},Uo=e=>/^(https?:)?\/\//.test(e),Po=["mp","identicon","monsterid","wavatar","robohash","retro",""],No=["nick","mail","link"],Vo=e=>e&&Po.includes(e)?e:"mp",qo=e=>e.filter((e=>No.includes(e))),Wo="zh-CN",Ho=e=>{const t=new FormData;return t.append("image",e),fetch("https://pic.alexhchu.com/api/upload",{method:"POST",body:t}).then((e=>e.json())).then((e=>e.data.url))},Zo=e=>!0===e?'<p class="vtex">Tex is not available in preview</p>':'<span class="vtex">Tex is not available in preview</span>',Jo=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous"],Ko=e=>Object.fromEntries(e.map(((e,t)=>[Jo[t],e]))),Qo=Ko(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous"]),Yo=Ko(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),Xo=Ko(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名"]),Go=Ko(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名"]),ei=Ko(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo"]),ti={zh:Xo,"zh-cn":Xo,"zh-CN":Xo,"zh-tw":Go,"zh-TW":Go,en:Qo,"en-US":Qo,jp:Yo,"jp-jp":Yo,"jp-JP":Yo,"pt-br":ei,"pt-BR":ei},ni=e=>{let t={};const n=localStorage.getItem(e);if(n)try{t=JSON.parse(n)}catch(e){}return{get:e=>t[e]||null,set(n,r){try{t[n]=JSON.parse(JSON.stringify(r)),localStorage.setItem(e,JSON.stringify(t))}catch(e){}},update(n){t=JSON.parse(JSON.stringify(n)),localStorage.setItem(e,JSON.stringify(t))}}};let ri;const oi=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"".concat(t,"/").concat(n).concat(e).concat(r?".".concat(r):"")};var ii=n(948),li=n.n(ii);const si=e=>{const t=Mo(e);return Uo(t)?t:"https://".concat(t)},ui=(e,t)=>"function"==typeof e?e:!1!==e&&t,ai=e=>{let{el:t="#waline",serverURL:n,placeholder:r,langMode:o,emojiCDN:i,emojiMaps:l,requiredFields:s=[],anonymous:u,avatarCDN:a,avatar:c,avatarForce:p,previewMath:d,path:h=location.pathname,lang:f=Wo,locale:m=o,emoji:g=["https://cdn.jsdelivr.net/gh/walinejs/emojis@1.0.0/weibo"],meta:v=["nick","mail","link"],requiredMeta:D=s,pageSize:b=10,wordLimit:y,uploadImage:w,highlight:C,tex:k=d,copyright:x=!0,login:E=(!0===u?"disable":!1===u?"force":"enable"),...A}=e;const F=ti[f]||ti[Wo];r&&(F.placeholder=r);const _=i&&"object"==typeof l?Promise.resolve(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={};for(const r in e)n[r]=/(?:https?:)?\/\//.test(e[r])?e[r]:"".concat(t).concat(e[r]);return{tabs:[{name:"Emoji",icon:Object.values(n).pop()||"",items:Object.keys(n)}],map:n}}(l,i)):(B=g,Promise.all(B.map((e=>"string"==typeof e?(e=>{ri||(ri=ni("WALINE_EMOJI"));const t=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(t){const t=ri.get(e);if(t)return Promise.resolve(t)}return fetch("".concat(e,"/info.json")).then((e=>e.json())).then((n=>{const r={folder:e,...n};return t&&ri.set(e,r),r}))})(Mo(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:o,prefix:i,type:l,items:s}=e;t.tabs.push({name:n,icon:oi(o,r,i,l),items:s.map((e=>{const n="".concat(i||"").concat(e);return t.map[n]=oi(e,r,i,l),n}))})})),t})));var B;return{el:t,serverURL:si(n),path:jo(h),lang:f,locale:{...F,..."object"==typeof m?m:{}},emoji:_,wordLimit:Array.isArray(y)?y:!!y&&[0,y],meta:qo(v),requiredMeta:qo(D),pageSize:b,avatar:{cdn:a||"https://seccdn.libravatar.org/avatar/",param:"?d=".concat(Vo(c)).concat(p?"&q=".concat(Math.random().toString(32).substring(2)):""),default:!c&&!a,hide:"hide"===c},uploadImage:ui(w,Ho),highlight:ui(C,li()),tex:ui(k,Zo),copyright:x,login:E,...A}},ci=e=>e.type.includes("image"),pi=e=>{const t=Array.from(e).find(ci);return!!t&&t.getAsFile()},di="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-text-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",hi=(e,t)=>{if(!document.body.hasAttribute(t)){const n=document.createElement("style");n.appendChild(document.createTextNode(e)),document.head.appendChild(n),document.body.setAttribute(t,"")}},fi=()=>{hi('\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n/* See https://github.com/fred-wang/mathml.css */\n\n@namespace "http://www.w3.org/1998/Math/MathML";\nbody[waline-math] .v math{display:inline;font-size:0;font-family:Cambria Math,Latin Modern Math;text-indent:0}body[waline-math] .v math>*{font-size:14px}body[waline-math] .v math[display=block]{display:block;font-size:0;text-align:center}body[waline-math] .v math[display=block]>*{font-size:16px}body[waline-math] .v mfrac{display:inline-block !important;vertical-align:-50%;border-collapse:collapse;text-align:center}body[waline-math] .v mfrac>*{display:block !important}body[waline-math] .v mfrac>*+*{display:inline-block !important;vertical-align:top}body[waline-math] .v mfrac:not([linethickness="0"])>*:first-child{border-bottom:solid thin}body[waline-math] .v msub>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(2),body[waline-math] .v mmultiscripts>*:nth-child(2n+2),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+3){vertical-align:sub;font-size:.8em}body[waline-math] .v msup>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(3),body[waline-math] .v mmultiscripts>*:nth-child(2n+3),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+2){vertical-align:super;font-size:.8em}body[waline-math] .v mprescripts::after{content:";"}body[waline-math] .v munder,body[waline-math] .v mover,body[waline-math] .v munderover{display:inline-flex !important;flex-direction:column}body[waline-math] .v munder>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(2){order:1;font-size:.8em}body[waline-math] .v mover>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(3){order:-1;font-size:.8em}body[waline-math] .v munder{vertical-align:text-top}body[waline-math] .v mover{vertical-align:text-bottom}body[waline-math] .v munderover{vertical-align:middle}body[waline-math] .v msqrt,body[waline-math] .v mroot{display:inline-flex !important;vertical-align:middle;margin-left:.5em;border-top:solid thin}body[waline-math] .v msqrt::before,body[waline-math] .v mroot::before{content:"√";margin-left:-0.5em}body[waline-math] .v mroot>*:nth-child(2){order:-1;margin-right:.25em;margin-left:-0.75em;font-size:.8em}body[waline-math] .v menclose{display:inline-table !important;border-spacing:.4ex 0;border-collapse:separate}body[waline-math] .v menclose[notation*=top],body[waline-math] .v menclose[notation*=actuarial]{border-top:solid thin}body[waline-math] .v menclose[notation*=bottom],body[waline-math] .v menclose[notation*=madruwb]{border-bottom:solid thin}body[waline-math] .v menclose[notation*=right],body[waline-math] .v menclose[notation*=actuarial],body[waline-math] .v menclose[notation*=madruwb]{border-right:solid thin}body[waline-math] .v menclose[notation*=left]{border-left:solid thin}body[waline-math] .v menclose[notation*=box],body[waline-math] .v menclose[notation*=roundedbox],body[waline-math] .v menclose[notation*=circle]{border:solid thin}body[waline-math] .v menclose[notation*=roundedbox]{border-radius:15%}body[waline-math] .v menclose[notation*=circle]{border-radius:50%}body[waline-math] .v menclose[notation*=horizontalstrike]{text-decoration:line-through}body[waline-math] .v mtable{display:inline-table !important;vertical-align:middle;text-align:center}body[waline-math] .v mtr{display:table-row !important}body[waline-math] .v mtd{display:table-cell !important;padding:0 .5ex}body[waline-math] .v mspace{margin:.2em}body[waline-math] .v mi{font-style:italic}body[waline-math] .v mo{margin-right:.2em;margin-left:.2em}body[waline-math] .v ms::before,body[waline-math] .v ms::after{content:\'"\'}body[waline-math] .v ms[lquote]::before{content:attr(lquote)}body[waline-math] .v ms[lquote]::after{content:attr(rquote)}body[waline-math] .v [mathvariant=bold],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-weight:bold;font-style:normal}body[waline-math] .v [mathvariant=monospace]{font-style:normal;font-family:monospace}body[waline-math] .v [mathvariant=sans-serif],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:normal;font-family:sans-serif}body[waline-math] .v [mathvariant=italic],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:italic}body[waline-math] .v [mathvariant=normal]{font-style:normal}body[waline-math] .v mphantom{visibility:hidden}body[waline-math] .v merror{outline:solid thin red}body[waline-math] .v merror::before{content:"Error: "}body[waline-math] .v semantics>*:first-child{display:inline}body[waline-math] .v annotation,body[waline-math] .v annotation-xml{display:none !important;font-family:monospace}body[waline-math] .v math:active>semantics>*:first-child{display:none !important}body[waline-math] .v math:active annotation:first-of-type{display:inline !important}',"waline-math-style"),document.body.insertAdjacentHTML("afterbegin","<div style='border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;'><math xmlns='http://www.w3.org/1998/Math/MathML'><mspace height='23px' width='77px'></mspace></math></div>");const e=document.body.firstChild,t=e.firstChild.firstChild.getBoundingClientRect();document.body.removeChild(e),(Math.abs(t.height-23)>1||Math.abs(t.width-77)>1)&&document.body.setAttribute("waline-math","")},mi=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null;var gi=n(917),vi=n.n(gi);const Di=/\$.*?\$/,bi=/^\$(.*?)\$/,yi=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,wi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/:(.+?):/g,((e,n)=>t[n]?'<img class="vemoji" src="'.concat(t[n],'" alt="').concat(n,'">'):e))},Ci=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},ki=(e,t)=>{if(e)try{"string"==typeof e&&(e=new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e));const n=e.getTime(),r=(new Date).getTime()-n,o=Math.floor(r/864e5);if(0===o){const e=r%864e5,n=Math.floor(e/36e5);if(0===n){const n=e%36e5,r=Math.floor(n/6e4);if(0===r){const e=n%6e4,r=Math.round(e/1e3);return"".concat(r," ").concat(t.seconds)}return"".concat(r," ").concat(t.minutes)}return"".concat(n," ").concat(t.hours)}return o<0?t.now:o<8?"".concat(o," ").concat(t.days):(e=>{const t=Ci(e.getDate(),2),n=Ci(e.getMonth()+1,2),r=Ci(e.getFullYear(),2);return"".concat(r,"-").concat(n,"-").concat(t)})(e)}catch(e){console.log(e)}return""},xi=(e,t)=>{t.forEach(((t,n)=>{(t.querySelector(".leancloud-visitors-count")||t).innerText=e[n].toString()}))};let Ei,Ai;const Fi=()=>(Ai||(Ei=ni("WALINE_USER_CACHE"),Ai=ot({nick:Ei.get("nick")||"",mail:Ei.get("mail")||"",link:Ei.get("link")||"",editor:""})),{inputs:Ai,store:Ei}),_i="WALINE_USER",Bi=vt({}),Si=()=>{if(!Bi.value)try{Bi.value=JSON.parse(localStorage.getItem(_i)||"")||JSON.parse(sessionStorage.getItem(_i)||"")||{}}catch(e){}return{userInfo:it(Bi),setUserInfo:e=>{Bi.value=e}}},zi={class:"v","data-class":"v"},Li={class:"vcount"},Ri=["textContent"],Ti={class:"vcards"},Ii={key:1,class:"vloading"},Oi=["textContent"],$i={key:2,class:"vloading"},ji=["textContent"],Mi={key:4,class:"vmore"},Ui=["textContent"],Pi={key:5,class:"vpower"},Ni=Qn(" Powered by "),Vi=Zn("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1),qi={class:"vcomment"},Wi={key:0,class:"vlogin-info"},Hi={class:"vavatar"},Zi=["title"],Ji=["src"],Ki=["textContent"],Qi={class:"vpanel"},Yi=["for","textContent"],Xi=["id","name","type","onUpdate:modelValue"],Gi=["placeholder"],el=["innerHTML"],tl={class:"vfooter"},nl={class:"vactions"},rl={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"vaction",target:"_blank",rel:"noreferrer"},ol=["title"],il=["title"],ll=["title"],sl={class:"vinfo"},ul={class:"vtext-number"},al={key:0},cl=Qn("  /  "),pl=["textContent"],dl=["textContent"],hl=["disabled"],fl={key:0,class:"vtab-wrapper"},ml=["title","onClick"],gl=["src","alt"],vl={key:0,class:"vtabs"},Dl=["onClick"],bl=["src","alt","title"],yl=["title"];var wl,Cl,kl="function"==typeof Map?new Map:(wl=[],Cl=[],{has:function(e){return wl.indexOf(e)>-1},get:function(e){return Cl[wl.indexOf(e)]},set:function(e,t){-1===wl.indexOf(e)&&(wl.push(e),Cl.push(t))},delete:function(e){var t=wl.indexOf(e);t>-1&&(wl.splice(t,1),Cl.splice(t,1))}}),xl=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(wl){xl=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function El(e){var t=kl.get(e);t&&t.destroy()}function Al(e){var t=kl.get(e);t&&t.update()}var Fl=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Fl=function(e){return e}).destroy=function(e){return e},Fl.update=function(e){return e}):((Fl=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!kl.has(e)){var t,n=null,r=null,o=null,i=function(){e.clientWidth!==r&&a()},l=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",a,!1),e.removeEventListener("keyup",a,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",a,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),kl.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",a,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",a,!1),e.addEventListener("autosize:update",a,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",kl.set(e,{destroy:l,update:a}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),a()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function u(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function a(){u();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(s("scroll"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),u(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),o!==r){o=r;var i=xl("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],El),e},Fl.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Al),e});const _l=Fl,Bl=e=>{let{size:t}=e;return Vr("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Vr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Vr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))},Sl=Qt({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return Vr("svg",{class:"vclose-icon",viewBox:"0 0 1024 1024",width:t,height:t},[Vr("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),Vr("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})])},EmojiIcon:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Vr("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),ImageIcon:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Vr("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),Vr("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),MarkdownIcon:()=>Vr("svg",{width:"16",height:"16",ariaHidden:"true"},Vr("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),PreviewIcon:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Vr("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),Vr("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),LoadingIcon:Bl},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,t){let{emit:n}=t;const r=Pt("config"),{inputs:o,store:i}=Fi(),{userInfo:l,setUserInfo:s}=Si(),u=vt({}),a=vt(null),c=vt(null),p=vt(null),d=vt(null),h=vt({tabs:[],map:{}}),f=vt(0),m=vt(!1),g=vt(!1),v=vt(""),D=vt(0),b=vt(0),y=vt(!1),w=vt(""),C=vt(!1),k=Ct((()=>r.value.locale)),x=Ct((()=>{var e;return Boolean(null===(e=l.value)||void 0===e?void 0:e.token)})),E=Ct((()=>!1!==r.value.uploadImage)),A=e=>{const t=a.value,n=t.selectionStart,r=t.selectionEnd||0,i=t.scrollTop;o.editor=t.value.substring(0,n)+e+t.value.substring(r,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=i},F=e=>{const t="![".concat(r.value.locale.uploading," ").concat(e.name,"]()");return A(t),Promise.resolve().then((()=>r.value.uploadImage(e))).then((n=>{o.editor=o.editor.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))}))},_=()=>{var t,s;const{serverURL:c,lang:p,login:d,wordLimit:f,requiredMeta:m}=r.value,g={comment:w.value,nick:o.nick,mail:o.mail,link:o.link,ua:navigator.userAgent,url:r.value.path};if(null!==(t=l.value)&&void 0!==t&&t.token)g.nick=l.value.display_name,g.mail=l.value.email,g.link=l.value.url;else{if("force"===d)return;var b,x,E;if((m.indexOf("nick")>-1||g.nick)&&g.nick.length<3)return null===(b=u.value.nick)||void 0===b||b.focus(),alert(k.value.nickError);if((m.indexOf("mail")>-1||g.mail)&&!/^(\w)+([._-]\w+)*@(\w)+((\.\w{2,}){1,3})$/.exec(g.mail))return null===(x=u.value.mail)||void 0===x||x.focus(),alert(k.value.mailError);if(!g.comment)return void(null===(E=a.value)||void 0===E||E.focus());g.nick||(g.nick=k.value.anonymous)}if(!y.value)return alert(k.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",D.value.toString()));g.comment=wi(g.comment,h.value.map),e.replyId&&e.rootId&&(g.pid=e.replyId,g.rid=e.rootId,g.at=e.replyUser),C.value=!0,(e=>{let{serverURL:t,lang:n,token:r,comment:o}=e;const i={"Content-Type":"application/json"};return r&&(i.Authorization="Bearer ".concat(r)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:i,body:JSON.stringify(o)}).then((e=>e.json()))})({serverURL:c,lang:p,token:null===(s=l.value)||void 0===s?void 0:s.token,comment:g}).then((t=>{if(C.value=!1,i.update({nick:g.nick,link:g.link,mail:g.mail}),t.errmsg)return alert(t.errmsg);n("submit",t.data),o.editor="",v.value="",e.replyId&&n("cancel-reply")})).catch((e=>{C.value=!1,alert(e.message)}))},B=e=>{p.value.contains(e.target)||d.value.contains(e.target)||(m.value=!1)};return Pr((()=>o.editor),(e=>{const{highlight:t,tex:n}=r.value;w.value=e,v.value=((e,t,n,r)=>{if(vi().setOptions({highlight:t||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>{const t={name:"blockMath",level:"block",tokenizer(t){const n=yi.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},n={name:"inlineMath",level:"inline",start(e){const t=e.search(Di);return-1!==t?t:e.length},tokenizer(t){const n=bi.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}};return[t,n]})(r);vi().use({extensions:e})}return vi()(wi(e,n))})(e,t,h.value.map,n),D.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),a.value&&(e?_l(a.value):_l.destroy(a.value))}),{immediate:!0}),Pr((()=>r.value.emoji),(e=>e.then((e=>{h.value=e}))),{immediate:!0}),Pr([r,D],(e=>{let[t,n]=e;const{wordLimit:r}=t;r?n<r[0]&&0!==r[0]?(b.value=r[0],y.value=!1):n>r[1]?(b.value=r[1],y.value=!1):(b.value=r[1],y.value=!0):(b.value=0,y.value=!0)}),{immediate:!0}),en((()=>{document.body.addEventListener("click",B)})),nn((()=>{document.body.removeEventListener("click",B)})),{config:r,locale:k,insert:A,onChange:()=>{const e=c.value;e.files&&E.value&&F(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=pi(e.dataTransfer.items);t&&E.value&&(F(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&_()},onPaste:e=>{if(e.clipboardData){const t=pi(e.clipboardData.items);t&&E.value&&F(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=r.value,o=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,l=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(o,",top=").concat(i,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==l||l.postMessage({type:"TOKEN",data:null},"*");const u=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==l||l.close(),s(t.data),(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",u))};window.addEventListener("message",u)},onLogout:()=>{s({}),localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=r.value,o=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2,u=window.open("".concat(n,"/ui/profile?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(800,",height=").concat(800,",left=").concat(o,",top=").concat(i,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==u||u.postMessage({type:"TOKEN",data:l.value.token},"*");const a=e=>{let{data:t}=e;t&&"profile"===t.type&&(s(Object.assign({},l.value,t)),[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(l)))),window.removeEventListener("message",a))};window.addEventListener("message",a)},submitComment:_,isLogin:x,userInfo:l,isSubmitting:C,wordNumber:D,wordLimit:b,isWordNumberLegal:y,inputs:o,emoji:h,emojiTabIndex:f,showEmoji:m,canUploadImage:E,previewText:v,showPreview:g,inputRefs:u,editorRef:a,emojiButtonRef:p,emojiPopupRef:d,imageUploadRef:c}}});var zl=n(407);const Ll=(0,zl.Z)(Sl,[["render",function(e,t,n,r,o,l){const s=Fn("CloseIcon"),u=Fn("MarkdownIcon"),c=Fn("EmojiIcon"),p=Fn("ImageIcon"),h=Fn("PreviewIcon"),f=Fn("LoadingIcon");return On(),Un("div",qi,["disable"!==e.config.login&&e.isLogin?(On(),Un("div",Wi,[Zn("div",Hi,[Zn("button",{class:"vlogout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[Jn(s,{size:"14"})],8,Zi),Zn("img",{src:e.userInfo.avatar||"".concat(e.config.avatar.cdn).concat(e.userInfo.mailMd5).concat(e.config.avatar.param),alt:"avatar"},null,8,Ji)]),Zn("a",{href:"#",class:"vlogin-nick","aria-label":"Profile",onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:d(e.userInfo.display_name)},null,8,Ki)])):Yn("v-if",!0),Zn("div",Qi,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(On(),Un("div",{key:0,class:a(["vheader","vheader-".concat(e.config.meta.length)])},[(On(!0),Un(Sn,null,tr(e.config.meta,(t=>(On(),Un("div",{class:"vheader-item",key:t},[Zn("label",{for:t,textContent:d(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":"(".concat(e.locale.optional,")")))},null,8,Yi),gn(Zn("input",{ref:n=>{n&&(e.inputRefs[t]=n)},id:"waline-".concat(t),class:a(["vinput","v".concat(t)]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.inputs[t]=n},null,10,Xi),[[Ro,e.inputs[t]]])])))),128))],2)):Yn("v-if",!0),gn(Zn("textarea",{class:"veditor",ref:"editorRef",id:"waline-edit",placeholder:e.replyUser?"@".concat(e.replyUser):e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputs.editor=t),onKeydown:t[3]||(t[3]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[4]||(t[4]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[5]||(t[5]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,Gi),[[Eo,e.inputs.editor]]),Zn("div",{class:"vpreview",style:i({display:e.showPreview?"block":"none"})},[Zn("h4",null,d(e.locale.preview)+":",1),Zn("div",{class:"vcontent",innerHTML:e.previewText},null,8,el)],4),Zn("div",tl,[Zn("div",nl,[Zn("a",rl,[Jn(u)]),Zn("button",{ref:"emojiButtonRef",class:a(["vaction",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[Jn(c)],10,ol),Zn("input",{ref:"imageUploadRef",class:"upload",id:"waline-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[7]||(t[7]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(On(),Un("label",{key:0,for:"waline-image-upload",class:"vaction",title:e.locale.uploadImage},[Jn(p)],8,il)):Yn("v-if",!0),Zn("button",{class:a(["vaction",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[Jn(h)],10,ll)]),Zn("div",sl,[Zn("div",ul,[Qn(d(e.wordNumber)+" ",1),e.config.wordLimit?(On(),Un("span",al,[cl,Zn("span",{class:a({illegal:!e.isWordNumberLegal}),textContent:d(e.wordLimit)},null,10,pl)])):Yn("v-if",!0),Qn("  "+d(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Yn("v-if",!0):(On(),Un("button",{key:0,class:"vbtn",onClick:t[9]||(t[9]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:d(e.locale.login)},null,8,dl)),"force"!==e.config.login||e.isLogin?(On(),Un("button",{key:1,class:"vbtn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[10]||(t[10]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(On(),Pn(f,{key:0,size:16})):(On(),Un(Sn,{key:1},[Qn(d(e.locale.submit),1)],2112))],8,hl)):Yn("v-if",!0)]),Zn("div",{ref:"emojiPopupRef",class:a(["vemoji-popup",{display:e.showEmoji}])},[(On(!0),Un(Sn,null,tr(e.emoji.tabs,((t,n)=>(On(),Un(Sn,{key:t.name},[n===e.emojiTabIndex?(On(),Un("div",fl,[(On(!0),Un(Sn,null,tr(t.items,(t=>(On(),Un("button",{key:t,title:t,onClick:n=>e.insert(":".concat(t,":"))},[e.showEmoji?(On(),Un("img",{key:0,class:"vemoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,gl)):Yn("v-if",!0)],8,ml)))),128))])):Yn("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(On(),Un("div",vl,[(On(!0),Un(Sn,null,tr(e.emoji.tabs,((t,n)=>(On(),Un("button",{key:t.name,class:a(["vtab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Zn("img",{class:"vemoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,bl)],10,Dl)))),128))])):Yn("v-if",!0)],2)])]),e.replyId?(On(),Un("button",{key:1,class:"vclose",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[Jn(s,{size:"24"})],8,yl)):Yn("v-if",!0)])}]]),Rl=Ll,Tl=["id"],Il=["src"],Ol={class:"vcard"},$l={class:"vhead"},jl=["href"],Ml={key:1,class:"vnick"},Ul=["textContent"],Pl=["textContent"],Nl=["textContent"],Vl=["title"],ql={class:"vmeta","aria-hidden":"true"},Wl=["textContent"],Hl=["textContent"],Zl=["innerHTML"],Jl={key:0,class:"vreply-wrapper"},Kl={key:1,class:"vquote"},Ql=Qt({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:Rl,ReplyIcon:()=>Vr("svg",{viewBox:"0 0 1024 1024",width:"18",height:"18"},Vr("path",{d:"M1019.2 720C1001.6 625.6 968 566.4 904 497.6c-89.6-89.6-214.4-150.4-347.2-176v-120c0-25.6-8-51.2-25.6-64-33.6-30.4-81.6-30.4-112-4.8L33.6 441.6C12.8 459.2 0 484.8 0 510.4c0 25.6 12.8 51.2 30.4 68.8l385.6 312c17.6 12.8 33.6 17.6 51.2 17.6 12.8 0 25.6-4.8 38.4-8C536 888 552 857.6 552 824v-99.2c124.8 20.8 248 86.4 339.2 140.8 25.6 17.6 59.2 17.6 89.6 0 25.6-17.6 43.2-46.4 43.2-76.8 0-33.6 0-56-4.8-68.8zm-500.8-89.6-46.4-4.8v193.6L86.4 510.4 472 201.6V400l38.4 4.8c128 12.8 248 68.8 334.4 153.6 51.2 56 76.8 102.4 94.4 179.2 0 4.8 4.8 20.8 4.8 51.2C835.2 720 672 640 518.4 630.4z",fill:"currentColor"})),VerifiedIcon:()=>Vr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Vr("path",{d:"M512 44.608l388.352 109.696a38.016 38.016 0 0 1 27.648 36.608v337.984c-1.984 110.528-40.192 207.04-113.984 288-73.92 81.024-172.48 134.528-294.592 160.32l-8.192 1.728-8.192-2.048c-127.616-32.832-225.536-85.952-293.056-160-68.096-74.688-105.984-171.584-113.92-289.28L96 526.336V190.976c0-17.024 11.328-32 27.648-36.608L512 44.608z m0 74.816L168 216.64v307.328l0.128 1.856c7.232 99.712 38.4 179.52 93.44 240.704l1.664 1.92c55.488 60.8 137.728 106.304 247.488 136l2.048 0.512 1.408-0.32c102.272-23.232 183.552-67.968 244.736-134.144l1.92-2.112c62.592-68.672 94.08-149.376 95.168-243.584V216.64L512 119.36z m222.592 229.888a32 32 0 0 1 0.448 44.864l-0.384 0.384-244.8 246.016a32 32 0 0 1-44.992 0.384l-0.384-0.384-155.136-155.968a32 32 0 0 1 44.992-45.504L467.2 572.608 689.28 349.44a32 32 0 0 1 45.312-0.128z",fill:"#27ae60"}))},emits:["submit","reply"],setup(e){const t=Pt("config"),n=Ct((()=>t.value.locale)),r=Ct((()=>{let{link:t}=e.comment;return t?Uo(t)?t:"https://".concat(t):""})),o=Ct((()=>{const n=e.comment,r=t.value.avatar;return!(!n||r.hide)&&(e.comment.avatar&&("type"in e.comment||r.default)?e.comment.avatar:"".concat(r.cdn).concat(e.comment.mail).concat(r.param))})),i=Ct((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:n,avatar:o,isReplyingCurrent:i,link:r,timeAgo:ki}}}),Yl=Qt({name:"Waline-Root",components:{CommentBox:Rl,CommentCard:(0,zl.Z)(Ql,[["render",function(e,t,n,r,o,i){const l=Fn("VerifiedIcon"),s=Fn("ReplyIcon"),u=Fn("CommentBox"),c=Fn("CommentCard",!0);return On(),Un("div",{class:"vitem",id:e.comment.objectId},[e.avatar?(On(),Un("img",{key:0,class:"vuser","aria-hidden":"true",src:e.avatar},null,8,Il)):Yn("v-if",!0),Zn("div",Ol,[Zn("div",$l,[e.link?(On(),Un("a",{key:0,class:"vnick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},[Qn(d(e.comment.nick),1),e.comment.type?(On(),Pn(l,{key:0})):Yn("v-if",!0)],8,jl)):(On(),Un("span",Ml,[Qn(d(e.comment.nick),1),e.comment.type?(On(),Pn(l,{key:0})):Yn("v-if",!0)])),"administrator"===e.comment.type?(On(),Un("span",{key:2,class:"vbadge",textContent:d(e.locale.admin)},null,8,Ul)):Yn("v-if",!0),e.comment.sticky?(On(),Un("span",{key:3,class:"vbadge",textContent:d(e.locale.sticky)},null,8,Pl)):Yn("v-if",!0),Zn("span",{class:"vtime",textContent:d(e.timeAgo(e.comment.insertedAt,e.locale))},null,8,Nl),Zn("button",{class:a(["vreply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[0]||(t[0]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[Jn(s)],10,Vl)]),Zn("div",ql,[e.comment.browser?(On(),Un("span",{key:0,textContent:d(e.comment.browser)},null,8,Wl)):Yn("v-if",!0),e.comment.os?(On(),Un("span",{key:1,textContent:d(e.comment.os)},null,8,Hl)):Yn("v-if",!0)]),Zn("div",{class:"vcontent",innerHTML:e.comment.comment},null,8,Zl),e.isReplyingCurrent?(On(),Un("div",Jl,[Jn(u,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[1]||(t[1]=t=>e.$emit("submit",t)),onCancelReply:t[2]||(t[2]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):Yn("v-if",!0),e.comment.children?(On(),Un("div",Kl,[(On(!0),Un(Sn,null,tr(e.comment.children,(n=>(On(),Pn(c,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[3]||(t[3]=t=>e.$emit("reply",t)),onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t))},null,8,["comment","reply","rootId"])))),128))])):Yn("v-if",!0)])],8,Tl)}]]),LoadingIcon:Bl},props:{signal:{type:Object,required:!0}},setup(e){const t=Pt("config"),n=Pt("event"),r=vt(0),o=vt(1),i=vt(0),l=vt(!0),s=vt(!1),u=vt([]),a=vt(null);let c=e.signal;const p=Ct((()=>t.value.locale)),d=e=>{l.value=!0,s.value=!1,(e=>{let{serverURL:t,path:n,page:r,pageSize:o,signal:i}=e;return fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(n),"&pageSize=").concat(o,"&page=").concat(r),{signal:i}).then((e=>e.json())).then((e=>$o(e,"comment list")))})(Object.assign({},t.value,{page:e,signal:c})).then((t=>{l.value=!1,r.value=t.count,u.value.push(...t.data),o.value=e,i.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),s.value=!0,l.value=!1)}))};return n.on("render",(e=>{c=e,r.value=0,u.value=[],d(1)})),en((()=>d(1))),{config:t,locale:p,count:r,data:u,loading:l,inError:s,page:o,totalPages:i,reply:a,loadMore:()=>d(o.value+1),refresh:()=>{u.value=[],d(1)},onReply:e=>{a.value=e},onSubmit:e=>{if(e.rid){const t=u.value.find((t=>{let{objectId:n}=t;return n===e.rid}));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else u.value.unshift(e)},version:"1.5.1"}}}),Xl=(0,zl.Z)(Yl,[["render",function(e,t,n,r,o,i){const l=Fn("CommentBox"),s=Fn("CommentCard"),u=Fn("LoadingIcon");return On(),Un("div",zi,[e.reply?Yn("v-if",!0):(On(),Pn(l,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Zn("div",Li,[e.count?(On(),Un("span",{key:0,class:"vnum",textContent:d(e.count)},null,8,Ri)):Yn("v-if",!0),Qn(" "+d(e.locale.comment),1)]),Zn("div",Ti,[(On(!0),Un(Sn,null,tr(e.data,(t=>(On(),Pn(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit},null,8,["root-id","comment","reply","onReply","onSubmit"])))),128))]),e.inError?(On(),Un("div",Ii,[Zn("button",{type:"button",class:"vbtn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:d(e.locale.refresh)},null,8,Oi)])):e.loading?(On(),Un("div",$i,[Jn(u,{size:30})])):e.data.length?Yn("v-if",!0):(On(),Un("div",{key:3,class:"vempty",textContent:d(e.locale.sofa)},null,8,ji)),e.page<e.totalPages&&!e.loading?(On(),Un("div",Mi,[Zn("button",{type:"button",class:"vbtn",onClick:t[1]||(t[1]=function(){return e.loadMore&&e.loadMore(...arguments)}),textContent:d(e.locale.more)},null,8,Ui)])):Yn("v-if",!0),e.config.copyright?(On(),Un("div",Pi,[Ni,Vi,Qn(" v"+d(e.version),1)])):Yn("v-if",!0)])}]]),Gl=Xl;class es{constructor(){var e,t;t=void 0,(e="controller")in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t,this.controller=new AbortController}get signal(){return this.controller.signal}abort(){this.controller.abort()}new(){this.abort(),this.controller=new AbortController}}const ts=(e,t)=>{const{path:n,serverURL:r,visitor:o}=e;o&&(e=>{let{serverURL:t,path:n,signal:r}=e;const o=(e=>{let{serverURL:t,path:n}=e;return fetch("".concat(t,"/article"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>$o(e,"visit count")))})({serverURL:t,path:n}),i=Array.from(document.querySelectorAll(".waline-visitor-count,.leancloud_visitors,.leancloud-visitors")).filter((e=>e.getAttribute("id"))),l=i.map((e=>jo(e.getAttribute("id")||""))),s=l.filter((e=>e!==n));s.length?(s.length===l.length?Promise.resolve():o).then((()=>(e=>{let{serverURL:t,paths:n,signal:r}=e;return fetch("".concat(t,"/article?path=").concat(encodeURIComponent(n.join(","))),{signal:r}).then((e=>e.json())).then((e=>$o(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:t,paths:l,signal:r}))).then((e=>xi(e,i))).catch((e=>{"AbortError"!==e.name&&console.error(e.message)})):o.then((e=>xi(new Array(i.length).fill(e),i)))})({serverURL:r,path:n,signal:t}),((e,t)=>{const n=Array.from(document.querySelectorAll(".waline-comment-count")).filter((e=>e.getAttribute("data-xid")||e.getAttribute("id")));n.length&&(e=>{let{serverURL:t,paths:n,signal:r}=e;return fetch("".concat(t,"/comment?type=count&url=").concat(encodeURIComponent(n.join(","))),{signal:r}).then((e=>e.json())).then((e=>$o(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:n.map((e=>jo(e.getAttribute("data-xid")||e.getAttribute("id")))),signal:t}).then((e=>{n.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch((e=>{"AbortError"!==e.name&&console.error(e.message)}))})(r,t)},ns=e=>(console.warn(e),{errMsg:e});function rs(e){const{el:t,serverURL:n}=e;if(!n)return ns("Option 'serverURL' is missing!");var r;e.dark&&"string"==typeof(r=e.dark)&&hi("auto"===r?"@media(prefers-color-scheme:dark){body".concat(di,"}"):"".concat(r).concat(di),"waline-dark"),e.mathTagSupport&&window.addEventListener("load",fi);const o=new es,i=new es,l=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}(),{config:s,update:u}=(e=>{let t=e;const n=vt(ai(e));return{config:it(n),update:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t={...t,...e},n.value=ai(t)}}})(e);ts(s.value,i.signal);const a=mi(t);if(t&&!a)return ns("Option 'el' do not match any domElement!");let c;a&&(c=((...e)=>{const t=(Oo||(Oo=Cn(Io))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){return B(e)?document.querySelector(e):e}(e);if(!r)return;const o=t._component;_(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t})(Gl,{signal:o.signal}).provide("config",s).provide("event",l).provide("version","1.5.1"),c.mount(a));const p={options:e,path:s.value.path};return{el:a,update:e=>{u(e);const{path:t}=s.value;p.path!==t&&(o.new(),p.path=t,l.emit("render",o.signal)),i.new(),ts(s.value,i.signal)},destroy:()=>{t&&c.unmount()}}}rs.Widget={RecentComments:e=>{let{el:t,serverURL:n,count:r}=e;const o=mi(t),i=new AbortController;return(e=>{let{serverURL:t,count:n,signal:r}=e;return fetch("".concat(t,"/comment?type=recent&count=").concat(n),{signal:r}).then((e=>e.json())).then((e=>$o(e,"recent comment")))})({serverURL:n,count:r,signal:i.signal}).then((e=>o&&e.length?(o.innerHTML='<ul class="waline-widget-list">'.concat(e.map((e=>'<li class="waline-widget-item"><a href="'.concat(e.url,'">').concat(e.nick,"</a>:").concat(e.comment,"</li>"))).join(""),"</ul>"),{comments:e,destroy:()=>{i.abort(),o.innerHTML=""}}):{comments:e,destroy:()=>i.abort()}))}},rs.version="1.5.1";const os=rs})(),r.default})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Waline=t():e.Waline=t()}(this,(function(){return(()=>{var e={948:function(e){e.exports=function(){"use strict";var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(){return new RegExp("(?:"+t.line().source+")|(?:"+t.block().source+")","gm")};t.line=function(){return/(?:^|\s)\/\/(.+?)$/gm},t.block=function(){return/\/\*([\S\s]*?)\*\//gm}})),t=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"];return function(n,o){void 0===o&&(o={});var r=o.colors;void 0===r&&(r=t);var i=0,l={},s=new RegExp("("+/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source+"|"+/</.source+")|("+e().source+")","gmi");return n.replace(s,(function(e,t,n){if(n)return function(e){return'<span style="color: slategray">'+e+"</span>"}(n);if("<"===t)return"&lt;";var o;l[t]?o=l[t]:(o=r[i],l[t]=o);var s='<span style="color: #'+o+'">'+t+"</span>";return i=++i%r.length,s}))}}()},407:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{"use strict";function e(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}n.d(o,{default:()=>va});const t=()=>{},r=Object.assign,i=Object.prototype.hasOwnProperty,l=(e,t)=>i.call(e,t),s=Array.isArray,a=e=>"[object Map]"===d(e),c=e=>"symbol"==typeof e,u=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,d=e=>p.call(e),h=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,f=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},m=/-(\w)/g,g=(f((e=>e.replace(m,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),v=(f((e=>e.replace(g,"-$1").toLowerCase())),f((e=>e.charAt(0).toUpperCase()+e.slice(1)))),b=(f((e=>e?`on${v(e)}`:"")),(e,t)=>!Object.is(e,t));let y;const w=[];class k{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&y&&(this.parent=y,this.index=(y.scopes||(y.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(w.push(this),y=this)}off(){this.active&&(w.pop(),y=w[w.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const x=e=>{const t=new Set(e);return t.w=0,t.n=0,t},_=e=>(e.w&A)>0,C=e=>(e.n&A)>0,S=new WeakMap;let E=0,A=1;const L=[];let z;const O=Symbol(""),R=Symbol("");class T{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||y)&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();if(!L.includes(this))try{return L.push(z=this),j.push($),$=!0,A=1<<++E,E<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=A})(this):I(this),this.fn()}finally{E<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];_(r)&&!C(r)?r.delete(e):t[n++]=r,r.w&=~A,r.n&=~A}t.length=n}})(this),A=1<<--E,U(),L.pop();const e=L.length;z=e>0?L[e-1]:void 0}}stop(){this.active&&(I(this),this.onStop&&this.onStop(),this.active=!1)}}function I(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let $=!0;const j=[];function M(){j.push($),$=!1}function U(){const e=j.pop();$=void 0===e||e}function P(e,t,n){if(!F())return;let o=S.get(e);o||S.set(e,o=new Map);let r=o.get(n);r||o.set(n,r=x()),N(r)}function F(){return $&&void 0!==z}function N(e,t){let n=!1;E<=30?C(e)||(e.n|=A,n=!_(e)):n=!e.has(z),n&&(e.add(z),z.deps.push(e))}function V(e,t,n,o,r,i){const l=S.get(e);if(!l)return;let c=[];if("clear"===t)c=[...l.values()];else if("length"===n&&s(e))l.forEach(((e,t)=>{("length"===t||t>=o)&&c.push(e)}));else switch(void 0!==n&&c.push(l.get(n)),t){case"add":s(e)?h(n)&&c.push(l.get("length")):(c.push(l.get(O)),a(e)&&c.push(l.get(R)));break;case"delete":s(e)||(c.push(l.get(O)),a(e)&&c.push(l.get(R)));break;case"set":a(e)&&c.push(l.get(O))}if(1===c.length)c[0]&&D(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);D(x(e))}}function D(e,t){for(const t of s(e)?e:[...e])(t!==z||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const B=e("__proto__,__v_isRef,__isVue"),q=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(c)),W=Q(),H=Q(!1,!0),Z=Q(!0),J=K();function K(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Te(this);for(let e=0,t=this.length;e<t;e++)P(n,0,e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Te)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){M();const n=Te(this)[t].apply(this,e);return U(),n}})),e}function Q(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?Se:Ce:t?_e:xe).get(n))return n;const i=s(n);if(!e&&i&&l(J,o))return Reflect.get(J,o,r);const a=Reflect.get(n,o,r);return(c(o)?q.has(o):B(o))?a:(e||P(n,0,o),t?a:Pe(a)?i&&h(o)?a:a.value:u(a)?e?Ae(a):Ee(a):a)}}function Y(e=!1){return function(t,n,o,r){let i=t[n];if(!e&&(o=Te(o),i=Te(i),!s(t)&&Pe(i)&&!Pe(o)))return i.value=o,!0;const a=s(t)&&h(n)?Number(n)<t.length:l(t,n),c=Reflect.set(t,n,o,r);return t===Te(r)&&(a?b(o,i)&&V(t,"set",n,o):V(t,"add",n,o)),c}}const X={get:W,set:Y(),deleteProperty:function(e,t){const n=l(e,t),o=(e[t],Reflect.deleteProperty(e,t));return o&&n&&V(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return c(t)&&q.has(t)||P(e,0,t),n},ownKeys:function(e){return P(e,0,s(e)?"length":O),Reflect.ownKeys(e)}},G={get:Z,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},ee=r({},X,{get:H,set:Y(!0)}),te=e=>e,ne=e=>Reflect.getPrototypeOf(e);function oe(e,t,n=!1,o=!1){const r=Te(e=e.__v_raw),i=Te(t);t!==i&&!n&&P(r,0,t),!n&&P(r,0,i);const{has:l}=ne(r),s=o?te:n?je:$e;return l.call(r,t)?s(e.get(t)):l.call(r,i)?s(e.get(i)):void(e!==r&&e.get(t))}function re(e,t=!1){const n=this.__v_raw,o=Te(n),r=Te(e);return e!==r&&!t&&P(o,0,e),!t&&P(o,0,r),e===r?n.has(e):n.has(e)||n.has(r)}function ie(e,t=!1){return e=e.__v_raw,!t&&P(Te(e),0,O),Reflect.get(e,"size",e)}function le(e){e=Te(e);const t=Te(this);return ne(t).has.call(t,e)||(t.add(e),V(t,"add",e,e)),this}function se(e,t){t=Te(t);const n=Te(this),{has:o,get:r}=ne(n);let i=o.call(n,e);i||(e=Te(e),i=o.call(n,e));const l=r.call(n,e);return n.set(e,t),i?b(t,l)&&V(n,"set",e,t):V(n,"add",e,t),this}function ae(e){const t=Te(this),{has:n,get:o}=ne(t);let r=n.call(t,e);r||(e=Te(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&V(t,"delete",e,void 0),i}function ce(){const e=Te(this),t=0!==e.size,n=e.clear();return t&&V(e,"clear",void 0,void 0),n}function ue(e,t){return function(n,o){const r=this,i=r.__v_raw,l=Te(i),s=t?te:e?je:$e;return!e&&P(l,0,O),i.forEach(((e,t)=>n.call(o,s(e),s(t),r)))}}function pe(e,t,n){return function(...o){const r=this.__v_raw,i=Te(r),l=a(i),s="entries"===e||e===Symbol.iterator&&l,c="keys"===e&&l,u=r[e](...o),p=n?te:t?je:$e;return!t&&P(i,0,c?R:O),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[p(e[0]),p(e[1])]:p(e),done:t}},[Symbol.iterator](){return this}}}}function de(e){return function(...t){return"delete"!==e&&this}}function he(){const e={get(e){return oe(this,e)},get size(){return ie(this)},has:re,add:le,set:se,delete:ae,clear:ce,forEach:ue(!1,!1)},t={get(e){return oe(this,e,!1,!0)},get size(){return ie(this)},has:re,add:le,set:se,delete:ae,clear:ce,forEach:ue(!1,!0)},n={get(e){return oe(this,e,!0)},get size(){return ie(this,!0)},has(e){return re.call(this,e,!0)},add:de("add"),set:de("set"),delete:de("delete"),clear:de("clear"),forEach:ue(!0,!1)},o={get(e){return oe(this,e,!0,!0)},get size(){return ie(this,!0)},has(e){return re.call(this,e,!0)},add:de("add"),set:de("set"),delete:de("delete"),clear:de("clear"),forEach:ue(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=pe(r,!1,!1),n[r]=pe(r,!0,!1),t[r]=pe(r,!1,!0),o[r]=pe(r,!0,!0)})),[e,n,t,o]}const[fe,me,ge,ve]=he();function be(e,t){const n=t?e?ve:ge:e?me:fe;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(l(n,o)&&o in t?n:t,o,r)}const ye={get:be(!1,!1)},we={get:be(!1,!0)},ke={get:be(!0,!1)},xe=new WeakMap,_e=new WeakMap,Ce=new WeakMap,Se=new WeakMap;function Ee(e){return e&&e.__v_isReadonly?e:Le(e,!1,X,ye,xe)}function Ae(e){return Le(e,!0,G,ke,Ce)}function Le(e,t,n,o,r){if(!u(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const l=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>d(e).slice(8,-1))(s));var s;if(0===l)return e;const a=new Proxy(e,2===l?o:n);return r.set(e,a),a}function ze(e){return Oe(e)?ze(e.__v_raw):!(!e||!e.__v_isReactive)}function Oe(e){return!(!e||!e.__v_isReadonly)}function Re(e){return ze(e)||Oe(e)}function Te(e){const t=e&&e.__v_raw;return t?Te(t):e}function Ie(e){return t=e,Object.defineProperty(t,"__v_skip",{configurable:!0,enumerable:!1,value:!0}),e;var t}const $e=e=>u(e)?Ee(e):e,je=e=>u(e)?Ae(e):e;function Me(e){F()&&((e=Te(e)).dep||(e.dep=x()),N(e.dep))}function Ue(e,t){(e=Te(e)).dep&&D(e.dep)}function Pe(e){return Boolean(e&&!0===e.__v_isRef)}function Fe(e){return n=!1,Pe(t=e)?t:new Ne(t,n);var t,n}class Ne{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Te(e),this._value=t?e:$e(e)}get value(){return Me(this),this._value}set value(e){e=this._shallow?e:Te(e),b(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:$e(e),Ue(this))}}const Ve={get:(e,t,n)=>{return Pe(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return Pe(r)&&!Pe(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function De(e){return ze(e)?e:new Proxy(e,Ve)}class Be{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new T(e,(()=>{this._dirty||(this._dirty=!0,Ue(this))})),this.__v_isReadonly=n}get value(){const e=Te(this);return Me(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function qe(e,n){let o,r;const i="function"==typeof e;return i?(o=e,r=t):(o=e.get,r=e.set),new Be(o,r,i||!r)}function We(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function He(e){if(ct(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=ht(o)?Ke(o):He(o);if(r)for(const e in r)t[e]=r[e]}return t}return ht(e)||ft(e)?e:void 0}Promise.resolve();const Ze=/;(?![^(]*\))/g,Je=/:(.+)/;function Ke(e){const t={};return e.split(Ze).forEach((e=>{if(e){const n=e.split(Je);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Qe(e){let t="";if(ht(e))t=e;else if(ct(e))for(let n=0;n<e.length;n++){const o=Qe(e[n]);o&&(t+=o+" ")}else if(ft(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ye=e=>null==e?"":ct(e)||ft(e)&&(e.toString===gt||!dt(e.toString))?JSON.stringify(e,Xe,2):String(e),Xe=(e,t)=>t&&t.__v_isRef?Xe(e,t.value):ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:pt(t)?{[`Set(${t.size})`]:[...t.values()]}:!ft(t)||ct(t)||bt(t)?t:String(t),Ge={},et=[],tt=()=>{},nt=()=>!1,ot=/^on[^a-z]/,rt=e=>ot.test(e),it=e=>e.startsWith("onUpdate:"),lt=Object.assign,st=Object.prototype.hasOwnProperty,at=(e,t)=>st.call(e,t),ct=Array.isArray,ut=e=>"[object Map]"===vt(e),pt=e=>"[object Set]"===vt(e),dt=e=>"function"==typeof e,ht=e=>"string"==typeof e,ft=e=>null!==e&&"object"==typeof e,mt=e=>ft(e)&&dt(e.then)&&dt(e.catch),gt=Object.prototype.toString,vt=e=>gt.call(e),bt=e=>"[object Object]"===vt(e),yt=We(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},kt=/-(\w)/g,xt=wt((e=>e.replace(kt,((e,t)=>t?t.toUpperCase():"")))),_t=/\B([A-Z])/g,Ct=wt((e=>e.replace(_t,"-$1").toLowerCase())),St=wt((e=>e.charAt(0).toUpperCase()+e.slice(1))),Et=wt((e=>e?`on${St(e)}`:"")),At=(e,t)=>!Object.is(e,t),Lt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},zt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ot=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Rt;const Tt=()=>Rt||(Rt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});new Set,new Map;let It,$t=[],jt=!1;function Mt(e,...t){It?It.emit(e,...t):jt||$t.push({event:e,args:t})}function Ut(e,t){It=e,It?(It.enabled=!0,$t.forEach((({event:e,args:t})=>It.emit(e,...t))),$t=[]):"undefined"==typeof window||navigator.userAgent.includes("jsdom")?(jt=!0,$t=[]):((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Ut(e,t)})),setTimeout((()=>{It||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,jt=!0,$t=[])}),3e3))}const Pt=Vt("component:added"),Ft=Vt("component:updated"),Nt=Vt("component:removed");function Vt(e){return t=>{Mt(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Dt(e,t,...n){const o=e.vnode.props||Ge;let r=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in o){const e=`${"modelValue"===l?"model":l}Modifiers`,{number:t,trim:i}=o[e]||Ge;i?r=n.map((e=>e.trim())):t&&(r=n.map(Ot))}let s;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Mt("component:emit",e.appContext.app,e,t,n)}(e,t,r);let a=o[s=Et(t)]||o[s=Et(xt(t))];!a&&i&&(a=o[s=Et(Ct(t))]),a&&zo(a,e,6,r);const c=o[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,zo(c,e,6,r)}}function Bt(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let l={};return i?(ct(i)?i.forEach((e=>l[e]=null)):lt(l,i),o.set(e,l),l):(o.set(e,null),null)}function qt(e,t){return!(!e||!rt(t))&&(t=t.slice(2).replace(/Once$/,""),at(e,t[0].toLowerCase()+t.slice(1))||at(e,Ct(t))||at(e,t))}let Wt=null,Ht=null;function Zt(e){const t=Wt;return Wt=e,Ht=e&&e.type.__scopeId||null,t}function Jt(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const b=Zt(e);try{if(4&n.shapeFlag){const e=r||o;g=co(u.call(e,e,p,i,h,d,f)),v=a}else{const e=t;g=co(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),v=t.props?a:Kt(a)}}catch(t){Wn.length=0,Oo(t,e,1),g=io(Bn)}let y=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=y;e.length&&7&t&&(l&&e.some(it)&&(v=Qt(v,l)),y=lo(y,v))}return n.dirs&&(y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),g=y,Zt(b),g}const Kt=e=>{let t;for(const n in e)("class"===n||"style"===n||rt(n))&&((t||(t={}))[n]=e[n]);return t},Qt=(e,t)=>{const n={};for(const o in e)it(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Yt(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!qt(n,i))return!0}return!1}function Xt(e,t,n=!1){const o=yo||Wt;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&dt(t)?t.call(o.proxy):t}}const Gt=[Function,Array],en={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gt,onEnter:Gt,onAfterEnter:Gt,onEnterCancelled:Gt,onBeforeLeave:Gt,onLeave:Gt,onAfterLeave:Gt,onLeaveCancelled:Gt,onBeforeAppear:Gt,onAppear:Gt,onAfterAppear:Gt,onAppearCancelled:Gt},setup(e,{slots:t}){const n=wo(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return dn((()=>{e.isMounted=!0})),hn((()=>{e.isUnmounting=!0})),e}();let r;return()=>{const i=t.default&&sn(t.default(),!0);if(!i||!i.length)return;const l=Te(e),{mode:s}=l,a=i[0];if(o.isLeaving)return on(a);const c=rn(a);if(!c)return on(a);const u=nn(c,l,o,n);ln(c,u);const p=n.subTree,d=p&&rn(p);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===r?r=e:e!==r&&(r=e,h=!0)}if(d&&d.type!==Bn&&(!eo(c,d)||h)){const e=nn(d,l,o,n);if(ln(d,e),"out-in"===s)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},on(a);"in-out"===s&&c.type!==Bn&&(e.delayLeave=(e,t,n)=>{tn(o,d)[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return a}}};function tn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function nn(e,t,n,o){const{appear:r,mode:i,persisted:l=!1,onBeforeEnter:s,onEnter:a,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:p,onLeave:d,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:b}=t,y=String(e.key),w=tn(n,e),k=(e,t)=>{e&&zo(e,o,9,t)},x={mode:i,persisted:l,beforeEnter(t){let o=s;if(!n.isMounted){if(!r)return;o=m||s}t._leaveCb&&t._leaveCb(!0);const i=w[y];i&&eo(e,i)&&i.el._leaveCb&&i.el._leaveCb(),k(o,[t])},enter(e){let t=a,o=c,i=u;if(!n.isMounted){if(!r)return;t=g||a,o=v||c,i=b||u}let l=!1;const s=e._enterCb=t=>{l||(l=!0,k(t?i:o,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();k(p,[t]);let i=!1;const l=t._leaveCb=n=>{i||(i=!0,o(),k(n?f:h,[t]),t._leaveCb=void 0,w[r]===e&&delete w[r])};w[r]=e,d?(d(t,l),d.length<=1&&l()):l()},clone:e=>nn(e,t,n,o)};return x}function on(e){if(un(e))return(e=lo(e)).children=null,e}function rn(e){return un(e)?e.children?e.children[0]:void 0:e}function ln(e,t){6&e.shapeFlag&&e.component?ln(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function sn(e,t=!1){let n=[],o=0;for(let r=0;r<e.length;r++){const i=e[r];i.type===Vn?(128&i.patchFlag&&o++,n=n.concat(sn(i.children,t))):(t||i.type!==Bn)&&n.push(i)}if(o>1)for(let e=0;e<n.length;e++)n[e].patchFlag=-2;return n}function an(e){return dt(e)?{setup:e,name:e.name}:e}const cn=e=>!!e.type.__asyncLoader,un=e=>e.type.__isKeepAlive;RegExp,RegExp;const pn=e=>(t,n=yo)=>(!Co||"sp"===e)&&function(e,t,n=yo,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;M(),ko(n);const r=zo(t,n,e,o);return xo(),U(),r});return o?r.unshift(i):r.push(i),i}}(e,t,n),dn=(pn("bm"),pn("m")),hn=(pn("bu"),pn("u"),pn("bum")),fn=pn("um");function mn(e,t,n,o){const[r,i]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(yt(a))continue;const c=t[a];let u;r&&at(r,u=xt(a))?i&&i.includes(u)?(l||(l={}))[u]=c:n[u]=c:qt(e.emitsOptions,a)||c!==o[a]&&(o[a]=c,s=!0)}if(i){const t=Te(n),o=l||Ge;for(let l=0;l<i.length;l++){const s=i[l];n[s]=gn(r,t,s,o[s],e,!at(o,s))}}return s}function gn(e,t,n,o,r,i){const l=e[n];if(null!=l){const e=at(l,"default");if(e&&void 0===o){const e=l.default;if(l.type!==Function&&dt(e)){const{propsDefaults:i}=r;n in i?o=i[n]:(ko(r),o=i[n]=e.call(null,t),xo())}else o=e}l[0]&&(i&&!e?o=!1:!l[1]||""!==o&&o!==Ct(n)||(o=!0))}return o}function vn(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,l={},s=[];if(!i)return o.set(e,et),et;if(ct(i))for(let e=0;e<i.length;e++){const t=xt(i[e]);bn(t)&&(l[t]=Ge)}else if(i)for(const e in i){const t=xt(e);if(bn(t)){const n=i[e],o=l[t]=ct(n)||dt(n)?{type:n}:n;if(o){const e=kn(Boolean,o.type),n=kn(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||at(o,"default"))&&s.push(t)}}}const a=[l,s];return o.set(e,a),a}function bn(e){return"$"!==e[0]}function yn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function wn(e,t){return yn(e)===yn(t)}function kn(e,t){return ct(t)?t.findIndex((t=>wn(t,e))):dt(t)&&wn(t,e)?0:-1}pn("sp"),pn("rtg"),pn("rtc");const xn=e=>"_"===e[0]||"$stable"===e,_n=e=>ct(e)?e.map(co):[co(e)],Cn=(e,t,n)=>{const o=function(e,t=Wt,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Kn(-1);const r=Zt(t),i=e(...n);return Zt(r),o._d&&Kn(1),__VUE_PROD_DEVTOOLS__&&Ft(t),i};return o._n=!0,o._c=!0,o._d=!0,o}(((...e)=>_n(t(...e))),n);return o._c=!1,o},Sn=(e,t,n)=>{const o=e._ctx;for(const n in e){if(xn(n))continue;const r=e[n];if(dt(r))t[n]=Cn(0,r,o);else if(null!=r){const e=_n(r);t[n]=()=>e}}},En=(e,t)=>{const n=_n(t);e.slots.default=()=>n};function An(e,t){if(null===Wt)return e;const n=Wt.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[r,i,l,s=Ge]=t[e];dt(r)&&(r={mounted:r,updated:r}),r.deep&&er(i),o.push({dir:r,instance:n,value:i,oldValue:void 0,arg:l,modifiers:s})}return e}function Ln(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let l=0;l<r.length;l++){const s=r[l];i&&(s.oldValue=i[l].value);let a=s.dir[o];a&&(M(),zo(a,n,8,[e.el,s,e,t]),U())}}function zn(){return{app:null,config:{isNativeTag:nt,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let On=0;function Rn(e,t){return function(n,o=null){null==o||ft(o)||(o=null);const r=zn(),i=new Set;let l=!1;const s=r.app={_uid:On++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:nr,get config(){return r.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&dt(e.install)?(i.add(e),e.install(s,...t)):dt(e)&&(i.add(e),e(s,...t))),s),mixin:e=>s,component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(i,a,c){if(!l){const u=io(n,o);return u.appContext=r,a&&t?t(u,i):e(u,i,c),l=!0,s._container=i,i.__vue_app__=s,__VUE_PROD_DEVTOOLS__&&(s._instance=u.component,function(e,t){Mt("app:init",e,t,{Fragment:Vn,Text:Dn,Comment:Bn,Static:qn})}(s,nr)),Ao(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),__VUE_PROD_DEVTOOLS__&&(s._instance=null,function(e){Mt("app:unmount",e)}(s)),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s)};return s}}const Tn=function(e,t){t&&t.pendingBranch?ct(e)?t.effects.push(...e):t.effects.push(e):Zo(e,Fo,Po,No)};function In(e,t){"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Tt().__VUE_PROD_DEVTOOLS__=!1);const n=Tt();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&Ut(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:r,patchProp:i,createElement:l,createText:s,createComment:a,setText:c,setElementText:u,parentNode:p,nextSibling:d,setScopeId:h=tt,cloneNode:f,insertStaticContent:m}=e,g=(e,t,n,o=null,r=null,i=null,l=!1,s=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!eo(e,t)&&(o=J(e),B(e,r,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case Dn:v(e,t,n,o);break;case Bn:b(e,t,n,o);break;case qn:null==e&&y(t,n,o,l);break;case Vn:L(e,t,n,o,r,i,l,s,a);break;default:1&p?w(e,t,n,o,r,i,l,s,a):6&p?z(e,t,n,o,r,i,l,s,a):(64&p||128&p)&&c.process(e,t,n,o,r,i,l,s,a,Q)}null!=u&&r&&$n(u,e&&e.ref,i,t||e,!t)},v=(e,t,n,r)=>{if(null==e)o(t.el=s(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},b=(e,t,n,r)=>{null==e?o(t.el=a(t.children||""),n,r):t.el=e.el},y=(e,t,n,o)=>{[e.el,e.anchor]=m(e.children,t,n,o)},w=(e,t,n,o,r,i,l,s,a)=>{l=l||"svg"===t.type,null==e?x(t,n,o,r,i,l,s,a):S(e,t,r,i,l,s,a)},x=(e,t,n,r,s,a,c,p)=>{let d,h;const{type:m,props:g,shapeFlag:v,transition:b,patchFlag:y,dirs:w}=e;if(e.el&&void 0!==f&&-1===y)d=e.el=f(e.el);else{if(d=e.el=l(e.type,a,g&&g.is,g),8&v?u(d,e.children):16&v&&C(e.children,d,null,r,s,a&&"foreignObject"!==m,c,p),w&&Ln(e,null,r,"created"),g){for(const t in g)"value"===t||yt(t)||i(d,t,null,g[t],a,e.children,r,s,Z);"value"in g&&i(d,"value",null,g.value),(h=g.onVnodeBeforeMount)&&jn(h,r,e)}_(d,e,e.scopeId,c,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(d,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(d,"__vueParentComponent",{value:r,enumerable:!1})),w&&Ln(e,null,r,"beforeMount");const k=(!s||s&&!s.pendingBranch)&&b&&!b.persisted;k&&b.beforeEnter(d),o(d,t,n),((h=g&&g.onVnodeMounted)||k||w)&&Tn((()=>{h&&jn(h,r,e),k&&b.enter(d),w&&Ln(e,null,r,"mounted")}),s)},_=(e,t,n,o,r)=>{if(n&&h(e,n),o)for(let t=0;t<o.length;t++)h(e,o[t]);if(r&&t===r.subTree){const t=r.vnode;_(e,t,t.scopeId,t.slotScopeIds,r.parent)}},C=(e,t,n,o,r,i,l,s,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=s?uo(e[c]):co(e[c]);g(null,a,t,n,o,r,i,l,s)}},S=(e,t,n,o,r,l,s)=>{const a=t.el=e.el;let{patchFlag:c,dynamicChildren:p,dirs:d}=t;c|=16&e.patchFlag;const h=e.props||Ge,f=t.props||Ge;let m;(m=f.onVnodeBeforeUpdate)&&jn(m,n,t,e),d&&Ln(t,e,n,"beforeUpdate");const g=r&&"foreignObject"!==t.type;if(p?E(e.dynamicChildren,p,a,n,o,g,l):s||j(e,t,a,null,n,o,g,l,!1),c>0){if(16&c)A(a,t,h,f,n,o,r);else if(2&c&&h.class!==f.class&&i(a,"class",null,f.class,r),4&c&&i(a,"style",h.style,f.style,r),8&c){const l=t.dynamicProps;for(let t=0;t<l.length;t++){const s=l[t],c=h[s],u=f[s];u===c&&"value"!==s||i(a,s,c,u,r,e.children,n,o,Z)}}1&c&&e.children!==t.children&&u(a,t.children)}else s||null!=p||A(a,t,h,f,n,o,r);((m=f.onVnodeUpdated)||d)&&Tn((()=>{m&&jn(m,n,t,e),d&&Ln(t,e,n,"updated")}),o)},E=(e,t,n,o,r,i,l)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],u=a.el&&(a.type===Vn||!eo(a,c)||70&a.shapeFlag)?p(a.el):n;g(a,c,u,null,o,r,i,l,!0)}},A=(e,t,n,o,r,l,s)=>{if(n!==o){for(const a in o){if(yt(a))continue;const c=o[a],u=n[a];c!==u&&"value"!==a&&i(e,a,u,c,s,t.children,r,l,Z)}if(n!==Ge)for(const a in n)yt(a)||a in o||i(e,a,n[a],null,s,t.children,r,l,Z);"value"in o&&i(e,"value",n.value,o.value)}},L=(e,t,n,r,i,l,a,c,u)=>{const p=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(o(p,n,r),o(d,n,r),C(t.children,n,d,i,l,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(E(e.dynamicChildren,f,n,i,l,a,c),(null!=t.key||i&&t===i.subTree)&&Mn(e,t,!0)):j(e,t,n,d,i,l,a,c,u)},z=(e,t,n,o,r,i,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,l,a):O(t,n,o,r,i,l,a):R(e,t,a)},O=(e,t,n,o,r,i,l)=>{const s=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||vo,i={uid:bo++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,update:null,scope:new k(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:vn(o,r),emitsOptions:Bt(o,r),emit:null,emitted:null,propsDefaults:Ge,inheritAttrs:o.inheritAttrs,ctx:Ge,data:Ge,props:Ge,attrs:Ge,slots:Ge,refs:Ge,setupState:Ge,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Dt.bind(null,i),e.ce&&e.ce(i),i}(e,o,r);if(un(e)&&(s.ctx.renderer=Q),function(e,t=!1){Co=t;const{props:n,children:o}=e.vnode,r=_o(e);(function(e,t,n,o=!1){const r={},i={};zt(i,to,1),e.propsDefaults=Object.create(null),mn(e,t,r,i);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:Le(r,!1,ee,we,_e):e.type.props?e.props=r:e.props=i,e.attrs=i})(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Te(t),zt(t,"_",n)):Sn(t,e.slots={})}else e.slots={},t&&En(e,t);zt(e.slots,to,1)})(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ie(new Proxy(e.ctx,go));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(P(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;ko(e),M();const r=Lo(o,e,0,[e.props,n]);if(U(),xo(),mt(r)){if(r.then(xo,xo),t)return r.then((n=>{So(e,n,t)})).catch((t=>{Oo(t,e,0)}));e.asyncDep=r}else So(e,r,t)}else Eo(e,t)}(e,t):void 0;Co=!1}(s),s.asyncDep){if(r&&r.registerDep(s,I),!e.el){const e=s.subTree=io(Bn);b(null,e,t,n)}}else I(s,e,t,n,r,i,l)},R=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:l,children:s,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!s||s&&s.$stable)||o!==l&&(o?!l||Yt(o,l,c):!!l);if(1024&a)return!0;if(16&a)return o?Yt(o,l,c):!!l;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(l[n]!==o[n]&&!qt(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void $(o,t,n);o.next=t,function(e){const t=Io.indexOf(e);t>$o&&Io.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},I=(e,t,n,o,r,i,l)=>{const s=new T((()=>{if(e.isMounted){let t,{next:n,bu:o,u:a,parent:c,vnode:u}=e,d=n;s.allowRecurse=!1,n?(n.el=u.el,$(e,n,l)):n=u,o&&Lt(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&jn(t,c,n,u),s.allowRecurse=!0;const h=Jt(e),f=e.subTree;e.subTree=h,g(f,h,p(f.el),J(f),e,r,i),n.el=h.el,null===d&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,h.el),a&&Tn(a,r),(t=n.props&&n.props.onVnodeUpdated)&&Tn((()=>jn(t,c,n,u)),r),__VUE_PROD_DEVTOOLS__&&Ft(e)}else{let l;const{el:a,props:c}=t,{bm:u,m:p,parent:d}=e,h=cn(t);if(s.allowRecurse=!1,u&&Lt(u),!h&&(l=c&&c.onVnodeBeforeMount)&&jn(l,d,t),s.allowRecurse=!0,a&&X){const n=()=>{e.subTree=Jt(e),X(a,e.subTree,e,r,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=Jt(e);g(null,l,n,o,e,r,i),t.el=l.el}if(p&&Tn(p,r),!h&&(l=c&&c.onVnodeMounted)){const e=t;Tn((()=>jn(l,d,e)),r)}256&t.shapeFlag&&e.a&&Tn(e.a,r),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Pt(e),t=n=o=null}}),(()=>Wo(e.update)),e.scope),a=e.update=s.run.bind(s);a.id=e.uid,s.allowRecurse=a.allowRecurse=!0,a()},$=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,s=Te(r),[a]=e.propsOptions;let c=!1;if(!(o||l>0)||16&l){let o;mn(e,t,r,i)&&(c=!0);for(const i in s)t&&(at(t,i)||(o=Ct(i))!==i&&at(t,o))||(a?!n||void 0===n[i]&&void 0===n[o]||(r[i]=gn(a,s,i,void 0,e,!0)):delete r[i]);if(i!==s)for(const e in i)t&&at(t,e)||(delete i[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let l=n[o];const u=t[l];if(a)if(at(i,l))u!==i[l]&&(i[l]=u,c=!0);else{const t=xt(l);r[t]=gn(a,s,t,u,e,!1)}else u!==i[l]&&(i[l]=u,c=!0)}}c&&V(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,l=Ge;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:(lt(r,t),n||1!==e||delete r._):(i=!t.$stable,Sn(t,r)),l=t}else t&&(En(e,t),l={default:1});if(i)for(const e in r)xn(e)||e in l||delete r[e]})(e,t.children,n),M(),Jo(void 0,e.update),U()},j=(e,t,n,o,r,i,l,s,a=!1)=>{const c=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void N(c,d,n,o,r,i,l,s,a);if(256&h)return void F(c,d,n,o,r,i,l,s,a)}8&f?(16&p&&Z(c,r,i),d!==c&&u(n,d)):16&p?16&f?N(c,d,n,o,r,i,l,s,a):Z(c,r,i,!0):(8&p&&u(n,""),16&f&&C(d,n,o,r,i,l,s,a))},F=(e,t,n,o,r,i,l,s,a)=>{t=t||et;const c=(e=e||et).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const o=t[d]=a?uo(t[d]):co(t[d]);g(e[d],o,n,null,r,i,l,s,a)}c>u?Z(e,r,i,!0,!1,p):C(t,n,o,r,i,l,s,a,p)},N=(e,t,n,o,r,i,l,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const o=e[c],u=t[c]=a?uo(t[c]):co(t[c]);if(!eo(o,u))break;g(o,u,n,null,r,i,l,s,a),c++}for(;c<=p&&c<=d;){const o=e[p],c=t[d]=a?uo(t[d]):co(t[d]);if(!eo(o,c))break;g(o,c,n,null,r,i,l,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:o;for(;c<=d;)g(null,t[c]=a?uo(t[c]):co(t[c]),n,p,r,i,l,s,a),c++}}else if(c>d)for(;c<=p;)B(e[c],r,i,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?uo(t[c]):co(t[c]);null!=e.key&&m.set(e.key,c)}let v,b=0;const y=d-f+1;let w=!1,k=0;const x=new Array(y);for(c=0;c<y;c++)x[c]=0;for(c=h;c<=p;c++){const o=e[c];if(b>=y){B(o,r,i,!0);continue}let u;if(null!=o.key)u=m.get(o.key);else for(v=f;v<=d;v++)if(0===x[v-f]&&eo(o,t[v])){u=v;break}void 0===u?B(o,r,i,!0):(x[u-f]=c+1,u>=k?k=u:w=!0,g(o,t[u],n,null,r,i,l,s,a),b++)}const _=w?function(e){const t=e.slice(),n=[0];let o,r,i,l,s;const a=e.length;for(o=0;o<a;o++){const a=e[o];if(0!==a){if(r=n[n.length-1],e[r]<a){t[o]=r,n.push(o);continue}for(i=0,l=n.length-1;i<l;)s=i+l>>1,e[n[s]]<a?i=s+1:l=s;a<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}(x):et;for(v=_.length-1,c=y-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:o;0===x[c]?g(null,p,n,d,r,i,l,s,a):w&&(v<0||c!==_[v]?D(p,n,d,2):v--)}}},D=(e,t,n,r,i=null)=>{const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)D(e.component.subTree,t,n,r);else if(128&u)e.suspense.move(t,n,r);else if(64&u)s.move(e,t,n,Q);else if(s!==Vn)if(s!==qn)if(2!==r&&1&u&&a)if(0===r)a.beforeEnter(l),o(l,t,n),Tn((()=>a.enter(l)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=a,s=()=>o(l,t,n),c=()=>{e(l,(()=>{s(),i&&i()}))};r?r(l,s,c):c()}else o(l,t,n);else(({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=d(e),o(e,n,r),e=i;o(t,n,r)})(e,t,n);else{o(l,t,n);for(let e=0;e<c.length;e++)D(c[e],t,n,r);o(e.anchor,t,n)}},B=(e,t,n,o=!1,r=!1)=>{const{type:i,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&$n(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!cn(e);let m;if(f&&(m=l&&l.onVnodeBeforeUnmount)&&jn(m,t,e),6&u)H(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Ln(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,Q,o):c&&(i!==Vn||p>0&&64&p)?Z(c,t,n,!1,!0):(i===Vn&&384&p||!r&&16&u)&&Z(a,t,n),o&&q(e)}(f&&(m=l&&l.onVnodeUnmounted)||h)&&Tn((()=>{m&&jn(m,t,e),h&&Ln(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:o,transition:i}=e;if(t===Vn)return void W(n,o);if(t===qn)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),r(e),e=n;r(t)})(e);const l=()=>{r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:o}=i,r=()=>t(n,l);o?o(e.el,l,r):r()}else l()},W=(e,t)=>{let n;for(;e!==t;)n=d(e),r(e),e=n;r(t)},H=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:l,um:s}=e;o&&Lt(o),r.stop(),i&&(i.active=!1,B(l,e,t,n)),s&&Tn(s,t),Tn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Nt(e)},Z=(e,t,n,o=!1,r=!1,i=0)=>{for(let l=i;l<e.length;l++)B(e[l],t,n,o,r)},J=e=>6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),K=(e,t,n)=>{null==e?t._vnode&&B(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),Ko(),t._vnode=e},Q={p:g,um:B,m:D,r:q,mt:O,mc:C,pc:j,pbc:E,n:J,o:e};let Y,X;return t&&([Y,X]=t(Q)),{render:K,hydrate:Y,createApp:Rn(K,Y)}}function $n(e,t,n,o,r=!1){if(ct(e))return void e.forEach(((e,i)=>$n(e,t&&(ct(t)?t[i]:t),n,o,r)));if(cn(o)&&!r)return;const i=4&o.shapeFlag?Ao(o.component)||o.component.proxy:o.el,l=r?null:i,{i:s,r:a}=e,c=t&&t.r,u=s.refs===Ge?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(ht(c)?(u[c]=null,at(p,c)&&(p[c]=null)):Pe(c)&&(c.value=null)),ht(a)){const e=()=>{u[a]=l,at(p,a)&&(p[a]=l)};l?(e.id=-1,Tn(e,n)):e()}else if(Pe(a)){const e=()=>{a.value=l};l?(e.id=-1,Tn(e,n)):e()}else dt(a)&&Lo(a,s,12,[l,u])}function jn(e,t,n,o=null){zo(e,t,7,[n,o])}function Mn(e,t,n=!1){const o=e.children,r=t.children;if(ct(o)&&ct(r))for(let e=0;e<o.length;e++){const t=o[e];let i=r[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=r[e]=uo(r[e]),i.el=t.el),n||Mn(t,i))}}const Un="components";function Pn(e,t){return function(e,t,n=!0,o=!1){const r=Wt||yo;if(r){const n=r.type;if(e===Un){const e=function(e){return dt(e)&&e.displayName||e.name}(n);if(e&&(e===t||e===xt(t)||e===St(xt(t))))return n}const i=Nn(r[e]||n[e],t)||Nn(r.appContext[e],t);return!i&&o?n:i}}(Un,e,!0,t)||e}const Fn=Symbol();function Nn(e,t){return e&&(e[t]||e[xt(t)]||e[St(xt(t))])}const Vn=Symbol(void 0),Dn=Symbol(void 0),Bn=Symbol(void 0),qn=Symbol(void 0),Wn=[];let Hn=null;function Zn(e=!1){Wn.push(Hn=e?null:[])}let Jn=1;function Kn(e){Jn+=e}function Qn(e){return e.dynamicChildren=Jn>0?Hn||et:null,Wn.pop(),Hn=Wn[Wn.length-1]||null,Jn>0&&Hn&&Hn.push(e),e}function Yn(e,t,n,o,r,i){return Qn(ro(e,t,n,o,r,i,!0))}function Xn(e,t,n,o,r){return Qn(io(e,t,n,o,r,!0))}function Gn(e){return!!e&&!0===e.__v_isVNode}function eo(e,t){return e.type===t.type&&e.key===t.key}const to="__vInternal",no=({key:e})=>null!=e?e:null,oo=({ref:e})=>null!=e?ht(e)||Pe(e)||dt(e)?{i:Wt,r:e}:e:null;function ro(e,t=null,n=null,o=0,r=null,i=(e===Vn?0:1),l=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&no(t),ref:t&&oo(t),scopeId:Ht,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return s?(po(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=ht(n)?8:16),Jn>0&&!l&&Hn&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Hn.push(a),a}const io=function(e,t=null,n=null,o=0,r=null,i=!1){if(e&&e!==Fn||(e=Bn),Gn(e)){const o=lo(e,t,!0);return n&&po(o,n),o}if(l=e,dt(l)&&"__vccOpts"in l&&(e=e.__vccOpts),t){t=function(e){return e?Re(e)||to in e?lt({},e):e:null}(t);let{class:e,style:n}=t;e&&!ht(e)&&(t.class=Qe(e)),ft(n)&&(Re(n)&&!ct(n)&&(n=lt({},n)),t.style=He(n))}var l;return ro(e,t,n,o,r,ht(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ft(e)?4:dt(e)?2:0,i,!0)};function lo(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:l}=e,s=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=Qe([t.class,o.class]));else if("style"===e)t.style=He([t.style,o.style]);else if(rt(e)){const n=t[e],r=o[e];n!==r&&(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&no(s),ref:t&&t.ref?n&&r?ct(r)?r.concat(oo(t)):[r,oo(t)]:oo(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Vn?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&lo(e.ssContent),ssFallback:e.ssFallback&&lo(e.ssFallback),el:e.el,anchor:e.anchor}}function so(e=" ",t=0){return io(Dn,null,e,t)}function ao(e="",t=!1){return t?(Zn(),Xn(Bn,null,e)):io(Bn,null,e)}function co(e){return null==e||"boolean"==typeof e?io(Bn):ct(e)?io(Vn,null,e.slice()):"object"==typeof e?uo(e):io(Dn,null,String(e))}function uo(e){return null===e.el||e.memo?e:lo(e)}function po(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(ct(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),po(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||to in t?3===o&&Wt&&(1===Wt.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Wt}}else dt(t)?(t={default:t,_ctx:Wt},n=32):(t=String(t),64&o?(n=16,t=[so(t)]):n=8);e.children=t,e.shapeFlag|=n}function ho(e,t,n,o){let r;const i=n&&n[o];if(ct(e)||ht(e)){r=new Array(e.length);for(let n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i&&i[n])}else if(ft(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,l=n.length;o<l;o++){const l=n[o];r[o]=t(e[l],l,o,i&&i[o])}}else r=[];return n&&(n[o]=r),r}const fo=e=>e?_o(e)?Ao(e)||e.proxy:fo(e.parent):null,mo=lt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>fo(e.parent),$root:e=>fo(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>()=>Wo(e.update),$nextTick:e=>qo.bind(e.proxy),$watch:e=>tt}),go={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:l,type:s,appContext:a}=e;let c;if("$"!==t[0]){const s=l[t];if(void 0!==s)switch(s){case 0:return o[t];case 1:return r[t];case 3:return n[t];case 2:return i[t]}else{if(o!==Ge&&at(o,t))return l[t]=0,o[t];if(r!==Ge&&at(r,t))return l[t]=1,r[t];if((c=e.propsOptions[0])&&at(c,t))return l[t]=2,i[t];if(n!==Ge&&at(n,t))return l[t]=3,n[t];l[t]=4}}const u=mo[t];let p,d;return u?("$attrs"===t&&P(e,0,t),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==Ge&&at(n,t)?(l[t]=3,n[t]):(d=a.config.globalProperties,at(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;if(r!==Ge&&at(r,t))r[t]=n;else if(o!==Ge&&at(o,t))o[t]=n;else if(at(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},l){let s;return void 0!==n[l]||e!==Ge&&at(e,l)||t!==Ge&&at(t,l)||(s=i[0])&&at(s,l)||at(o,l)||at(mo,l)||at(r.config.globalProperties,l)}},vo=zn();let bo=0;let yo=null;const wo=()=>yo||Wt,ko=e=>{yo=e,e.scope.on()},xo=()=>{yo&&yo.scope.off(),yo=null};function _o(e){return 4&e.vnode.shapeFlag}let Co=!1;function So(e,t,n){dt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=De(t)),Eo(e,n)}function Eo(e,t,n){const o=e.type;e.render||(e.render=o.render||tt)}function Ao(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(De(Ie(e.exposed)),{get:(t,n)=>n in t?t[n]:n in mo?mo[n](e):void 0}))}function Lo(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){Oo(e,t,n)}return r}function zo(e,t,n,o){if(dt(e)){const r=Lo(e,t,n,o);return r&&mt(r)&&r.catch((e=>{Oo(e,t,n)})),r}const r=[];for(let i=0;i<e.length;i++)r.push(zo(e[i],t,n,o));return r}function Oo(e,t,n,o=!0){if(t&&t.vnode,t){let o=t.parent;const r=t.proxy,i=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const l=t.appContext.config.errorHandler;if(l)return void Lo(l,null,10,[e,r,i])}!function(e,t,n,o=!0){console.error(e)}(e,0,0,o)}let Ro=!1,To=!1;const Io=[];let $o=0;const jo=[];let Mo=null,Uo=0;const Po=[];let Fo=null,No=0;const Vo=Promise.resolve();let Do=null,Bo=null;function qo(e){const t=Do||Vo;return e?t.then(this?e.bind(this):e):t}function Wo(e){Io.length&&Io.includes(e,Ro&&e.allowRecurse?$o+1:$o)||e===Bo||(null==e.id?Io.push(e):Io.splice(function(e){let t=$o+1,n=Io.length;for(;t<n;){const o=t+n>>>1;Qo(Io[o])<e?t=o+1:n=o}return t}(e.id),0,e),Ho())}function Ho(){Ro||To||(To=!0,Do=Vo.then(Yo))}function Zo(e,t,n,o){ct(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),Ho()}function Jo(e,t=null){if(jo.length){for(Bo=t,Mo=[...new Set(jo)],jo.length=0,Uo=0;Uo<Mo.length;Uo++)Mo[Uo]();Mo=null,Uo=0,Bo=null,Jo(e,t)}}function Ko(e){if(Po.length){const e=[...new Set(Po)];if(Po.length=0,Fo)return void Fo.push(...e);for(Fo=e,Fo.sort(((e,t)=>Qo(e)-Qo(t))),No=0;No<Fo.length;No++)Fo[No]();Fo=null,No=0}}const Qo=e=>null==e.id?1/0:e.id;function Yo(e){To=!1,Ro=!0,Jo(e),Io.sort(((e,t)=>Qo(e)-Qo(t)));try{for($o=0;$o<Io.length;$o++){const e=Io[$o];e&&!1!==e.active&&Lo(e,null,14)}}finally{$o=0,Io.length=0,Ko(),Ro=!1,Do=null,(Io.length||jo.length||Po.length)&&Yo(e)}}const Xo={};function Go(e,t,n){return function(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:l}=Ge){const s=yo;let a,c,u=!1,p=!1;if(Pe(e)?(a=()=>e.value,u=!!e._shallow):ze(e)?(a=()=>e,o=!0):ct(e)?(p=!0,u=e.some(ze),a=()=>e.map((e=>Pe(e)?e.value:ze(e)?er(e):dt(e)?Lo(e,s,2):void 0))):a=dt(e)?t?()=>Lo(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),zo(e,s,3,[d])}:tt,t&&o){const e=a;a=()=>er(e())}let d=e=>{c=g.onStop=()=>{Lo(e,s,4)}};if(Co)return d=tt,t?n&&zo(t,s,3,[a(),p?[]:void 0,d]):a(),tt;let h=p?[]:Xo;const f=()=>{if(g.active)if(t){const e=g.run();(o||u||(p?e.some(((e,t)=>At(e,h[t]))):At(e,h)))&&(c&&c(),zo(t,s,3,[e,h===Xo?void 0:h,d]),h=e)}else g.run()};let m;f.allowRecurse=!!t,m="sync"===r?f:"post"===r?()=>Tn(f,s&&s.suspense):()=>{!s||s.isMounted?function(e){Zo(e,Mo,jo,Uo)}(f):f()};const g=new T(a,m);return t?n?f():h=g.run():"post"===r?Tn(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(s.scope.effects,g)}}(e,t,n)}function er(e,t){if(!ft(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Pe(e))er(e.value,t);else if(ct(e))for(let n=0;n<e.length;n++)er(e[n],t);else if(pt(e)||ut(e))e.forEach((e=>{er(e,t)}));else if(bt(e))for(const n in e)er(e[n],t);return e}function tr(e,t,n){const o=arguments.length;return 2===o?ft(t)&&!ct(t)?Gn(t)?io(e,null,[t]):io(e,t):io(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Gn(n)&&(n=[n]),io(e,t,n))}Symbol("");const nr="3.2.21";function or(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const rr=or("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ir(e){return!!e||""===e}function lr(e,t){if(e===t)return!0;let n=dr(e),o=dr(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=ur(e),o=ur(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=lr(e[o],t[o]);return n}(e,t);if(n=mr(e),o=mr(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!lr(e[n],t[n]))return!1}}return String(e)===String(t)}function sr(e,t){return e.findIndex((e=>lr(e,t)))}const ar=/^on[^a-z]/,cr=Object.assign,ur=(Object.prototype.hasOwnProperty,Array.isArray),pr=e=>"[object Set]"===vr(e),dr=e=>e instanceof Date,hr=e=>"function"==typeof e,fr=e=>"string"==typeof e,mr=e=>null!==e&&"object"==typeof e,gr=Object.prototype.toString,vr=e=>gr.call(e),br=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},yr=/-(\w)/g,wr=(br((e=>e.replace(yr,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),kr=br((e=>e.replace(wr,"-$1").toLowerCase())),xr=br((e=>e.charAt(0).toUpperCase()+e.slice(1))),_r=(br((e=>e?`on${xr(e)}`:"")),e=>{const t=parseFloat(e);return isNaN(t)?e:t}),Cr="undefined"!=typeof document?document:null,Sr=new Map,Er={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Cr.createElementNS("http://www.w3.org/2000/svg",e):Cr.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Cr.createTextNode(e),createComment:e=>Cr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Cr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o){const r=n?n.previousSibling:t.lastChild;let i=Sr.get(e);if(!i){const t=Cr.createElement("template");if(t.innerHTML=o?`<svg>${e}</svg>`:e,i=t.content,o){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}Sr.set(e,i)}return t.insertBefore(i.cloneNode(!0),n),[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ar=/\s*!important$/;function Lr(e,t,n){if(ur(n))n.forEach((n=>Lr(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Or[t];if(n)return n;let o=xt(t);if("filter"!==o&&o in e)return Or[t]=o;o=xr(o);for(let n=0;n<zr.length;n++){const r=zr[n]+o;if(r in e)return Or[t]=r}return t}(e,t);Ar.test(n)?e.setProperty(kr(o),n.replace(Ar,""),"important"):e[o]=n}}const zr=["Webkit","Moz","ms"],Or={},Rr="http://www.w3.org/1999/xlink";let Tr=Date.now,Ir=!1;if("undefined"!=typeof window){Tr()>document.createEvent("Event").timeStamp&&(Tr=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Ir=!!(e&&Number(e[1])<=53)}let $r=0;const jr=Promise.resolve(),Mr=()=>{$r=0};function Ur(e,t,n,o){e.addEventListener(t,n,o)}const Pr=/(?:Once|Passive|Capture)$/,Fr=/^on[a-z]/;"undefined"!=typeof HTMLElement&&HTMLElement;const Nr="transition",Vr="animation",Dr=(e,{slots:t})=>tr(en,function(e){const t={};for(const n in e)n in Br||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:a=i,appearActiveClass:c=l,appearToClass:u=s,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(mr(e))return[Hr(e.enter),Hr(e.leave)];{const t=Hr(e);return[t,t]}}(r),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:y,onLeave:w,onLeaveCancelled:k,onBeforeAppear:x=v,onAppear:_=b,onAppearCancelled:C=y}=t,S=(e,t,n)=>{Jr(e,t?u:s),Jr(e,t?c:l),n&&n()},E=(e,t)=>{Jr(e,h),Jr(e,d),t&&t()},A=e=>(t,n)=>{const r=e?_:b,l=()=>S(t,e,n);qr(r,[t,l]),Kr((()=>{Jr(t,e?a:i),Zr(t,e?u:s),Wr(r)||Yr(t,o,m,l)}))};return cr(t,{onBeforeEnter(e){qr(v,[e]),Zr(e,i),Zr(e,l)},onBeforeAppear(e){qr(x,[e]),Zr(e,a),Zr(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){const n=()=>E(e,t);Zr(e,p),document.body.offsetHeight,Zr(e,d),Kr((()=>{Jr(e,p),Zr(e,h),Wr(w)||Yr(e,o,g,n)})),qr(w,[e,n])},onEnterCancelled(e){S(e,!1),qr(y,[e])},onAppearCancelled(e){S(e,!0),qr(C,[e])},onLeaveCancelled(e){E(e),qr(k,[e])}})}(e),t);Dr.displayName="Transition";const Br={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qr=(Dr.props=cr({},en.props,Br),(e,t=[])=>{ur(e)?e.forEach((e=>e(...t))):e&&e(...t)}),Wr=e=>!!e&&(ur(e)?e.some((e=>e.length>1)):e.length>1);function Hr(e){return _r(e)}function Zr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Jr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Kr(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Qr=0;function Yr(e,t,n,o){const r=e._endId=++Qr,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:l,timeout:s,propCount:a}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),i=o("transitionDuration"),l=Xr(r,i),s=o("animationDelay"),a=o("animationDuration"),c=Xr(s,a);let u=null,p=0,d=0;return t===Nr?l>0&&(u=Nr,p=l,d=i.length):t===Vr?c>0&&(u=Vr,p=c,d=a.length):(p=Math.max(l,c),u=p>0?l>c?Nr:Vr:null,d=u?u===Nr?i.length:a.length:0),{type:u,timeout:p,propCount:d,hasTransform:u===Nr&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}(e,t);if(!l)return o();const c=l+"end";let u=0;const p=()=>{e.removeEventListener(c,d),i()},d=t=>{t.target===e&&++u>=a&&p()};setTimeout((()=>{u<a&&p()}),s+1),e.addEventListener(c,d)}function Xr(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>Gr(t)+Gr(e[n]))))}function Gr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const ei=e=>{const t=e.props["onUpdate:modelValue"];return ur(t)?e=>((e,t)=>{for(let n=0;n<e.length;n++)e[n](t)})(t,e):t};function ti(e){e.target.composing=!0}function ni(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const oi={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=ei(r);const i=o||r.props&&"number"===r.props.type;Ur(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n?o=o.trim():i&&(o=_r(o)),e._assign(o)})),n&&Ur(e,"change",(()=>{e.value=e.value.trim()})),t||(Ur(e,"compositionstart",ti),Ur(e,"compositionend",ni),Ur(e,"change",ni))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=ei(i),e.composing)return;if(document.activeElement===e){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&_r(e.value)===t)return}const l=null==t?"":t;e.value!==l&&(e.value=l)}},ri={deep:!0,created(e,t,n){e._assign=ei(n),Ur(e,"change",(()=>{const t=e._modelValue,n=ci(e),o=e.checked,r=e._assign;if(ur(t)){const e=sr(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(pr(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(ui(e,o))}))},mounted:ii,beforeUpdate(e,t,n){e._assign=ei(n),ii(e,t,n)}};function ii(e,{value:t,oldValue:n},o){e._modelValue=t,ur(t)?e.checked=sr(t,o.props.value)>-1:pr(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=lr(t,ui(e,!0)))}const li={created(e,{value:t},n){e.checked=lr(t,n.props.value),e._assign=ei(n),Ur(e,"change",(()=>{e._assign(ci(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=ei(o),t!==n&&(e.checked=lr(t,o.props.value))}},si={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=pr(t);Ur(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?_r(ci(e)):ci(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=ei(o)},mounted(e,{value:t}){ai(e,t)},beforeUpdate(e,t,n){e._assign=ei(n)},updated(e,{value:t}){ai(e,t)}};function ai(e,t){const n=e.multiple;if(!n||ur(t)||pr(t)){for(let o=0,r=e.options.length;o<r;o++){const r=e.options[o],i=ci(r);if(n)ur(t)?r.selected=sr(t,i)>-1:r.selected=t.has(i);else if(lr(ci(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ci(e){return"_value"in e?e._value:e.value}function ui(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const pi={created(e,t,n){di(e,t,n,null,"created")},mounted(e,t,n){di(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){di(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){di(e,t,n,o,"updated")}};function di(e,t,n,o,r){let i;switch(e.tagName){case"SELECT":i=si;break;case"TEXTAREA":i=oi;break;default:switch(n.props&&n.props.type){case"checkbox":i=ri;break;case"radio":i=li;break;default:i=oi}}const l=i[r];l&&l(e,t,n,o)}const hi=cr({patchProp:(e,t,n,o,r=!1,i,l,s,a)=>{"class"===t?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=fr(n);if(n&&!r){for(const e in n)Lr(o,e,n[e]);if(t&&!fr(t))for(const e in t)null==n[e]&&Lr(o,e,"")}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}}(e,n,o):(e=>ar.test(e))(t)?(e=>e.startsWith("onUpdate:"))(t)||function(e,t,n,o,r=null){const i=e._vei||(e._vei={}),l=i[t];if(o&&l)l.value=o;else{const[n,s]=function(e){let t;if(Pr.test(e)){let n;for(t={};n=e.match(Pr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[kr(e.slice(2)),t]}(t);if(o){const l=i[t]=function(e,t){const n=e=>{const o=e.timeStamp||Tr();(Ir||o>=n.attached-1)&&zo(function(e,t){if(ur(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=$r||(jr.then(Mr),$r=Tr()),n}(o,r);Ur(e,n,l,s)}else l&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,s),i[t]=void 0)}}(e,t,0,o,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&Fr.test(t)&&hr(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Fr.test(t)||!fr(n))&&t in e))))}(e,t,o,r))?function(e,t,n,o,r,i,l){if("innerHTML"===t||"textContent"===t)return o&&l(o,r,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const o=null==n?"":n;return e.value!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if("boolean"===o)return void(e[t]=ir(n));if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,t,o,i,l,s,a):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Rr,t.slice(6,t.length)):e.setAttributeNS(Rr,t,n);else{const o=rr(t);null==n||o&&!ir(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},Er);let fi;const mi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("object"==typeof e&&e.errno)throw new TypeError("Fetch ".concat(t," failed with ").concat(e.errno,": ").concat(e.errmsg));return e},gi=e=>{try{e=decodeURI(e)}catch(e){}return e},vi=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},bi=e=>/^(https?:)?\/\//.test(e),yi=["mp","identicon","monsterid","wavatar","robohash","retro",""],wi=["nick","mail","link"],ki=e=>e&&yi.includes(e)?e:"mp",xi=e=>e.filter((e=>wi.includes(e))),_i="zh-CN",Ci=e=>new Promise(((t,n)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=()=>{var e;return t((null===(e=o.result)||void 0===e?void 0:e.toString())||"")},o.onerror=n})),Si=e=>!0===e?'<p class="vtex">Tex is not available in preview</p>':'<span class="vtex">Tex is not available in preview</span>',Ei=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous"],Ai=e=>Object.fromEntries(e.map(((e,t)=>[Ei[t],e]))),Li=Ai(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous"]),zi=Ai(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),Oi=Ai(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名"]),Ri=Ai(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名"]),Ti=Ai(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo"]),Ii={zh:Oi,"zh-cn":Oi,"zh-CN":Oi,"zh-tw":Ri,"zh-TW":Ri,en:Li,"en-US":Li,jp:zi,"jp-jp":zi,"jp-JP":zi,"pt-br":Ti,"pt-BR":Ti},$i=e=>{let t={};const n=localStorage.getItem(e);if(n)try{t=JSON.parse(n)}catch(e){}return{get:e=>t[e]||null,set(n,o){try{t[n]=JSON.parse(JSON.stringify(o)),localStorage.setItem(e,JSON.stringify(t))}catch(e){}},update(n){t=JSON.parse(JSON.stringify(n)),localStorage.setItem(e,JSON.stringify(t))}}};let ji;const Mi=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"".concat(t,"/").concat(n).concat(e).concat(o?".".concat(o):"")};var Ui=n(948),Pi=n.n(Ui);const Fi=e=>{const t=vi(e);return bi(t)?t:"https://".concat(t)},Ni=(e,t)=>"function"==typeof e?e:!1!==e&&t,Vi=e=>{let{el:t="#waline",serverURL:n,placeholder:o,langMode:r,emojiCDN:i,emojiMaps:l,requiredFields:s=[],anonymous:a,avatarCDN:c,avatar:u,avatarForce:p,previewMath:d,path:h=location.pathname,lang:f=_i,locale:m=r,emoji:g=["https://cdn.jsdelivr.net/gh/walinejs/emojis@1.0.0/weibo"],meta:v=["nick","mail","link"],requiredMeta:b=s,pageSize:y=10,wordLimit:w,uploadImage:k,highlight:x,tex:_=d,copyright:C=!0,login:S=(!0===a?"disable":!1===a?"force":"enable"),...E}=e;const A=Ii[f]||Ii[_i];o&&(A.placeholder=o);const L=i&&"object"==typeof l?Promise.resolve(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={};for(const o in e)n[o]=/(?:https?:)?\/\//.test(e[o])?e[o]:"".concat(t).concat(e[o]);return{tabs:[{name:"Emoji",icon:Object.values(n).pop()||"",items:Object.keys(n)}],map:n}}(l,i)):(z=g,Promise.all(z.map((e=>"string"==typeof e?(e=>{ji||(ji=$i("WALINE_EMOJI"));const t=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(t){const t=ji.get(e);if(t)return Promise.resolve(t)}return fetch("".concat(e,"/info.json")).then((e=>e.json())).then((n=>{const o={folder:e,...n};return t&&ji.set(e,o),o}))})(vi(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:o,icon:r,prefix:i,type:l,items:s}=e;t.tabs.push({name:n,icon:Mi(r,o,i,l),items:s.map((e=>{const n="".concat(i||"").concat(e);return t.map[n]=Mi(e,o,i,l),n}))})})),t})));var z;return{el:t,serverURL:Fi(n),path:gi(h),lang:f,locale:{...A,..."object"==typeof m?m:{}},emoji:L,wordLimit:Array.isArray(w)?w:!!w&&[0,w],meta:xi(v),requiredMeta:xi(b),pageSize:y,avatar:{cdn:c||"https://seccdn.libravatar.org/avatar/",param:"?d=".concat(ki(u)).concat(p?"&q=".concat(Math.random().toString(32).substring(2)):""),default:!u&&!c,hide:"hide"===u},uploadImage:Ni(k,Ci),highlight:Ni(x,Pi()),tex:Ni(_,Si),copyright:C,login:S,...E}},Di=e=>e.type.includes("image"),Bi=e=>{const t=Array.from(e).find(Di);return!!t&&t.getAsFile()},qi="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-text-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",Wi=(e,t)=>{if(!document.body.hasAttribute(t)){const n=document.createElement("style");n.appendChild(document.createTextNode(e)),document.head.appendChild(n),document.body.setAttribute(t,"")}},Hi=()=>{Wi('\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n/* See https://github.com/fred-wang/mathml.css */\n\n@namespace "http://www.w3.org/1998/Math/MathML";\nbody[waline-math] .v math{display:inline;font-size:0;font-family:Cambria Math,Latin Modern Math;text-indent:0}body[waline-math] .v math>*{font-size:14px}body[waline-math] .v math[display=block]{display:block;font-size:0;text-align:center}body[waline-math] .v math[display=block]>*{font-size:16px}body[waline-math] .v mfrac{display:inline-block !important;vertical-align:-50%;border-collapse:collapse;text-align:center}body[waline-math] .v mfrac>*{display:block !important}body[waline-math] .v mfrac>*+*{display:inline-block !important;vertical-align:top}body[waline-math] .v mfrac:not([linethickness="0"])>*:first-child{border-bottom:solid thin}body[waline-math] .v msub>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(2),body[waline-math] .v mmultiscripts>*:nth-child(2n+2),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+3){vertical-align:sub;font-size:.8em}body[waline-math] .v msup>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(3),body[waline-math] .v mmultiscripts>*:nth-child(2n+3),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+2){vertical-align:super;font-size:.8em}body[waline-math] .v mprescripts::after{content:";"}body[waline-math] .v munder,body[waline-math] .v mover,body[waline-math] .v munderover{display:inline-flex !important;flex-direction:column}body[waline-math] .v munder>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(2){order:1;font-size:.8em}body[waline-math] .v mover>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(3){order:-1;font-size:.8em}body[waline-math] .v munder{vertical-align:text-top}body[waline-math] .v mover{vertical-align:text-bottom}body[waline-math] .v munderover{vertical-align:middle}body[waline-math] .v msqrt,body[waline-math] .v mroot{display:inline-flex !important;vertical-align:middle;margin-left:.5em;border-top:solid thin}body[waline-math] .v msqrt::before,body[waline-math] .v mroot::before{content:"√";margin-left:-0.5em}body[waline-math] .v mroot>*:nth-child(2){order:-1;margin-right:.25em;margin-left:-0.75em;font-size:.8em}body[waline-math] .v menclose{display:inline-table !important;border-spacing:.4ex 0;border-collapse:separate}body[waline-math] .v menclose[notation*=top],body[waline-math] .v menclose[notation*=actuarial]{border-top:solid thin}body[waline-math] .v menclose[notation*=bottom],body[waline-math] .v menclose[notation*=madruwb]{border-bottom:solid thin}body[waline-math] .v menclose[notation*=right],body[waline-math] .v menclose[notation*=actuarial],body[waline-math] .v menclose[notation*=madruwb]{border-right:solid thin}body[waline-math] .v menclose[notation*=left]{border-left:solid thin}body[waline-math] .v menclose[notation*=box],body[waline-math] .v menclose[notation*=roundedbox],body[waline-math] .v menclose[notation*=circle]{border:solid thin}body[waline-math] .v menclose[notation*=roundedbox]{border-radius:15%}body[waline-math] .v menclose[notation*=circle]{border-radius:50%}body[waline-math] .v menclose[notation*=horizontalstrike]{text-decoration:line-through}body[waline-math] .v mtable{display:inline-table !important;vertical-align:middle;text-align:center}body[waline-math] .v mtr{display:table-row !important}body[waline-math] .v mtd{display:table-cell !important;padding:0 .5ex}body[waline-math] .v mspace{margin:.2em}body[waline-math] .v mi{font-style:italic}body[waline-math] .v mo{margin-right:.2em;margin-left:.2em}body[waline-math] .v ms::before,body[waline-math] .v ms::after{content:\'"\'}body[waline-math] .v ms[lquote]::before{content:attr(lquote)}body[waline-math] .v ms[lquote]::after{content:attr(rquote)}body[waline-math] .v [mathvariant=bold],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-weight:bold;font-style:normal}body[waline-math] .v [mathvariant=monospace]{font-style:normal;font-family:monospace}body[waline-math] .v [mathvariant=sans-serif],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:normal;font-family:sans-serif}body[waline-math] .v [mathvariant=italic],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:italic}body[waline-math] .v [mathvariant=normal]{font-style:normal}body[waline-math] .v mphantom{visibility:hidden}body[waline-math] .v merror{outline:solid thin red}body[waline-math] .v merror::before{content:"Error: "}body[waline-math] .v semantics>*:first-child{display:inline}body[waline-math] .v annotation,body[waline-math] .v annotation-xml{display:none !important;font-family:monospace}body[waline-math] .v math:active>semantics>*:first-child{display:none !important}body[waline-math] .v math:active annotation:first-of-type{display:inline !important}',"waline-math-style"),document.body.insertAdjacentHTML("afterbegin","<div style='border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;'><math xmlns='http://www.w3.org/1998/Math/MathML'><mspace height='23px' width='77px'></mspace></math></div>");const e=document.body.firstChild,t=e.firstChild.firstChild.getBoundingClientRect();document.body.removeChild(e),(Math.abs(t.height-23)>1||Math.abs(t.width-77)>1)&&document.body.setAttribute("waline-math","")},Zi=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null;let Ji={baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Ki=/[&<>"']/,Qi=/[&<>"']/g,Yi=/[<>"']|&(?!#?\w+;)/,Xi=/[<>"']|&(?!#?\w+;)/g,Gi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},el=e=>Gi[e];function tl(e,t){if(t){if(Ki.test(e))return e.replace(Qi,el)}else if(Yi.test(e))return e.replace(Xi,el);return e}const nl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function ol(e){return e.replace(nl,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const rl=/(^|[^\[])\^/g;function il(e,t){e=e.source||e,t=t||"";const n={replace:(t,o)=>(o=(o=o.source||o).replace(rl,"$1"),e=e.replace(t,o),n),getRegex:()=>new RegExp(e,t)};return n}const ll=/[^\w:]/g,sl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function al(e,t,n){if(e){let e;try{e=decodeURIComponent(ol(n)).replace(ll,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!sl.test(n)&&(n=function(e,t){cl[" "+e]||(ul.test(e)?cl[" "+e]=e+"/":cl[" "+e]=gl(e,"/",!0));const n=-1===(e=cl[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(pl,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(dl,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const cl={},ul=/^[^:]+:\/*[^/]*$/,pl=/^([^:]+:)[\s\S]*$/,dl=/^([^:]+:\/*[^/]*)[\s\S]*$/,hl={exec:function(){}};function fl(e){let t,n,o=1;for(;o<arguments.length;o++)for(n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function ml(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let o=!1,r=t;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"})).split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function gl(e,t,n){const o=e.length;if(0===o)return"";let r=0;for(;r<o;){const i=e.charAt(o-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.substr(0,o-r)}function vl(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function bl(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function yl(e,t,n,o){const r=t.href,i=t.title?tl(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){o.state.inLink=!0;const e={type:"link",raw:n,href:r,title:i,text:l,tokens:o.inlineTokens(l,[])};return o.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:i,text:tl(l)}}class wl{constructor(e){this.options=e||Ji}space(e){const t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:gl(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const o=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=o.length?e.slice(o.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=gl(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,o,r,i,l,s,a,c,u,p,d=t[1].trim();const h=d.length>1,f={type:"list",raw:"",ordered:h,start:h?+d.slice(0,-1):"",loose:!1,items:[]};d=h?`\\d{1,9}\\${d.slice(-1)}`:`\\${d}`,this.options.pedantic&&(d=h?d:"[*+-]");const m=new RegExp(`^( {0,3}${d})((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))`);for(;e&&!this.rules.block.hr.test(e)&&(t=m.exec(e));){u=t[2].split("\n"),this.options.pedantic?(i=2,p=u[0].trimLeft()):(i=t[2].search(/[^ ]/),i=t[1].length+(i>4?1:i),p=u[0].slice(i-t[1].length)),s=!1,n=t[0],!u[0]&&/^ *$/.test(u[1])&&(n=t[1]+u.slice(0,2).join("\n")+"\n",f.loose=!0,u=[]);const d=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(l=1;l<u.length;l++){if(c=u[l],this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),d.test(c)){n=t[1]+u.slice(0,l).join("\n")+"\n";break}if(s){if(!(c.search(/[^ ]/)>=i)&&c.trim()){n=t[1]+u.slice(0,l).join("\n")+"\n";break}p+="\n"+c.slice(i)}else c.trim()||(s=!0),c.search(/[^ ]/)>=i?p+="\n"+c.slice(i):p+="\n"+c}f.loose||(a?f.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(p),o&&(r="[ ] "!==o[0],p=p.replace(/^\[[ xX]\] +/,""))),f.items.push({type:"list_item",raw:n,task:!!o,checked:r,loose:!1,text:p}),f.raw+=n,e=e.slice(n.length)}f.items[f.items.length-1].raw=n.trimRight(),f.items[f.items.length-1].text=p.trimRight(),f.raw=f.raw.trimRight();const g=f.items.length;for(l=0;l<g;l++)this.lexer.state.top=!1,f.items[l].tokens=this.lexer.blockTokens(f.items[l].text,[]),f.items[l].tokens.some((e=>"space"===e.type))&&(f.loose=!0,f.items[l].loose=!0);return f}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):tl(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:ml(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,o,r,i,l=e.align.length;for(n=0;n<l;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(l=e.rows.length,n=0;n<l;n++)e.rows[n]=ml(e.rows[n],e.header.length).map((e=>({text:e})));for(l=e.header.length,o=0;o<l;o++)e.header[o].tokens=[],this.lexer.inlineTokens(e.header[o].text,e.header[o].tokens);for(l=e.rows.length,o=0;o<l;o++)for(i=e.rows[o],r=0;r<i.length;r++)i[r].tokens=[],this.lexer.inlineTokens(i[r].text,i[r].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:tl(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):tl(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=gl(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let o=0,r=0;for(;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])o++;else if(e[r]===t[1]&&(o--,o<0))return r;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],o="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],o=e[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),yl(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:o?o.replace(this.rules.inline._escapes,"$1"):o},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return yl(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o)return;if(o[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=o[1]||o[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){const n=o[0].length-1;let r,i,l=n,s=0;const a="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=a.exec(t));){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(i=r.length,o[3]||o[4]){l+=i;continue}if((o[5]||o[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(l-=i,l>0)continue;if(i=Math.min(i,i+l+s),Math.min(n,i)%2){const t=e.slice(1,n+o.index+i);return{type:"em",raw:e.slice(0,n+o.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+o.index+i-1);return{type:"strong",raw:e.slice(0,n+o.index+i+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),o=/^ /.test(e)&&/ $/.test(e);return n&&o&&(e=e.substring(1,e.length-1)),e=tl(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,o;return"@"===n[2]?(e=tl(this.options.mangle?t(n[1]):n[1]),o="mailto:"+e):(e=tl(n[1]),o=e),{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,o;if("@"===n[2])e=tl(this.options.mangle?t(n[0]):n[0]),o="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=tl(n[0]),o="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):tl(n[0]):n[0]:tl(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const kl={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:hl,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};kl.def=il(kl.def).replace("label",kl._label).replace("title",kl._title).getRegex(),kl.bullet=/(?:[*+-]|\d{1,9}[.)])/,kl.listItemStart=il(/^( *)(bull) */).replace("bull",kl.bullet).getRegex(),kl.list=il(kl.list).replace(/bull/g,kl.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+kl.def.source+")").getRegex(),kl._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",kl._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,kl.html=il(kl.html,"i").replace("comment",kl._comment).replace("tag",kl._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),kl.paragraph=il(kl._paragraph).replace("hr",kl.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",kl._tag).getRegex(),kl.blockquote=il(kl.blockquote).replace("paragraph",kl.paragraph).getRegex(),kl.normal=fl({},kl),kl.gfm=fl({},kl.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),kl.gfm.table=il(kl.gfm.table).replace("hr",kl.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",kl._tag).getRegex(),kl.pedantic=fl({},kl.normal,{html:il("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",kl._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hl,paragraph:il(kl.normal._paragraph).replace("hr",kl.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",kl.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const xl={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:hl,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:hl,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function _l(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Cl(e){let t,n,o="";const r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),o+="&#"+n+";";return o}xl._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",xl.punctuation=il(xl.punctuation).replace(/punctuation/g,xl._punctuation).getRegex(),xl.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,xl.escapedEmSt=/\\\*|\\_/g,xl._comment=il(kl._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),xl.emStrong.lDelim=il(xl.emStrong.lDelim).replace(/punct/g,xl._punctuation).getRegex(),xl.emStrong.rDelimAst=il(xl.emStrong.rDelimAst,"g").replace(/punct/g,xl._punctuation).getRegex(),xl.emStrong.rDelimUnd=il(xl.emStrong.rDelimUnd,"g").replace(/punct/g,xl._punctuation).getRegex(),xl._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,xl._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,xl._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,xl.autolink=il(xl.autolink).replace("scheme",xl._scheme).replace("email",xl._email).getRegex(),xl._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,xl.tag=il(xl.tag).replace("comment",xl._comment).replace("attribute",xl._attribute).getRegex(),xl._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,xl._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,xl._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,xl.link=il(xl.link).replace("label",xl._label).replace("href",xl._href).replace("title",xl._title).getRegex(),xl.reflink=il(xl.reflink).replace("label",xl._label).getRegex(),xl.reflinkSearch=il(xl.reflinkSearch,"g").replace("reflink",xl.reflink).replace("nolink",xl.nolink).getRegex(),xl.normal=fl({},xl),xl.pedantic=fl({},xl.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:il(/^!?\[(label)\]\((.*?)\)/).replace("label",xl._label).getRegex(),reflink:il(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xl._label).getRegex()}),xl.gfm=fl({},xl.normal,{escape:il(xl.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),xl.gfm.url=il(xl.gfm.url,"i").replace("email",xl.gfm._extended_email).getRegex(),xl.breaks=fl({},xl.gfm,{br:il(xl.br).replace("{2,}","*").getRegex(),text:il(xl.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Sl{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ji,this.options.tokenizer=this.options.tokenizer||new wl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:kl.normal,inline:xl.normal};this.options.pedantic?(t.block=kl.pedantic,t.inline=xl.pedantic):this.options.gfm&&(t.block=kl.gfm,this.options.breaks?t.inline=xl.breaks:t.inline=xl.gfm),this.tokenizer.rules=t}static get rules(){return{block:kl,inline:xl}}static lex(e,t){return new Sl(t).lex(e)}static lexInline(e,t){return new Sl(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,o,r,i;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((o=>!!(n=o.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),o=t[t.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?t.push(n):(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),o=t[t.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(o.raw+="\n"+n.raw,o.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startBlock.forEach((function(e){o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r)))o=t[t.length-1],i&&"paragraph"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(n),i=r.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,o,r,i,l,s,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+bl("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,i.index)+"["+bl("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,i.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(s=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((o=>!!(n=o.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===n.type&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===n.type&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,Cl))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Cl))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startInline.forEach((function(e){o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r,_l))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),l=!0,o=t[t.length-1],o&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class El{constructor(e){this.options=e||Ji}code(e,t,n){const o=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,o);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",o?'<pre><code class="'+this.options.langPrefix+tl(o,!0)+'">'+(n?e:tl(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:tl(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,o){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+o.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+o+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=al(this.options.sanitize,this.options.baseUrl,e)))return n;let o='<a href="'+tl(e)+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>",o}image(e,t,n){if(null===(e=al(this.options.sanitize,this.options.baseUrl,e)))return n;let o='<img src="'+e+'" alt="'+n+'"';return t&&(o+=' title="'+t+'"'),o+=this.options.xhtml?"/>":">",o}text(e){return e}}class Al{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Ll{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do{o++,n=e+"-"+o}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=o,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class zl{constructor(e){this.options=e||Ji,this.options.renderer=this.options.renderer||new El,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Al,this.slugger=new Ll}static parse(e,t){return new zl(t).parse(e)}static parseInline(e,t){return new zl(t).parseInline(e)}parse(e,t=!0){let n,o,r,i,l,s,a,c,u,p,d,h,f,m,g,v,b,y,w,k="";const x=e.length;for(n=0;n<x;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(w=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))k+=w||"";else switch(p.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(p.tokens),p.depth,ol(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",i=p.header.length,o=0;o<i;o++)a+=this.renderer.tablecell(this.parseInline(p.header[o].tokens),{header:!0,align:p.align[o]});for(c+=this.renderer.tablerow(a),u="",i=p.rows.length,o=0;o<i;o++){for(s=p.rows[o],a="",l=s.length,r=0;r<l;r++)a+=this.renderer.tablecell(this.parseInline(s[r].tokens),{header:!1,align:p.align[r]});u+=this.renderer.tablerow(a)}k+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,i=p.items.length,u="",o=0;o<i;o++)g=p.items[o],v=g.checked,b=g.task,m="",g.task&&(y=this.renderer.checkbox(v),f?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):m+=y),m+=this.parse(g.tokens,f),u+=this.renderer.listitem(m,b,v);k+=this.renderer.list(u,d,h);continue;case"html":k+=this.renderer.html(p.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<x&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);k+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,o,r,i="";const l=e.length;for(n=0;n<l;n++)if(o=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]&&(r=this.options.extensions.renderers[o.type].call({parser:this},o),!1!==r||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)))i+=r||"";else switch(o.type){case"escape":case"text":i+=t.text(o.text);break;case"html":i+=t.html(o.text);break;case"link":i+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break;case"image":i+=t.image(o.href,o.title,o.text);break;case"strong":i+=t.strong(this.parseInline(o.tokens,t));break;case"em":i+=t.em(this.parseInline(o.tokens,t));break;case"codespan":i+=t.codespan(o.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(o.tokens,t));break;default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}function Ol(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),vl(t=fl({},Ol.defaults,t||{})),n){const o=t.highlight;let r;try{r=Sl.lex(e,t)}catch(e){return n(e)}const i=function(e){let i;if(!e)try{t.walkTokens&&Ol.walkTokens(r,t.walkTokens),i=zl.parse(r,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,i)};if(!o||o.length<3)return i();if(delete t.highlight,!r.length)return i();let l=0;return Ol.walkTokens(r,(function(e){"code"===e.type&&(l++,setTimeout((()=>{o(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&i()}))}),0))})),void(0===l&&i())}try{const n=Sl.lex(e,t);return t.walkTokens&&Ol.walkTokens(n,t.walkTokens),zl.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+tl(e.message+"",!0)+"</pre>";throw e}}Ol.options=Ol.setOptions=function(e){var t;return fl(Ol.defaults,e),t=Ol.defaults,Ji=t,Ol},Ol.getDefaults=function(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Ol.defaults=Ji,Ol.use=function(...e){const t=fl({},...e),n=Ol.defaults.extensions||{renderers:{},childTokens:{}};let o;e.forEach((e=>{if(e.extensions&&(o=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=Ol.defaults.renderer||new El;for(const t in e.renderer){const o=n[t];n[t]=(...r)=>{let i=e.renderer[t].apply(n,r);return!1===i&&(i=o.apply(n,r)),i}}t.renderer=n}if(e.tokenizer){const n=Ol.defaults.tokenizer||new wl;for(const t in e.tokenizer){const o=n[t];n[t]=(...r)=>{let i=e.tokenizer[t].apply(n,r);return!1===i&&(i=o.apply(n,r)),i}}t.tokenizer=n}if(e.walkTokens){const n=Ol.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}o&&(t.extensions=n),Ol.setOptions(t)}))},Ol.walkTokens=function(e,t){for(const n of e)switch(t.call(Ol,n),n.type){case"table":for(const e of n.header)Ol.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Ol.walkTokens(n.tokens,t);break;case"list":Ol.walkTokens(n.items,t);break;default:Ol.defaults.extensions&&Ol.defaults.extensions.childTokens&&Ol.defaults.extensions.childTokens[n.type]?Ol.defaults.extensions.childTokens[n.type].forEach((function(e){Ol.walkTokens(n[e],t)})):n.tokens&&Ol.walkTokens(n.tokens,t)}},Ol.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");vl(t=fl({},Ol.defaults,t||{}));try{const n=Sl.lexInline(e,t);return t.walkTokens&&Ol.walkTokens(n,t.walkTokens),zl.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+tl(e.message+"",!0)+"</pre>";throw e}},Ol.Parser=zl,Ol.parser=zl.parse,Ol.Renderer=El,Ol.TextRenderer=Al,Ol.Lexer=Sl,Ol.lexer=Sl.lex,Ol.Tokenizer=wl,Ol.Slugger=Ll,Ol.parse=Ol,Ol.options,Ol.setOptions,Ol.use,Ol.walkTokens,Ol.parseInline,zl.parse,Sl.lex;const Rl=/\$.*?\$/,Tl=/^\$(.*?)\$/,Il=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,$l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/:(.+?):/g,((e,n)=>t[n]?'<img class="vemoji" src="'.concat(t[n],'" alt="').concat(n,'">'):e))},jl=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Ml=(e,t)=>{if(e)try{"string"==typeof e&&(e=new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e));const n=e.getTime(),o=(new Date).getTime()-n,r=Math.floor(o/864e5);if(0===r){const e=o%864e5,n=Math.floor(e/36e5);if(0===n){const n=e%36e5,o=Math.floor(n/6e4);if(0===o){const e=n%6e4,o=Math.round(e/1e3);return"".concat(o," ").concat(t.seconds)}return"".concat(o," ").concat(t.minutes)}return"".concat(n," ").concat(t.hours)}return r<0?t.now:r<8?"".concat(r," ").concat(t.days):(e=>{const t=jl(e.getDate(),2),n=jl(e.getMonth()+1,2),o=jl(e.getFullYear(),2);return"".concat(o,"-").concat(n,"-").concat(t)})(e)}catch(e){console.log(e)}return""},Ul=(e,t)=>{t.forEach(((t,n)=>{(t.querySelector(".leancloud-visitors-count")||t).innerText=e[n].toString()}))};let Pl,Fl;const Nl=()=>(Fl||(Pl=$i("WALINE_USER_CACHE"),Fl=Ee({nick:Pl.get("nick")||"",mail:Pl.get("mail")||"",link:Pl.get("link")||"",editor:""})),{inputs:Fl,store:Pl}),Vl="WALINE_USER",Dl=Fe({}),Bl=()=>{if(!Dl.value)try{Dl.value=JSON.parse(localStorage.getItem(Vl)||"")||JSON.parse(sessionStorage.getItem(Vl)||"")||{}}catch(e){}return{userInfo:Ae(Dl),setUserInfo:e=>{Dl.value=e}}},ql={class:"v","data-class":"v"},Wl={class:"vcount"},Hl=["textContent"],Zl={class:"vcards"},Jl={key:1,class:"vloading"},Kl=["textContent"],Ql={key:2,class:"vloading"},Yl=["textContent"],Xl={key:4,class:"vmore"},Gl=["textContent"],es={key:5,class:"vpower"},ts=so(" Powered by "),ns=ro("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1),os={class:"vcomment"},rs={key:0,class:"vlogin-info"},is={class:"vavatar"},ls=["title"],ss=["src"],as=["textContent"],cs={class:"vpanel"},us=["for","textContent"],ps=["id","name","type","onUpdate:modelValue"],ds=["placeholder"],hs=["innerHTML"],fs={class:"vfooter"},ms={class:"vactions"},gs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"vaction",target:"_blank",rel:"noreferrer"},vs=["title"],bs=["title"],ys=["title"],ws={class:"vinfo"},ks={class:"vtext-number"},xs={key:0},_s=so("  /  "),Cs=["textContent"],Ss=["textContent"],Es=["disabled"],As={key:0,class:"vtab-wrapper"},Ls=["title","onClick"],zs=["src","alt"],Os={key:0,class:"vtabs"},Rs=["onClick"],Ts=["src","alt","title"],Is=["title"];var $s,js,Ms="function"==typeof Map?new Map:($s=[],js=[],{has:function(e){return $s.indexOf(e)>-1},get:function(e){return js[$s.indexOf(e)]},set:function(e,t){-1===$s.indexOf(e)&&($s.push(e),js.push(t))},delete:function(e){var t=$s.indexOf(e);t>-1&&($s.splice(t,1),js.splice(t,1))}}),Us=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch($s){Us=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Ps(e){var t=Ms.get(e);t&&t.destroy()}function Fs(e){var t=Ms.get(e);t&&t.update()}var Ns=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Ns=function(e){return e}).destroy=function(e){return e},Ns.update=function(e){return e}):((Ns=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Ms.has(e)){var t,n=null,o=null,r=null,i=function(){e.clientWidth!==o&&c()},l=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),Ms.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",Ms.set(e,{destroy:l,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(s("scroll"),a(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==o){r=o;var i=Us("autosize:resized");try{e.dispatchEvent(i)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ps),e},Ns.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Fs),e});const Vs=Ns,Ds=e=>{let{size:t}=e;return tr("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},tr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},tr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))},Bs=an({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return tr("svg",{class:"vclose-icon",viewBox:"0 0 1024 1024",width:t,height:t},[tr("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),tr("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})])},EmojiIcon:()=>tr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},tr("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),ImageIcon:()=>tr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[tr("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),tr("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),MarkdownIcon:()=>tr("svg",{width:"16",height:"16",ariaHidden:"true"},tr("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),PreviewIcon:()=>tr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[tr("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),tr("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),LoadingIcon:Ds},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,t){let{emit:n}=t;const o=Xt("config"),{inputs:r,store:i}=Nl(),{userInfo:l,setUserInfo:s}=Bl(),a=Fe({}),c=Fe(null),u=Fe(null),p=Fe(null),d=Fe(null),h=Fe({tabs:[],map:{}}),f=Fe(0),m=Fe(!1),g=Fe(!1),v=Fe(""),b=Fe(0),y=Fe(0),w=Fe(!1),k=Fe(""),x=Fe(!1),_=qe((()=>o.value.locale)),C=qe((()=>{var e;return Boolean(null===(e=l.value)||void 0===e?void 0:e.token)})),S=qe((()=>!1!==o.value.uploadImage)),E=e=>{const t=c.value,n=t.selectionStart,o=t.selectionEnd||0,i=t.scrollTop;r.editor=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=i},A=e=>{const t="![".concat(o.value.locale.uploading," ").concat(e.name,"]()");return E(t),Promise.resolve().then((()=>o.value.uploadImage(e))).then((n=>{r.editor=r.editor.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))}))},L=()=>{var t,s;const{serverURL:u,lang:p,login:d,wordLimit:f,requiredMeta:m}=o.value,g={comment:k.value,nick:r.nick,mail:r.mail,link:r.link,ua:navigator.userAgent,url:o.value.path};if(null!==(t=l.value)&&void 0!==t&&t.token)g.nick=l.value.display_name,g.mail=l.value.email,g.link=l.value.url;else{if("force"===d)return;var y,C,S;if((m.indexOf("nick")>-1||g.nick)&&!g.nick)return null===(y=a.value.nick)||void 0===y||y.focus(),alert(_.value.nickError);if((m.indexOf("mail")>-1||g.mail)&&!/^(\w)+([._-]\w+)*@(\w)+((\.\w{2,}){1,3})$/.exec(g.mail))return null===(C=a.value.mail)||void 0===C||C.focus(),alert(_.value.mailError);if(!g.comment)return void(null===(S=c.value)||void 0===S||S.focus());g.nick||(g.nick=_.value.anonymous)}if(!w.value)return alert(_.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",b.value.toString()));g.comment=$l(g.comment,h.value.map),e.replyId&&e.rootId&&(g.pid=e.replyId,g.rid=e.rootId,g.at=e.replyUser),x.value=!0,(e=>{let{serverURL:t,lang:n,token:o,comment:r}=e;const i={"Content-Type":"application/json"};return o&&(i.Authorization="Bearer ".concat(o)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:i,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:u,lang:p,token:null===(s=l.value)||void 0===s?void 0:s.token,comment:g}).then((t=>{if(x.value=!1,i.update({nick:g.nick,link:g.link,mail:g.mail}),t.errmsg)return alert(t.errmsg);n("submit",t.data),r.editor="",v.value="",e.replyId&&n("cancel-reply")})).catch((e=>{x.value=!1,alert(e.message)}))},z=e=>{p.value.contains(e.target)||d.value.contains(e.target)||(m.value=!1)};return Go((()=>r.editor),(e=>{const{highlight:t,tex:n}=o.value;k.value=e,v.value=((e,t,n,o)=>{if(Ol.setOptions({highlight:t||void 0,breaks:!0,smartLists:!0,smartypants:!0}),o){const e=(e=>{const t={name:"blockMath",level:"block",tokenizer(t){const n=Il.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},n={name:"inlineMath",level:"inline",start(e){const t=e.search(Rl);return-1!==t?t:e.length},tokenizer(t){const n=Tl.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}};return[t,n]})(o);Ol.use({extensions:e})}return Ol.parse($l(e,n))})(e,t,h.value.map,n),b.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),c.value&&(e?Vs(c.value):Vs.destroy(c.value))}),{immediate:!0}),Go((()=>o.value.emoji),(e=>e.then((e=>{h.value=e}))),{immediate:!0}),Go([o,b],(e=>{let[t,n]=e;const{wordLimit:o}=t;o?n<o[0]&&0!==o[0]?(y.value=o[0],w.value=!1):n>o[1]?(y.value=o[1],w.value=!1):(y.value=o[1],w.value=!0):(y.value=0,w.value=!0)}),{immediate:!0}),dn((()=>{document.body.addEventListener("click",z)})),fn((()=>{document.body.removeEventListener("click",z)})),{config:o,locale:_,insert:E,onChange:()=>{const e=u.value;e.files&&S.value&&A(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=Bi(e.dataTransfer.items);t&&S.value&&(A(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&L()},onPaste:e=>{if(e.clipboardData){const t=Bi(e.clipboardData.items);t&&S.value&&A(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,l=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(r,",top=").concat(i,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==l||l.postMessage({type:"TOKEN",data:null},"*");const a=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==l||l.close(),s(t.data),(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{s({}),localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2,a=window.open("".concat(n,"/ui/profile?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(800,",height=").concat(800,",left=").concat(r,",top=").concat(i,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==a||a.postMessage({type:"TOKEN",data:l.value.token},"*");const c=e=>{let{data:t}=e;t&&"profile"===t.type&&(s(Object.assign({},l.value,t)),[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(l)))),window.removeEventListener("message",c))};window.addEventListener("message",c)},submitComment:L,isLogin:C,userInfo:l,isSubmitting:x,wordNumber:b,wordLimit:y,isWordNumberLegal:w,inputs:r,emoji:h,emojiTabIndex:f,showEmoji:m,canUploadImage:S,previewText:v,showPreview:g,inputRefs:a,editorRef:c,emojiButtonRef:p,emojiPopupRef:d,imageUploadRef:u}}});var qs=n(407);const Ws=(0,qs.Z)(Bs,[["render",function(e,t,n,o,r,i){const l=Pn("CloseIcon"),s=Pn("MarkdownIcon"),a=Pn("EmojiIcon"),c=Pn("ImageIcon"),u=Pn("PreviewIcon"),p=Pn("LoadingIcon");return Zn(),Yn("div",os,["disable"!==e.config.login&&e.isLogin?(Zn(),Yn("div",rs,[ro("div",is,[ro("button",{class:"vlogout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[io(l,{size:"14"})],8,ls),ro("img",{src:e.userInfo.avatar||"".concat(e.config.avatar.cdn).concat(e.userInfo.mailMd5).concat(e.config.avatar.param),alt:"avatar"},null,8,ss)]),ro("a",{href:"#",class:"vlogin-nick","aria-label":"Profile",onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:Ye(e.userInfo.display_name)},null,8,as)])):ao("v-if",!0),ro("div",cs,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Zn(),Yn("div",{key:0,class:Qe(["vheader","vheader-".concat(e.config.meta.length)])},[(Zn(!0),Yn(Vn,null,ho(e.config.meta,(t=>(Zn(),Yn("div",{class:"vheader-item",key:t},[ro("label",{for:t,textContent:Ye(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":"(".concat(e.locale.optional,")")))},null,8,us),An(ro("input",{ref:n=>{n&&(e.inputRefs[t]=n)},id:"waline-".concat(t),class:Qe(["vinput","v".concat(t)]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.inputs[t]=n},null,10,ps),[[pi,e.inputs[t]]])])))),128))],2)):ao("v-if",!0),An(ro("textarea",{class:"veditor",ref:"editorRef",id:"waline-edit",placeholder:e.replyUser?"@".concat(e.replyUser):e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputs.editor=t),onKeydown:t[3]||(t[3]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[4]||(t[4]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[5]||(t[5]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,ds),[[oi,e.inputs.editor]]),ro("div",{class:"vpreview",style:He({display:e.showPreview?"block":"none"})},[ro("h4",null,Ye(e.locale.preview)+":",1),ro("div",{class:"vcontent",innerHTML:e.previewText},null,8,hs)],4),ro("div",fs,[ro("div",ms,[ro("a",gs,[io(s)]),ro("button",{ref:"emojiButtonRef",class:Qe(["vaction",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[io(a)],10,vs),ro("input",{ref:"imageUploadRef",class:"upload",id:"waline-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[7]||(t[7]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(Zn(),Yn("label",{key:0,for:"waline-image-upload",class:"vaction",title:e.locale.uploadImage},[io(c)],8,bs)):ao("v-if",!0),ro("button",{class:Qe(["vaction",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[io(u)],10,ys)]),ro("div",ws,[ro("div",ks,[so(Ye(e.wordNumber)+" ",1),e.config.wordLimit?(Zn(),Yn("span",xs,[_s,ro("span",{class:Qe({illegal:!e.isWordNumberLegal}),textContent:Ye(e.wordLimit)},null,10,Cs)])):ao("v-if",!0),so("  "+Ye(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?ao("v-if",!0):(Zn(),Yn("button",{key:0,class:"vbtn",onClick:t[9]||(t[9]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:Ye(e.locale.login)},null,8,Ss)),"force"!==e.config.login||e.isLogin?(Zn(),Yn("button",{key:1,class:"vbtn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[10]||(t[10]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(Zn(),Xn(p,{key:0,size:16})):(Zn(),Yn(Vn,{key:1},[so(Ye(e.locale.submit),1)],2112))],8,Es)):ao("v-if",!0)]),ro("div",{ref:"emojiPopupRef",class:Qe(["vemoji-popup",{display:e.showEmoji}])},[(Zn(!0),Yn(Vn,null,ho(e.emoji.tabs,((t,n)=>(Zn(),Yn(Vn,{key:t.name},[n===e.emojiTabIndex?(Zn(),Yn("div",As,[(Zn(!0),Yn(Vn,null,ho(t.items,(t=>(Zn(),Yn("button",{key:t,title:t,onClick:n=>e.insert(":".concat(t,":"))},[e.showEmoji?(Zn(),Yn("img",{key:0,class:"vemoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,zs)):ao("v-if",!0)],8,Ls)))),128))])):ao("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Zn(),Yn("div",Os,[(Zn(!0),Yn(Vn,null,ho(e.emoji.tabs,((t,n)=>(Zn(),Yn("button",{key:t.name,class:Qe(["vtab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[ro("img",{class:"vemoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ts)],10,Rs)))),128))])):ao("v-if",!0)],2)])]),e.replyId?(Zn(),Yn("button",{key:1,class:"vclose",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[io(l,{size:"24"})],8,Is)):ao("v-if",!0)])}]]),Hs=Ws,Zs=["id"],Js=["src"],Ks={class:"vcard"},Qs={class:"vhead"},Ys=["href"],Xs={key:1,class:"vnick"},Gs=["textContent"],ea=["textContent"],ta=["textContent"],na=["title"],oa={class:"vmeta","aria-hidden":"true"},ra=["textContent"],ia=["textContent"],la=["innerHTML"],sa={key:0,class:"vreply-wrapper"},aa={key:1,class:"vquote"},ca=an({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:Hs,ReplyIcon:()=>tr("svg",{viewBox:"0 0 1024 1024",width:"18",height:"18"},tr("path",{d:"M1019.2 720C1001.6 625.6 968 566.4 904 497.6c-89.6-89.6-214.4-150.4-347.2-176v-120c0-25.6-8-51.2-25.6-64-33.6-30.4-81.6-30.4-112-4.8L33.6 441.6C12.8 459.2 0 484.8 0 510.4c0 25.6 12.8 51.2 30.4 68.8l385.6 312c17.6 12.8 33.6 17.6 51.2 17.6 12.8 0 25.6-4.8 38.4-8C536 888 552 857.6 552 824v-99.2c124.8 20.8 248 86.4 339.2 140.8 25.6 17.6 59.2 17.6 89.6 0 25.6-17.6 43.2-46.4 43.2-76.8 0-33.6 0-56-4.8-68.8zm-500.8-89.6-46.4-4.8v193.6L86.4 510.4 472 201.6V400l38.4 4.8c128 12.8 248 68.8 334.4 153.6 51.2 56 76.8 102.4 94.4 179.2 0 4.8 4.8 20.8 4.8 51.2C835.2 720 672 640 518.4 630.4z",fill:"currentColor"})),VerifiedIcon:()=>tr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},tr("path",{d:"M512 44.608l388.352 109.696a38.016 38.016 0 0 1 27.648 36.608v337.984c-1.984 110.528-40.192 207.04-113.984 288-73.92 81.024-172.48 134.528-294.592 160.32l-8.192 1.728-8.192-2.048c-127.616-32.832-225.536-85.952-293.056-160-68.096-74.688-105.984-171.584-113.92-289.28L96 526.336V190.976c0-17.024 11.328-32 27.648-36.608L512 44.608z m0 74.816L168 216.64v307.328l0.128 1.856c7.232 99.712 38.4 179.52 93.44 240.704l1.664 1.92c55.488 60.8 137.728 106.304 247.488 136l2.048 0.512 1.408-0.32c102.272-23.232 183.552-67.968 244.736-134.144l1.92-2.112c62.592-68.672 94.08-149.376 95.168-243.584V216.64L512 119.36z m222.592 229.888a32 32 0 0 1 0.448 44.864l-0.384 0.384-244.8 246.016a32 32 0 0 1-44.992 0.384l-0.384-0.384-155.136-155.968a32 32 0 0 1 44.992-45.504L467.2 572.608 689.28 349.44a32 32 0 0 1 45.312-0.128z",fill:"#27ae60"}))},emits:["submit","reply"],setup(e){const t=Xt("config"),n=qe((()=>t.value.locale)),o=qe((()=>{let{link:t}=e.comment;return t?bi(t)?t:"https://".concat(t):""})),r=qe((()=>{const n=e.comment,o=t.value.avatar;return!(!n||o.hide)&&(e.comment.avatar&&("type"in e.comment||o.default)?e.comment.avatar:"".concat(o.cdn).concat(e.comment.mail).concat(o.param))})),i=qe((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:n,avatar:r,isReplyingCurrent:i,link:o,timeAgo:Ml}}}),ua=an({name:"Waline-Root",components:{CommentBox:Hs,CommentCard:(0,qs.Z)(ca,[["render",function(e,t,n,o,r,i){const l=Pn("VerifiedIcon"),s=Pn("ReplyIcon"),a=Pn("CommentBox"),c=Pn("CommentCard",!0);return Zn(),Yn("div",{class:"vitem",id:e.comment.objectId},[e.avatar?(Zn(),Yn("img",{key:0,class:"vuser","aria-hidden":"true",src:e.avatar},null,8,Js)):ao("v-if",!0),ro("div",Ks,[ro("div",Qs,[e.link?(Zn(),Yn("a",{key:0,class:"vnick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},[so(Ye(e.comment.nick),1),e.comment.type?(Zn(),Xn(l,{key:0})):ao("v-if",!0)],8,Ys)):(Zn(),Yn("span",Xs,[so(Ye(e.comment.nick),1),e.comment.type?(Zn(),Xn(l,{key:0})):ao("v-if",!0)])),"administrator"===e.comment.type?(Zn(),Yn("span",{key:2,class:"vbadge",textContent:Ye(e.locale.admin)},null,8,Gs)):ao("v-if",!0),e.comment.sticky?(Zn(),Yn("span",{key:3,class:"vbadge",textContent:Ye(e.locale.sticky)},null,8,ea)):ao("v-if",!0),ro("span",{class:"vtime",textContent:Ye(e.timeAgo(e.comment.insertedAt,e.locale))},null,8,ta),ro("button",{class:Qe(["vreply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[0]||(t[0]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[io(s)],10,na)]),ro("div",oa,[e.comment.browser?(Zn(),Yn("span",{key:0,textContent:Ye(e.comment.browser)},null,8,ra)):ao("v-if",!0),e.comment.os?(Zn(),Yn("span",{key:1,textContent:Ye(e.comment.os)},null,8,ia)):ao("v-if",!0)]),ro("div",{class:"vcontent",innerHTML:e.comment.comment},null,8,la),e.isReplyingCurrent?(Zn(),Yn("div",sa,[io(a,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[1]||(t[1]=t=>e.$emit("submit",t)),onCancelReply:t[2]||(t[2]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):ao("v-if",!0),e.comment.children?(Zn(),Yn("div",aa,[(Zn(!0),Yn(Vn,null,ho(e.comment.children,(n=>(Zn(),Xn(c,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[3]||(t[3]=t=>e.$emit("reply",t)),onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t))},null,8,["comment","reply","rootId"])))),128))])):ao("v-if",!0)])],8,Zs)}]]),LoadingIcon:Ds},props:{signal:{type:Object,required:!0}},setup(e){const t=Xt("config"),n=Xt("event"),o=Fe(0),r=Fe(1),i=Fe(0),l=Fe(!0),s=Fe(!1),a=Fe([]),c=Fe(null);let u=e.signal;const p=qe((()=>t.value.locale)),d=e=>{l.value=!0,s.value=!1,(e=>{let{serverURL:t,path:n,page:o,pageSize:r,signal:i}=e;return fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(n),"&pageSize=").concat(r,"&page=").concat(o),{signal:i}).then((e=>e.json())).then((e=>mi(e,"comment list")))})(Object.assign({},t.value,{page:e,signal:u})).then((t=>{l.value=!1,o.value=t.count,a.value.push(...t.data),r.value=e,i.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),s.value=!0,l.value=!1)}))};return n.on("render",(e=>{u=e,o.value=0,a.value=[],d(1)})),dn((()=>d(1))),{config:t,locale:p,count:o,data:a,loading:l,inError:s,page:r,totalPages:i,reply:c,loadMore:()=>d(r.value+1),refresh:()=>{a.value=[],d(1)},onReply:e=>{c.value=e},onSubmit:e=>{if(e.rid){const t=a.value.find((t=>{let{objectId:n}=t;return n===e.rid}));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else a.value.unshift(e)},version:"1.5.2"}}}),pa=(0,qs.Z)(ua,[["render",function(e,t,n,o,r,i){const l=Pn("CommentBox"),s=Pn("CommentCard"),a=Pn("LoadingIcon");return Zn(),Yn("div",ql,[e.reply?ao("v-if",!0):(Zn(),Xn(l,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),ro("div",Wl,[e.count?(Zn(),Yn("span",{key:0,class:"vnum",textContent:Ye(e.count)},null,8,Hl)):ao("v-if",!0),so(" "+Ye(e.locale.comment),1)]),ro("div",Zl,[(Zn(!0),Yn(Vn,null,ho(e.data,(t=>(Zn(),Xn(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit},null,8,["root-id","comment","reply","onReply","onSubmit"])))),128))]),e.inError?(Zn(),Yn("div",Jl,[ro("button",{type:"button",class:"vbtn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:Ye(e.locale.refresh)},null,8,Kl)])):e.loading?(Zn(),Yn("div",Ql,[io(a,{size:30})])):e.data.length?ao("v-if",!0):(Zn(),Yn("div",{key:3,class:"vempty",textContent:Ye(e.locale.sofa)},null,8,Yl)),e.page<e.totalPages&&!e.loading?(Zn(),Yn("div",Xl,[ro("button",{type:"button",class:"vbtn",onClick:t[1]||(t[1]=function(){return e.loadMore&&e.loadMore(...arguments)}),textContent:Ye(e.locale.more)},null,8,Gl)])):ao("v-if",!0),e.config.copyright?(Zn(),Yn("div",es,[ts,ns,so(" v"+Ye(e.version),1)])):ao("v-if",!0)])}]]),da=pa;class ha{constructor(){var e,t;t=void 0,(e="controller")in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t,this.controller=new AbortController}get signal(){return this.controller.signal}abort(){this.controller.abort()}new(){this.abort(),this.controller=new AbortController}}const fa=(e,t)=>{const{path:n,serverURL:o,visitor:r}=e;r&&(e=>{let{serverURL:t,path:n,signal:o}=e;const r=(e=>{let{serverURL:t,path:n}=e;return fetch("".concat(t,"/article"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>mi(e,"visit count")))})({serverURL:t,path:n}),i=Array.from(document.querySelectorAll(".waline-visitor-count,.leancloud_visitors,.leancloud-visitors")).filter((e=>e.getAttribute("id"))),l=i.map((e=>gi(e.getAttribute("id")||""))),s=l.filter((e=>e!==n));s.length?(s.length===l.length?Promise.resolve():r).then((()=>(e=>{let{serverURL:t,paths:n,signal:o}=e;return fetch("".concat(t,"/article?path=").concat(encodeURIComponent(n.join(","))),{signal:o}).then((e=>e.json())).then((e=>mi(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:t,paths:l,signal:o}))).then((e=>Ul(e,i))).catch((e=>{"AbortError"!==e.name&&console.error(e.message)})):r.then((e=>Ul(new Array(i.length).fill(e),i)))})({serverURL:o,path:n,signal:t}),((e,t)=>{const n=Array.from(document.querySelectorAll(".waline-comment-count")).filter((e=>e.getAttribute("data-xid")||e.getAttribute("id")));n.length&&(e=>{let{serverURL:t,paths:n,signal:o}=e;return fetch("".concat(t,"/comment?type=count&url=").concat(encodeURIComponent(n.join(","))),{signal:o}).then((e=>e.json())).then((e=>mi(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:n.map((e=>gi(e.getAttribute("data-xid")||e.getAttribute("id")))),signal:t}).then((e=>{n.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch((e=>{"AbortError"!==e.name&&console.error(e.message)}))})(o,t)},ma=e=>(console.warn(e),{errMsg:e});function ga(e){const{el:t,serverURL:n}=e;if(!n)return ma("Option 'serverURL' is missing!");var o;e.dark&&"string"==typeof(o=e.dark)&&Wi("auto"===o?"@media(prefers-color-scheme:dark){body".concat(qi,"}"):"".concat(o).concat(qi),"waline-dark"),e.mathTagSupport&&window.addEventListener("load",Hi);const r=new ha,i=new ha,l=function(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map((function(e){e(n)})),(o=e.get("*"))&&o.slice().map((function(e){e(t,n)}))}}}(),{config:s,update:a}=(e=>{let t=e;const n=Fe(Vi(e));return{config:Ae(n),update:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t={...t,...e},n.value=Vi(t)}}})(e);fa(s.value,i.signal);const c=Zi(t);if(t&&!c)return ma("Option 'el' do not match any domElement!");let u;c&&(u=((...e)=>{const t=(fi||(fi=In(hi))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){return fr(e)?document.querySelector(e):e}(e);if(!o)return;const r=t._component;hr(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t})(da,{signal:r.signal}).provide("config",s).provide("event",l).provide("version","1.5.2"),u.mount(c));const p={options:e,path:s.value.path};return{el:c,update:e=>{a(e);const{path:t}=s.value;p.path!==t&&(r.new(),p.path=t,l.emit("render",r.signal)),i.new(),fa(s.value,i.signal)},destroy:()=>{t&&u.unmount()}}}ga.Widget={RecentComments:e=>{let{el:t,serverURL:n,count:o}=e;const r=Zi(t),i=new AbortController;return(e=>{let{serverURL:t,count:n,signal:o}=e;return fetch("".concat(t,"/comment?type=recent&count=").concat(n),{signal:o}).then((e=>e.json())).then((e=>mi(e,"recent comment")))})({serverURL:n,count:o,signal:i.signal}).then((e=>r&&e.length?(r.innerHTML='<ul class="waline-widget-list">'.concat(e.map((e=>'<li class="waline-widget-item"><a href="'.concat(e.url,'">').concat(e.nick,"</a>:").concat(e.comment,"</li>"))).join(""),"</ul>"),{comments:e,destroy:()=>{i.abort(),r.innerHTML=""}}):{comments:e,destroy:()=>i.abort()}))}},ga.version="1.5.2";const va=ga})(),o.default})()}));
2
2
  //# sourceMappingURL=Waline.noStyle.js.map