!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={523:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(601),r=n.n(o),a=n(609),i=n.n(a)()(r());i.push([e.id,':root{--waline-font-size: 16px;--waline-white: #fff;--waline-light-grey: #999;--waline-dark-grey: #666;--waline-theme-color: #27ae60;--waline-active-color: #2ecc71;--waline-text-color: #444;--waline-bgcolor: #fff;--waline-bgcolor-light: #f8f8f8;--waline-bgcolor-hover: #f0f0f0;--waline-border-color: #ddd;--waline-disable-bgcolor: #f8f8f8;--waline-disable-color: #000;--waline-code-bgcolor: #282c34;--waline-bq-color: #f0f0f0;--waline-avatar-size: 3.25rem;--waline-mobile-avatar-size: calc(var(--waline-avatar-size) * 9 / 13);--waline-badge-color: #3498db;--waline-badge-font-size: 0.775em;--waline-info-bgcolor: #f8f8f8;--waline-info-color: #999;--waline-info-font-size: 0.625em;--waline-border: 1px solid var(--waline-border-color);--waline-avatar-radius: 50%;--waline-box-shadow: none}.v[data-class=v]{font-size:var(--waline-font-size);text-align:left}.v[data-class=v] *{box-sizing:content-box;line-height:1.75}.v[data-class=v] p{color:var(--waline-text-color)}.v[data-class=v] a{position:relative;display:inline-block;color:var(--waline-theme-color);text-decoration:none;cursor:pointer}.v[data-class=v] a:hover{color:var(--waline-active-color)}.v[data-class=v] img{max-width:100%;max-height:400px;border:none}.v[data-class=v] hr{margin:.825em 0;border-style:dashed;border-color:var(--waline-bgcolor-light)}.v[data-class=v] code,.v[data-class=v] pre{margin:0;padding:.2em .4em;border-radius:3px;background:var(--waline-bgcolor-light);font-size:85%}.v[data-class=v] pre{overflow:auto;padding:10px;line-height:1.45}.v[data-class=v] pre::-webkit-scrollbar{width:6px;height:6px}.v[data-class=v] pre::-webkit-scrollbar-track-piece:horizontal{border-radius:6px;background:rgba(0,0,0,.1)}.v[data-class=v] pre::-webkit-scrollbar-thumb:horizontal{width:6px;border-radius:6px;background:var(--waline-theme-color)}.v[data-class=v] pre code{padding:0;background:transparent;color:var(--waline-text-color);white-space:pre-wrap;word-break:keep-all}.v[data-class=v] blockquote{margin:.5em 0;padding:.5em 0 .5em 1em;border-left:8px solid var(--waline-bq-color);color:var(--waline-dark-grey)}.v[data-class=v] blockquote>p{margin:0}.v[data-class=v] ol,.v[data-class=v] ul{margin-left:1.25em;padding:0}.v[data-class=v] input[type=checkbox],.v[data-class=v] input[type=radio]{display:inline-block;vertical-align:middle;margin-top:-2px}.v[data-class=v] .vbtn{display:inline-block;vertical-align:middle;min-width:2.5em;margin-bottom:0;padding:.5em 1em;border:1px solid var(--waline-border-color);border-radius:.5em;background:transparent;color:var(--waline-text-color);font-weight:400;font-size:.75em;line-height:1.5;text-align:center;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition-duration:.4s;touch-action:manipulation}.v[data-class=v] .vbtn:hover,.v[data-class=v] .vbtn:active{border-color:var(--waline-theme-color);color:var(--waline-theme-color)}.v[data-class=v] .vbtn:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bgcolor);color:var(--waline-disable-color);cursor:not-allowed}.v[data-class=v] .vbtn.primary{border-color:var(--waline-theme-color);background:var(--waline-theme-color);color:var(--waline-white)}.v[data-class=v] .vbtn.primary:hover,.v[data-class=v] .vbtn.primary:active{border-color:var(--waline-active-color);background:var(--waline-active-color);color:var(--waline-white)}.v[data-class=v] .vbtn.primary:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bgcolor);color:var(--waline-disable-color);cursor:not-allowed}.v[data-class=v] .vloading{text-align:center}.v[data-class=v] .vloading svg{margin:0 auto}.v[data-class=v] .vcomment{position:relative;display:flex;margin-bottom:.75em}.v[data-class=v] .vclose{position:absolute;top:-4px;right:-4px;padding:0;border:none;background:transparent;line-height:1;cursor:pointer}.v[data-class=v] .vlogin-info{max-width:80px;margin-top:.75em;text-align:center}.v[data-class=v] .vlogout-btn{position:absolute;top:-10px;right:-10px;padding:3px;border:none;background:transparent;line-height:0;cursor:pointer}.v[data-class=v] .vavatar{position:relative;width:var(--waline-avatar-size);height:var(--waline-avatar-size);margin:0 auto;border:var(--waline-border);border-radius:var(--waline-avatar-radius)}@media(max-width: 720px){.v[data-class=v] .vavatar{width:var(--waline-mobile-avatar-size);height:var(--waline-mobile-avatar-size)}}.v[data-class=v] .vavatar img{width:100%;height:100%;border-radius:var(--waline-avatar-radius)}.v[data-class=v] .vlogin-nick{display:block;color:var(--waline-theme-color);font-size:.75em;word-break:break-all}.v[data-class=v] .vpanel{position:relative;width:100%;flex-shrink:1;margin:.5em;border:var(--waline-border);border-radius:.75em;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow)}.v[data-class=v] .vheader{display:flex;padding:0 4px;border-bottom:2px dashed var(--waline-border-color);border-top-left-radius:.75em;border-top-right-radius:.75em;overflow:hidden}@media(max-width: 580px){.v[data-class=v] .vheader{display:block}}.v[data-class=v] .vheader .vheader-item{display:flex;flex:1}@media(max-width: 580px){.v[data-class=v] .vheader .vheader-item:not(:last-child){border-bottom:2px dashed var(--waline-border-color)}}.v[data-class=v] .vheader.vheader-1 .vheader-item{width:100%}.v[data-class=v] .vheader.vheader-2 .vheader-item{width:50%}@media(max-width: 580px){.v[data-class=v] .vheader.vheader-2 .vheader-item{flex:0;width:100%}}.v[data-class=v] .vheader.vheader-3 .vheader-item{width:33.33%}@media(max-width: 580px){.v[data-class=v] .vheader.vheader-3 .vheader-item{width:100%}}.v[data-class=v] .vheader label{min-width:40px;padding:.75em .5em;color:var(--waline-text-color);font-size:.75em;text-align:center}.v[data-class=v] .vheader input{flex:1;width:0;padding:.5em;background:transparent;font-size:.625em;resize:none}.v[data-class=v] .veditor,.v[data-class=v] .vinput{max-width:100%;border:none;color:var(--waline-text-color);outline:none;transition:all .25s ease}.v[data-class=v] .veditor:focus,.v[data-class=v] .vinput:focus{background:var(--waline-bgcolor-light)}.v[data-class=v] .veditor{position:relative;width:calc(100% - 1em);min-height:8.75em;margin:.75em .5em;border-radius:.5em;background:transparent;font-size:.875em;resize:vertical}.v[data-class=v] .vpreview{padding:0 .5em .5em}.v[data-class=v] .vpreview h4{margin:.25em;font-weight:bold;font-size:.9375em}.v[data-class=v] .vpreview .vcontent{padding:.25em;min-height:1.25em;border:var(--waline-border);border-radius:.25em;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}.v[data-class=v] .vpreview .vcontent>*:first-child{margin-top:0}.v[data-class=v] .vpreview .vcontent>*:last-child{margin-bottom:0}.v[data-class=v] .vfooter{position:relative;display:flex;flex-wrap:wrap;margin:.5em .75em}.v[data-class=v] .vactions{display:flex;flex:2;align-items:center}.v[data-class=v] .vaction{width:1.5em;height:1.5em;border:none;margin:2px;padding:0;background:transparent;font-size:16px;cursor:pointer;color:var(--waline-text-color);display:inline-flex;justify-content:center;align-items:center}.v[data-class=v] .vaction:hover{color:var(--waline-theme-color)}.v[data-class=v] .vaction.actived{color:var(--waline-active-color)}.v[data-class=v] #waline-image-upload{display:none}.v[data-class=v] #waline-image-upload:focus+label{color:var(--waline-text-color)}.v[data-class=v] #waline-image-upload:focus-visible+label{outline:-webkit-focus-ring-color auto 1px}.v[data-class=v] .vinfo{display:flex;flex:3;align-items:center;justify-content:flex-end}.v[data-class=v] .vinfo .vtext-number{color:var(--waline-info-color);font-size:.75em}.v[data-class=v] .vinfo .vtext-number .illegal{color:red}.v[data-class=v] .vinfo button{margin-left:.75em}.v[data-class=v] .vinfo button svg{display:block;margin:0 auto;line-height:18px}.v[data-class=v] .vemoji-popup{position:absolute;top:100%;left:1.25em;z-index:10;max-width:526px;border:var(--waline-border);border-radius:6px;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow);visibility:hidden;opacity:0;transform:scale(0.9, 0.9);transform-origin:0 0;transition:transform .2s ease-out,opacity .2s ease-out}.v[data-class=v] .vemoji-popup.display{visibility:visible;opacity:1;transform:none}.v[data-class=v] .vemoji-popup button{display:inline-block;vertical-align:middle;background:transparent;width:2em;margin:.125em;padding:0;border-width:0;font-size:inherit;line-height:2;text-align:center;cursor:pointer}.v[data-class=v] .vemoji-popup button:hover{background:var(--waline-bgcolor-hover)}.v[data-class=v] .vemoji-popup .vemoji{display:inline-block;vertical-align:middle;max-width:1.5em;max-height:1.5em}.v[data-class=v] .vemoji-popup .vtab-wrapper{max-height:145px;overflow-y:auto;padding:.5em}.v[data-class=v] .vemoji-popup .vtab-wrapper::-webkit-scrollbar{width:6px;height:6px}.v[data-class=v] .vemoji-popup .vtab-wrapper::-webkit-scrollbar-track-piece:vertical{border-radius:6px;background:rgba(0,0,0,.1)}.v[data-class=v] .vemoji-popup .vtab-wrapper::-webkit-scrollbar-thumb:vertical{width:6px;border-radius:6px;background:var(--waline-theme-color)}.v[data-class=v] .vemoji-popup .vtabs{position:relative;height:2em;padding:0 6px}.v[data-class=v] .vemoji-popup .vtabs::before{content:" ";position:absolute;z-index:2;left:0;top:0;right:0;height:1px;background:var(--waline-border-color)}.v[data-class=v] .vemoji-popup .vtab{position:relative;margin:0;padding:0 .5em}.v[data-class=v] .vemoji-popup .vtab.active{z-index:3;background:var(--waline-bgcolor);border:1px solid var(--waline-border-color);border-top-width:0;border-bottom-left-radius:6px;border-bottom-right-radius:6px}.v[data-class=v] .vcards .vitem{position:relative;display:flex;padding:.5em}.v[data-class=v] .vcards .vitem .vuser{width:var(--waline-avatar-size);height:var(--waline-avatar-size);margin-right:.75em;border-radius:var(--waline-avatar-radius);box-shadow:var(--waline-box-shadow)}@media(max-width: 720px){.v[data-class=v] .vcards .vitem .vuser{width:var(--waline-mobile-avatar-size);height:var(--waline-mobile-avatar-size)}}.v[data-class=v] .vcards .vitem:last-child .vcard{border-bottom:none}.v[data-class=v] .vcards .vcard .vitem{padding-right:0}.v[data-class=v] .vcard{flex:1;width:0;padding-bottom:.5em;border-bottom:1px dashed var(--waline-border-color)}.v[data-class=v] .vcard:first-child{margin-left:1em}.v[data-class=v] .vcard .vhead{line-height:1.5}.v[data-class=v] .vcard .vhead .vnick{position:relative;display:inline-block;margin-right:.5em;font-weight:bold;font-size:.875em;line-height:1;text-decoration:none}.v[data-class=v] .vcard .vhead .vnick svg{position:relative;bottom:-0.125em;line-height:1}.v[data-class=v] .vcard .vhead span.vnick{color:var(--waline-dark-grey)}.v[data-class=v] .vcard .vhead .vbadge{display:inline-block;margin-right:.5em;padding:0 .3em;border-radius:3px;background:var(--waline-badge-color);color:var(--waline-white);font-size:var(--waline-badge-font-size)}.v[data-class=v] .vcard .vhead .vtime{margin-right:.875em;color:var(--waline-info-color);font-size:.75em}.v[data-class=v] .vcard .vhead .vreply{float:right;cursor:pointer;padding:4px;border:none;background:transparent;color:var(--waline-text-color);line-height:1;transition:color .2s ease}.v[data-class=v] .vcard .vhead .vreply:hover{color:var(--waline-theme-color)}.v[data-class=v] .vcard .vhead .vreply.active{color:var(--waline-active-color)}.v[data-class=v] .vcard .vmeta{position:relative;line-height:1}.v[data-class=v] .vcard .vmeta>span{display:inline-block;margin-right:.25em;padding:2px 4px;border-radius:.2em;background:var(--waline-info-bgcolor);color:var(--waline-info-color);font-size:var(--waline-info-font-size);line-height:1.5}@media(max-width: 520px){.v[data-class=v] .vcard .vmeta>span{display:none}}.v[data-class=v] .vcard .vmeta>span:empty{display:none}.v[data-class=v] .vcard .vcontent{line-height:2;position:relative;margin-bottom:.75em;padding-top:.625em;font-size:.875em;word-wrap:break-word}.v[data-class=v] .vcard .vcontent.expand{overflow:hidden;max-height:8em;cursor:pointer}.v[data-class=v] .vcard .vcontent.expand::before{content:"";position:absolute;top:0;bottom:3.15em;left:0;z-index:999;display:block;width:100%;background:linear-gradient(180deg, #000, rgba(255, 255, 255, 0.9))}.v[data-class=v] .vcard .vcontent.expand::after{content:attr(data-expand);position:absolute;bottom:0;left:0;z-index:999;display:block;width:100%;height:3.15em;background:rgba(255,255,255,.9);color:#828586;line-height:3.15em;text-align:center}.v[data-class=v] .vcard .vcontent>*:first-child{margin-top:0}.v[data-class=v] .vcard .vcontent>*:last-child{margin-bottom:0}.v[data-class=v] .vcard .vquote{border-left:1px dashed rgba(237,237,237,.5)}.v[data-class=v] .vcard .vquote .vuser{width:var(--waline-mobile-avatar-size);height:var(--waline-mobile-avatar-size)}.v[data-class=v] .vclose-icon{color:var(--waline-border-color)}.v[data-class=v] .vcontent .vemoji{display:inline-block;vertical-align:middle;width:1.25em;margin:.25em}.v[data-class=v] .vcontent .vtex{background:var(--waline-info-bgcolor);color:var(--waline-info-color)}.v[data-class=v] .vcontent span.vtex{display:inline-block;margin-right:.25em;padding:2px 4px;border-radius:.2em;font-size:var(--waline-info-font-size);line-height:1.5}.v[data-class=v] .vcontent p.vtex{text-align:center}.v[data-class=v] .vcontent .katex-display{padding-top:.2em;padding-bottom:.2em;overflow:auto hidden;-webkit-overflow-scrolling:touch}.v[data-class=v] .vcontent .katex-display::-webkit-scrollbar{height:3px}.v[data-class=v] .vcontent .katex-error{color:red}.v[data-class=v] .vcount{padding:.375em;font-weight:bold;font-size:1.25em}.v[data-class=v] .vempty{overflow:auto;padding:1.25em;color:var(--waline-text-color);text-align:center}.v[data-class=v] .vmore{text-align:center}.v[data-class=v] .vmore button{margin:1em 0}.v[data-class=v] .vpower{padding:.5em 0;color:var(--waline-light-grey);font-size:var(--waline-info-font-size);text-align:right}.v[data-class=v] pre,.v[data-class=v] pre[class*=language-]{line-height:1.4;padding:1rem 1.25rem;margin:.75rem 0;background:var(--waline-code-bgcolor);border-radius:6px;overflow:auto}.v[data-class=v] pre code,.v[data-class=v] pre[class*=language-] code{color:#bbb;padding:0;background:transparent !important;border-radius:0}.v[data-class=v] code[class*=language-],.v[data-class=v] pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}.v[data-class=v] pre[class*=language-]{overflow:auto}.v[data-class=v] :not(pre)>code[class*=language-],.v[data-class=v] pre[class*=language-]{background:#2d2d2d}.v[data-class=v] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.v[data-class=v] .token.comment,.v[data-class=v] .token.block-comment,.v[data-class=v] .token.prolog,.v[data-class=v] .token.doctype,.v[data-class=v] .token.cdata{color:#999}.v[data-class=v] .token.punctuation{color:#ccc}.v[data-class=v] .token.tag,.v[data-class=v] .token.attr-name,.v[data-class=v] .token.namespace,.v[data-class=v] .token.deleted{color:#e2777a}.v[data-class=v] .token.function-name{color:#6196cc}.v[data-class=v] .token.boolean,.v[data-class=v] .token.number,.v[data-class=v] .token.function{color:#f08d49}.v[data-class=v] .token.property,.v[data-class=v] .token.class-name,.v[data-class=v] .token.constant,.v[data-class=v] .token.symbol{color:#f8c555}.v[data-class=v] .token.selector,.v[data-class=v] .token.important,.v[data-class=v] .token.atrule,.v[data-class=v] .token.keyword,.v[data-class=v] .token.builtin{color:#cc99cd}.v[data-class=v] .token.string,.v[data-class=v] .token.char,.v[data-class=v] .token.attr-value,.v[data-class=v] .token.regex,.v[data-class=v] .token.variable{color:#7ec699}.v[data-class=v] .token.operator,.v[data-class=v] .token.entity,.v[data-class=v] .token.url{color:#67cdcc}.v[data-class=v] .token.important,.v[data-class=v] .token.bold{font-weight:bold}.v[data-class=v] .token.italic{font-style:italic}.v[data-class=v] .token.entity{cursor:help}.v[data-class=v] .token.inserted{color:green}.waline-widget-item p{display:inline}',""]);const l=i},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var l=0;l0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},601:e=>{"use strict";e.exports=function(e){return e[1]}},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 a=0,i={},l=new RegExp("("+/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source+"|"+/'+e+""}(n);if("<"===t)return"<";var o;i[t]?o=i[t]:(o=r[a],i[t]=o);var l=''+t+"";return a=++a%r.length,l}))}}()},62:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},173:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},892:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},36:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},464:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},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 a=t[o]={id:o,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.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!!n[e.toLowerCase()]:e=>!!n[e]}n.d(o,{default:()=>Os});const t=()=>{},r=Object.assign,a=Object.prototype.hasOwnProperty,i=(e,t)=>a.call(e,t),l=Array.isArray,s=e=>"[object Map]"===p(e),c=e=>"symbol"==typeof e,u=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,p=e=>d.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))},v=/-(\w)/g,m=(f((e=>e.replace(v,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),g=(f((e=>e.replace(m,"-$1").toLowerCase())),f((e=>e.charAt(0).toUpperCase()+e.slice(1)))),b=(f((e=>e?`on${g(e)}`:"")),(e,t)=>!Object.is(e,t));let w;const y=[];class k{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&w&&(this.parent=w,this.index=(w.scopes||(w.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(y.push(this),w=this)}off(){this.active&&(y.pop(),w=y[y.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&E)>0,C=e=>(e.n&E)>0,S=new WeakMap;let z=0,E=1;const A=[];let L;const T=Symbol(""),O=Symbol("");class R{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||w)&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();if(!A.includes(this))try{return A.push(L=this),$.push(j),j=!0,E=1<<++z,z<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o0?A[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{("length"===t||t>=o)&&c.push(e)}));else switch(void 0!==n&&c.push(i.get(n)),t){case"add":l(e)?h(n)&&c.push(i.get("length")):(c.push(i.get(T)),s(e)&&c.push(i.get(O)));break;case"delete":l(e)||(c.push(i.get(T)),s(e)&&c.push(i.get(O)));break;case"set":s(e)&&c.push(i.get(T))}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 l(e)?e:[...e])(t!==L||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=Re(this);for(let e=0,t=this.length;e{e[t]=function(...e){M();const n=Re(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 a=l(n);if(!e&&a&&i(J,o))return Reflect.get(J,o,r);const s=Reflect.get(n,o,r);return(c(o)?q.has(o):B(o))?s:(e||P(n,0,o),t?s:Pe(s)?a&&h(o)?s:s.value:u(s)?e?Ee(s):ze(s):s)}}function Y(e=!1){return function(t,n,o,r){let a=t[n];if(!e&&(o=Re(o),a=Re(a),!l(t)&&Pe(a)&&!Pe(o)))return a.value=o,!0;const s=l(t)&&h(n)?Number(n)!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=Re(e=e.__v_raw),a=Re(t);t!==a&&!n&&P(r,0,t),!n&&P(r,0,a);const{has:i}=ne(r),l=o?te:n?$e:je;return i.call(r,t)?l(e.get(t)):i.call(r,a)?l(e.get(a)):void(e!==r&&e.get(t))}function re(e,t=!1){const n=this.__v_raw,o=Re(n),r=Re(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 ae(e,t=!1){return e=e.__v_raw,!t&&P(Re(e),0,T),Reflect.get(e,"size",e)}function ie(e){e=Re(e);const t=Re(this);return ne(t).has.call(t,e)||(t.add(e),V(t,"add",e,e)),this}function le(e,t){t=Re(t);const n=Re(this),{has:o,get:r}=ne(n);let a=o.call(n,e);a||(e=Re(e),a=o.call(n,e));const i=r.call(n,e);return n.set(e,t),a?b(t,i)&&V(n,"set",e,t):V(n,"add",e,t),this}function se(e){const t=Re(this),{has:n,get:o}=ne(t);let r=n.call(t,e);r||(e=Re(e),r=n.call(t,e)),o&&o.call(t,e);const a=t.delete(e);return r&&V(t,"delete",e,void 0),a}function ce(){const e=Re(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,a=r.__v_raw,i=Re(a),l=t?te:e?$e:je;return!e&&P(i,0,T),a.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function de(e,t,n){return function(...o){const r=this.__v_raw,a=Re(r),i=s(a),l="entries"===e||e===Symbol.iterator&&i,c="keys"===e&&i,u=r[e](...o),d=n?te:t?$e:je;return!t&&P(a,0,c?O:T),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function pe(e){return function(...t){return"delete"!==e&&this}}function he(){const e={get(e){return oe(this,e)},get size(){return ae(this)},has:re,add:ie,set:le,delete:se,clear:ce,forEach:ue(!1,!1)},t={get(e){return oe(this,e,!1,!0)},get size(){return ae(this)},has:re,add:ie,set:le,delete:se,clear:ce,forEach:ue(!1,!0)},n={get(e){return oe(this,e,!0)},get size(){return ae(this,!0)},has(e){return re.call(this,e,!0)},add:pe("add"),set:pe("set"),delete:pe("delete"),clear:pe("clear"),forEach:ue(!0,!1)},o={get(e){return oe(this,e,!0,!0)},get size(){return ae(this,!0)},has(e){return re.call(this,e,!0)},add:pe("add"),set:pe("set"),delete:pe("delete"),clear:pe("clear"),forEach:ue(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=de(r,!1,!1),n[r]=de(r,!0,!1),t[r]=de(r,!1,!0),o[r]=de(r,!0,!0)})),[e,n,t,o]}const[fe,ve,me,ge]=he();function be(e,t){const n=t?e?ge:me:e?ve:fe;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(i(n,o)&&o in t?n:t,o,r)}const we={get:be(!1,!1)},ye={get:be(!1,!0)},ke={get:be(!0,!1)},xe=new WeakMap,_e=new WeakMap,Ce=new WeakMap,Se=new WeakMap;function ze(e){return e&&e.__v_isReadonly?e:Ae(e,!1,X,we,xe)}function Ee(e){return Ae(e,!0,G,ke,Ce)}function Ae(e,t,n,o,r){if(!u(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=r.get(e);if(a)return a;const i=(l=e).__v_skip||!Object.isExtensible(l)?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=>p(e).slice(8,-1))(l));var l;if(0===i)return e;const s=new Proxy(e,2===i?o:n);return r.set(e,s),s}function Le(e){return Te(e)?Le(e.__v_raw):!(!e||!e.__v_isReactive)}function Te(e){return!(!e||!e.__v_isReadonly)}function Oe(e){return Le(e)||Te(e)}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}function Ie(e){return t=e,Object.defineProperty(t,"__v_skip",{configurable:!0,enumerable:!1,value:!0}),e;var t}const je=e=>u(e)?ze(e):e,$e=e=>u(e)?Ee(e):e;function Me(e){F()&&((e=Re(e)).dep||(e.dep=x()),N(e.dep))}function Ue(e,t){(e=Re(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:Re(e),this._value=t?e:je(e)}get value(){return Me(this),this._value}set value(e){e=this._shallow?e:Re(e),b(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:je(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 Le(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 R(e,(()=>{this._dirty||(this._dirty=!0,Ue(this))})),this.__v_isReadonly=n}get value(){const e=Re(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 a="function"==typeof e;return a?(o=e,r=t):(o=e.get,r=e.set),new Be(o,r,a||!r)}function We(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}function He(e){if(ct(e)){const t={};for(let n=0;n{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;nnull==e?"":ct(e)||ft(e)&&(e.toString===mt||!pt(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)),{})}:dt(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),at=e=>e.startsWith("onUpdate:"),it=Object.assign,lt=Object.prototype.hasOwnProperty,st=(e,t)=>lt.call(e,t),ct=Array.isArray,ut=e=>"[object Map]"===gt(e),dt=e=>"[object Set]"===gt(e),pt=e=>"function"==typeof e,ht=e=>"string"==typeof e,ft=e=>null!==e&&"object"==typeof e,vt=e=>ft(e)&&pt(e.then)&&pt(e.catch),mt=Object.prototype.toString,gt=e=>mt.call(e),bt=e=>"[object Object]"===gt(e),wt=We(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},kt=/-(\w)/g,xt=yt((e=>e.replace(kt,((e,t)=>t?t.toUpperCase():"")))),_t=/\B([A-Z])/g,Ct=yt((e=>e.replace(_t,"-$1").toLowerCase())),St=yt((e=>e.charAt(0).toUpperCase()+e.slice(1))),zt=yt((e=>e?`on${St(e)}`:"")),Et=(e,t)=>!Object.is(e,t),At=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Tt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ot;const Rt=()=>Ot||(Ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});new Set,new Map;let It,jt=[],$t=!1;function Mt(e,...t){It?It.emit(e,...t):$t||jt.push({event:e,args:t})}function Ut(e,t){It=e,It?(It.enabled=!0,jt.forEach((({event:e,args:t})=>It.emit(e,...t))),jt=[]):"undefined"==typeof window||navigator.userAgent.includes("jsdom")?($t=!0,jt=[]):((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Ut(e,t)})),setTimeout((()=>{It||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,$t=!0,jt=[])}),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 a=t.startsWith("update:"),i=a&&t.slice(7);if(i&&i in o){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:t,trim:a}=o[e]||Ge;a?r=n.map((e=>e.trim())):t&&(r=n.map(Tt))}let l;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Mt("component:emit",e.appContext.app,e,t,n)}(e,t,r);let s=o[l=zt(t)]||o[l=zt(xt(t))];!s&&a&&(s=o[l=zt(Ct(t))]),s&&Lo(s,e,6,r);const c=o[l+"Once"];if(c){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Lo(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 a=e.emits;let i={};return a?(ct(a)?a.forEach((e=>i[e]=null)):it(i,a),o.set(e,i),i):(o.set(e,null),null)}function qt(e,t){return!(!e||!rt(t))&&(t=t.slice(2).replace(/Once$/,""),st(e,t[0].toLowerCase()+t.slice(1))||st(e,Ct(t))||st(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:a,propsOptions:[i],slots:l,attrs:s,emit:c,render:u,renderCache:d,data:p,setupState:h,ctx:f,inheritAttrs:v}=e;let m,g;const b=Zt(e);try{if(4&n.shapeFlag){const e=r||o;m=co(u.call(e,e,d,a,h,p,f)),g=s}else{const e=t;m=co(e.length>1?e(a,{attrs:s,slots:l,emit:c}):e(a,null)),g=t.props?s:Kt(s)}}catch(t){Wn.length=0,To(t,e,1),m=ao(Bn)}let w=m;if(g&&!1!==v){const e=Object.keys(g),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some(at)&&(g=Qt(g,i)),w=io(w,g))}return n.dirs&&(w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,Zt(b),m}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)at(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;r1)return n&&pt(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=yo(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return pn((()=>{e.isMounted=!0})),hn((()=>{e.isUnmounting=!0})),e}();let r;return()=>{const a=t.default&&ln(t.default(),!0);if(!a||!a.length)return;const i=Re(e),{mode:l}=i,s=a[0];if(o.isLeaving)return on(s);const c=rn(s);if(!c)return on(s);const u=nn(c,i,o,n);an(c,u);const d=n.subTree,p=d&&rn(d);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(p&&p.type!==Bn&&(!eo(c,p)||h)){const e=nn(p,i,o,n);if(an(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},on(s);"in-out"===l&&c.type!==Bn&&(e.delayLeave=(e,t,n)=>{tn(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};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:a,persisted:i=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:b}=t,w=String(e.key),y=tn(n,e),k=(e,t)=>{e&&Lo(e,o,9,t)},x={mode:a,persisted:i,beforeEnter(t){let o=l;if(!n.isMounted){if(!r)return;o=v||l}t._leaveCb&&t._leaveCb(!0);const a=y[w];a&&eo(e,a)&&a.el._leaveCb&&a.el._leaveCb(),k(o,[t])},enter(e){let t=s,o=c,a=u;if(!n.isMounted){if(!r)return;t=m||s,o=g||c,a=b||u}let i=!1;const l=e._enterCb=t=>{i||(i=!0,k(t?a:o,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};t?(t(e,l),t.length<=1&&l()):l()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();k(d,[t]);let a=!1;const i=t._leaveCb=n=>{a||(a=!0,o(),k(n?f:h,[t]),t._leaveCb=void 0,y[r]===e&&delete y[r])};y[r]=e,p?(p(t,i),p.length<=1&&i()):i()},clone:e=>nn(e,t,n,o)};return x}function on(e){if(un(e))return(e=io(e)).children=null,e}function rn(e){return un(e)?e.children?e.children[0]:void 0:e}function an(e,t){6&e.shapeFlag&&e.component?an(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 ln(e,t=!1){let n=[],o=0;for(let r=0;r1)for(let e=0;e!!e.type.__asyncLoader,un=e=>e.type.__isKeepAlive;RegExp,RegExp;const dn=e=>(t,n=wo)=>(!Co||"sp"===e)&&function(e,t,n=wo,o=!1){if(n){const r=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;M(),ko(n);const r=Lo(t,n,e,o);return xo(),U(),r});return o?r.unshift(a):r.push(a),a}}(e,t,n),pn=(dn("bm"),dn("m")),hn=(dn("bu"),dn("u"),dn("bum")),fn=dn("um");function vn(e,t,n,o){const[r,a]=e.propsOptions;let i,l=!1;if(t)for(let s in t){if(wt(s))continue;const c=t[s];let u;r&&st(r,u=xt(s))?a&&a.includes(u)?(i||(i={}))[u]=c:n[u]=c:qt(e.emitsOptions,s)||c!==o[s]&&(o[s]=c,l=!0)}if(a){const t=Re(n),o=i||Ge;for(let i=0;i-1,o[1]=n<0||e-1||st(o,"default"))&&l.push(t)}}}const s=[i,l];return o.set(e,s),s}function bn(e){return"$"!==e[0]}function wn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function yn(e,t){return wn(e)===wn(t)}function kn(e,t){return ct(t)?t.findIndex((t=>yn(t,e))):pt(t)&&yn(t,e)?0:-1}dn("sp"),dn("rtg"),dn("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),a=e(...n);return Zt(r),o._d&&Kn(1),__VUE_PROD_DEVTOOLS__&&Ft(t),a};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(pt(r))t[n]=Cn(0,r,o);else if(null!=r){const e=_n(r);t[n]=()=>e}}},zn=(e,t)=>{const n=_n(t);e.slots.default=()=>n};function En(e,t){if(null===Wt)return e;const n=Wt.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e(a.has(e)||(e&&pt(e.install)?(a.add(e),e.install(l,...t)):pt(e)&&(a.add(e),e(l,...t))),l),mixin:e=>l,component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(a,s,c){if(!i){const u=ao(n,o);return u.appContext=r,s&&t?t(u,a):e(u,a,c),i=!0,l._container=a,a.__vue_app__=l,__VUE_PROD_DEVTOOLS__&&(l._instance=u.component,function(e,t){Mt("app:init",e,t,{Fragment:Vn,Text:Dn,Comment:Bn,Static:qn})}(l,nr)),Eo(u.component)||u.component.proxy}},unmount(){i&&(e(null,l._container),__VUE_PROD_DEVTOOLS__&&(l._instance=null,function(e){Mt("app:unmount",e)}(l)),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l)};return l}}const Rn=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__&&(Rt().__VUE_PROD_DEVTOOLS__=!1);const n=Rt();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&Ut(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:r,patchProp:a,createElement:i,createText:l,createComment:s,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:h=tt,cloneNode:f,insertStaticContent:v}=e,m=(e,t,n,o=null,r=null,a=null,i=!1,l=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!eo(e,t)&&(o=J(e),B(e,r,a,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Dn:g(e,t,n,o);break;case Bn:b(e,t,n,o);break;case qn:null==e&&w(t,n,o,i);break;case Vn:A(e,t,n,o,r,a,i,l,s);break;default:1&d?y(e,t,n,o,r,a,i,l,s):6&d?L(e,t,n,o,r,a,i,l,s):(64&d||128&d)&&c.process(e,t,n,o,r,a,i,l,s,Q)}null!=u&&r&&jn(u,e&&e.ref,a,t||e,!t)},g=(e,t,n,r)=>{if(null==e)o(t.el=l(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=s(t.children||""),n,r):t.el=e.el},w=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o)},y=(e,t,n,o,r,a,i,l,s)=>{i=i||"svg"===t.type,null==e?x(t,n,o,r,a,i,l,s):S(e,t,r,a,i,l,s)},x=(e,t,n,r,l,s,c,d)=>{let p,h;const{type:v,props:m,shapeFlag:g,transition:b,patchFlag:w,dirs:y}=e;if(e.el&&void 0!==f&&-1===w)p=e.el=f(e.el);else{if(p=e.el=i(e.type,s,m&&m.is,m),8&g?u(p,e.children):16&g&&C(e.children,p,null,r,l,s&&"foreignObject"!==v,c,d),y&&An(e,null,r,"created"),m){for(const t in m)"value"===t||wt(t)||a(p,t,null,m[t],s,e.children,r,l,Z);"value"in m&&a(p,"value",null,m.value),(h=m.onVnodeBeforeMount)&&$n(h,r,e)}_(p,e,e.scopeId,c,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:r,enumerable:!1})),y&&An(e,null,r,"beforeMount");const k=(!l||l&&!l.pendingBranch)&&b&&!b.persisted;k&&b.beforeEnter(p),o(p,t,n),((h=m&&m.onVnodeMounted)||k||y)&&Rn((()=>{h&&$n(h,r,e),k&&b.enter(p),y&&An(e,null,r,"mounted")}),l)},_=(e,t,n,o,r)=>{if(n&&h(e,n),o)for(let t=0;t{for(let c=s;c{const s=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const h=e.props||Ge,f=t.props||Ge;let v;(v=f.onVnodeBeforeUpdate)&&$n(v,n,t,e),p&&An(t,e,n,"beforeUpdate");const m=r&&"foreignObject"!==t.type;if(d?z(e.dynamicChildren,d,s,n,o,m,i):l||$(e,t,s,null,n,o,m,i,!1),c>0){if(16&c)E(s,t,h,f,n,o,r);else if(2&c&&h.class!==f.class&&a(s,"class",null,f.class,r),4&c&&a(s,"style",h.style,f.style,r),8&c){const i=t.dynamicProps;for(let t=0;t{v&&$n(v,n,t,e),p&&An(t,e,n,"updated")}),o)},z=(e,t,n,o,r,a,i)=>{for(let l=0;l{if(n!==o){for(const s in o){if(wt(s))continue;const c=o[s],u=n[s];c!==u&&"value"!==s&&a(e,s,u,c,l,t.children,r,i,Z)}if(n!==Ge)for(const s in n)wt(s)||s in o||a(e,s,n[s],null,l,t.children,r,i,Z);"value"in o&&a(e,"value",n.value,o.value)}},A=(e,t,n,r,a,i,s,c,u)=>{const d=t.el=e?e.el:l(""),p=t.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:v}=t;v&&(c=c?c.concat(v):v),null==e?(o(d,n,r),o(p,n,r),C(t.children,n,p,a,i,s,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(z(e.dynamicChildren,f,n,a,i,s,c),(null!=t.key||a&&t===a.subTree)&&Mn(e,t,!0)):$(e,t,n,p,a,i,s,c,u)},L=(e,t,n,o,r,a,i,l,s)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,s):T(t,n,o,r,a,i,s):O(e,t,s)},T=(e,t,n,o,r,a,i)=>{const l=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||go,a={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:gn(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 a.ctx={_:a},a.root=t?t.root:a,a.emit=Dt.bind(null,a),e.ce&&e.ce(a),a}(e,o,r);if(un(e)&&(l.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={},a={};Lt(a,to,1),e.propsDefaults=Object.create(null),vn(e,t,r,a);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:Ae(r,!1,ee,ye,_e):e.type.props?e.props=r:e.props=a,e.attrs=a})(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Re(t),Lt(t,"_",n)):Sn(t,e.slots={})}else e.slots={},t&&zn(e,t);Lt(e.slots,to,1)})(e,o);const a=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ie(new Proxy(e.ctx,mo));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=Ao(o,e,0,[e.props,n]);if(U(),xo(),vt(r)){if(r.then(xo,xo),t)return r.then((n=>{So(e,n,t)})).catch((t=>{To(t,e,0)}));e.asyncDep=r}else So(e,r,t)}else zo(e,t)}(e,t):void 0;Co=!1}(l),l.asyncDep){if(r&&r.registerDep(l,I),!e.el){const e=l.subTree=ao(Bn);b(null,e,t,n)}}else I(l,e,t,n,r,a,i)},O=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:a}=e,{props:i,children:l,patchFlag:s}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&s>=0))return!(!r&&!l||l&&l.$stable)||o!==i&&(o?!i||Yt(o,i,c):!!i);if(1024&s)return!0;if(16&s)return o?Yt(o,i,c):!!i;if(8&s){const e=t.dynamicProps;for(let t=0;tjo&&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,a,i)=>{const l=new R((()=>{if(e.isMounted){let t,{next:n,bu:o,u:s,parent:c,vnode:u}=e,p=n;l.allowRecurse=!1,n?(n.el=u.el,j(e,n,i)):n=u,o&&At(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&$n(t,c,n,u),l.allowRecurse=!0;const h=Jt(e),f=e.subTree;e.subTree=h,m(f,h,d(f.el),J(f),e,r,a),n.el=h.el,null===p&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,h.el),s&&Rn(s,r),(t=n.props&&n.props.onVnodeUpdated)&&Rn((()=>$n(t,c,n,u)),r),__VUE_PROD_DEVTOOLS__&&Ft(e)}else{let i;const{el:s,props:c}=t,{bm:u,m:d,parent:p}=e,h=cn(t);if(l.allowRecurse=!1,u&&At(u),!h&&(i=c&&c.onVnodeBeforeMount)&&$n(i,p,t),l.allowRecurse=!0,s&&X){const n=()=>{e.subTree=Jt(e),X(s,e.subTree,e,r,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Jt(e);m(null,i,n,o,e,r,a),t.el=i.el}if(d&&Rn(d,r),!h&&(i=c&&c.onVnodeMounted)){const e=t;Rn((()=>$n(i,p,e)),r)}256&t.shapeFlag&&e.a&&Rn(e.a,r),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Pt(e),t=n=o=null}}),(()=>Wo(e.update)),e.scope),s=e.update=l.run.bind(l);s.id=e.uid,l.allowRecurse=s.allowRecurse=!0,s()},j=(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:a,vnode:{patchFlag:i}}=e,l=Re(r),[s]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;vn(e,t,r,a)&&(c=!0);for(const a in l)t&&(st(t,a)||(o=Ct(a))!==a&&st(t,o))||(s?!n||void 0===n[a]&&void 0===n[o]||(r[a]=mn(s,l,a,void 0,e,!0)):delete r[a]);if(a!==l)for(const e in a)t&&st(t,e)||(delete a[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:o,slots:r}=e;let a=!0,i=Ge;if(32&o.shapeFlag){const e=t._;e?n&&1===e?a=!1:(it(r,t),n||1!==e||delete r._):(a=!t.$stable,Sn(t,r)),i=t}else t&&(zn(e,t),i={default:1});if(a)for(const e in r)xn(e)||e in i||delete r[e]})(e,t.children,n),M(),Jo(void 0,e.update),U()},$=(e,t,n,o,r,a,i,l,s=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void N(c,p,n,o,r,a,i,l,s);if(256&h)return void F(c,p,n,o,r,a,i,l,s)}8&f?(16&d&&Z(c,r,a),p!==c&&u(n,p)):16&d?16&f?N(c,p,n,o,r,a,i,l,s):Z(c,r,a,!0):(8&d&&u(n,""),16&f&&C(p,n,o,r,a,i,l,s))},F=(e,t,n,o,r,a,i,l,s)=>{t=t||et;const c=(e=e||et).length,u=t.length,d=Math.min(c,u);let p;for(p=0;pu?Z(e,r,a,!0,!1,d):C(t,n,o,r,a,i,l,s,d)},N=(e,t,n,o,r,a,i,l,s)=>{let c=0;const u=t.length;let d=e.length-1,p=u-1;for(;c<=d&&c<=p;){const o=e[c],u=t[c]=s?uo(t[c]):co(t[c]);if(!eo(o,u))break;m(o,u,n,null,r,a,i,l,s),c++}for(;c<=d&&c<=p;){const o=e[d],c=t[p]=s?uo(t[p]):co(t[p]);if(!eo(o,c))break;m(o,c,n,null,r,a,i,l,s),d--,p--}if(c>d){if(c<=p){const e=p+1,d=ep)for(;c<=d;)B(e[c],r,a,!0),c++;else{const h=c,f=c,v=new Map;for(c=f;c<=p;c++){const e=t[c]=s?uo(t[c]):co(t[c]);null!=e.key&&v.set(e.key,c)}let g,b=0;const w=p-f+1;let y=!1,k=0;const x=new Array(w);for(c=0;c=w){B(o,r,a,!0);continue}let u;if(null!=o.key)u=v.get(o.key);else for(g=f;g<=p;g++)if(0===x[g-f]&&eo(o,t[g])){u=g;break}void 0===u?B(o,r,a,!0):(x[u-f]=c+1,u>=k?k=u:y=!0,m(o,t[u],n,null,r,a,i,l,s),b++)}const _=y?function(e){const t=e.slice(),n=[0];let o,r,a,i,l;const s=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[a-1]),n[a]=o)}}for(a=n.length,i=n[a-1];a-- >0;)n[a]=i,i=t[i];return n}(x):et;for(g=_.length-1,c=w-1;c>=0;c--){const e=f+c,d=t[e],p=e+1{const{el:i,type:l,transition:s,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)l.move(e,t,n,Q);else if(l!==Vn)if(l!==qn)if(2!==r&&1&u&&s)if(0===r)s.beforeEnter(i),o(i,t,n),Rn((()=>s.enter(i)),a);else{const{leave:e,delayLeave:r,afterLeave:a}=s,l=()=>o(i,t,n),c=()=>{e(i,(()=>{l(),a&&a()}))};r?r(i,l,c):c()}else o(i,t,n);else(({el:e,anchor:t},n,r)=>{let a;for(;e&&e!==t;)a=p(e),o(e,n,r),e=a;o(t,n,r)})(e,t,n);else{o(i,t,n);for(let e=0;e{const{type:a,props:i,ref:l,children:s,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=l&&jn(l,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!cn(e);let v;if(f&&(v=i&&i.onVnodeBeforeUnmount)&&$n(v,t,e),6&u)H(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&An(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,Q,o):c&&(a!==Vn||d>0&&64&d)?Z(c,t,n,!1,!0):(a===Vn&&384&d||!r&&16&u)&&Z(s,t,n),o&&q(e)}(f&&(v=i&&i.onVnodeUnmounted)||h)&&Rn((()=>{v&&$n(v,t,e),h&&An(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:o,transition:a}=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=p(e),r(e),e=n;r(t)})(e);const i=()=>{r(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(1&e.shapeFlag&&a&&!a.persisted){const{leave:t,delayLeave:o}=a,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},W=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},H=(e,t,n)=>{const{bum:o,scope:r,update:a,subTree:i,um:l}=e;o&&At(o),r.stop(),a&&(a.active=!1,B(i,e,t,n)),l&&Rn(l,t),Rn((()=>{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,a=0)=>{for(let i=a;i6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),K=(e,t,n)=>{null==e?t._vnode&&B(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),Ko(),t._vnode=e},Q={p:m,um:B,m:D,r:q,mt:T,mc:C,pc:$,pbc:z,n:J,o:e};let Y,X;return t&&([Y,X]=t(Q)),{render:K,hydrate:Y,createApp:On(K,Y)}}function jn(e,t,n,o,r=!1){if(ct(e))return void e.forEach(((e,a)=>jn(e,t&&(ct(t)?t[a]:t),n,o,r)));if(cn(o)&&!r)return;const a=4&o.shapeFlag?Eo(o.component)||o.component.proxy:o.el,i=r?null:a,{i:l,r:s}=e,c=t&&t.r,u=l.refs===Ge?l.refs={}:l.refs,d=l.setupState;if(null!=c&&c!==s&&(ht(c)?(u[c]=null,st(d,c)&&(d[c]=null)):Pe(c)&&(c.value=null)),ht(s)){const e=()=>{u[s]=i,st(d,s)&&(d[s]=i)};i?(e.id=-1,Rn(e,n)):e()}else if(Pe(s)){const e=()=>{s.value=i};i?(e.id=-1,Rn(e,n)):e()}else pt(s)&&Ao(s,l,12,[i,u])}function $n(e,t,n,o=null){Lo(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;e0?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,a){return Qn(ro(e,t,n,o,r,a,!0))}function Xn(e,t,n,o,r){return Qn(ao(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)||pt(e)?{i:Wt,r:e}:e:null;function ro(e,t=null,n=null,o=0,r=null,a=(e===Vn?0:1),i=!1,l=!1){const s={__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:a,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return l?(po(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=ht(n)?8:16),Jn>0&&!i&&Hn&&(s.patchFlag>0||6&a)&&32!==s.patchFlag&&Hn.push(s),s}const ao=function(e,t=null,n=null,o=0,r=null,a=!1){if(e&&e!==Fn||(e=Bn),Gn(e)){const o=io(e,t,!0);return n&&po(o,n),o}if(i=e,pt(i)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=function(e){return e?Oe(e)||to in e?it({},e):e:null}(t);let{class:e,style:n}=t;e&&!ht(e)&&(t.class=Qe(e)),ft(n)&&(Oe(n)&&!ct(n)&&(n=it({},n)),t.style=He(n))}var i;return ro(e,t,n,o,r,ht(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ft(e)?4:pt(e)?2:0,a,!0)};function io(e,t,n=!1){const{props:o,ref:r,patchFlag:a,children:i}=e,l=t?function(...e){const t={};for(let n=0;nt(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;oe?_o(e)?Eo(e)||e.proxy:fo(e.parent):null,vo=it(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}),mo={get({_:e},t){const{ctx:n,setupState:o,data:r,props:a,accessCache:i,type:l,appContext:s}=e;let c;if("$"!==t[0]){const l=i[t];if(void 0!==l)switch(l){case 0:return o[t];case 1:return r[t];case 3:return n[t];case 2:return a[t]}else{if(o!==Ge&&st(o,t))return i[t]=0,o[t];if(r!==Ge&&st(r,t))return i[t]=1,r[t];if((c=e.propsOptions[0])&&st(c,t))return i[t]=2,a[t];if(n!==Ge&&st(n,t))return i[t]=3,n[t];i[t]=4}}const u=vo[t];let d,p;return u?("$attrs"===t&&P(e,0,t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==Ge&&st(n,t)?(i[t]=3,n[t]):(p=s.config.globalProperties,st(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:a}=e;if(r!==Ge&&st(r,t))r[t]=n;else if(o!==Ge&&st(o,t))o[t]=n;else if(st(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(a[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:a}},i){let l;return void 0!==n[i]||e!==Ge&&st(e,i)||t!==Ge&&st(t,i)||(l=a[0])&&st(l,i)||st(o,i)||st(vo,i)||st(r.config.globalProperties,i)}},go=Ln();let bo=0;let wo=null;const yo=()=>wo||Wt,ko=e=>{wo=e,e.scope.on()},xo=()=>{wo&&wo.scope.off(),wo=null};function _o(e){return 4&e.vnode.shapeFlag}let Co=!1;function So(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=De(t)),zo(e,n)}function zo(e,t,n){const o=e.type;e.render||(e.render=o.render||tt)}function Eo(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 vo?vo[n](e):void 0}))}function Ao(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){To(e,t,n)}return r}function Lo(e,t,n,o){if(pt(e)){const r=Ao(e,t,n,o);return r&&vt(r)&&r.catch((e=>{To(e,t,n)})),r}const r=[];for(let a=0;a>>1;Qo(Io[o])Qo(e)-Qo(t))),No=0;Nonull==e.id?1/0:e.id;function Yo(e){Ro=!1,Oo=!0,Jo(e),Io.sort(((e,t)=>Qo(e)-Qo(t)));try{for(jo=0;joe.value,u=!!e._shallow):Le(e)?(s=()=>e,o=!0):ct(e)?(d=!0,u=e.some(Le),s=()=>e.map((e=>Pe(e)?e.value:Le(e)?er(e):pt(e)?Ao(e,l,2):void 0))):s=pt(e)?t?()=>Ao(e,l,2):()=>{if(!l||!l.isUnmounted)return c&&c(),Lo(e,l,3,[p])}:tt,t&&o){const e=s;s=()=>er(e())}let p=e=>{c=m.onStop=()=>{Ao(e,l,4)}};if(Co)return p=tt,t?n&&Lo(t,l,3,[s(),d?[]:void 0,p]):s(),tt;let h=d?[]:Xo;const f=()=>{if(m.active)if(t){const e=m.run();(o||u||(d?e.some(((e,t)=>Et(e,h[t]))):Et(e,h)))&&(c&&c(),Lo(t,l,3,[e,h===Xo?void 0:h,p]),h=e)}else m.run()};let v;f.allowRecurse=!!t,v="sync"===r?f:"post"===r?()=>Rn(f,l&&l.suspense):()=>{!l||l.isMounted?function(e){Zo(e,Mo,$o,Uo)}(f):f()};const m=new R(s,v);return t?n?f():h=m.run():"post"===r?Rn(m.run.bind(m),l&&l.suspense):m.run(),()=>{m.stop(),l&&l.scope&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(l.scope.effects,m)}}(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{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)?ao(e,null,[t]):ao(e,t):ao(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Gn(n)&&(n=[n]),ao(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!!n[e.toLowerCase()]:e=>!!n[e]}const rr=or("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ar(e){return!!e||""===e}function ir(e,t){if(e===t)return!0;let n=pr(e),o=pr(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&&oir(e,t)))}const sr=/^on[^a-z]/,cr=Object.assign,ur=(Object.prototype.hasOwnProperty,Array.isArray),dr=e=>"[object Set]"===gr(e),pr=e=>e instanceof Date,hr=e=>"function"==typeof e,fr=e=>"string"==typeof e,vr=e=>null!==e&&"object"==typeof e,mr=Object.prototype.toString,gr=e=>mr.call(e),br=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},wr=/-(\w)/g,yr=(br((e=>e.replace(wr,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),kr=br((e=>e.replace(yr,"-$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,zr={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 a=Sr.get(e);if(!a){const t=Cr.createElement("template");if(t.innerHTML=o?`${e}`:e,a=t.content,o){const e=a.firstChild;for(;e.firstChild;)a.appendChild(e.firstChild);a.removeChild(e)}Sr.set(e,a)}return t.insertBefore(a.cloneNode(!0),n),[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Er=/\s*!important$/;function Ar(e,t,n){if(ur(n))n.forEach((n=>Ar(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Tr[t];if(n)return n;let o=xt(t);if("filter"!==o&&o in e)return Tr[t]=o;o=xr(o);for(let n=0;ndocument.createEvent("Event").timeStamp&&(Rr=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Ir=!!(e&&Number(e[1])<=53)}let jr=0;const $r=Promise.resolve(),Mr=()=>{jr=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:a=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=a,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(vr(e))return[Hr(e.enter),Hr(e.leave)];{const t=Hr(e);return[t,t]}}(r),v=f&&f[0],m=f&&f[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:w,onLeave:y,onLeaveCancelled:k,onBeforeAppear:x=g,onAppear:_=b,onAppearCancelled:C=w}=t,S=(e,t,n)=>{Jr(e,t?u:l),Jr(e,t?c:i),n&&n()},z=(e,t)=>{Jr(e,h),Jr(e,p),t&&t()},E=e=>(t,n)=>{const r=e?_:b,i=()=>S(t,e,n);qr(r,[t,i]),Kr((()=>{Jr(t,e?s:a),Zr(t,e?u:l),Wr(r)||Yr(t,o,v,i)}))};return cr(t,{onBeforeEnter(e){qr(g,[e]),Zr(e,a),Zr(e,i)},onBeforeAppear(e){qr(x,[e]),Zr(e,s),Zr(e,c)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){const n=()=>z(e,t);Zr(e,d),document.body.offsetHeight,Zr(e,p),Kr((()=>{Jr(e,d),Zr(e,h),Wr(y)||Yr(e,o,m,n)})),qr(y,[e,n])},onEnterCancelled(e){S(e,!1),qr(w,[e])},onAppearCancelled(e){S(e,!0),qr(C,[e])},onLeaveCancelled(e){z(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,a=()=>{r===e._endId&&o()};if(n)return setTimeout(a,n);const{type:i,timeout:l,propCount:s}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),a=o("transitionDuration"),i=Xr(r,a),l=o("animationDelay"),s=o("animationDuration"),c=Xr(l,s);let u=null,d=0,p=0;return t===Nr?i>0&&(u=Nr,d=i,p=a.length):t===Vr?c>0&&(u=Vr,d=c,p=s.length):(d=Math.max(i,c),u=d>0?i>c?Nr:Vr:null,p=u?u===Nr?a.length:s.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===Nr&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,p),a()},p=t=>{t.target===e&&++u>=s&&d()};setTimeout((()=>{uGr(t)+Gr(e[n]))))}function Gr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const ea=e=>{const t=e.props["onUpdate:modelValue"];return ur(t)?e=>((e,t)=>{for(let n=0;n{if(t.target.composing)return;let o=e.value;n?o=o.trim():a&&(o=_r(o)),e._assign(o)})),n&&Ur(e,"change",(()=>{e.value=e.value.trim()})),t||(Ur(e,"compositionstart",ta),Ur(e,"compositionend",na),Ur(e,"change",na))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},a){if(e._assign=ea(a),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 i=null==t?"":t;e.value!==i&&(e.value=i)}},ra={deep:!0,created(e,t,n){e._assign=ea(n),Ur(e,"change",(()=>{const t=e._modelValue,n=ca(e),o=e.checked,r=e._assign;if(ur(t)){const e=lr(t,n),a=-1!==e;if(o&&!a)r(t.concat(n));else if(!o&&a){const n=[...t];n.splice(e,1),r(n)}}else if(dr(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(ua(e,o))}))},mounted:aa,beforeUpdate(e,t,n){e._assign=ea(n),aa(e,t,n)}};function aa(e,{value:t,oldValue:n},o){e._modelValue=t,ur(t)?e.checked=lr(t,o.props.value)>-1:dr(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ir(t,ua(e,!0)))}const ia={created(e,{value:t},n){e.checked=ir(t,n.props.value),e._assign=ea(n),Ur(e,"change",(()=>{e._assign(ca(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=ea(o),t!==n&&(e.checked=ir(t,o.props.value))}},la={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=dr(t);Ur(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?_r(ca(e)):ca(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=ea(o)},mounted(e,{value:t}){sa(e,t)},beforeUpdate(e,t,n){e._assign=ea(n)},updated(e,{value:t}){sa(e,t)}};function sa(e,t){const n=e.multiple;if(!n||ur(t)||dr(t)){for(let o=0,r=e.options.length;o-1:r.selected=t.has(a);else if(ir(ca(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ca(e){return"_value"in e?e._value:e.value}function ua(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const da={created(e,t,n){pa(e,t,n,null,"created")},mounted(e,t,n){pa(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){pa(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){pa(e,t,n,o,"updated")}};function pa(e,t,n,o,r){let a;switch(e.tagName){case"SELECT":a=la;break;case"TEXTAREA":a=oa;break;default:switch(n.props&&n.props.type){case"checkbox":a=ra;break;case"radio":a=ia;break;default:a=oa}}const i=a[r];i&&i(e,t,n,o)}const ha=cr({patchProp:(e,t,n,o,r=!1,a,i,l,s)=>{"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)Ar(o,e,n[e]);if(t&&!fr(t))for(const e in t)null==n[e]&&Ar(o,e,"")}else{const a=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=a)}}(e,n,o):(e=>sr.test(e))(t)?(e=>e.startsWith("onUpdate:"))(t)||function(e,t,n,o,r=null){const a=e._vei||(e._vei={}),i=a[t];if(o&&i)i.value=o;else{const[n,l]=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 i=a[t]=function(e,t){const n=e=>{const o=e.timeStamp||Rr();(Ir||o>=n.attached-1)&&Lo(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=jr||($r.then(Mr),jr=Rr()),n}(o,r);Ur(e,n,i,l)}else i&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,l),a[t]=void 0)}}(e,t,0,o,i):("."===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,a,i){if("innerHTML"===t||"textContent"===t)return o&&i(o,r,a),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]=ar(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,a,i,l,s):("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(Or,t.slice(6,t.length)):e.setAttributeNS(Or,t,n);else{const o=rr(t);null==n||o&&!ar(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},zr);let fa;const va=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},ma=e=>{try{e=decodeURI(e)}catch(e){}return e},ga=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},ba=e=>/^(https?:)?\/\//.test(e),wa=["mp","identicon","monsterid","wavatar","robohash","retro",""],ya=["nick","mail","link"],ka=e=>e&&wa.includes(e)?e:"mp",xa=e=>e.filter((e=>ya.includes(e))),_a="zh-CN",Ca=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})),Sa=e=>!0===e?'

Tex is not available in preview

':'Tex is not available in preview',za=["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"],Ea=e=>Object.fromEntries(e.map(((e,t)=>[za[t],e]))),Aa=Ea(["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"]),La=Ea(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),Ta=Ea(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名"]),Oa=Ea(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名"]),Ra=Ea(["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"]),Ia={zh:Ta,"zh-cn":Ta,"zh-CN":Ta,"zh-tw":Oa,"zh-TW":Oa,en:Aa,"en-US":Aa,jp:La,"jp-jp":La,"jp-JP":La,"pt-br":Ra,"pt-BR":Ra},ja=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 $a;const Ma=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 Ua=n(948),Pa=n.n(Ua);const Fa=e=>{const t=ga(e);return ba(t)?t:"https://".concat(t)},Na=(e,t)=>"function"==typeof e?e:!1!==e&&t,Va=e=>{let{el:t="#waline",serverURL:n,placeholder:o,langMode:r,emojiCDN:a,emojiMaps:i,requiredFields:l=[],anonymous:s,avatarCDN:c,avatar:u,avatarForce:d,previewMath:p,path:h=location.pathname,lang:f=_a,locale:v=r,emoji:m=["https://cdn.jsdelivr.net/gh/walinejs/emojis@1.0.0/weibo"],meta:g=["nick","mail","link"],requiredMeta:b=l,pageSize:w=10,wordLimit:y,uploadImage:k,highlight:x,tex:_=p,copyright:C=!0,login:S=(!0===s?"disable":!1===s?"force":"enable"),...z}=e;const E=Ia[f]||Ia[_a];o&&(E.placeholder=o);const A=a&&"object"==typeof i?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}}(i,a)):(L=m,Promise.all(L.map((e=>"string"==typeof e?(e=>{$a||($a=ja("WALINE_EMOJI"));const t=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(t){const t=$a.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&&$a.set(e,o),o}))})(ga(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:o,icon:r,prefix:a,type:i,items:l}=e;t.tabs.push({name:n,icon:Ma(r,o,a,i),items:l.map((e=>{const n="".concat(a||"").concat(e);return t.map[n]=Ma(e,o,a,i),n}))})})),t})));var L;return{el:t,serverURL:Fa(n),path:ma(h),lang:f,locale:{...E,..."object"==typeof v?v:{}},emoji:A,wordLimit:Array.isArray(y)?y:!!y&&[0,y],meta:xa(g),requiredMeta:xa(b),pageSize:w,avatar:{cdn:c||"https://seccdn.libravatar.org/avatar/",param:"?d=".concat(ka(u)).concat(d?"&q=".concat(Math.random().toString(32).substring(2)):""),default:!u&&!c,hide:"hide"===u},uploadImage:Na(k,Ca),highlight:Na(x,Pa()),tex:Na(_,Sa),copyright:C,login:S,...z}},Da=e=>e.type.includes("image"),Ba=e=>{const t=Array.from(e).find(Da);return!!t&&t.getAsFile()},qa="{--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}",Wa=(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,"")}},Ha=()=>{Wa('\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","
");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","")},Za=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null;let Ja={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 Ka=/[&<>"']/,Qa=/[&<>"']/g,Ya=/[<>"']|&(?!#?\w+;)/,Xa=/[<>"']|&(?!#?\w+;)/g,Ga={"&":"&","<":"<",">":">",'"':""","'":"'"},ei=e=>Ga[e];function ti(e,t){if(t){if(Ka.test(e))return e.replace(Qa,ei)}else if(Ya.test(e))return e.replace(Xa,ei);return e}const ni=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function oi(e){return e.replace(ni,((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 ri=/(^|[^\[])\^/g;function ai(e,t){e=e.source||e,t=t||"";const n={replace:(t,o)=>(o=(o=o.source||o).replace(ri,"$1"),e=e.replace(t,o),n),getRegex:()=>new RegExp(e,t)};return n}const ii=/[^\w:]/g,li=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function si(e,t,n){if(e){let e;try{e=decodeURIComponent(oi(n)).replace(ii,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!li.test(n)&&(n=function(e,t){ci[" "+e]||(ui.test(e)?ci[" "+e]=e+"/":ci[" "+e]=mi(e,"/",!0));const n=-1===(e=ci[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(di,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(pi,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const ci={},ui=/^[^:]+:\/*[^/]*$/,di=/^([^:]+:)[\s\S]*$/,pi=/^([^:]+:\/*[^/]*)[\s\S]*$/,hi={exec:function(){}};function fi(e){let t,n,o=1;for(;o{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.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function wi(e,t,n,o){const r=t.href,a=t.title?ti(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){o.state.inLink=!0;const e={type:"link",raw:n,href:r,title:a,text:i,tokens:o.inlineTokens(i,[])};return o.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:a,text:ti(i)}}class yi{constructor(e){this.options=e||Ja}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:mi(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=mi(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,a,i,l,s,c,u,d,p=t[1].trim();const h=p.length>1,f={type:"list",raw:"",ordered:h,start:h?+p.slice(0,-1):"",loose:!1,items:[]};p=h?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=h?p:"[*+-]");const v=new RegExp(`^( {0,3}${p})((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))`);for(;e&&!this.rules.block.hr.test(e)&&(t=v.exec(e));){u=t[2].split("\n"),this.options.pedantic?(a=2,d=u[0].trimLeft()):(a=t[2].search(/[^ ]/),a=t[1].length+(a>4?1:a),d=u[0].slice(a-t[1].length)),l=!1,n=t[0],!u[0]&&/^ *$/.test(u[1])&&(n=t[1]+u.slice(0,2).join("\n")+"\n",f.loose=!0,u=[]);const p=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(i=1;i=a)&&c.trim()){n=t[1]+u.slice(0,i).join("\n")+"\n";break}d+="\n"+c.slice(a)}else c.trim()||(l=!0),c.search(/[^ ]/)>=a?d+="\n"+c.slice(a):d+="\n"+c}f.loose||(s?f.loose=!0:/\n *\n *$/.test(n)&&(s=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(d),o&&(r="[ ] "!==o[0],d=d.replace(/^\[[ xX]\] +/,""))),f.items.push({type:"list_item",raw:n,task:!!o,checked:r,loose:!1,text:d}),f.raw+=n,e=e.slice(n.length)}f.items[f.items.length-1].raw=n.trimRight(),f.items[f.items.length-1].text=d.trimRight(),f.raw=f.raw.trimRight();const m=f.items.length;for(i=0;i"space"===e.type))&&(f.loose=!0,f.items[i].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]):ti(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:vi(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,a,i=e.align.length;for(n=0;n({text:e})));for(i=e.header.length,o=0;o/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]):ti(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))return;const t=mi(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-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(e)?n.slice(1):n.slice(1,-1)),wi(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 wi(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,a,i=n,l=0;const s="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=s.exec(t));){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(a=r.length,o[3]||o[4]){i+=a;continue}if((o[5]||o[6])&&n%3&&!((n+a)%3)){l+=a;continue}if(i-=a,i>0)continue;if(a=Math.min(a,a+i+l),Math.min(n,a)%2){const t=e.slice(1,n+o.index+a);return{type:"em",raw:e.slice(0,n+o.index+a+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+o.index+a-1);return{type:"strong",raw:e.slice(0,n+o.index+a+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=ti(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=ti(this.options.mangle?t(n[1]):n[1]),o="mailto:"+e):(e=ti(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=ti(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=ti(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]):ti(n[0]):n[0]:ti(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const ki={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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:hi,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?'|\([^()]*\))/};ki.def=ai(ki.def).replace("label",ki._label).replace("title",ki._title).getRegex(),ki.bullet=/(?:[*+-]|\d{1,9}[.)])/,ki.listItemStart=ai(/^( *)(bull) */).replace("bull",ki.bullet).getRegex(),ki.list=ai(ki.list).replace(/bull/g,ki.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ki.def.source+")").getRegex(),ki._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",ki._comment=/|$)/,ki.html=ai(ki.html,"i").replace("comment",ki._comment).replace("tag",ki._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ki.paragraph=ai(ki._paragraph).replace("hr",ki.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",ki._tag).getRegex(),ki.blockquote=ai(ki.blockquote).replace("paragraph",ki.paragraph).getRegex(),ki.normal=fi({},ki),ki.gfm=fi({},ki.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ki.gfm.table=ai(ki.gfm.table).replace("hr",ki.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",ki._tag).getRegex(),ki.pedantic=fi({},ki.normal,{html:ai("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ki._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hi,paragraph:ai(ki.normal._paragraph).replace("hr",ki.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ki.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const xi={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:hi,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:hi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),o+="&#"+n+";";return o}xi._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",xi.punctuation=ai(xi.punctuation).replace(/punctuation/g,xi._punctuation).getRegex(),xi.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,xi.escapedEmSt=/\\\*|\\_/g,xi._comment=ai(ki._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),xi.emStrong.lDelim=ai(xi.emStrong.lDelim).replace(/punct/g,xi._punctuation).getRegex(),xi.emStrong.rDelimAst=ai(xi.emStrong.rDelimAst,"g").replace(/punct/g,xi._punctuation).getRegex(),xi.emStrong.rDelimUnd=ai(xi.emStrong.rDelimUnd,"g").replace(/punct/g,xi._punctuation).getRegex(),xi._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,xi._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,xi._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])?)+(?![-_])/,xi.autolink=ai(xi.autolink).replace("scheme",xi._scheme).replace("email",xi._email).getRegex(),xi._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,xi.tag=ai(xi.tag).replace("comment",xi._comment).replace("attribute",xi._attribute).getRegex(),xi._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,xi._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,xi._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,xi.link=ai(xi.link).replace("label",xi._label).replace("href",xi._href).replace("title",xi._title).getRegex(),xi.reflink=ai(xi.reflink).replace("label",xi._label).getRegex(),xi.reflinkSearch=ai(xi.reflinkSearch,"g").replace("reflink",xi.reflink).replace("nolink",xi.nolink).getRegex(),xi.normal=fi({},xi),xi.pedantic=fi({},xi.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:ai(/^!?\[(label)\]\((.*?)\)/).replace("label",xi._label).getRegex(),reflink:ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xi._label).getRegex()}),xi.gfm=fi({},xi.normal,{escape:ai(xi.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]*?(?:(?=[\\!!(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],a&&"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),a=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,a,i,l,s=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)e.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+bi("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+bi("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,a.index)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(i||(l=""),i=!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,s,l))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,Ci))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Ci))){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,_i))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),i=!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 zi{constructor(e){this.options=e||Ja}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?'
'+(n?e:ti(e,!0))+"
\n":"
"+(n?e:ti(e,!0))+"
\n"}blockquote(e){return"
\n"+e+"
\n"}html(e){return e}heading(e,t,n,o){return this.options.headerIds?"'+e+"\n":""+e+"\n"}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return"
  • "+e+"
  • \n"}checkbox(e){return" "}paragraph(e){return"

    "+e+"

    \n"}table(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n"+e+"\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"}strong(e){return""+e+""}em(e){return""+e+""}codespan(e){return""+e+""}br(){return this.options.xhtml?"
    ":"
    "}del(e){return""+e+""}link(e,t,n){if(null===(e=si(this.options.sanitize,this.options.baseUrl,e)))return n;let o='",o}image(e,t,n){if(null===(e=si(this.options.sanitize,this.options.baseUrl,e)))return n;let o=''+n+'":">",o}text(e){return e}}class Ei{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 Ai{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 Li{constructor(e){this.options=e||Ja,this.options.renderer=this.options.renderer||new zi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ei,this.slugger=new Ai}static parse(e,t){return new Li(t).parse(e)}static parseInline(e,t){return new Li(t).parseInline(e)}parse(e,t=!0){let n,o,r,a,i,l,s,c,u,d,p,h,f,v,m,g,b,w,y,k="";const x=e.length;for(n=0;n0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=w+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=w+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:w}):v+=w),v+=this.parse(m.tokens,f),u+=this.renderer.listitem(v,b,g);k+=this.renderer.list(u,p,h);continue;case"html":k+=this.renderer.html(d.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(u=d.tokens?this.parseInline(d.tokens):d.text;n+1{o(e.text,e.lang,(function(t,n){if(t)return a(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),i--,0===i&&a()}))}),0))})),void(0===i&&a())}try{const n=Si.lex(e,t);return t.walkTokens&&Ti.walkTokens(n,t.walkTokens),Li.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+ti(e.message+"",!0)+"
    ";throw e}}Ti.options=Ti.setOptions=function(e){var t;return fi(Ti.defaults,e),t=Ti.defaults,Ja=t,Ti},Ti.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}},Ti.defaults=Ja,Ti.use=function(...e){const t=fi({},...e),n=Ti.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=Ti.defaults.renderer||new zi;for(const t in e.renderer){const o=n[t];n[t]=(...r)=>{let a=e.renderer[t].apply(n,r);return!1===a&&(a=o.apply(n,r)),a}}t.renderer=n}if(e.tokenizer){const n=Ti.defaults.tokenizer||new yi;for(const t in e.tokenizer){const o=n[t];n[t]=(...r)=>{let a=e.tokenizer[t].apply(n,r);return!1===a&&(a=o.apply(n,r)),a}}t.tokenizer=n}if(e.walkTokens){const n=Ti.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}o&&(t.extensions=n),Ti.setOptions(t)}))},Ti.walkTokens=function(e,t){for(const n of e)switch(t.call(Ti,n),n.type){case"table":for(const e of n.header)Ti.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Ti.walkTokens(n.tokens,t);break;case"list":Ti.walkTokens(n.items,t);break;default:Ti.defaults.extensions&&Ti.defaults.extensions.childTokens&&Ti.defaults.extensions.childTokens[n.type]?Ti.defaults.extensions.childTokens[n.type].forEach((function(e){Ti.walkTokens(n[e],t)})):n.tokens&&Ti.walkTokens(n.tokens,t)}},Ti.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");gi(t=fi({},Ti.defaults,t||{}));try{const n=Si.lexInline(e,t);return t.walkTokens&&Ti.walkTokens(n,t.walkTokens),Li.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+ti(e.message+"",!0)+"
    ";throw e}},Ti.Parser=Li,Ti.parser=Li.parse,Ti.Renderer=zi,Ti.TextRenderer=Ei,Ti.Lexer=Si,Ti.lexer=Si.lex,Ti.Tokenizer=yi,Ti.Slugger=Ai,Ti.parse=Ti,Ti.options,Ti.setOptions,Ti.use,Ti.walkTokens,Ti.parseInline,Li.parse,Si.lex;const Oi=/\$.*?\$/,Ri=/^\$(.*?)\$/,Ii=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ji=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]?'').concat(n,''):e))},$i=(e,t)=>{let n=e.toString();for(;n.length{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=$i(e.getDate(),2),n=$i(e.getMonth()+1,2),o=$i(e.getFullYear(),2);return"".concat(o,"-").concat(n,"-").concat(t)})(e)}catch(e){console.log(e)}return""},Ui=(e,t)=>{t.forEach(((t,n)=>{(t.querySelector(".leancloud-visitors-count")||t).innerText=e[n].toString()}))};let Pi,Fi;const Ni=()=>(Fi||(Pi=ja("WALINE_USER_CACHE"),Fi=ze({nick:Pi.get("nick")||"",mail:Pi.get("mail")||"",link:Pi.get("link")||"",editor:""})),{inputs:Fi,store:Pi}),Vi="WALINE_USER",Di=Fe({}),Bi=()=>{if(!Di.value)try{Di.value=JSON.parse(localStorage.getItem(Vi)||"")||JSON.parse(sessionStorage.getItem(Vi)||"")||{}}catch(e){}return{userInfo:Ee(Di),setUserInfo:e=>{Di.value=e}}},qi={class:"v","data-class":"v"},Wi={class:"vcount"},Hi=["textContent"],Zi={class:"vcards"},Ji={key:1,class:"vloading"},Ki=["textContent"],Qi={key:2,class:"vloading"},Yi=["textContent"],Xi={key:4,class:"vmore"},Gi=["textContent"],el={key:5,class:"vpower"},tl=lo(" Powered by "),nl=ro("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1),ol={class:"vcomment"},rl={key:0,class:"vlogin-info"},al={class:"vavatar"},il=["title"],ll=["src"],sl=["textContent"],cl={class:"vpanel"},ul=["for","textContent"],dl=["id","name","type","onUpdate:modelValue"],pl=["placeholder"],hl=["innerHTML"],fl={class:"vfooter"},vl={class:"vactions"},ml={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"vaction",target:"_blank",rel:"noreferrer"},gl=["title"],bl=["title"],wl=["title"],yl={class:"vinfo"},kl={class:"vtext-number"},xl={key:0},_l=lo(" / "),Cl=["textContent"],Sl=["textContent"],zl=["disabled"],El={key:0,class:"vtab-wrapper"},Al=["title","onClick"],Ll=["src","alt"],Tl={key:0,class:"vtabs"},Ol=["onClick"],Rl=["src","alt","title"],Il=["title"];var jl,$l,Ml="function"==typeof Map?new Map:(jl=[],$l=[],{has:function(e){return jl.indexOf(e)>-1},get:function(e){return $l[jl.indexOf(e)]},set:function(e,t){-1===jl.indexOf(e)&&(jl.push(e),$l.push(t))},delete:function(e){var t=jl.indexOf(e);t>-1&&(jl.splice(t,1),$l.splice(t,1))}}),Ul=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(jl){Ul=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Pl(e){var t=Ml.get(e);t&&t.destroy()}function Fl(e){var t=Ml.get(e);t&&t.update()}var Nl=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Nl=function(e){return e}).destroy=function(e){return e},Nl.update=function(e){return e}):((Nl=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&&!Ml.has(e)){var t,n=null,o=null,r=null,a=function(){e.clientWidth!==o&&c()},i=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",i,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),Ml.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",i,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",Ml.set(e,{destroy:i,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 l(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function s(){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(){s();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{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"})))},Bl=sn({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:Dl},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:a}=Ni(),{userInfo:i,setUserInfo:l}=Bi(),s=Fe({}),c=Fe(null),u=Fe(null),d=Fe(null),p=Fe(null),h=Fe({tabs:[],map:{}}),f=Fe(0),v=Fe(!1),m=Fe(!1),g=Fe(""),b=Fe(0),w=Fe(0),y=Fe(!1),k=Fe(""),x=Fe(!1),_=qe((()=>o.value.locale)),C=qe((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),S=qe((()=>!1!==o.value.uploadImage)),z=e=>{const t=c.value,n=t.selectionStart,o=t.selectionEnd||0,a=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=a},E=e=>{const t="![".concat(o.value.locale.uploading," ").concat(e.name,"]()");return z(t),Promise.resolve().then((()=>o.value.uploadImage(e))).then((n=>{r.editor=r.editor.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))}))},A=()=>{var t,l;const{serverURL:u,lang:d,login:p,wordLimit:f,requiredMeta:v}=o.value,m={comment:k.value,nick:r.nick,mail:r.mail,link:r.link,ua:navigator.userAgent,url:o.value.path};if(null!==(t=i.value)&&void 0!==t&&t.token)m.nick=i.value.display_name,m.mail=i.value.email,m.link=i.value.url;else{if("force"===p)return;var w,C,S;if((v.indexOf("nick")>-1||m.nick)&&!m.nick)return null===(w=s.value.nick)||void 0===w||w.focus(),alert(_.value.nickError);if((v.indexOf("mail")>-1||m.mail)&&!/^(\w)+([._-]\w+)*@(\w)+((\.\w{2,}){1,3})$/.exec(m.mail))return null===(C=s.value.mail)||void 0===C||C.focus(),alert(_.value.mailError);if(!m.comment)return void(null===(S=c.value)||void 0===S||S.focus());m.nick||(m.nick=_.value.anonymous)}if(!y.value)return alert(_.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",b.value.toString()));m.comment=ji(m.comment,h.value.map),e.replyId&&e.rootId&&(m.pid=e.replyId,m.rid=e.rootId,m.at=e.replyUser),x.value=!0,(e=>{let{serverURL:t,lang:n,token:o,comment:r}=e;const a={"Content-Type":"application/json"};return o&&(a.Authorization="Bearer ".concat(o)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:a,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:u,lang:d,token:null===(l=i.value)||void 0===l?void 0:l.token,comment:m}).then((t=>{if(x.value=!1,a.update({nick:m.nick,link:m.link,mail:m.mail}),t.errmsg)return alert(t.errmsg);n("submit",t.data),r.editor="",g.value="",e.replyId&&n("cancel-reply")})).catch((e=>{x.value=!1,alert(e.message)}))},L=e=>{d.value.contains(e.target)||p.value.contains(e.target)||(v.value=!1)};return Go((()=>r.editor),(e=>{const{highlight:t,tex:n}=o.value;k.value=e,g.value=((e,t,n,o)=>{if(Ti.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=Ii.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(Oi);return-1!==t?t:e.length},tokenizer(t){const n=Ri.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}};return[t,n]})(o);Ti.use({extensions:e})}return Ti.parse(ji(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?Vl(c.value):Vl.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?no[1]?(w.value=o[1],y.value=!1):(w.value=o[1],y.value=!0):(w.value=0,y.value=!0)}),{immediate:!0}),pn((()=>{document.body.addEventListener("click",L)})),fn((()=>{document.body.removeEventListener("click",L)})),{config:o,locale:_,insert:z,onChange:()=>{const e=u.value;e.files&&S.value&&E(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=Ba(e.dataTransfer.items);t&&S.value&&(E(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&A()},onPaste:e=>{if(e.clipboardData){const t=Ba(e.clipboardData.items);t&&S.value&&E(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-450)/2,a=(window.innerHeight-450)/2,i=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(r,",top=").concat(a,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==i||i.postMessage({type:"TOKEN",data:null},"*");const s=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==i||i.close(),l(t.data),(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",s))};window.addEventListener("message",s)},onLogout:()=>{l({}),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,a=(window.innerHeight-800)/2,s=window.open("".concat(n,"/ui/profile?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(800,",height=").concat(800,",left=").concat(r,",top=").concat(a,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:i.value.token},"*");const c=e=>{let{data:t}=e;t&&"profile"===t.type&&(l(Object.assign({},i.value,t)),[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(i)))),window.removeEventListener("message",c))};window.addEventListener("message",c)},submitComment:A,isLogin:C,userInfo:i,isSubmitting:x,wordNumber:b,wordLimit:w,isWordNumberLegal:y,inputs:r,emoji:h,emojiTabIndex:f,showEmoji:v,canUploadImage:S,previewText:g,showPreview:m,inputRefs:s,editorRef:c,emojiButtonRef:d,emojiPopupRef:p,imageUploadRef:u}}});var ql=n(407);const Wl=(0,ql.Z)(Bl,[["render",function(e,t,n,o,r,a){const i=Pn("CloseIcon"),l=Pn("MarkdownIcon"),s=Pn("EmojiIcon"),c=Pn("ImageIcon"),u=Pn("PreviewIcon"),d=Pn("LoadingIcon");return Zn(),Yn("div",ol,["disable"!==e.config.login&&e.isLogin?(Zn(),Yn("div",rl,[ro("div",al,[ro("button",{class:"vlogout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[ao(i,{size:"14"})],8,il),ro("img",{src:e.userInfo.avatar||"".concat(e.config.avatar.cdn).concat(e.userInfo.mailMd5).concat(e.config.avatar.param),alt:"avatar"},null,8,ll)]),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,sl)])):so("v-if",!0),ro("div",cl,["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,ul),En(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,dl),[[da,e.inputs[t]]])])))),128))],2)):so("v-if",!0),En(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,pl),[[oa,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,hl)],4),ro("div",fl,[ro("div",vl,[ro("a",ml,[ao(l)]),ro("button",{ref:"emojiButtonRef",class:Qe(["vaction",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[ao(s)],10,gl),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},[ao(c)],8,bl)):so("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)},[ao(u)],10,wl)]),ro("div",yl,[ro("div",kl,[lo(Ye(e.wordNumber)+" ",1),e.config.wordLimit?(Zn(),Yn("span",xl,[_l,ro("span",{class:Qe({illegal:!e.isWordNumberLegal}),textContent:Ye(e.wordLimit)},null,10,Cl)])):so("v-if",!0),lo(" "+Ye(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?so("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,Sl)),"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(d,{key:0,size:16})):(Zn(),Yn(Vn,{key:1},[lo(Ye(e.locale.submit),1)],2112))],8,zl)):so("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",El,[(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,Ll)):so("v-if",!0)],8,Al)))),128))])):so("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Zn(),Yn("div",Tl,[(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,Rl)],10,Ol)))),128))])):so("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"))},[ao(i,{size:"24"})],8,Il)):so("v-if",!0)])}]]),Hl=Wl,Zl=["id"],Jl=["src"],Kl={class:"vcard"},Ql={class:"vhead"},Yl=["href"],Xl={key:1,class:"vnick"},Gl=["textContent"],es=["textContent"],ts=["textContent"],ns=["title"],os={class:"vmeta","aria-hidden":"true"},rs=["textContent"],as=["textContent"],is=["innerHTML"],ls={key:0,class:"vreply-wrapper"},ss={key:1,class:"vquote"},cs=sn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:Hl,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?ba(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))})),a=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:a,link:o,timeAgo:Mi}}}),us=sn({name:"Waline-Root",components:{CommentBox:Hl,CommentCard:(0,ql.Z)(cs,[["render",function(e,t,n,o,r,a){const i=Pn("VerifiedIcon"),l=Pn("ReplyIcon"),s=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,Jl)):so("v-if",!0),ro("div",Kl,[ro("div",Ql,[e.link?(Zn(),Yn("a",{key:0,class:"vnick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},[lo(Ye(e.comment.nick),1),e.comment.type?(Zn(),Xn(i,{key:0})):so("v-if",!0)],8,Yl)):(Zn(),Yn("span",Xl,[lo(Ye(e.comment.nick),1),e.comment.type?(Zn(),Xn(i,{key:0})):so("v-if",!0)])),"administrator"===e.comment.type?(Zn(),Yn("span",{key:2,class:"vbadge",textContent:Ye(e.locale.admin)},null,8,Gl)):so("v-if",!0),e.comment.sticky?(Zn(),Yn("span",{key:3,class:"vbadge",textContent:Ye(e.locale.sticky)},null,8,es)):so("v-if",!0),ro("span",{class:"vtime",textContent:Ye(e.timeAgo(e.comment.insertedAt,e.locale))},null,8,ts),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))},[ao(l)],10,ns)]),ro("div",os,[e.comment.browser?(Zn(),Yn("span",{key:0,textContent:Ye(e.comment.browser)},null,8,rs)):so("v-if",!0),e.comment.os?(Zn(),Yn("span",{key:1,textContent:Ye(e.comment.os)},null,8,as)):so("v-if",!0)]),ro("div",{class:"vcontent",innerHTML:e.comment.comment},null,8,is),e.isReplyingCurrent?(Zn(),Yn("div",ls,[ao(s,{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"])])):so("v-if",!0),e.comment.children?(Zn(),Yn("div",ss,[(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))])):so("v-if",!0)])],8,Zl)}]]),LoadingIcon:Dl},props:{signal:{type:Object,required:!0}},setup(e){const t=Xt("config"),n=Xt("event"),o=Fe(0),r=Fe(1),a=Fe(0),i=Fe(!0),l=Fe(!1),s=Fe([]),c=Fe(null);let u=e.signal;const d=qe((()=>t.value.locale)),p=e=>{i.value=!0,l.value=!1,(e=>{let{serverURL:t,path:n,page:o,pageSize:r,signal:a}=e;return fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(n),"&pageSize=").concat(r,"&page=").concat(o),{signal:a}).then((e=>e.json())).then((e=>va(e,"comment list")))})(Object.assign({},t.value,{page:e,signal:u})).then((t=>{i.value=!1,o.value=t.count,s.value.push(...t.data),r.value=e,a.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),l.value=!0,i.value=!1)}))};return n.on("render",(e=>{u=e,o.value=0,s.value=[],p(1)})),pn((()=>p(1))),{config:t,locale:d,count:o,data:s,loading:i,inError:l,page:r,totalPages:a,reply:c,loadMore:()=>p(r.value+1),refresh:()=>{s.value=[],p(1)},onReply:e=>{c.value=e},onSubmit:e=>{if(e.rid){const t=s.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 s.value.unshift(e)},version:"1.5.2"}}}),ds=(0,ql.Z)(us,[["render",function(e,t,n,o,r,a){const i=Pn("CommentBox"),l=Pn("CommentCard"),s=Pn("LoadingIcon");return Zn(),Yn("div",qi,[e.reply?so("v-if",!0):(Zn(),Xn(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),ro("div",Wi,[e.count?(Zn(),Yn("span",{key:0,class:"vnum",textContent:Ye(e.count)},null,8,Hi)):so("v-if",!0),lo(" "+Ye(e.locale.comment),1)]),ro("div",Zi,[(Zn(!0),Yn(Vn,null,ho(e.data,(t=>(Zn(),Xn(l,{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",Ji,[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,Ki)])):e.loading?(Zn(),Yn("div",Qi,[ao(s,{size:30})])):e.data.length?so("v-if",!0):(Zn(),Yn("div",{key:3,class:"vempty",textContent:Ye(e.locale.sofa)},null,8,Yi)),e.page{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=>va(e,"visit count")))})({serverURL:t,path:n}),a=Array.from(document.querySelectorAll(".waline-visitor-count,.leancloud_visitors,.leancloud-visitors")).filter((e=>e.getAttribute("id"))),i=a.map((e=>ma(e.getAttribute("id")||""))),l=i.filter((e=>e!==n));l.length?(l.length===i.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=>va(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:t,paths:i,signal:o}))).then((e=>Ui(e,a))).catch((e=>{"AbortError"!==e.name&&console.error(e.message)})):r.then((e=>Ui(new Array(a.length).fill(e),a)))})({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=>va(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:n.map((e=>ma(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)},Ls=e=>(console.warn(e),{errMsg:e});function Ts(e){const{el:t,serverURL:n}=e;if(!n)return Ls("Option 'serverURL' is missing!");var o;e.dark&&"string"==typeof(o=e.dark)&&Wa("auto"===o?"@media(prefers-color-scheme:dark){body".concat(qa,"}"):"".concat(o).concat(qa),"waline-dark"),e.mathTagSupport&&window.addEventListener("load",Ha);const r=new Es,a=new Es,i=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:l,update:s}=(e=>{let t=e;const n=Fe(Va(e));return{config:Ee(n),update:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t={...t,...e},n.value=Va(t)}}})(e);As(l.value,a.signal);const c=Za(t);if(t&&!c)return Ls("Option 'el' do not match any domElement!");let u;c&&(u=((...e)=>{const t=(fa||(fa=In(ha))).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 a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t})(ps,{signal:r.signal}).provide("config",l).provide("event",i).provide("version","1.5.2"),u.mount(c));const d={options:e,path:l.value.path};return{el:c,update:e=>{s(e);const{path:t}=l.value;d.path!==t&&(r.new(),d.path=t,i.emit("render",r.signal)),a.new(),As(l.value,a.signal)},destroy:()=>{t&&u.unmount()}}}Ts.Widget={RecentComments:e=>{let{el:t,serverURL:n,count:o}=e;const r=Za(t),a=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=>va(e,"recent comment")))})({serverURL:n,count:o,signal:a.signal}).then((e=>r&&e.length?(r.innerHTML='
    "),{comments:e,destroy:()=>{a.abort(),r.innerHTML=""}}):{comments:e,destroy:()=>a.abort()}))}},Ts.version="1.5.2";const Os=Ts})(),o.default})()})); //# sourceMappingURL=Waline.min.js.map