@waline/client 2.6.2 → 2.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/waline.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,t){if("function"==typeof define&&define.amd)define("Waline",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var n={exports:{}};t(n.exports),e.Waline=n.exports}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.pageviewCount=e.init=e.defaultLocales=e.commentCount=e.RecentComments=void 0;const t=["nick","mail","link"],n=e=>e.filter((e=>t.includes(e))),o="zh-CN",l=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})),r=e=>!0===e?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',i=()=>{const e={next:""},t=e=>{let{keyword:t,pos:n}=e;const o=new URLSearchParams("media_filter=minimal");return o.set("key","PAY5JLFIH6V6"),o.set("limit","20"),o.set("pos",n||""),o.set("q",t),fetch("".concat("https://g.tenor.com/v1/search","?").concat(o.toString()),{headers:{"Content-Type":"application/json"}}).then((e=>e.json())).catch((()=>({next:n||"",results:[]})))};return{search:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t({keyword:n}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))},more:n=>t({keyword:n,pos:e.next}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))}},s=new RegExp("(".concat(/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source,"|").concat(/</.source,")|((?:").concat(/(?:^|\s)\/\/(.+?)$/gm.source,")|(?:").concat(/\/\*([\S\s]*?)\*\//gm.source,"))"),"gmi"),a=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],c={},u=e=>{let t=0;return e.replace(s,((e,n,o)=>{if(o)return'<span style="color: slategray">'.concat(o,"</span>");if("<"===n)return"&lt;";let l;c[n]?l=c[n]:(l=a[t],c[n]=l);const r='<span style="color: #'.concat(l,'">').concat(n,"</span>");return t=++t%a.length,r}))},p=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile"],d=e=>Object.fromEntries(e.map(((e,t)=>[p[t],e])));var h=d(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","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","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile"]),f=d(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報"]),g=d(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料"]),m=d(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料"]),v=d(["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","Like","Cancel like","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","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal"]),y=d(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные"]);const w={zh:g,"zh-cn":g,"zh-CN":g,"zh-tw":m,"zh-TW":m,en:h,"en-US":h,"en-us":h,jp:f,"jp-jp":f,"jp-JP":f,"pt-br":v,"pt-BR":v,ru:y,"ru-ru":y,"ru-RU":y};function k(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}e.defaultLocales=w;const b=k("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function x(e){return!!e||""===e}function _(e){if(D(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],l=G(o)?I(o):_(o);if(l)for(const e in l)t[e]=l[e]}return t}return G(e)||Q(e)?e:void 0}const S=/;(?![^(]*\))/g,C=/:(.+)/;function I(e){const t={};return e.split(S).forEach((e=>{if(e){const n=e.split(C);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function z(e){let t="";if(G(e))t=e;else if(D(e))for(let n=0;n<e.length;n++){const o=z(e[n]);o&&(t+=o+" ")}else if(Q(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function R(e,t){if(e===t)return!0;let n=q(e),o=q(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=J(e),o=J(t),n||o)return e===t;if(n=D(e),o=D(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=R(e[o],t[o]);return n}(e,t);if(n=Q(e),o=Q(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),l=t.hasOwnProperty(n);if(o&&!l||!o&&l||!R(e[n],t[n]))return!1}}return String(e)===String(t)}function E(e,t){return e.findIndex((e=>R(e,t)))}const A=e=>G(e)?e:null==e?"":D(e)||Q(e)&&(e.toString===Y||!Z(e.toString))?JSON.stringify(e,L,2):String(e),L=(e,t)=>t&&t.__v_isRef?L(e,t.value):H(t)?{["Map(".concat(t.size,")")]:[...t.entries()].reduce(((e,t)=>{let[n,o]=t;return e["".concat(n," =>")]=o,e}),{})}:W(t)?{["Set(".concat(t.size,")")]:[...t.values()]}:!Q(t)||D(t)||ee(t)?t:String(t),T={},j=[],$=()=>{},O=()=>!1,U=/^on[^a-z]/,M=e=>U.test(e),P=e=>e.startsWith("onUpdate:"),N=Object.assign,F=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},V=Object.prototype.hasOwnProperty,B=(e,t)=>V.call(e,t),D=Array.isArray,H=e=>"[object Map]"===X(e),W=e=>"[object Set]"===X(e),q=e=>"[object Date]"===X(e),Z=e=>"function"==typeof e,G=e=>"string"==typeof e,J=e=>"symbol"==typeof e,Q=e=>null!==e&&"object"==typeof e,K=e=>Q(e)&&Z(e.then)&&Z(e.catch),Y=Object.prototype.toString,X=e=>Y.call(e),ee=e=>"[object Object]"===X(e),te=e=>G(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ne=k(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),oe=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},le=/-(\w)/g,re=oe((e=>e.replace(le,((e,t)=>t?t.toUpperCase():"")))),ie=/\B([A-Z])/g,se=oe((e=>e.replace(ie,"-$1").toLowerCase())),ae=oe((e=>e.charAt(0).toUpperCase()+e.slice(1))),ce=oe((e=>e?"on".concat(ae(e)):"")),ue=(e,t)=>!Object.is(e,t),pe=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},de=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},he=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fe;let ge;class me{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.active=!0,this.effects=[],this.cleanups=[],!e&&ge&&(this.parent=ge,this.index=(ge.scopes||(ge.scopes=[])).push(this)-1)}run(e){if(this.active){const t=ge;try{return ge=this,e()}finally{ge=t}}}on(){ge=this}off(){ge=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(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 ve=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ye=e=>(e.w&xe)>0,we=e=>(e.n&xe)>0,ke=new WeakMap;let be=0,xe=1;let _e;const Se=Symbol(""),Ce=Symbol("");class Ie{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=_e,t=Re;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=_e,_e=this,Re=!0,xe=1<<++be,be<=30?(e=>{let{deps:t}=e;if(t.length)for(let e=0;e<t.length;e++)t[e].w|=xe})(this):ze(this),this.fn()}finally{be<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const l=t[o];ye(l)&&!we(l)?l.delete(e):t[n++]=l,l.w&=~xe,l.n&=~xe}t.length=n}})(this),xe=1<<--be,_e=this.parent,Re=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){_e===this?this.deferStop=!0:this.active&&(ze(this),this.onStop&&this.onStop(),this.active=!1)}}function ze(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Re=!0;const Ee=[];function Ae(){Ee.push(Re),Re=!1}function Le(){const e=Ee.pop();Re=void 0===e||e}function Te(e,t,n){if(Re&&_e){let t=ke.get(e);t||ke.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=ve()),je(o)}}function je(e,t){let n=!1;be<=30?we(e)||(e.n|=xe,n=!ye(e)):n=!e.has(_e),n&&(e.add(_e),_e.deps.push(e))}function $e(e,t,n,o,l,r){const i=ke.get(e);if(!i)return;let s=[];if("clear"===t)s=[...i.values()];else if("length"===n&&D(e))i.forEach(((e,t)=>{("length"===t||t>=o)&&s.push(e)}));else switch(void 0!==n&&s.push(i.get(n)),t){case"add":D(e)?te(n)&&s.push(i.get("length")):(s.push(i.get(Se)),H(e)&&s.push(i.get(Ce)));break;case"delete":D(e)||(s.push(i.get(Se)),H(e)&&s.push(i.get(Ce)));break;case"set":H(e)&&s.push(i.get(Se))}if(1===s.length)s[0]&&Oe(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Oe(ve(e))}}function Oe(e,t){const n=D(e)?e:[...e];for(const e of n)e.computed&&Ue(e);for(const e of n)e.computed||Ue(e)}function Ue(e,t){(e!==_e||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Me=k("__proto__,__v_isRef,__isVue"),Pe=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(J)),Ne=He(),Fe=He(!1,!0),Ve=He(!0),Be=De();function De(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=Et(this);for(let t=0,n=this.length;t<n;t++)Te(e,0,t+"");for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];const r=e[t](...o);return-1===r||!1===r?e[t](...o.map(Et)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(){Ae();for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];const l=Et(this)[t].apply(this,n);return Le(),l}})),e}function He(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,o,l){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&l===(e?t?wt:yt:t?vt:mt).get(n))return n;const r=D(n);if(!e&&r&&B(Be,o))return Reflect.get(Be,o,l);const i=Reflect.get(n,o,l);return(J(o)?Pe.has(o):Me(o))?i:(e||Te(n,0,o),t?i:Ot(i)?r&&te(o)?i:i.value:Q(i)?e?_t(i):bt(i):i)}}function We(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,o,l){let r=t[n];if(It(r)&&Ot(r)&&!Ot(o))return!1;if(!e&&!It(o)&&(zt(o)||(o=Et(o),r=Et(r)),!D(t)&&Ot(r)&&!Ot(o)))return r.value=o,!0;const i=D(t)&&te(n)?Number(n)<t.length:B(t,n),s=Reflect.set(t,n,o,l);return t===Et(l)&&(i?ue(o,r)&&$e(t,"set",n,o):$e(t,"add",n,o)),s}}const qe={get:Ne,set:We(),deleteProperty:function(e,t){const n=B(e,t),o=Reflect.deleteProperty(e,t);return o&&n&&$e(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return J(t)&&Pe.has(t)||Te(e,0,t),n},ownKeys:function(e){return Te(e,0,D(e)?"length":Se),Reflect.ownKeys(e)}},Ze={get:Ve,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Ge=N({},qe,{get:Fe,set:We(!0)}),Je=e=>e,Qe=e=>Reflect.getPrototypeOf(e);function Ke(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l=Et(e=e.__v_raw),r=Et(t);n||(t!==r&&Te(l,0,t),Te(l,0,r));const{has:i}=Qe(l),s=o?Je:n?Tt:Lt;return i.call(l,t)?s(e.get(t)):i.call(l,r)?s(e.get(r)):void(e!==l&&e.get(t))}function Ye(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,o=Et(n),l=Et(e);return t||(e!==l&&Te(o,0,e),Te(o,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&Te(Et(e),0,Se),Reflect.get(e,"size",e)}function et(e){e=Et(e);const t=Et(this);return Qe(t).has.call(t,e)||(t.add(e),$e(t,"add",e,e)),this}function tt(e,t){t=Et(t);const n=Et(this),{has:o,get:l}=Qe(n);let r=o.call(n,e);r||(e=Et(e),r=o.call(n,e));const i=l.call(n,e);return n.set(e,t),r?ue(t,i)&&$e(n,"set",e,t):$e(n,"add",e,t),this}function nt(e){const t=Et(this),{has:n,get:o}=Qe(t);let l=n.call(t,e);l||(e=Et(e),l=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return l&&$e(t,"delete",e,void 0),r}function ot(){const e=Et(this),t=0!==e.size,n=e.clear();return t&&$e(e,"clear",void 0,void 0),n}function lt(e,t){return function(n,o){const l=this,r=l.__v_raw,i=Et(r),s=t?Je:e?Tt:Lt;return!e&&Te(i,0,Se),r.forEach(((e,t)=>n.call(o,s(e),s(t),l)))}}function rt(e,t,n){return function(){const o=this.__v_raw,l=Et(o),r=H(l),i="entries"===e||e===Symbol.iterator&&r,s="keys"===e&&r,a=o[e](...arguments),c=n?Je:t?Tt:Lt;return!t&&Te(l,0,s?Ce:Se),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:i?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function it(e){return function(){return"delete"!==e&&this}}function st(){const e={get(e){return Ke(this,e)},get size(){return Xe(this)},has:Ye,add:et,set:tt,delete:nt,clear:ot,forEach:lt(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return Xe(this)},has:Ye,add:et,set:tt,delete:nt,clear:ot,forEach:lt(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return Xe(this,!0)},has(e){return Ye.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:lt(!0,!1)},o={get(e){return Ke(this,e,!0,!0)},get size(){return Xe(this,!0)},has(e){return Ye.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:lt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((l=>{e[l]=rt(l,!1,!1),n[l]=rt(l,!0,!1),t[l]=rt(l,!1,!0),o[l]=rt(l,!0,!0)})),[e,n,t,o]}const[at,ct,ut,pt]=st();function dt(e,t){const n=t?e?pt:ut:e?ct:at;return(t,o,l)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(B(n,o)&&o in t?n:t,o,l)}const ht={get:dt(!1,!1)},ft={get:dt(!1,!0)},gt={get:dt(!0,!1)},mt=new WeakMap,vt=new WeakMap,yt=new WeakMap,wt=new WeakMap;function kt(e){return e.__v_skip||!Object.isExtensible(e)?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=>X(e).slice(8,-1))(e))}function bt(e){return It(e)?e:St(e,!1,qe,ht,mt)}function xt(e){return St(e,!1,Ge,ft,vt)}function _t(e){return St(e,!0,Ze,gt,yt)}function St(e,t,n,o,l){if(!Q(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=l.get(e);if(r)return r;const i=kt(e);if(0===i)return e;const s=new Proxy(e,2===i?o:n);return l.set(e,s),s}function Ct(e){return It(e)?Ct(e.__v_raw):!(!e||!e.__v_isReactive)}function It(e){return!(!e||!e.__v_isReadonly)}function zt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return Ct(e)||It(e)}function Et(e){const t=e&&e.__v_raw;return t?Et(t):e}function At(e){return de(e,"__v_skip",!0),e}const Lt=e=>Q(e)?bt(e):e,Tt=e=>Q(e)?_t(e):e;function jt(e){Re&&_e&&je((e=Et(e)).dep||(e.dep=ve()))}function $t(e,t){(e=Et(e)).dep&&Oe(e.dep)}function Ot(e){return!(!e||!0!==e.__v_isRef)}function Ut(e){return Pt(e,!1)}function Mt(e){return Pt(e,!0)}function Pt(e,t){return Ot(e)?e:new Nt(e,t)}class Nt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Et(e),this._value=t?e:Lt(e)}get value(){return jt(this),this._value}set value(e){e=this.__v_isShallow?e:Et(e),ue(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Lt(e),$t(this))}}function Ft(e){return Ot(e)?e.value:e}const Vt={get:(e,t,n)=>Ft(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const l=e[t];return Ot(l)&&!Ot(n)?(l.value=n,!0):Reflect.set(e,t,n,o)}};function Bt(e){return Ct(e)?e:new Proxy(e,Vt)}class Dt{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Ie(e,(()=>{this._dirty||(this._dirty=!0,$t(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Et(this);return jt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ht(e,t,n,o){let l;try{l=o?e(...o):e()}catch(e){qt(e,t,n)}return l}function Wt(e,t,n,o){if(Z(e)){const l=Ht(e,t,n,o);return l&&K(l)&&l.catch((e=>{qt(e,t,n)})),l}const l=[];for(let r=0;r<e.length;r++)l.push(Wt(e[r],t,n,o));return l}function qt(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const l=t?t.vnode:null;if(t){let o=t.parent;const l=t.proxy,r=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,l,r))return;o=o.parent}const i=t.appContext.config.errorHandler;if(i)return void Ht(i,null,10,[e,l,r])}Zt(e,n,l,o)}function Zt(e,t,n){console.error(e)}let Gt=!1,Jt=!1;const Qt=[];let Kt=0;const Yt=[];let Xt=null,en=0;const tn=[];let nn=null,on=0;const ln=Promise.resolve();let rn=null,sn=null;function an(e){const t=rn||ln;return e?t.then(this?e.bind(this):e):t}function cn(e){Qt.length&&Qt.includes(e,Gt&&e.allowRecurse?Kt+1:Kt)||e===sn||(null==e.id?Qt.push(e):Qt.splice(function(e){let t=Kt+1,n=Qt.length;for(;t<n;){const o=t+n>>>1;gn(Qt[o])<e?t=o+1:n=o}return t}(e.id),0,e),un())}function un(){Gt||Jt||(Jt=!0,rn=ln.then(mn))}function pn(e,t,n,o){D(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),un()}function dn(e){pn(e,Xt,Yt,en)}function hn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Yt.length){for(sn=t,Xt=[...new Set(Yt)],Yt.length=0,en=0;en<Xt.length;en++)Xt[en]();Xt=null,en=0,sn=null,hn(e,t)}}function fn(e){if(hn(),tn.length){const e=[...new Set(tn)];if(tn.length=0,nn)return void nn.push(...e);for(nn=e,nn.sort(((e,t)=>gn(e)-gn(t))),on=0;on<nn.length;on++)nn[on]();nn=null,on=0}}const gn=e=>null==e.id?1/0:e.id;function mn(e){Jt=!1,Gt=!0,hn(e),Qt.sort(((e,t)=>gn(e)-gn(t)));try{for(Kt=0;Kt<Qt.length;Kt++){const e=Qt[Kt];e&&!1!==e.active&&Ht(e,null,14)}}finally{Kt=0,Qt.length=0,fn(),Gt=!1,rn=null,(Qt.length||Yt.length||tn.length)&&mn(e)}}function vn(e,t){if(e.isUnmounted)return;const n=e.vnode.props||T;for(var o=arguments.length,l=new Array(o>2?o-2:0),r=2;r<o;r++)l[r-2]=arguments[r];let i=l;const s=t.startsWith("update:"),a=s&&t.slice(7);if(a&&a in n){const e="".concat("modelValue"===a?"model":a,"Modifiers"),{number:t,trim:o}=n[e]||T;o&&(i=l.map((e=>e.trim()))),t&&(i=l.map(he))}let c,u=n[c=ce(t)]||n[c=ce(re(t))];!u&&s&&(u=n[c=ce(se(t))]),u&&Wt(u,e,6,i);const p=n[c+"Once"];if(p){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,Wt(p,e,6,i)}}function yn(e,t){const n=t.emitsCache,o=n.get(e);if(void 0!==o)return o;const l=e.emits;let r={},i=!1;return l||i?(D(l)?l.forEach((e=>r[e]=null)):N(r,l),n.set(e,r),r):(n.set(e,null),null)}function wn(e,t){return!(!e||!M(t))&&(t=t.slice(2).replace(/Once$/,""),B(e,t[0].toLowerCase()+t.slice(1))||B(e,se(t))||B(e,t))}let kn=null,bn=null;function xn(e){const t=kn;return kn=e,bn=e&&e.type.__scopeId||null,t}function _n(e){const{type:t,vnode:n,proxy:o,withProxy:l,props:r,propsOptions:[i],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=xn(e);try{if(4&n.shapeFlag){const e=l||o;m=Ho(u.call(e,e,p,r,h,d,f)),v=a}else{const e=t;m=Ho(e.length>1?e(r,{attrs:a,slots:s,emit:c}):e(r,null)),v=t.props?a:Sn(a)}}catch(t){Co.length=0,qt(t,e,1),m=No(_o)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some(P)&&(v=Cn(v,i)),w=Vo(w,v))}return n.dirs&&(w=Vo(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,xn(y),m}const Sn=e=>{let t;for(const n in e)("class"===n||"style"===n||M(n))&&((t||(t={}))[n]=e[n]);return t},Cn=(e,t)=>{const n={};for(const o in e)P(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function In(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let l=0;l<o.length;l++){const r=o[l];if(t[r]!==e[r]&&!wn(n,r))return!0}return!1}const zn=e=>e.__isSuspense;function Rn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Ko||kn;if(o){const l=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&Z(t)?t.call(o.proxy):t}}function En(e,t){return Tn(e,null,t)}const An={};function Ln(e,t,n){return Tn(e,t,n)}function Tn(e,t){let{immediate:n,deep:o,flush:l,onTrack:r,onTrigger:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;const s=Ko;let a,c,u=!1,p=!1;if(Ot(e)?(a=()=>e.value,u=zt(e)):Ct(e)?(a=()=>e,o=!0):D(e)?(p=!0,u=e.some((e=>Ct(e)||zt(e))),a=()=>e.map((e=>Ot(e)?e.value:Ct(e)?jn(e):Z(e)?Ht(e,s,2):void 0))):a=Z(e)?t?()=>Ht(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Wt(e,s,3,[d])}:$,t&&o){const e=a;a=()=>jn(e())}let d=e=>{c=m.onStop=()=>{Ht(e,s,4)}};if(nl)return d=$,t?n&&Wt(t,s,3,[a(),p?[]:void 0,d]):a(),$;let h=p?[]:An;const f=()=>{if(m.active)if(t){const e=m.run();(o||u||(p?e.some(((e,t)=>ue(e,h[t]))):ue(e,h)))&&(c&&c(),Wt(t,s,3,[e,h===An?void 0:h,d]),h=e)}else m.run()};let g;f.allowRecurse=!!t,g="sync"===l?f:"post"===l?()=>mo(f,s&&s.suspense):()=>dn(f);const m=new Ie(a,g);return t?n?f():h=m.run():"post"===l?mo(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&F(s.scope.effects,m)}}function jn(e,t){if(!Q(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Ot(e))jn(e.value,t);else if(D(e))for(let n=0;n<e.length;n++)jn(e[n],t);else if(W(e)||H(e))e.forEach((e=>{jn(e,t)}));else if(ee(e))for(const n in e)jn(e[n],t);return e}function $n(e){return Z(e)?{setup:e,name:e.name}:e}const On=e=>!!e.type.__asyncLoader;function Un(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ko,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){const l=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=function(){if(n.isUnmounted)return;Ae(),Xo(n);for(var o=arguments.length,l=new Array(o),r=0;r<o;r++)l[r]=arguments[r];const i=Wt(t,n,e,l);return el(),Le(),i});return o?l.unshift(r):l.push(r),r}}const Mn=e=>function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ko;return(!nl||"sp"===e)&&Un(e,t,n)},Pn=Mn("m"),Nn=Mn("bum"),Fn=Mn("um");function Vn(e,t){const n=kn;if(null===n)return e;const o=il(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,r,i,s=T]=t[e];Z(n)&&(n={mounted:n,updated:n}),n.deep&&jn(r),l.push({dir:n,instance:o,value:r,oldValue:void 0,arg:i,modifiers:s})}return e}function Bn(e,t,n,o){const l=e.dirs,r=t&&t.dirs;for(let i=0;i<l.length;i++){const s=l[i];r&&(s.oldValue=r[i].value);let a=s.dir[o];a&&(Ae(),Wt(a,n,8,[e.el,s,e,t]),Le())}}const Dn="components";function Hn(e,t){return function(e,t){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=kn||Ko;if(o){const l=o.type;if(e===Dn){const e=sl(l,!1);if(e&&(e===t||e===re(t)||e===ae(re(t))))return l}const r=qn(o[e]||l[e],t)||qn(o.appContext[e],t);return!r&&n?l:r}}(Dn,e,!0,t)||e}const Wn=Symbol();function qn(e,t){return e&&(e[t]||e[re(t)]||e[ae(re(t))])}function Zn(e,t,n,o){let l;const r=n&&n[o];if(D(e)||G(e)){l=new Array(e.length);for(let n=0,o=e.length;n<o;n++)l[n]=t(e[n],n,void 0,r&&r[n])}else if("number"==typeof e){l=new Array(e);for(let n=0;n<e;n++)l[n]=t(n+1,n,void 0,r&&r[n])}else if(Q(e))if(e[Symbol.iterator])l=Array.from(e,((e,n)=>t(e,n,void 0,r&&r[n])));else{const n=Object.keys(e);l=new Array(n.length);for(let o=0,i=n.length;o<i;o++){const i=n[o];l[o]=t(e[i],i,o,r&&r[o])}}else l=[];return n&&(n[o]=l),l}const Gn=e=>e?tl(e)?il(e)||e.proxy:Gn(e.parent):null,Jn=N(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=>Gn(e.parent),$root:e=>Gn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>cn(e.update)),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>$}),Qn={get(e,t){let{_:n}=e;const{ctx:o,setupState:l,data:r,props:i,accessCache:s,type:a,appContext:c}=n;let u;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return l[t];case 2:return r[t];case 4:return o[t];case 3:return i[t]}else{if(l!==T&&B(l,t))return s[t]=1,l[t];if(r!==T&&B(r,t))return s[t]=2,r[t];if((u=n.propsOptions[0])&&B(u,t))return s[t]=3,i[t];if(o!==T&&B(o,t))return s[t]=4,o[t];s[t]=0}}const p=Jn[t];let d,h;return p?("$attrs"===t&&Te(n,0,t),p(n)):(d=a.__cssModules)&&(d=d[t])?d:o!==T&&B(o,t)?(s[t]=4,o[t]):(h=c.config.globalProperties,B(h,t)?h[t]:void 0)},set(e,t,n){let{_:o}=e;const{data:l,setupState:r,ctx:i}=o;return r!==T&&B(r,t)?(r[t]=n,!0):l!==T&&B(l,t)?(l[t]=n,!0):!B(o.props,t)&&(("$"!==t[0]||!(t.slice(1)in o))&&(i[t]=n,!0))},has(e,t){let n,{_:{data:o,setupState:l,accessCache:r,ctx:i,appContext:s,propsOptions:a}}=e;return!!r[t]||o!==T&&B(o,t)||l!==T&&B(l,t)||(n=a[0])&&B(n,t)||B(i,t)||B(Jn,t)||B(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:B(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Kn(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l={},r={};de(r,Oo,1),e.propsDefaults=Object.create(null),Yn(e,t,l,r);for(const t in e.propsOptions[0])t in l||(l[t]=void 0);n?e.props=o?l:xt(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function Yn(e,t,n,o){const[l,r]=e.propsOptions;let i,s=!1;if(t)for(let a in t){if(ne(a))continue;const c=t[a];let u;l&&B(l,u=re(a))?r&&r.includes(u)?(i||(i={}))[u]=c:n[u]=c:wn(e.emitsOptions,a)||a in o&&c===o[a]||(o[a]=c,s=!0)}if(r){const t=Et(n),o=i||T;for(let i=0;i<r.length;i++){const s=r[i];n[s]=Xn(l,t,s,o[s],e,!B(o,s))}}return s}function Xn(e,t,n,o,l,r){const i=e[n];if(null!=i){const e=B(i,"default");if(e&&void 0===o){const e=i.default;if(i.type!==Function&&Z(e)){const{propsDefaults:r}=l;n in r?o=r[n]:(Xo(l),o=r[n]=e.call(null,t),el())}else o=e}i[0]&&(r&&!e?o=!1:!i[1]||""!==o&&o!==se(n)||(o=!0))}return o}function eo(e,t){const n=t.propsCache,o=n.get(e);if(o)return o;const l=e.props,r={},i=[];let s=!1;if(!l&&!s)return n.set(e,j),j;if(D(l))for(let e=0;e<l.length;e++){const t=re(l[e]);to(t)&&(r[t]=T)}else if(l)for(const e in l){const t=re(e);if(to(t)){const n=l[e],o=r[t]=D(n)||Z(n)?{type:n}:n;if(o){const e=lo(Boolean,o.type),n=lo(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||B(o,"default"))&&i.push(t)}}}const a=[r,i];return n.set(e,a),a}function to(e){return"$"!==e[0]}function no(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function oo(e,t){return no(e)===no(t)}function lo(e,t){return D(t)?t.findIndex((t=>oo(t,e))):Z(t)&&oo(t,e)?0:-1}const ro=e=>"_"===e[0]||"$stable"===e,io=e=>D(e)?e.map(Ho):[Ho(e)],so=(e,t,n)=>{if(t._n)return t;const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kn;if(!t)return e;if(e._n)return e;const n=function(){n._d&&Eo(-1);const o=xn(t),l=e(...arguments);return xn(o),n._d&&Eo(1),l};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return io(t(...arguments))}),n);return o._c=!1,o},ao=(e,t,n)=>{const o=e._ctx;for(const n in e){if(ro(n))continue;const l=e[n];if(Z(l))t[n]=so(0,l,o);else if(null!=l){const e=io(l);t[n]=()=>e}}},co=(e,t)=>{const n=io(t);e.slots.default=()=>n},uo=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Et(t),de(t,"_",n)):ao(t,e.slots={})}else e.slots={},t&&co(e,t);de(e.slots,Oo,1)};function po(){return{app:null,config:{isNativeTag:O,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ho=0;function fo(e,t){return function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Z(n)||(n=Object.assign({},n)),null==o||Q(o)||(o=null);const l=po(),r=new Set;let i=!1;const s=l.app={_uid:ho++,_component:n,_props:o,_container:null,_context:l,_instance:null,version:pl,get config(){return l.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return r.has(e)||(e&&Z(e.install)?(r.add(e),e.install(s,...n)):Z(e)&&(r.add(e),e(s,...n))),s},mixin:e=>s,component:(e,t)=>t?(l.components[e]=t,s):l.components[e],directive:(e,t)=>t?(l.directives[e]=t,s):l.directives[e],mount(r,a,c){if(!i){const u=No(n,o);return u.appContext=l,a&&t?t(u,r):e(u,r,c),i=!0,s._container=r,r.__vue_app__=s,il(u.component)||u.component.proxy}},unmount(){i&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(l.provides[e]=t,s)};return s}}function go(e,t,n,o){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(D(e))return void e.forEach(((e,r)=>go(e,t&&(D(t)?t[r]:t),n,o,l)));if(On(o)&&!l)return;const r=4&o.shapeFlag?il(o.component)||o.component.proxy:o.el,i=l?null:r,{i:s,r:a}=e,c=t&&t.r,u=s.refs===T?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(G(c)?(u[c]=null,B(p,c)&&(p[c]=null)):Ot(c)&&(c.value=null)),Z(a))Ht(a,s,12,[i,u]);else{const t=G(a),o=Ot(a);if(t||o){const s=()=>{if(e.f){const n=t?u[a]:a.value;l?D(n)&&F(n,r):D(n)?n.includes(r)||n.push(r):t?(u[a]=[r],B(p,a)&&(p[a]=u[a])):(a.value=[r],e.k&&(u[e.k]=a.value))}else t?(u[a]=i,B(p,a)&&(p[a]=i)):o&&(a.value=i,e.k&&(u[e.k]=i))};i?(s.id=-1,mo(s,n)):s()}}}const mo=function(e,t){t&&t.pendingBranch?D(e)?t.effects.push(...e):t.effects.push(e):pn(e,nn,tn,on)};function vo(e){return function(e,t){(fe||(fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:o,patchProp:l,createElement:r,createText:i,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=$,cloneNode:h,insertStaticContent:f}=e,g=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e===t)return;e&&!$o(e,t)&&(o=G(e),D(e,l,r,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case xo:m(e,t,n,o);break;case _o:v(e,t,n,o);break;case So:null==e&&y(t,n,o,i);break;case bo:R(e,t,n,o,l,r,i,s,a);break;default:1&p?b(e,t,n,o,l,r,i,s,a):6&p?E(e,t,n,o,l,r,i,s,a):(64&p||128&p)&&c.process(e,t,n,o,l,r,i,s,a,Q)}null!=u&&l&&go(u,e&&e.ref,r,t||e,!t)},m=(e,t,o,l)=>{if(null==e)n(t.el=i(t.children),o,l);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,o,l)=>{null==e?n(t.el=s(t.children||""),o,l):t.el=e.el},y=(e,t,n,o)=>{[e.el,e.anchor]=f(e.children,t,n,o,e.el,e.anchor)},w=(e,t,o)=>{let l,{el:r,anchor:i}=e;for(;r&&r!==i;)l=p(r),n(r,t,o),r=l;n(i,t,o)},k=e=>{let t,{el:n,anchor:l}=e;for(;n&&n!==l;)t=p(n),o(n),n=t;o(l)},b=(e,t,n,o,l,r,i,s,a)=>{i=i||"svg"===t.type,null==e?x(t,n,o,l,r,i,s,a):C(e,t,l,r,i,s,a)},x=(e,t,o,i,s,a,u,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:k}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=r(e.type,a,m&&m.is,m),8&v?c(d,e.children):16&v&&S(e.children,d,null,i,s,a&&"foreignObject"!==g,u,p),k&&Bn(e,null,i,"created"),m){for(const t in m)"value"===t||ne(t)||l(d,t,null,m[t],a,e.children,i,s,Z);"value"in m&&l(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Go(f,i,e)}_(d,e,e.scopeId,u,i)}k&&Bn(e,null,i,"beforeMount");const b=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;b&&y.beforeEnter(d),n(d,t,o),((f=m&&m.onVnodeMounted)||b||k)&&mo((()=>{f&&Go(f,i,e),b&&y.enter(d),k&&Bn(e,null,i,"mounted")}),s)},_=(e,t,n,o,l)=>{if(n&&d(e,n),o)for(let t=0;t<o.length;t++)d(e,o[t]);if(l){if(t===l.subTree){const t=l.vnode;_(e,t,t.scopeId,t.slotScopeIds,l.parent)}}},S=function(e,t,n,o,l,r,i,s){for(let a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;a<e.length;a++){const c=e[a]=s?Wo(e[a]):Ho(e[a]);g(null,c,t,n,o,l,r,i,s)}},C=(e,t,n,o,r,i,s)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||T,f=t.props||T;let g;n&&yo(n,!1),(g=f.onVnodeBeforeUpdate)&&Go(g,n,t,e),d&&Bn(t,e,n,"beforeUpdate"),n&&yo(n,!0);const m=r&&"foreignObject"!==t.type;if(p?I(e.dynamicChildren,p,a,n,o,m,i):s||M(e,t,a,null,n,o,m,i,!1),u>0){if(16&u)z(a,t,h,f,n,o,r);else if(2&u&&h.class!==f.class&&l(a,"class",null,f.class,r),4&u&&l(a,"style",h.style,f.style,r),8&u){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const s=i[t],c=h[s],u=f[s];u===c&&"value"!==s||l(a,s,c,u,r,e.children,n,o,Z)}}1&u&&e.children!==t.children&&c(a,t.children)}else s||null!=p||z(a,t,h,f,n,o,r);((g=f.onVnodeUpdated)||d)&&mo((()=>{g&&Go(g,n,t,e),d&&Bn(t,e,n,"updated")}),o)},I=(e,t,n,o,l,r,i)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],p=a.el&&(a.type===bo||!$o(a,c)||70&a.shapeFlag)?u(a.el):n;g(a,c,p,null,o,l,r,i,!0)}},z=(e,t,n,o,r,i,s)=>{if(n!==o){for(const a in o){if(ne(a))continue;const c=o[a],u=n[a];c!==u&&"value"!==a&&l(e,a,u,c,s,t.children,r,i,Z)}if(n!==T)for(const a in n)ne(a)||a in o||l(e,a,n[a],null,s,t.children,r,i,Z);"value"in o&&l(e,"value",n.value,o.value)}},R=(e,t,o,l,r,s,a,c,u)=>{const p=t.el=e?e.el:i(""),d=t.anchor=e?e.anchor:i("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,o,l),n(d,o,l),S(t.children,o,d,r,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(I(e.dynamicChildren,f,o,r,s,a,c),(null!=t.key||r&&t===r.subTree)&&wo(e,t,!0)):M(e,t,o,d,r,s,a,c,u)},E=(e,t,n,o,l,r,i,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?l.ctx.activate(t,n,o,i,a):A(t,n,o,l,r,i,a):L(e,t,a)},A=(e,t,n,o,l,r,i)=>{const s=e.component=function(e,t,n){const o=e.type,l=(t?t.appContext:e.appContext)||Jo,r={uid:Qo++,vnode:e,type:o,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new me(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:eo(o,l),emitsOptions:yn(o,l),emit:null,emitted:null,propsDefaults:T,inheritAttrs:o.inheritAttrs,ctx:T,data:T,props:T,attrs:T,slots:T,refs:T,setupState:T,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};r.ctx={_:r},r.root=t?t.root:r,r.emit=vn.bind(null,r),e.ce&&e.ce(r);return r}(e,o,l);if(e.type.__isKeepAlive&&(s.ctx.renderer=Q),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];nl=t;const{props:n,children:o}=e.vnode,l=tl(e);Kn(e,n,l,t),uo(e,o);const r=l?ol(e,t):void 0;nl=!1}(s),s.asyncDep){if(l&&l.registerDep(s,O),!e.el){const e=s.subTree=No(_o);v(null,e,t,n)}}else O(s,e,t,n,l,r,i)},L=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:l,component:r}=e,{props:i,children:s,patchFlag:a}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!l&&!s||s&&s.$stable)||o!==i&&(o?!i||In(o,i,c):!!i);if(1024&a)return!0;if(16&a)return o?In(o,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==o[n]&&!wn(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void U(o,t,n);o.next=t,function(e){const t=Qt.indexOf(e);t>Kt&&Qt.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},O=(e,t,n,o,l,r,i)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:o,u:s,parent:a,vnode:c}=e,p=n;yo(e,!1),n?(n.el=c.el,U(e,n,i)):n=c,o&&pe(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Go(t,a,n,c),yo(e,!0);const d=_n(e),h=e.subTree;e.subTree=d,g(h,d,u(h.el),G(h),e,l,r),n.el=d.el,null===p&&function(e,t){let{vnode:n,parent:o}=e;for(;o&&o.subTree===n;)(n=o.vnode).el=t,o=o.parent}(e,d.el),s&&mo(s,l),(t=n.props&&n.props.onVnodeUpdated)&&mo((()=>Go(t,a,n,c)),l)}else{let i;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=On(t);if(yo(e,!1),c&&pe(c),!d&&(i=a&&a.onVnodeBeforeMount)&&Go(i,p,t),yo(e,!0),s&&Y){const n=()=>{e.subTree=_n(e),Y(s,e.subTree,e,l,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=_n(e);g(null,i,n,o,e,l,r),t.el=i.el}if(u&&mo(u,l),!d&&(i=a&&a.onVnodeMounted)){const e=t;mo((()=>Go(i,p,e)),l)}(256&t.shapeFlag||p&&On(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&mo(e.a,l),e.isMounted=!0,t=n=o=null}},a=e.effect=new Ie(s,(()=>cn(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,yo(e,!0),c()},U=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,s=Et(l),[a]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;Yn(e,t,l,r)&&(c=!0);for(const r in s)t&&(B(t,r)||(o=se(r))!==r&&B(t,o))||(a?!n||void 0===n[r]&&void 0===n[o]||(l[r]=Xn(a,s,r,void 0,e,!0)):delete l[r]);if(r!==s)for(const e in r)t&&B(t,e)||(delete r[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let i=n[o];if(wn(e.emitsOptions,i))continue;const u=t[i];if(a)if(B(r,i))u!==r[i]&&(r[i]=u,c=!0);else{const t=re(i);l[t]=Xn(a,s,t,u,e,!1)}else u!==r[i]&&(r[i]=u,c=!0)}}c&&$e(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:l}=e;let r=!0,i=T;if(32&o.shapeFlag){const e=t._;e?n&&1===e?r=!1:(N(l,t),n||1!==e||delete l._):(r=!t.$stable,ao(t,l)),i=t}else t&&(co(e,t),i={default:1});if(r)for(const e in l)ro(e)||e in i||delete l[e]})(e,t.children,n),Ae(),hn(void 0,e.update),Le()},M=function(e,t,n,o,l,r,i,s){let a=arguments.length>8&&void 0!==arguments[8]&&arguments[8];const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void F(u,d,n,o,l,r,i,s,a);if(256&h)return void P(u,d,n,o,l,r,i,s,a)}8&f?(16&p&&Z(u,l,r),d!==u&&c(n,d)):16&p?16&f?F(u,d,n,o,l,r,i,s,a):Z(u,l,r,!0):(8&p&&c(n,""),16&f&&S(d,n,o,l,r,i,s,a))},P=(e,t,n,o,l,r,i,s,a)=>{t=t||j;const c=(e=e||j).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const o=t[d]=a?Wo(t[d]):Ho(t[d]);g(e[d],o,n,null,l,r,i,s,a)}c>u?Z(e,l,r,!0,!1,p):S(t,n,o,l,r,i,s,a,p)},F=(e,t,n,o,l,r,i,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const o=e[c],u=t[c]=a?Wo(t[c]):Ho(t[c]);if(!$o(o,u))break;g(o,u,n,null,l,r,i,s,a),c++}for(;c<=p&&c<=d;){const o=e[p],c=t[d]=a?Wo(t[d]):Ho(t[d]);if(!$o(o,c))break;g(o,c,n,null,l,r,i,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:o;for(;c<=d;)g(null,t[c]=a?Wo(t[c]):Ho(t[c]),n,p,l,r,i,s,a),c++}}else if(c>d)for(;c<=p;)D(e[c],l,r,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?Wo(t[c]):Ho(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const w=d-f+1;let k=!1,b=0;const x=new Array(w);for(c=0;c<w;c++)x[c]=0;for(c=h;c<=p;c++){const o=e[c];if(y>=w){D(o,l,r,!0);continue}let u;if(null!=o.key)u=m.get(o.key);else for(v=f;v<=d;v++)if(0===x[v-f]&&$o(o,t[v])){u=v;break}void 0===u?D(o,l,r,!0):(x[u-f]=c+1,u>=b?b=u:k=!0,g(o,t[u],n,null,l,r,i,s,a),y++)}const _=k?function(e){const t=e.slice(),n=[0];let o,l,r,i,s;const a=e.length;for(o=0;o<a;o++){const a=e[o];if(0!==a){if(l=n[n.length-1],e[l]<a){t[o]=l,n.push(o);continue}for(r=0,i=n.length-1;r<i;)s=r+i>>1,e[n[s]]<a?r=s+1:i=s;a<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}r=n.length,i=n[r-1];for(;r-- >0;)n[r]=i,i=t[i];return n}(x):j;for(v=_.length-1,c=w-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:o;0===x[c]?g(null,p,n,d,l,r,i,s,a):k&&(v<0||c!==_[v]?V(p,n,d,2):v--)}}},V=function(e,t,o,l){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const{el:i,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void V(e.component.subTree,t,o,l);if(128&u)return void e.suspense.move(t,o,l);if(64&u)return void s.move(e,t,o,Q);if(s===bo){n(i,t,o);for(let e=0;e<c.length;e++)V(c[e],t,o,l);return void n(e.anchor,t,o)}if(s===So)return void w(e,t,o);if(2!==l&&1&u&&a)if(0===l)a.beforeEnter(i),n(i,t,o),mo((()=>a.enter(i)),r);else{const{leave:e,delayLeave:l,afterLeave:r}=a,s=()=>n(i,t,o),c=()=>{e(i,(()=>{s(),r&&r()}))};l?l(i,s,c):c()}else n(i,t,o)},D=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{type:r,props:i,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&go(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!On(e);let g;if(f&&(g=i&&i.onVnodeBeforeUnmount)&&Go(g,t,e),6&u)q(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Bn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,l,Q,o):c&&(r!==bo||p>0&&64&p)?Z(c,t,n,!1,!0):(r===bo&&384&p||!l&&16&u)&&Z(a,t,n),o&&H(e)}(f&&(g=i&&i.onVnodeUnmounted)||h)&&mo((()=>{g&&Go(g,t,e),h&&Bn(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:l,transition:r}=e;if(t===bo)return void W(n,l);if(t===So)return void k(e);const i=()=>{o(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,l=()=>t(n,i);o?o(e.el,i,l):l()}else i()},W=(e,t)=>{let n;for(;e!==t;)n=p(e),o(e),e=n;o(t)},q=(e,t,n)=>{const{bum:o,scope:l,update:r,subTree:i,um:s}=e;o&&pe(o),l.stop(),r&&(r.active=!1,D(i,e,t,n)),s&&mo(s,t),mo((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Z=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];for(let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;r<e.length;r++)D(e[r],t,n,o,l)},G=e=>6&e.shapeFlag?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),J=(e,t,n)=>{null==e?t._vnode&&D(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),fn(),t._vnode=e},Q={p:g,um:D,m:V,r:H,mt:A,mc:S,pc:M,pbc:I,n:G,o:e};let K,Y;t&&([K,Y]=t(Q));return{render:J,hydrate:K,createApp:fo(J,K)}}(e)}function yo(e,t){let{effect:n,update:o}=e;n.allowRecurse=o.allowRecurse=t}function wo(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=e.children,l=t.children;if(D(o)&&D(l))for(let e=0;e<o.length;e++){const t=o[e];let r=l[e];1&r.shapeFlag&&!r.dynamicChildren&&((r.patchFlag<=0||32===r.patchFlag)&&(r=l[e]=Wo(l[e]),r.el=t.el),n||wo(t,r))}}const ko=e=>e.__isTeleport,bo=Symbol(void 0),xo=Symbol(void 0),_o=Symbol(void 0),So=Symbol(void 0),Co=[];let Io=null;function zo(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Co.push(Io=e?null:[])}let Ro=1;function Eo(e){Ro+=e}function Ao(e){return e.dynamicChildren=Ro>0?Io||j:null,Co.pop(),Io=Co[Co.length-1]||null,Ro>0&&Io&&Io.push(e),e}function Lo(e,t,n,o,l,r){return Ao(Po(e,t,n,o,l,r,!0))}function To(e,t,n,o,l){return Ao(No(e,t,n,o,l,!0))}function jo(e){return!!e&&!0===e.__v_isVNode}function $o(e,t){return e.type===t.type&&e.key===t.key}const Oo="__vInternal",Uo=e=>{let{key:t}=e;return null!=t?t:null},Mo=e=>{let{ref:t,ref_key:n,ref_for:o}=e;return null!=t?G(t)||Ot(t)||Z(t)?{i:kn,r:t,k:n,f:!!o}:t:null};function Po(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===bo?0:1,i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Uo(t),ref:t&&Mo(t),scopeId:bn,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:r,patchFlag:o,dynamicProps:l,dynamicChildren:null,appContext:null};return s?(qo(a,n),128&r&&e.normalize(a)):n&&(a.shapeFlag|=G(n)?8:16),Ro>0&&!i&&Io&&(a.patchFlag>0||6&r)&&32!==a.patchFlag&&Io.push(a),a}const No=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==Wn||(e=_o);if(jo(e)){const o=Vo(e,t,!0);return n&&qo(o,n),Ro>0&&!r&&Io&&(6&o.shapeFlag?Io[Io.indexOf(e)]=o:Io.push(o)),o.patchFlag|=-2,o}al(e)&&(e=e.__vccOpts);if(t){t=Fo(t);let{class:e,style:n}=t;e&&!G(e)&&(t.class=z(e)),Q(n)&&(Rt(n)&&!D(n)&&(n=N({},n)),t.style=_(n))}const i=G(e)?1:zn(e)?128:ko(e)?64:Q(e)?4:Z(e)?2:0;return Po(e,t,n,o,l,i,r,!0)};function Fo(e){return e?Rt(e)||Oo in e?N({},e):e:null}function Vo(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{props:o,ref:l,patchFlag:r,children:i}=e,s=t?Zo(o||{},t):o,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Uo(s),ref:t&&t.ref?n&&l?D(l)?l.concat(Mo(t)):[l,Mo(t)]:Mo(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==bo?-1===r?16:16|r:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vo(e.ssContent),ssFallback:e.ssFallback&&Vo(e.ssFallback),el:e.el,anchor:e.anchor};return a}function Bo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return No(xo,null,e,t)}function Do(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(zo(),To(_o,null,e)):No(_o,null,e)}function Ho(e){return null==e||"boolean"==typeof e?No(_o):D(e)?No(bo,null,e.slice()):"object"==typeof e?Wo(e):No(xo,null,String(e))}function Wo(e){return null===e.el||e.memo?e:Vo(e)}function qo(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(D(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),qo(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Oo in t?3===o&&kn&&(1===kn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=kn}}else Z(t)?(t={default:t,_ctx:kn},n=32):(t=String(t),64&o?(n=16,t=[Bo(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zo(){const e={};for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];for(const t in n)if("class"===t)e.class!==n.class&&(e.class=z([e.class,n.class]));else if("style"===t)e.style=_([e.style,n.style]);else if(M(t)){const o=e[t],l=n[t];!l||o===l||D(o)&&o.includes(l)||(e[t]=o?[].concat(o,l):l)}else""!==t&&(e[t]=n[t])}return e}function Go(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Wt(e,t,7,[n,o])}const Jo=po();let Qo=0;let Ko=null;const Yo=()=>Ko||kn,Xo=e=>{Ko=e,e.scope.on()},el=()=>{Ko&&Ko.scope.off(),Ko=null};function tl(e){return 4&e.vnode.shapeFlag}let nl=!1;function ol(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=At(new Proxy(e.ctx,Qn));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)=>(Te(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Xo(e),Ae();const l=Ht(o,e,0,[e.props,n]);if(Le(),el(),K(l)){if(l.then(el,el),t)return l.then((n=>{ll(e,n,t)})).catch((t=>{qt(t,e,0)}));e.asyncDep=l}else ll(e,l,t)}else rl(e,t)}function ll(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Q(t)&&(e.setupState=Bt(t)),rl(e,n)}function rl(e,t,n){const o=e.type;e.render||(e.render=o.render||$)}function il(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Bt(At(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Jn?Jn[n](e):void 0}))}function sl(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function al(e){return Z(e)&&"__vccOpts"in e}const cl=(e,t)=>function(e,t){let n,o,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=Z(e);r?(n=e,o=$):(n=e.get,o=e.set);return new Dt(n,o,r||!o,l)}(e,t,nl);function ul(e,t,n){const o=arguments.length;return 2===o?Q(t)&&!D(t)?jo(t)?No(e,null,[t]):No(e,t):No(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&jo(n)&&(n=[n]),No(e,t,n))}const pl="3.2.37",dl="undefined"!=typeof document?document:null,hl=dl&&dl.createElement("template"),fl={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 l=t?dl.createElementNS("http://www.w3.org/2000/svg",e):dl.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&l.setAttribute("multiple",o.multiple),l},createText:e=>dl.createTextNode(e),createComment:e=>dl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>dl.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,l,r){const i=n?n.previousSibling:t.lastChild;if(l&&(l===r||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==r&&(l=l.nextSibling););else{hl.innerHTML=o?"<svg>".concat(e,"</svg>"):e;const l=hl.content;if(o){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function gl(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}function ml(e,t,n){const o=e.style,l=G(n);if(n&&!l){for(const e in n)yl(o,e,n[e]);if(t&&!G(t))for(const e in t)null==n[e]&&yl(o,e,"")}else{const r=o.display;l?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}const vl=/\s*!important$/;function yl(e,t,n){if(D(n))n.forEach((n=>yl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=kl[t];if(n)return n;let o=re(t);if("filter"!==o&&o in e)return kl[t]=o;o=ae(o);for(let n=0;n<wl.length;n++){const l=wl[n]+o;if(l in e)return kl[t]=l}return t}(e,t);vl.test(n)?e.setProperty(se(o),n.replace(vl,""),"important"):e[o]=n}}const wl=["Webkit","Moz","ms"],kl={};const bl="http://www.w3.org/1999/xlink";function xl(e,t,n,o,l){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(bl,t.slice(6,t.length)):e.setAttributeNS(bl,t,n);else{const o=b(t);null==n||o&&!x(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function _l(e,t,n,o,l,r,i){if("innerHTML"===t||"textContent"===t)return o&&i(o,l,r),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=x(n):null==n&&"string"===o?(n="",s=!0):"number"===o&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}const[Sl,Cl]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Il=0;const zl=Promise.resolve(),Rl=()=>{Il=0};function El(e,t,n,o){e.addEventListener(t,n,o)}function Al(e,t,n,o){e.removeEventListener(t,n,o)}function Ll(e,t,n,o){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const r=e._vei||(e._vei={}),i=r[t];if(o&&i)i.value=o;else{const[n,s]=jl(t);if(o){El(e,n,r[t]=$l(o,l),s)}else i&&(Al(e,n,i,s),r[t]=void 0)}}const Tl=/(?:Once|Passive|Capture)$/;function jl(e){let t;if(Tl.test(e)){let n;for(t={};n=e.match(Tl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[se(e.slice(2)),t]}function $l(e,t){const n=e=>{const o=e.timeStamp||Sl();(Cl||o>=n.attached-1)&&Wt(function(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Il||(zl.then(Rl),Il=Sl()),n}const Ol=/^on[a-z]/;function Ul(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&Ol.test(t)&&Z(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Ol.test(t)||!G(n))&&t in e))))}const Ml=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?e=>pe(t,e):t};function Pl(e){e.target.composing=!0}function Nl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fl={created(e,t,n){let{modifiers:{lazy:o,trim:l,number:r}}=t;e._assign=Ml(n);const i=r||n.props&&"number"===n.props.type;El(e,o?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;l&&(n=n.trim()),i&&(n=he(n)),e._assign(n)})),l&&El(e,"change",(()=>{e.value=e.value.trim()})),o||(El(e,"compositionstart",Pl),El(e,"compositionend",Nl),El(e,"change",Nl))},mounted(e,t){let{value:n}=t;e.value=null==n?"":n},beforeUpdate(e,t,n){let{value:o,modifiers:{lazy:l,trim:r,number:i}}=t;if(e._assign=Ml(n),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(l)return;if(r&&e.value.trim()===o)return;if((i||"number"===e.type)&&he(e.value)===o)return}const s=null==o?"":o;e.value!==s&&(e.value=s)}},Vl={deep:!0,created(e,t,n){e._assign=Ml(n),El(e,"change",(()=>{const t=e._modelValue,n=ql(e),o=e.checked,l=e._assign;if(D(t)){const e=E(t,n),r=-1!==e;if(o&&!r)l(t.concat(n));else if(!o&&r){const n=[...t];n.splice(e,1),l(n)}}else if(W(t)){const e=new Set(t);o?e.add(n):e.delete(n),l(e)}else l(Zl(e,o))}))},mounted:Bl,beforeUpdate(e,t,n){e._assign=Ml(n),Bl(e,t,n)}};function Bl(e,t,n){let{value:o,oldValue:l}=t;e._modelValue=o,D(o)?e.checked=E(o,n.props.value)>-1:W(o)?e.checked=o.has(n.props.value):o!==l&&(e.checked=R(o,Zl(e,!0)))}const Dl={created(e,t,n){let{value:o}=t;e.checked=R(o,n.props.value),e._assign=Ml(n),El(e,"change",(()=>{e._assign(ql(e))}))},beforeUpdate(e,t,n){let{value:o,oldValue:l}=t;e._assign=Ml(n),o!==l&&(e.checked=R(o,n.props.value))}},Hl={deep:!0,created(e,t,n){let{value:o,modifiers:{number:l}}=t;const r=W(o);El(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>l?he(ql(e)):ql(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=Ml(n)},mounted(e,t){let{value:n}=t;Wl(e,n)},beforeUpdate(e,t,n){e._assign=Ml(n)},updated(e,t){let{value:n}=t;Wl(e,n)}};function Wl(e,t){const n=e.multiple;if(!n||D(t)||W(t)){for(let o=0,l=e.options.length;o<l;o++){const l=e.options[o],r=ql(l);if(n)D(t)?l.selected=E(t,r)>-1:l.selected=t.has(r);else if(R(ql(l),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ql(e){return"_value"in e?e._value:e.value}function Zl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Gl={created(e,t,n){Jl(e,t,n,null,"created")},mounted(e,t,n){Jl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){Jl(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){Jl(e,t,n,o,"updated")}};function Jl(e,t,n,o,l){const r=function(e,t){switch(e){case"SELECT":return Hl;case"TEXTAREA":return Fl;default:switch(t){case"checkbox":return Vl;case"radio":return Dl;default:return Fl}}}(e.tagName,n.props&&n.props.type)[l];r&&r(e,t,n,o)}const Ql={beforeMount(e,t,n){let{value:o}=t,{transition:l}=n;e._vod="none"===e.style.display?"":e.style.display,l&&o?l.beforeEnter(e):Kl(e,o)},mounted(e,t,n){let{value:o}=t,{transition:l}=n;l&&o&&l.enter(e)},updated(e,t,n){let{value:o,oldValue:l}=t,{transition:r}=n;!o!=!l&&(r?o?(r.beforeEnter(e),Kl(e,!0),r.enter(e)):r.leave(e,(()=>{Kl(e,!1)})):Kl(e,o))},beforeUnmount(e,t){let{value:n}=t;Kl(e,n)}};function Kl(e,t){e.style.display=t?e._vod:"none"}const Yl=N({patchProp:function(e,t,n,o){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,a=arguments.length>8?arguments[8]:void 0;"class"===t?gl(e,o,l):"style"===t?ml(e,n,o):M(t)?P(t)||Ll(e,t,n,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Ul(e,t,o,l))?_l(e,t,o,r,i,s,a):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),xl(e,t,o,l))}},fl);let Xl;function er(){return Xl||(Xl=vo(Yl))}function tr(e){if(G(e)){return document.querySelector(e)}return e}var nr;const or="undefined"!=typeof window,lr=e=>"string"==typeof e,rr=()=>{};function ir(e,t){return function(){for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];e((()=>t.apply(this,o)),{fn:t,thisArg:this,args:o})}}or&&(null==(nr=null==window?void 0:window.navigator)?void 0:nr.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const sr=e=>e();function ar(e){let t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=l=>{const r=Ft(e),i=Ft(o.maxWait);if(t&&clearTimeout(t),r<=0||void 0!==i&&i<=0)return n&&(clearTimeout(n),n=null),l();i&&!n&&(n=setTimeout((()=>{t&&clearTimeout(t),n=null,l()}),i)),t=setTimeout((()=>{n&&clearTimeout(n),n=null,l()}),r)};return l}function cr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:sr;const t=Ut(!0);function n(){t.value=!1}function o(){t.value=!0}const l=function(){t.value&&e(...arguments)};return{isActive:t,pause:n,resume:o,eventFilter:l}}function ur(e){return!!ge&&(function(e){ge&&ge.cleanups.push(e)}(e),!0)}function pr(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Yo()?Pn(e):t?e():an(e)}function dr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:o=!0,immediateCallback:l=!1}=n;let r=null;const i=Ut(!1);function s(){r&&(clearInterval(r),r=null)}function a(){i.value=!1,s()}function c(){Ft(t)<=0||(i.value=!0,l&&e(),s(),r=setInterval(e,Ft(t)))}if(o&&or&&c(),Ot(t)){ur(Ln(t,(()=>{i.value&&or&&c()})))}return ur(a),{isActive:i,pause:a,resume:c}}var hr=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable,mr=(e,t)=>{var n={};for(var o in e)fr.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&hr)for(var o of hr(e))t.indexOf(o)<0&&gr.call(e,o)&&(n[o]=e[o]);return n};function vr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=n,{eventFilter:l=sr}=o,r=mr(o,["eventFilter"]);return Ln(e,ir(l,t),r)}var yr=Object.defineProperty,wr=Object.defineProperties,kr=Object.getOwnPropertyDescriptors,br=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Sr=(e,t,n)=>t in e?yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cr=(e,t)=>{for(var n in t||(t={}))xr.call(t,n)&&Sr(e,n,t[n]);if(br)for(var n of br(t))_r.call(t,n)&&Sr(e,n,t[n]);return e},Ir=(e,t)=>wr(e,kr(t)),zr=(e,t)=>{var n={};for(var o in e)xr.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&br)for(var o of br(e))t.indexOf(o)<0&&_r.call(e,o)&&(n[o]=e[o]);return n};function Rr(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=n,{eventFilter:l}=o,r=zr(o,["eventFilter"]),{eventFilter:i,pause:s,resume:a,isActive:c}=cr(l),u=vr(e,t,Ir(Cr({},r),{eventFilter:i}));return{stop:u,pause:s,resume:a,isActive:c}}function Er(e){var t;const n=Ft(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Ar=or?window:void 0,Lr=or?window.document:void 0;function Tr(){let e,t,n,o;for(var l=arguments.length,r=new Array(l),i=0;i<l;i++)r[i]=arguments[i];if(lr(r[0])?([t,n,o]=r,e=Ar):[e,t,n,o]=r,!e)return rr;let s=rr;const a=Ln((()=>Er(e)),(e=>{s(),e&&(e.addEventListener(t,n,o),s=()=>{e.removeEventListener(t,n,o),s=rr})}),{immediate:!0,flush:"post"}),c=()=>{a(),s()};return ur(c),c}or&&window.navigator,or&&window.location;const jr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},$r="__vueuse_ssr_handlers__";jr[$r]=jr[$r]||{};const Or=jr[$r];function Ur(e,t){return Or[e]||t}function Mr(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}const Pr={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function Nr(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var l;const{flush:r="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,shallow:c,window:u=Ar,eventFilter:p,onError:d=(e=>{console.error(e)})}=o,h=(c?Mt:Ut)(t);if(!n)try{n=Ur("getDefaultStorage",(()=>{var e;return null==(e=Ar)?void 0:e.localStorage}))()}catch(e){d(e)}if(!n)return h;const f=Ft(t),g=Mr(f),m=null!=(l=o.serializer)?l:Pr[g],{pause:v,resume:y}=Rr(h,(()=>w(h.value)),{flush:r,deep:i,eventFilter:p});return u&&s&&Tr(u,"storage",b),b(),h;function w(t){try{null==t?n.removeItem(e):n.setItem(e,m.write(t))}catch(e){d(e)}}function k(t){if(!t||t.key===e){v();try{const o=t?t.newValue:n.getItem(e);return null==o?(a&&null!==f&&n.setItem(e,m.write(f)),f):"string"!=typeof o?o:m.read(o)}catch(e){d(e)}finally{y()}}}function b(t){t&&t.key!==e||(h.value=k(t))}}function Fr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{immediate:n=!0,window:o=Ar}=t,l=Ut(!1);let r=null;function i(){l.value&&o&&(e(),r=o.requestAnimationFrame(i))}function s(){!l.value&&o&&(l.value=!0,i())}function a(){l.value=!1,null!=r&&o&&(o.cancelAnimationFrame(r),r=null)}return n&&s(),ur(a),{isActive:l,pause:a,resume:s}}var Vr,Br,Dr=Object.defineProperty,Hr=Object.getOwnPropertySymbols,Wr=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Zr=(e,t,n)=>t in e?Dr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gr=(e,t)=>{for(var n in t||(t={}))Wr.call(t,n)&&Zr(e,n,t[n]);if(Hr)for(var n of Hr(t))qr.call(t,n)&&Zr(e,n,t[n]);return e};(Br=Vr||(Vr={})).UP="UP",Br.RIGHT="RIGHT",Br.DOWN="DOWN",Br.LEFT="LEFT",Br.NONE="NONE";let Jr=0;const Qr=e=>{try{e=decodeURI(e)}catch(e){}return e},Kr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},Yr=e=>/^(https?:)?\/\//.test(e),Xr=e=>{const t=Kr(e);return Yr(t)?t:"https://".concat(t)},ei=e=>Array.isArray(e)?e:!!e&&[0,e],ti=(e,t)=>"function"==typeof e?e:!1!==e&&t,ni="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-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}",oi=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},li=(e,t,n)=>{if(!e)return"";const o="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,l=t.getTime()-o.getTime(),r=Math.floor(l/864e5);if(0===r){const e=l%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,o=Math.floor(t/6e4);if(0===o){const e=t%6e4,o=Math.round(e/1e3);return"".concat(o," ").concat(n.seconds)}return"".concat(o," ").concat(n.minutes)}return"".concat(t," ").concat(n.hours)}return r<0?n.now:r<8?"".concat(r," ").concat(n.days):(e=>{const t=oi(e.getDate(),2),n=oi(e.getMonth()+1,2),o=oi(e.getFullYear(),2);return"".concat(o,"-").concat(n,"-").concat(t)})(o)},ri=e=>{const t=Nr("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch("".concat(e,"/info.json")).then((e=>e.json())).then((o=>{const l={folder:e,...o};return n&&(t.value[e]=l),l}))},ii=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"".concat(t?"".concat(t,"/"):"").concat(n).concat(e).concat(o?".".concat(o):"")},si=e=>{"AbortError"!==e.name&&console.error(e.message)},ai={"Content-Type":"application/json"},ci=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},ui=e=>{let{serverURL:t,lang:n,token:o,objectId:l,...r}=e;const i={"Content-Type":"application/json",Authorization:"Bearer ".concat(o)};return fetch("".concat(t,"/comment/").concat(l,"?lang=").concat(n),{method:"PUT",headers:i,body:JSON.stringify(r)}).then((e=>e.json()))},pi=e=>{let{serverURL:t,lang:n,paths:o,signal:l}=e;return fetch("".concat(t,"/article?path=").concat(encodeURIComponent(o.join(",")),"&lang=").concat(n),{signal:l}).then((e=>e.json())).then((e=>ci(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))},di=e=>{let{serverURL:t,lang:n,path:o}=e;return fetch("".concat(t,"/article?lang=").concat(n),{method:"POST",headers:ai,body:JSON.stringify({path:o})}).then((e=>e.json())).then((e=>ci(e,"visit count")))},hi=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,fi=e=>e.type.includes("image"),gi=e=>{const t=Array.from(e).find(fi);return t?t.getAsFile():null};function mi(){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}}let vi={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 yi=/[&<>"']/,wi=/[&<>"']/g,ki=/[<>"']|&(?!#?\w+;)/,bi=/[<>"']|&(?!#?\w+;)/g,xi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_i=e=>xi[e];function Si(e,t){if(t){if(yi.test(e))return e.replace(wi,_i)}else if(ki.test(e))return e.replace(bi,_i);return e}const Ci=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Ii(e){return e.replace(Ci,((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 zi=/(^|[^\[])\^/g;function Ri(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,o)=>(o=(o=o.source||o).replace(zi,"$1"),e=e.replace(t,o),n),getRegex:()=>new RegExp(e,t)};return n}const Ei=/[^\w:]/g,Ai=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Li(e,t,n){if(e){let e;try{e=decodeURIComponent(Ii(n)).replace(Ei,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Ai.test(n)&&(n=function(e,t){Ti[" "+e]||(ji.test(e)?Ti[" "+e]=e+"/":Ti[" "+e]=Ni(e,"/",!0));const n=-1===(e=Ti[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace($i,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Oi,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Ti={},ji=/^[^:]+:\/*[^/]*$/,$i=/^([^:]+:)[\s\S]*$/,Oi=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Ui={exec:function(){}};function Mi(e){let t,n,o=1;for(;o<arguments.length;o++)for(n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Pi(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let o=!1,l=t;for(;--l>=0&&"\\"===n[l];)o=!o;return o?"|":" |"})).split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function Ni(e,t,n){const o=e.length;if(0===o)return"";let l=0;for(;l<o;){const r=e.charAt(o-l-1);if(r!==t||n){if(r===t||!n)break;l++}else l++}return e.slice(0,o-l)}function Fi(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Vi(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Bi(e,t,n,o){const l=t.href,r=t.title?Si(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:l,title:r,text:i,tokens:o.inlineTokens(i,[])};return o.state.inLink=!1,e}return{type:"image",raw:n,href:l,title:r,text:Si(i)}}class Di{constructor(e){this.options=e||vi}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}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:Ni(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=Ni(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(/^ *>[ \t]?/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,l,r,i,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?"\\d{1,9}\\".concat(f.slice(-1)):"\\".concat(f),this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp("^( {0,3}".concat(f,")((?:[\t ][^\\n]*)?(?:\\n|$))"));for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(r=2,d=c.trimLeft()):(r=t[2].search(/[^ ]/),r=r>4?1:r,d=c.slice(r),r+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp("^ {0,".concat(Math.min(3,r-1),"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))")),o=new RegExp("^ {0,".concat(Math.min(3,r-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),l=new RegExp("^ {0,".concat(Math.min(3,r-1),"}(?:```|~~~)")),i=new RegExp("^ {0,".concat(Math.min(3,r-1),"}#"));for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!l.test(c))&&!i.test(c)&&!t.test(c)&&!o.test(e);){if(c.search(/[^ ]/)>=r||!c.trim())d+="\n"+c.slice(r);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(d),o&&(l="[ ] "!==o[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!o,checked:l,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(i=0;i<y;i++){this.lexer.state.top=!1,m.items[i].tokens=this.lexer.blockTokens(m.items[i].text,[]);const e=m.items[i].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!m.loose&&e.length&&t&&(m.loose=!0,m.items[i].loose=!0)}return m}}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]):Si(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{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:Pi(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,o,l,r,i=e.align.length;for(n=0;n<i;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(i=e.rows.length,n=0;n<i;n++)e.rows[n]=Pi(e.rows[n],e.header.length).map((e=>({text:e})));for(i=e.header.length,o=0;o<i;o++)e.header[o].tokens=[],this.lexer.inline(e.header[o].text,e.header[o].tokens);for(i=e.rows.length,o=0;o<i;o++)for(r=e.rows[o],l=0;l<r.length;l++)r[l].tokens=[],this.lexer.inline(r[l].text,r[l].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Si(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Si(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Ni(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,l=0;for(;l<n;l++)if("\\"===e[l])l++;else if(e[l]===t[0])o++;else if(e[l]===t[1]&&(o--,o<0))return l;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],o="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],o=e[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Bi(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 Bi(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=this.rules.inline.emStrong.lDelim.exec(e);if(!o)return;if(o[3]&&n.match(/[\p{L}\p{N}]/u))return;const l=o[1]||o[2]||"";if(!l||l&&(""===n||this.rules.inline.punctuation.exec(n))){const n=o[0].length-1;let l,r,i=n,s=0;const a="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=a.exec(t));){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(r=l.length,o[3]||o[4]){i+=r;continue}if((o[5]||o[6])&&n%3&&!((n+r)%3)){s+=r;continue}if(i-=r,i>0)continue;if(r=Math.min(r,r+i+s),Math.min(n,r)%2){const t=e.slice(1,n+o.index+r);return{type:"em",raw:e.slice(0,n+o.index+r+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+o.index+r-1);return{type:"strong",raw:e.slice(0,n+o.index+r+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=Si(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=Si(this.options.mangle?t(n[1]):n[1]),o="mailto:"+e):(e=Si(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=Si(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=Si(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]):Si(n[0]):n[0]:Si(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Hi={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}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ui,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Hi.def=Ri(Hi.def).replace("label",Hi._label).replace("title",Hi._title).getRegex(),Hi.bullet=/(?:[*+-]|\d{1,9}[.)])/,Hi.listItemStart=Ri(/^( *)(bull) */).replace("bull",Hi.bullet).getRegex(),Hi.list=Ri(Hi.list).replace(/bull/g,Hi.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Hi.def.source+")").getRegex(),Hi._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",Hi._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Hi.html=Ri(Hi.html,"i").replace("comment",Hi._comment).replace("tag",Hi._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Hi.paragraph=Ri(Hi._paragraph).replace("hr",Hi.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hi._tag).getRegex(),Hi.blockquote=Ri(Hi.blockquote).replace("paragraph",Hi.paragraph).getRegex(),Hi.normal=Mi({},Hi),Hi.gfm=Mi({},Hi.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Hi.gfm.table=Ri(Hi.gfm.table).replace("hr",Hi.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hi._tag).getRegex(),Hi.gfm.paragraph=Ri(Hi._paragraph).replace("hr",Hi.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Hi.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hi._tag).getRegex(),Hi.pedantic=Mi({},Hi.normal,{html:Ri("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Hi._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ui,paragraph:Ri(Hi.normal._paragraph).replace("hr",Hi.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Hi.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Wi={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ui,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,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:Ui,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function qi(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Zi(e){let t,n,o="";const l=e.length;for(t=0;t<l;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),o+="&#"+n+";";return o}Wi._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Wi.punctuation=Ri(Wi.punctuation).replace(/punctuation/g,Wi._punctuation).getRegex(),Wi.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Wi.escapedEmSt=/\\\*|\\_/g,Wi._comment=Ri(Hi._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Wi.emStrong.lDelim=Ri(Wi.emStrong.lDelim).replace(/punct/g,Wi._punctuation).getRegex(),Wi.emStrong.rDelimAst=Ri(Wi.emStrong.rDelimAst,"g").replace(/punct/g,Wi._punctuation).getRegex(),Wi.emStrong.rDelimUnd=Ri(Wi.emStrong.rDelimUnd,"g").replace(/punct/g,Wi._punctuation).getRegex(),Wi._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Wi._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Wi._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])?)+(?![-_])/,Wi.autolink=Ri(Wi.autolink).replace("scheme",Wi._scheme).replace("email",Wi._email).getRegex(),Wi._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Wi.tag=Ri(Wi.tag).replace("comment",Wi._comment).replace("attribute",Wi._attribute).getRegex(),Wi._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Wi._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Wi._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Wi.link=Ri(Wi.link).replace("label",Wi._label).replace("href",Wi._href).replace("title",Wi._title).getRegex(),Wi.reflink=Ri(Wi.reflink).replace("label",Wi._label).replace("ref",Hi._label).getRegex(),Wi.nolink=Ri(Wi.nolink).replace("ref",Hi._label).getRegex(),Wi.reflinkSearch=Ri(Wi.reflinkSearch,"g").replace("reflink",Wi.reflink).replace("nolink",Wi.nolink).getRegex(),Wi.normal=Mi({},Wi),Wi.pedantic=Mi({},Wi.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:Ri(/^!?\[(label)\]\((.*?)\)/).replace("label",Wi._label).getRegex(),reflink:Ri(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Wi._label).getRegex()}),Wi.gfm=Mi({},Wi.normal,{escape:Ri(Wi.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Wi.gfm.url=Ri(Wi.gfm.url,"i").replace("email",Wi.gfm._extended_email).getRegex(),Wi.breaks=Mi({},Wi.gfm,{br:Ri(Wi.br).replace("{2,}","*").getRegex(),text:Ri(Wi.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class Gi{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||vi,this.options.tokenizer=this.options.tokenizer||new Di,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Hi.normal,inline:Wi.normal};this.options.pedantic?(t.block=Hi.pedantic,t.inline=Wi.pedantic):this.options.gfm&&(t.block=Hi.gfm,this.options.breaks?t.inline=Wi.breaks:t.inline=Wi.gfm),this.tokenizer.rules=t}static get rules(){return{block:Hi,inline:Wi}}static lex(e,t){return new Gi(t).lex(e)}static lexInline(e,t){return new Gi(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e){let t,n,o,l,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(t=n.call({lexer:this},e,r))&&(e=e.substring(t.raw.length),r.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&r.length>0?r[r.length-1].raw+="\n":r.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=r[r.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?r.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=r[r.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),r.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),r.push(t);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let l;this.options.extensions.startBlock.forEach((function(e){l=e.call({lexer:this},n),"number"==typeof l&&l>=0&&(t=Math.min(t,l))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(o)))n=r[r.length-1],l&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):r.push(t),l=o.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=r[r.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):r.push(t);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,r}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e){let t,n,o,l,r,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,l.index)+"["+Vi("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,l.index)+"["+Vi("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,l.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(r||(i=""),r=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,s))&&(e=e.substring(t.raw.length),s.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.emStrong(e,a,i))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.autolink(e,Zi))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,Zi))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let l;this.options.extensions.startInline.forEach((function(e){l=e.call({lexer:this},n),"number"==typeof l&&l>=0&&(t=Math.min(t,l))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(o,qi))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(i=t.raw.slice(-1)),r=!0,n=s[s.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);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(t.raw.length),s.push(t);return s}}class Ji{constructor(e){this.options=e||vi}code(e,t,n){const o=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,o);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",o?'<pre><code class="'+this.options.langPrefix+Si(o,!0)+'">'+(n?e:Si(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Si(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n".concat(e,"</blockquote>\n")}html(e){return e}heading(e,t,n,o){if(this.options.headerIds){const l=this.options.headerPrefix+o.slug(n);return"<h".concat(t,' id="').concat(l,'">').concat(e,"</h").concat(t,">\n")}return"<h".concat(t,">").concat(e,"</h").concat(t,">\n")}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+o+">\n"}listitem(e){return"<li>".concat(e,"</li>\n")}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>".concat(e,"</p>\n")}table(e,t){return t&&(t="<tbody>".concat(t,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n".concat(e,"</tr>\n")}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"</".concat(n,">\n")}strong(e){return"<strong>".concat(e,"</strong>")}em(e){return"<em>".concat(e,"</em>")}codespan(e){return"<code>".concat(e,"</code>")}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>".concat(e,"</del>")}link(e,t,n){if(null===(e=Li(this.options.sanitize,this.options.baseUrl,e)))return n;let o='<a href="'+Si(e)+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>",o}image(e,t,n){if(null===(e=Li(this.options.sanitize,this.options.baseUrl,e)))return n;let o='<img src="'.concat(e,'" alt="').concat(n,'"');return t&&(o+=' title="'.concat(t,'"')),o+=this.options.xhtml?"/>":">",o}text(e){return e}}class Qi{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 Ki{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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Yi{constructor(e){this.options=e||vi,this.options.renderer=this.options.renderer||new Ji,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Qi,this.slugger=new Ki}static parse(e,t){return new Yi(t).parse(e)}static parseInline(e,t){return new Yi(t).parseInline(e)}parse(e){let t,n,o,l,r,i,s,a,c,u,p,d,h,f,g,m,v,y,w,k=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],b="";const x=e.length;for(t=0;t<x;t++)if(u=e[t],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(w=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))b+=w||"";else switch(u.type){case"space":continue;case"hr":b+=this.renderer.hr();continue;case"heading":b+=this.renderer.heading(this.parseInline(u.tokens),u.depth,Ii(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":b+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(a="",s="",l=u.header.length,n=0;n<l;n++)s+=this.renderer.tablecell(this.parseInline(u.header[n].tokens),{header:!0,align:u.align[n]});for(a+=this.renderer.tablerow(s),c="",l=u.rows.length,n=0;n<l;n++){for(i=u.rows[n],s="",r=i.length,o=0;o<r;o++)s+=this.renderer.tablecell(this.parseInline(i[o].tokens),{header:!1,align:u.align[o]});c+=this.renderer.tablerow(s)}b+=this.renderer.table(a,c);continue;case"blockquote":c=this.parse(u.tokens),b+=this.renderer.blockquote(c);continue;case"list":for(p=u.ordered,d=u.start,h=u.loose,l=u.items.length,c="",n=0;n<l;n++)g=u.items[n],m=g.checked,v=g.task,f="",g.task&&(y=this.renderer.checkbox(m),h?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,h),c+=this.renderer.listitem(f,v,m);b+=this.renderer.list(c,p,d);continue;case"html":b+=this.renderer.html(u.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1<x&&"text"===e[t+1].type;)u=e[++t],c+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);b+=k?this.renderer.paragraph(c):c;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return b}parseInline(e,t){t=t||this.renderer;let n,o,l,r="";const i=e.length;for(n=0;n<i;n++)if(o=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]&&(l=this.options.extensions.renderers[o.type].call({parser:this},o),!1!==l||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)))r+=l||"";else switch(o.type){case"escape":case"text":r+=t.text(o.text);break;case"html":r+=t.html(o.text);break;case"link":r+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break;case"image":r+=t.image(o.href,o.title,o.text);break;case"strong":r+=t.strong(this.parseInline(o.tokens,t));break;case"em":r+=t.em(this.parseInline(o.tokens,t));break;case"codespan":r+=t.codespan(o.text);break;case"br":r+=t.br();break;case"del":r+=t.del(this.parseInline(o.tokens,t));break;default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return r}}function Xi(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),Fi(t=Mi({},Xi.defaults,t||{})),n){const o=t.highlight;let l;try{l=Gi.lex(e,t)}catch(e){return n(e)}const r=function(e){let r;if(!e)try{t.walkTokens&&Xi.walkTokens(l,t.walkTokens),r=Yi.parse(l,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,r)};if(!o||o.length<3)return r();if(delete t.highlight,!l.length)return r();let i=0;return Xi.walkTokens(l,(function(e){"code"===e.type&&(i++,setTimeout((()=>{o(e.text,e.lang,(function(t,n){if(t)return r(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),i--,0===i&&r()}))}),0))})),void(0===i&&r())}try{const n=Gi.lex(e,t);return t.walkTokens&&Xi.walkTokens(n,t.walkTokens),Yi.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Si(e.message+"",!0)+"</pre>";throw e}}Xi.options=Xi.setOptions=function(e){var t;return Mi(Xi.defaults,e),t=Xi.defaults,vi=t,Xi},Xi.getDefaults=mi,Xi.defaults=vi,Xi.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=Mi({},...t),l=Xi.defaults.extensions||{renderers:{},childTokens:{}};let r;t.forEach((e=>{if(e.extensions&&(r=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=l.renderers?l.renderers[e.name]:null;l.renderers[e.name]=t?function(){for(var n=arguments.length,o=new Array(n),l=0;l<n;l++)o[l]=arguments[l];let r=e.renderer.apply(this,o);return!1===r&&(r=t.apply(this,o)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");l[e.level]?l[e.level].unshift(e.tokenizer):l[e.level]=[e.tokenizer],e.start&&("block"===e.level?l.startBlock?l.startBlock.push(e.start):l.startBlock=[e.start]:"inline"===e.level&&(l.startInline?l.startInline.push(e.start):l.startInline=[e.start]))}e.childTokens&&(l.childTokens[e.name]=e.childTokens)}))),e.renderer){const t=Xi.defaults.renderer||new Ji;for(const n in e.renderer){const o=t[n];t[n]=function(){for(var l=arguments.length,r=new Array(l),i=0;i<l;i++)r[i]=arguments[i];let s=e.renderer[n].apply(t,r);return!1===s&&(s=o.apply(t,r)),s}}o.renderer=t}if(e.tokenizer){const t=Xi.defaults.tokenizer||new Di;for(const n in e.tokenizer){const o=t[n];t[n]=function(){for(var l=arguments.length,r=new Array(l),i=0;i<l;i++)r[i]=arguments[i];let s=e.tokenizer[n].apply(t,r);return!1===s&&(s=o.apply(t,r)),s}}o.tokenizer=t}if(e.walkTokens){const t=Xi.defaults.walkTokens;o.walkTokens=function(n){e.walkTokens.call(this,n),t&&t.call(this,n)}}r&&(o.extensions=l),Xi.setOptions(o)}))},Xi.walkTokens=function(e,t){for(const n of e)switch(t.call(Xi,n),n.type){case"table":for(const e of n.header)Xi.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Xi.walkTokens(n.tokens,t);break;case"list":Xi.walkTokens(n.items,t);break;default:Xi.defaults.extensions&&Xi.defaults.extensions.childTokens&&Xi.defaults.extensions.childTokens[n.type]?Xi.defaults.extensions.childTokens[n.type].forEach((function(e){Xi.walkTokens(n[e],t)})):n.tokens&&Xi.walkTokens(n.tokens,t)}},Xi.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");Fi(t=Mi({},Xi.defaults,t||{}));try{const n=Gi.lexInline(e,t);return t.walkTokens&&Xi.walkTokens(n,t.walkTokens),Yi.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Si(e.message+"",!0)+"</pre>";throw e}},Xi.Parser=Yi,Xi.parser=Yi.parse,Xi.Renderer=Ji,Xi.TextRenderer=Qi,Xi.Lexer=Gi,Xi.lexer=Gi.lex,Xi.Tokenizer=Di,Xi.Slugger=Ki,Xi.parse=Xi;const es=/\$.*?\$/,ts=/^\$(.*?)\$/,ns=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,os=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/:(.+?):/g,((e,n)=>t[n]?'<img class="wl-emoji" src="'.concat(t[n],'" alt="').concat(n,'">'):e))},ls=(e,t)=>{let{emojiMap:n,highlighter:o,texRenderer:l}=t;if(Xi.setOptions({highlight:o||void 0,breaks:!0,smartLists:!0,smartypants:!0}),l){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=ns.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(es);return-1!==t?t:e.length},tokenizer(t){const n=ts.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(l);Xi.use({extensions:e})}return Xi.parse(os(e,n))},rs=e=>e.dataset.path||e.getAttribute("id"),is=(e,t)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,o=Ut(new Date),l=()=>o.value=new Date,r="requestAnimationFrame"===n?Fr(l,{immediate:!0}):dr(l,n,{immediate:!0});return t?Gr({now:o},r):o}();return cl((()=>li(e,n.value,t)))};let ss=null;const as=()=>ss||(ss=Nr("WALINE_USER",{}));let cs=null;const us=()=>cs||(cs=Nr("WALINE_LIKE",[])),ps=e=>{var t;let{serverURL:n,path:o=window.location.pathname,selector:l=".waline-comment-count",lang:r="zh-CN"}=e;const i=new AbortController,s=document.querySelectorAll(l),a=as();return s.length&&(e=>{let{serverURL:t,lang:n,paths:o,signal:l,token:r}=e;const i={};return r&&(i.Authorization="Bearer ".concat(r)),fetch("".concat(t,"/comment?type=count&url=").concat(encodeURIComponent(o.join(",")),"&lang=").concat(n),{signal:l,headers:i}).then((e=>e.json())).then((e=>ci(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:Xr(n),paths:Array.from(s).map((e=>Qr(e.dataset.path||e.getAttribute("id")||o))),lang:r,signal:i.signal,token:null===(t=a.value)||void 0===t?void 0:t.token}).then((e=>{s.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(si),i.abort.bind(i)};e.commentCount=ps;var ds,hs,fs="function"==typeof Map?new Map:(ds=[],hs=[],{has:function(e){return ds.indexOf(e)>-1},get:function(e){return hs[ds.indexOf(e)]},set:function(e,t){-1===ds.indexOf(e)&&(ds.push(e),hs.push(t))},delete:function(e){var t=ds.indexOf(e);t>-1&&(ds.splice(t,1),hs.splice(t,1))}}),gs=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(ds){gs=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function ms(e){var t=fs.get(e);t&&t.destroy()}function vs(e){var t=fs.get(e);t&&t.update()}var ys=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((ys=function(e){return e}).destroy=function(e){return e},ys.update=function(e){return e}):((ys=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&&!fs.has(e)){var t,n=null,o=null,l=null,r=function(){e.clientWidth!==o&&c()},i=function(t){window.removeEventListener("resize",r,!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]})),fs.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",r,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",fs.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 s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),l=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})),l&&(document.documentElement.scrollTop=l)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(s("scroll"),a(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),l!==o){l=o;var r=gs("autosize:resized");try{e.dispatchEvent(r)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ms),e},ys.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],vs),e});var ws=ys;const ks=e=>{let{size:t}=e;return ul("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ul("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ul("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))};var bs=$n({name:"ImageWall",components:{LoadingIcon:ks},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emits:["insert"],setup(e){let t=null;const n=Ut(null),o=Ut({}),l=Ut([]),r=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},i=e=>new Array(e).fill(null).map((()=>[])),s=async t=>{var o;if(t>=e.items.length)return;await an();const r=Array.from((null===(o=n.value)||void 0===o?void 0:o.children)||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));l.value[Number(r.dataset.index)].push(t),await s(t+1)},a=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(l.value.length===r()&&!e)return;l.value=i(r());const t=window.scrollY;await s(0),window.scrollTo({top:t})};return Ln((()=>[e.items]),(()=>{o.value={},a(!0)})),Ln((()=>[e.columnWidth,e.gap]),(()=>a())),Pn((()=>{a(!0),t=new ResizeObserver((()=>a())),t.observe(n.value)})),Nn((()=>t.unobserve(n.value))),{columns:l,state:o,wall:n}}}),xs=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n};const _s=["data-index"],Ss=["src","title","onLoad","onClick"];var Cs=$n({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return ul("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:t,height:t},[ul("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"}),ul("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:()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ul("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:()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ul("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"}),ul("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"})]),ImageWall:xs(bs,[["render",function(e,t,n,o,l,r){const i=Hn("LoadingIcon");return zo(),Lo("div",{ref:"wall",class:"wl-gallery",style:_({gap:"".concat(e.gap,"px")})},[(zo(!0),Lo(bo,null,Zn(e.columns,((t,n)=>(zo(),Lo("div",{key:n,class:"wl-gallery-column","data-index":n,style:_({gap:"".concat(e.gap,"px")})},[(zo(!0),Lo(bo,null,Zn(t,(t=>(zo(),Lo(bo,{key:t},[e.state[e.items[t].src]?Do("v-if",!0):(zo(),To(i,{key:0,size:36,style:{margin:"20px auto"}})),Po("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:n=>e.state[e.items[t].src]=!0,onClick:n=>e.$emit("insert","![](".concat(e.items[t].src,")"))},null,40,Ss)],64)))),128))],12,_s)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>ul("svg",{width:"16",height:"16",ariaHidden:"true"},ul("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:()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ul("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"}),ul("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:ks,GifIcon:()=>ul("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ul("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ul("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})])},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=Rn("config"),l=Nr("WALINE_COMMENT_BOX_EDITOR",""),r=Nr("WALINE_USER_META",{nick:"",mail:"",link:""}),i=as(),s=Ut({}),a=Ut(null),c=Ut(null),u=Ut(null),p=Ut(null),d=Ut(null),h=Ut(null),f=Ut(null),g=Ut({tabs:[],map:{}}),m=Ut(0),v=Ut(!1),y=Ut(!1),w=Ut(!1),k=Ut(""),b=Ut(0),x=bt({loading:!0,list:[]}),_=Ut(0),S=Ut(!1),C=Ut(""),I=Ut(!1),z=cl((()=>o.value.locale)),R=cl((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),E=cl((()=>!1!==o.value.imageUploader)),A=e=>{const t=a.value,n=t.selectionStart,o=t.selectionEnd||0,r=t.scrollTop;l.value=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=r},L=e=>{const t="![".concat(o.value.locale.uploading," ").concat(e.name,"]()");return A(t),Promise.resolve().then((()=>o.value.imageUploader(e))).then((n=>{l.value=l.value.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))}))},T=()=>{var t,c;const{serverURL:u,lang:p,login:d,wordLimit:h,requiredMeta:f}=o.value,m={comment:C.value,nick:r.value.nick,mail:r.value.mail,link:r.value.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"===d)return;var v,y,w;if(f.indexOf("nick")>-1&&!m.nick)return null===(v=s.value.nick)||void 0===v||v.focus(),alert(z.value.nickError);if(f.indexOf("mail")>-1&&!m.mail||m.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(m.mail))return null===(y=s.value.mail)||void 0===y||y.focus(),alert(z.value.mailError);if(!m.comment)return void(null===(w=a.value)||void 0===w||w.focus());m.nick||(m.nick=z.value.anonymous)}if(!S.value)return alert(z.value.wordHint.replace("$0",h[0].toString()).replace("$1",h[1].toString()).replace("$2",b.value.toString()));m.comment=os(m.comment,g.value.map),e.replyId&&e.rootId&&(m.pid=e.replyId,m.rid=e.rootId,m.at=e.replyUser),I.value=!0,(e=>{let{serverURL:t,lang:n,token:o,comment:l}=e;const r={"Content-Type":"application/json"};return o&&(r.Authorization="Bearer ".concat(o)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:r,body:JSON.stringify(l)}).then((e=>e.json()))})({serverURL:u,lang:p,token:null===(c=i.value)||void 0===c?void 0:c.token,comment:m}).then((t=>{if(I.value=!1,t.errmsg)return alert(t.errmsg);n("submit",t.data),l.value="",k.value="",e.replyId&&n("cancel-reply")})).catch((e=>{I.value=!1,alert(e.message)}))},j=e=>{u.value.contains(e.target)||p.value.contains(e.target)||(v.value=!1),d.value.contains(e.target)||h.value.contains(e.target)||(y.value=!1)},$=async e=>{var t;const{scrollTop:n,clientHeight:l,scrollHeight:r}=e.target,i=(l+n)/r,s=o.value.search,a=(null===(t=f.value)||void 0===t?void 0:t.value)||"";i<.9||x.loading||(x.loading=!0,x.list.push(...s.more?await s.more(a,x.list.length):await s.search(a)),x.loading=!1,setTimeout((()=>{e.target.scrollTop=n}),50))},O=function(e){return ir(ar(arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e)}((e=>{x.list=[],$(e)}),300);Ln([o,b],(e=>{let[t,n]=e;const{wordLimit:o}=t;o?n<o[0]&&0!==o[0]?(_.value=o[0],S.value=!1):n>o[1]?(_.value=o[1],S.value=!1):(_.value=o[1],S.value=!0):(_.value=0,S.value=!0)}),{immediate:!0}),Ln(y,(async e=>{if(!e)return;const t=o.value.search;f.value&&(f.value.value=""),x.loading=!0,x.list=t.default?await t.default():await t.search(""),x.loading=!1}));const U=e=>{let{data:t}=e;t&&"profile"===t.type&&(i.value={...i.value,...t.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(i)))))};return Pn((()=>{document.body.addEventListener("click",j),window.addEventListener("message",U),Ln((()=>l.value),(e=>{const{highlighter:t,texRenderer:n}=o.value;C.value=e,k.value=ls(e,{emojiMap:g.value.map,highlighter:t,texRenderer: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),e?ws(a.value):ws.destroy(a.value)}),{immediate:!0}),Ln((()=>o.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?ri(Kr(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:o,icon:l,prefix:r,type:i,items:s}=e;t.tabs.push({name:n,icon:ii(l,o,r,i),items:s.map((e=>{const n="".concat(r||"").concat(e);return t.map[n]=ii(e,o,r,i),n}))})})),t}))).then((e=>{g.value=e}));var t}),{immediate:!0})})),Fn((()=>{document.body.removeEventListener("click",j),window.removeEventListener("message",U)})),{config:o,locale:z,insert:A,onChange:()=>{const e=c.value;e.files&&E.value&&L(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=gi(e.dataTransfer.items);t&&E.value&&(L(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&T()},onPaste:e=>{if(e.clipboardData){const t=gi(e.clipboardData.items);t&&E.value&&L(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,l=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,s=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(l,",top=").concat(r,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:null},"*");const a=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==s||s.close(),i.value=t.data,(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{i.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,l=(window.innerWidth-800)/2,r=(window.innerHeight-800)/2,s=window.open("".concat(n,"/ui/profile?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(800,",height=").concat(800,",left=").concat(l,",top=").concat(r,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:i.value.token},"*")},submitComment:T,onImageWallScroll:$,onGifSearch:O,isLogin:R,userInfo:i,isSubmitting:I,wordNumber:b,wordLimit:_,isWordNumberLegal:S,editor:l,userMeta:r,emoji:g,emojiTabIndex:m,showEmoji:v,gifData:x,showGif:y,canUploadImage:E,previewText:k,showPreview:w,inputRefs:s,editorRef:a,emojiButtonRef:u,emojiPopupRef:p,gifButtonRef:d,gifPopupRef:h,imageUploadRef:c,gifSearchInputRef:f}}});const Is={class:"wl-comment"},zs={key:0,class:"wl-login-info"},Rs={class:"wl-avatar"},Es=["title"],As=["title"],Ls=["src"],Ts=["title","textContent"],js={class:"wl-panel"},$s=["for","textContent"],Os=["id","onUpdate:modelValue","name","type"],Us=["placeholder"],Ms={class:"wl-preview"},Ps=Po("hr",null,null,-1),Ns=["innerHTML"],Fs={class:"wl-footer"},Vs={class:"wl-actions"},Bs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},Ds=["title"],Hs=["title"],Ws=["title"],qs=["title"],Zs={class:"wl-info"},Gs={class:"wl-text-number"},Js={key:0},Qs=Bo("  /  "),Ks=["textContent"],Ys=["textContent"],Xs=["disabled"],ea=["placeholder"],ta={key:0,class:"wl-loading"},na={key:0,class:"wl-tab-wrapper"},oa=["title","onClick"],la=["src","alt"],ra={key:0,class:"wl-tabs"},ia=["onClick"],sa=["src","alt","title"],aa=["title"];var ca=xs(Cs,[["render",function(e,t,n,o,l,r){const i=Hn("CloseIcon"),s=Hn("MarkdownIcon"),a=Hn("EmojiIcon"),c=Hn("GifIcon"),u=Hn("ImageIcon"),p=Hn("PreviewIcon"),d=Hn("LoadingIcon"),h=Hn("ImageWall");return zo(),Lo("div",Is,["disable"!==e.config.login&&e.isLogin?(zo(),Lo("div",zs,[Po("div",Rs,[Po("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[No(i,{size:14})],8,Es),Po("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)})},[Po("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,Ls)],8,As)]),Po("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[2]||(t[2]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:A(e.userInfo.display_name)},null,8,Ts)])):Do("v-if",!0),Po("div",js,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(zo(),Lo("div",{key:0,class:z(["wl-header","item".concat(e.config.meta.length)])},[(zo(!0),Lo(bo,null,Zn(e.config.meta,(t=>(zo(),Lo("div",{key:t,class:"wl-header-item"},[Po("label",{for:t,textContent:A(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":"(".concat(e.locale.optional,")")))},null,8,$s),Vn(Po("input",{id:"wl-".concat(t),ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},"onUpdate:modelValue":n=>e.userMeta[t]=n,class:z(["wl-input","wl-".concat(t)]),name:t,type:"mail"===t?"email":"text"},null,10,Os),[[Gl,e.userMeta[t]]])])))),128))],2)):Do("v-if",!0),Vn(Po("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[3]||(t[3]=t=>e.editor=t),class:"wl-editor",placeholder:e.replyUser?"@".concat(e.replyUser):e.locale.placeholder,onKeydown:t[4]||(t[4]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[5]||(t[5]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[6]||(t[6]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,Us),[[Fl,e.editor]]),Vn(Po("div",Ms,[Ps,Po("h4",null,A(e.locale.preview)+":",1),Do(" eslint-disable-next-line vue/no-v-html "),Po("div",{class:"wl-content",innerHTML:e.previewText},null,8,Ns)],512),[[Ql,e.showPreview]]),Po("div",Fs,[Po("div",Vs,[Po("a",Bs,[No(s)]),Vn(Po("button",{ref:"emojiButtonRef",class:z(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[7]||(t[7]=t=>e.showEmoji=!e.showEmoji)},[No(a)],10,Ds),[[Ql,e.emoji.tabs.length]]),e.config.search?(zo(),Lo("button",{key:0,ref:"gifButtonRef",class:z(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[8]||(t[8]=t=>e.showGif=!e.showGif)},[No(c)],10,Hs)):Do("v-if",!0),Po("input",{id:"wl-image-upload",ref:"imageUploadRef",class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[9]||(t[9]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(zo(),Lo("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[No(u)],8,Ws)):Do("v-if",!0),Po("button",{class:z(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[10]||(t[10]=t=>e.showPreview=!e.showPreview)},[No(p)],10,qs)]),Po("div",Zs,[Po("div",Gs,[Bo(A(e.wordNumber)+" ",1),e.config.wordLimit?(zo(),Lo("span",Js,[Qs,Po("span",{class:z({illegal:!e.isWordNumberLegal}),textContent:A(e.wordLimit)},null,10,Ks)])):Do("v-if",!0),Bo("  "+A(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Do("v-if",!0):(zo(),Lo("button",{key:0,class:"wl-btn",onClick:t[11]||(t[11]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:A(e.locale.login)},null,8,Ys)),"force"!==e.config.login||e.isLogin?(zo(),Lo("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[12]||(t[12]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(zo(),To(d,{key:0,size:16})):(zo(),Lo(bo,{key:1},[Bo(A(e.locale.submit),1)],64))],8,Xs)):Do("v-if",!0)]),Po("div",{ref:"gifPopupRef",class:z(["wl-gif-popup",{display:e.showGif}])},[Po("input",{ref:"gifSearchInputRef",type:"text",placeholder:e.locale.gifSearchPlaceholder,onInput:t[13]||(t[13]=function(){return e.onGifSearch&&e.onGifSearch(...arguments)})},null,40,ea),No(h,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[14]||(t[14]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(zo(),Lo("div",ta,[No(d,{size:30})])):Do("v-if",!0)],2),Po("div",{ref:"emojiPopupRef",class:z(["wl-emoji-popup",{display:e.showEmoji}])},[(zo(!0),Lo(bo,null,Zn(e.emoji.tabs,((t,n)=>(zo(),Lo(bo,{key:t.name},[n===e.emojiTabIndex?(zo(),Lo("div",na,[(zo(!0),Lo(bo,null,Zn(t.items,(t=>(zo(),Lo("button",{key:t,title:t,onClick:n=>e.insert(":".concat(t,":"))},[e.showEmoji?(zo(),Lo("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,la)):Do("v-if",!0)],8,oa)))),128))])):Do("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(zo(),Lo("div",ra,[(zo(!0),Lo(bo,null,Zn(e.emoji.tabs,((t,n)=>(zo(),Lo("button",{key:t.name,class:z(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Po("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,sa)],10,ia)))),128))])):Do("v-if",!0)],2)])]),e.replyId?(zo(),Lo("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[15]||(t[15]=t=>e.$emit("cancel-reply"))},[No(i,{size:24})],8,aa)):Do("v-if",!0)])}],["__file","CommentBox.vue"]]);const ua=["approved","waiting","spam"];var pa=$n({components:{CommentBox:ca,DeleteIcon:()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ul("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),LikeIcon:e=>{let{active:t=!1}=e;return ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ul("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z".concat(t?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:t?"red":"currentColor"})])},ReplyIcon:()=>ul("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ul("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),VerifiedIcon:()=>ul("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ul("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"}))},props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object,default:null}},emits:["submit","reply","like","delete","status","sticky"],setup(e){const t=Rn("config"),n=us(),o=as(),l=cl((()=>t.value.locale)),r=cl((()=>{const{link:t}=e.comment;return t?Yr(t)?t:"https://".concat(t):""})),i=cl((()=>n.value.includes(e.comment.objectId))),s=is(e.comment.insertedAt,l.value),a=cl((()=>"administrator"===o.value.type)),c=cl((()=>e.comment.user_id&&o.value.objectId===e.comment.user_id)),u=cl((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:l,isReplyingCurrent:u,link:r,like:i,time:s,isAdmin:a,isOwner:c,commentStatus:ua}}});const da=["id"],ha={class:"wl-user","aria-hidden":"true"},fa=["src"],ga={class:"wl-card"},ma={class:"wl-head"},va=["href"],ya={key:1,class:"wl-nick"},wa=["textContent"],ka=["textContent"],ba=["textContent"],xa=["textContent"],_a=["textContent"],Sa={class:"wl-comment-actions"},Ca=["title"],Ia=["textContent"],za=["title"],Ra={class:"wl-meta","aria-hidden":"true"},Ea=["textContent"],Aa=["textContent"],La=["textContent"],Ta=["innerHTML"],ja={key:0,class:"wl-admin-actions"},$a={class:"wl-comment-status"},Oa=["disabled","onClick","textContent"],Ua={key:1,class:"wl-reply-wrapper"},Ma={key:2,class:"wl-quote"};var Pa=$n({name:"WalineRoot",components:{CommentBox:ca,CommentCard:xs(pa,[["render",function(e,t,n,o,l,r){const i=Hn("VerifiedIcon"),s=Hn("DeleteIcon"),a=Hn("LikeIcon"),c=Hn("ReplyIcon"),u=Hn("CommentBox"),p=Hn("CommentCard",!0);return zo(),Lo("div",{id:e.comment.objectId,class:"wl-item"},[Po("div",ha,[e.comment.avatar?(zo(),Lo("img",{key:0,src:e.comment.avatar},null,8,fa)):Do("v-if",!0),e.comment.type?(zo(),To(i,{key:1})):Do("v-if",!0)]),Po("div",ga,[Po("div",ma,[e.link?(zo(),Lo("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},A(e.comment.nick),9,va)):(zo(),Lo("span",ya,A(e.comment.nick),1)),"administrator"===e.comment.type?(zo(),Lo("span",{key:2,class:"wl-badge",textContent:A(e.locale.admin)},null,8,wa)):Do("v-if",!0),e.comment.label?(zo(),Lo("span",{key:3,class:"wl-badge",textContent:A(e.comment.label)},null,8,ka)):Do("v-if",!0),e.comment.sticky?(zo(),Lo("span",{key:4,class:"wl-badge",textContent:A(e.locale.sticky)},null,8,ba)):Do("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(zo(),Lo("span",{key:5,class:z("wl-badge level".concat(e.comment.level)),textContent:A(e.locale["level".concat(e.comment.level)]||"Level ".concat(e.comment.level))},null,10,xa)):Do("v-if",!0),Po("span",{class:"wl-time",textContent:A(e.time)},null,8,_a),Po("div",Sa,[e.isAdmin||e.isOwner?(zo(),Lo("button",{key:0,class:"wl-delete",onClick:t[0]||(t[0]=t=>e.$emit("delete",e.comment))},[No(s)])):Do("v-if",!0),Po("button",{class:"wl-like",title:e.like?e.locale.cancelLike:e.locale.like,onClick:t[1]||(t[1]=t=>e.$emit("like",e.comment))},[No(a,{active:e.like},null,8,["active"]),"like"in e.comment?(zo(),Lo("span",{key:0,textContent:A(e.comment.like)},null,8,Ia)):Do("v-if",!0)],8,Ca),Po("button",{class:z(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[2]||(t[2]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[No(c)],10,za)])]),Po("div",Ra,[e.comment.addr?(zo(),Lo("span",{key:0,textContent:A(e.comment.addr)},null,8,Ea)):Do("v-if",!0),e.comment.browser?(zo(),Lo("span",{key:1,textContent:A(e.comment.browser)},null,8,Aa)):Do("v-if",!0),e.comment.os?(zo(),Lo("span",{key:2,textContent:A(e.comment.os)},null,8,La)):Do("v-if",!0)]),Do(" eslint-disable-next-line vue/no-v-html "),Po("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,Ta),e.isAdmin?(zo(),Lo("div",ja,[Po("span",$a,[(zo(!0),Lo(bo,null,Zn(e.commentStatus,(t=>(zo(),Lo("button",{key:t,class:z("wl-btn wl-".concat(t)),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:A(t)},null,10,Oa)))),128))]),e.isAdmin&&!e.comment.rid?(zo(),Lo("button",{key:0,class:"wl-btn wl-sticky",onClick:t[3]||(t[3]=t=>e.$emit("sticky",e.comment))},A(e.comment.sticky?"unsticky":"sticky"),1)):Do("v-if",!0)])):Do("v-if",!0),e.isReplyingCurrent?(zo(),Lo("div",Ua,[No(u,{"reply-id":e.comment.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t)),onCancelReply:t[5]||(t[5]=t=>e.$emit("reply",null))},null,8,["reply-id","reply-user","root-id"])])):Do("v-if",!0),e.comment.children?(zo(),Lo("div",Ma,[(zo(!0),Lo(bo,null,Zn(e.comment.children,(n=>(zo(),To(p,{key:n.objectId,comment:n,reply:e.reply,"root-id":e.rootId,onReply:t[6]||(t[6]=t=>e.$emit("reply",t)),onSubmit:t[7]||(t[7]=t=>e.$emit("submit",t)),onLike:t[8]||(t[8]=t=>e.$emit("like",t)),onDelete:t[9]||(t[9]=t=>e.$emit("delete",t)),onStatus:t[10]||(t[10]=t=>e.$emit("status",t)),onSticky:t[11]||(t[11]=t=>e.$emit("sticky",t))},null,8,["comment","reply","root-id"])))),128))])):Do("v-if",!0)])],8,da)}],["__file","CommentCard.vue"]]),LoadingIcon:ks},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","copyright"],setup(e){const t=cl((()=>(e=>{let{serverURL:t,path:s=location.pathname,lang:a=o,locale:c,emoji:p=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:d=["nick","mail","link"],requiredMeta:h=[],dark:f=!1,pageSize:g=10,wordLimit:m,imageUploader:v,highlighter:y,texRenderer:k,copyright:b=!0,login:x="enable",search:_=i(),...S}=e;return{serverURL:Xr(t),path:Qr(s),locale:{...w[a]||w[o],..."object"==typeof c?c:{}},wordLimit:ei(m),meta:n(d),requiredMeta:n(h),imageUploader:ti(v,l),highlighter:ti(y,u),texRenderer:ti(k,r),lang:a,dark:f,emoji:p,pageSize:g,login:x,copyright:b,search:_,...S}})(e))),s=as(),a=us(),c=Ut("loading"),p=Ut(0),d=Ut(1),h=Ut(0),f=Ut([]),g=Ut(null),m=cl((()=>{return"string"==typeof(e=t.value.dark)?"auto"===e?"@media(prefers-color-scheme:dark){body".concat(ni,"}"):"".concat(e).concat(ni):!0===e?":root".concat(ni):"";var e}));let v;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Ut(!1),{document:o=Lr,immediate:l=!0,manual:r=!1,id:i="vueuse_styletag_".concat(++Jr)}=t,s=Ut(e);let a=()=>{};const c=()=>{if(!o)return;const e=o.getElementById(i)||o.createElement("style");e.type="text/css",e.id=i,t.media&&(e.media=t.media),o.head.appendChild(e),n.value||(a=Ln(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{o&&n.value&&(a(),o.head.removeChild(o.getElementById(i)),n.value=!1)};l&&!r&&pr(c),r||ur(u),_t(n)}(m);const y=e=>{var n,o;const{serverURL:l,path:r,pageSize:i}=t.value,a=new AbortController;c.value="loading",null===(n=v)||void 0===n||n(),(e=>{let{serverURL:t,lang:n,path:o,page:l,pageSize:r,signal:i,token:s}=e;const a={};return s&&(a.Authorization="Bearer ".concat(s)),fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(o),"&pageSize=").concat(r,"&page=").concat(l,"&lang=").concat(n),{signal:i,headers:a}).then((e=>e.json())).then((e=>ci(e,"comment list")))})({serverURL:l,lang:t.value.lang,path:r,pageSize:i,page:e,signal:a.signal,token:null===(o=s.value)||void 0===o?void 0:o.token}).then((t=>{c.value="success",p.value=t.count,f.value.push(...t.data),d.value=e,h.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),c.value="error")})),v=a.abort.bind(a)},k=()=>{p.value=0,f.value=[],y(1)};return function(e,t){if(Ko){let n=Ko.provides;const o=Ko.parent&&Ko.parent.provides;o===n&&(n=Ko.provides=Object.create(o)),n[e]=t}}("config",t),Ln((()=>e.path),k),Pn((()=>k())),{config:t,darkmodeStyle:m,i18n:cl((()=>t.value.locale)),status:c,count:p,page:d,totalPages:h,data:f,reply:g,loadMore:()=>y(d.value+1),refresh:k,onReply:e=>{g.value=e},onSubmit:e=>{if(e.rid){const t=f.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 f.value.unshift(e)},onStatusChange:async e=>{var n;let{comment:o,status:l}=e;if(o.status===l)return;const{serverURL:r,lang:i}=t.value;await ui({serverURL:r,lang:i,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:o.objectId,status:l}),o.status=l},onDelete:async e=>{var n;let{objectId:o}=e;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:l,lang:r}=t.value;await(e=>{let{serverURL:t,lang:n,token:o,objectId:l}=e;const r={Authorization:"Bearer ".concat(o)};return fetch("".concat(t,"/comment/").concat(l,"?lang=").concat(n),{method:"DELETE",headers:r}).then((e=>e.json()))})({serverURL:l,lang:r,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:o}),f.value.some(((e,t)=>e.objectId===o?(f.value=f.value.filter(((e,n)=>n!==t)),!0):e.children.some(((n,l)=>n.objectId===o&&(f.value[t].children=e.children.filter(((e,t)=>t!==l)),!0)))))},onSticky:async e=>{var n;if(e.rid)return;const{serverURL:o,lang:l}=t.value;await ui({serverURL:o,lang:l,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:n,lang:o}=t.value,{objectId:l}=e,r=a.value.includes(l);await(e=>{let{serverURL:t,lang:n,objectId:o,like:l}=e;return fetch("".concat(t,"/comment/").concat(o,"?lang=").concat(n),{method:"PUT",headers:ai,body:JSON.stringify({like:l})}).then((e=>e.json()))})({serverURL:n,lang:o,objectId:l,like:!r}),r?a.value=a.value.filter((e=>e!==l)):(a.value=[...a.value,l],a.value.length>50&&(a.value=a.value.slice(-50))),e.like=(e.like||0)+(r?-1:1)},version:"2.6.2"}}});const Na={"data-waline":""},Fa={class:"wl-count"},Va=["textContent"],Ba={class:"wl-cards"},Da={key:1,class:"wl-operation"},Ha=["textContent"],Wa={key:0,class:"wl-loading"},qa=["textContent"],Za={class:"wl-operation"},Ga=["textContent"],Ja={key:3,class:"wl-power"},Qa=Bo(" Powered by "),Ka=Po("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var Ya=xs(Pa,[["render",function(e,t,n,o,l,r){const i=Hn("CommentBox"),s=Hn("CommentCard"),a=Hn("LoadingIcon");return zo(),Lo("div",Na,[e.reply?Do("v-if",!0):(zo(),To(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Po("div",Fa,[e.count?(zo(),Lo("span",{key:0,class:"wl-num",textContent:A(e.count)},null,8,Va)):Do("v-if",!0),Bo(" "+A(e.i18n.comment),1)]),Po("div",Ba,[(zo(!0),Lo(bo,null,Zn(e.data,(t=>(zo(),To(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","onReply","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(zo(),Lo("div",Da,[Po("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:A(e.i18n.refresh)},null,8,Ha)])):(zo(),Lo(bo,{key:2},["loading"===e.status?(zo(),Lo("div",Wa,[No(a,{size:30})])):e.data.length?e.page<e.totalPages?(zo(),Lo(bo,{key:2},[Do(" Load more button "),Po("div",Za,[Po("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=function(){return e.loadMore&&e.loadMore(...arguments)}),textContent:A(e.i18n.more)},null,8,Ga)])],2112)):Do("v-if",!0):(zo(),Lo("div",{key:1,class:"wl-empty",textContent:A(e.i18n.sofa)},null,8,qa))],64)),Do(" Copyright Information "),e.config.copyright?(zo(),Lo("div",Ja,[Qa,Ka,Bo(" v"+A(e.version),1)])):Do("v-if",!0)])}],["__file","Waline.vue"]]);const Xa=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},ec=e=>{let{serverURL:t,path:n=window.location.pathname,selector:o=".waline-pageview-count",update:l=!0,lang:r="zh-CN"}=e;const i=new AbortController,s=Array.from(document.querySelectorAll(o)),a=e=>{const t=rs(e);return null!==t&&n!==t},c=e=>pi({serverURL:Xr(t),paths:e.map((e=>rs(e)||n)),lang:r,signal:i.signal}).then((t=>Xa(t,e))).catch(si);if(l){const e=s.filter((e=>!a(e))),o=s.filter(a);di({serverURL:Xr(t),path:n,lang:r}).then((t=>Xa(new Array(e.length).fill(t),e))),o.length&&c(o)}else c(s);return i.abort.bind(i)};e.pageviewCount=ec;e.init=e=>{let{el:t="#waline",path:n=window.location.pathname,comment:o=!1,pageview:l=!1,...r}=e;const i=t?hi(t):null;if(t&&!i)throw new Error("Option 'el' do not match any domElement!");if(!r.serverURL)throw new Error("Option 'serverURL' is missing!");const s=bt({...r}),a=bt({comment:o,pageview:l,path:n}),c=i?function(){const e=er().createApp(...arguments),{mount:t}=e;return e.mount=n=>{const o=tr(n);if(!o)return;const l=e._component;Z(l)||l.render||l.template||(l.template=o.innerHTML),o.innerHTML="";const r=t(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},e}((()=>ul(Ya,{path:a.path,...s}))):null;c&&c.mount(i);const u=En((()=>{a.comment&&ps({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.comment?a.comment:void 0})})),p=En((()=>{a.pageview&&ec({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.pageview?a.pageview:void 0})}));return{el:i,update:function(){let{comment:e,pageview:t,path:n=window.location.pathname,...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(o).forEach((e=>{let[t,n]=e;s[t]=n})),a.path=n,void 0!==e&&(a.comment=e),void 0!==t&&(a.pageview=t)},destroy:()=>{null==c||c.unmount(),u(),p()}}};e.version="2.6.2";e.RecentComments=e=>{var t;let{el:n,serverURL:o,count:l,lang:r="zh-CN"}=e;const i=as(),s=hi(n),a=new AbortController;return(e=>{let{serverURL:t,lang:n,count:o,signal:l,token:r}=e;const i={};return r&&(i.Authorization="Bearer ".concat(r)),fetch("".concat(t,"/comment?type=recent&count=").concat(o,"&lang=").concat(n),{signal:l,headers:i}).then((e=>e.json())).then((e=>ci(e,"recent comment")))})({serverURL:o,count:l,lang:r,signal:a.signal,token:null===(t=i.value)||void 0===t?void 0:t.token}).then((e=>s&&e.length?(s.innerHTML='<ul class="wl-recent-list">'.concat(e.map((e=>'<li class="wl-recent-item"><a href="'.concat(e.url,'">').concat(e.nick,"</a>:").concat(e.comment,"</li>"))).join(""),"</ul>"),{comments:e,destroy:()=>{a.abort(),s.innerHTML=""}}):{comments:e,destroy:()=>a.abort()}))}}));
1
+ !function(e,t){if("function"==typeof define&&define.amd)define("Waline",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var n={exports:{}};t(n.exports),e.Waline=n.exports}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.pageviewCount=e.init=e.defaultLocales=e.commentCount=e.RecentComments=void 0;const t=["nick","mail","link"],n=e=>e.filter((e=>t.includes(e))),o="zh-CN",r=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));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})),l=e=>!0===e?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',i=()=>{const e={next:""},t=e=>{let{keyword:t,pos:n}=e;const o=new URLSearchParams("media_filter=minimal");return o.set("key","PAY5JLFIH6V6"),o.set("limit","20"),o.set("pos",n||""),o.set("q",t),fetch("".concat("https://g.tenor.com/v1/search","?").concat(o.toString()),{headers:{"Content-Type":"application/json"}}).then((e=>e.json())).catch((()=>({next:n||"",results:[]})))};return{search:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t({keyword:n}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))},more:n=>t({keyword:n,pos:e.next}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))}},s=new RegExp("(".concat(/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source,"|").concat(/</.source,")|((?:").concat(/(?:^|\s)\/\/(.+?)$/gm.source,")|(?:").concat(/\/\*([\S\s]*?)\*\//gm.source,"))"),"gmi"),a=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],c={},u=e=>{let t=0;return e.replace(s,((e,n,o)=>{if(o)return'<span style="color: slategray">'.concat(o,"</span>");if("<"===n)return"&lt;";let r;c[n]?r=c[n]:(r=a[t],c[n]=r);const l='<span style="color: #'.concat(r,'">').concat(n,"</span>");return t=++t%a.length,l}))},p=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky"],d=e=>Object.fromEntries(e.map(((e,t)=>[p[t],e])));var h=d(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","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","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky"]),f=d(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない"]),g=d(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶"]),m=d(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂"]),v=d(["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","Like","Cancel like","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","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky"]),y=d(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий"]);const w={zh:g,"zh-cn":g,"zh-CN":g,"zh-tw":m,"zh-TW":m,en:h,"en-US":h,"en-us":h,jp:f,"jp-jp":f,"jp-JP":f,"pt-br":v,"pt-BR":v,ru:y,"ru-ru":y,"ru-RU":y};function b(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}e.defaultLocales=w;const k=b("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function x(e){return!!e||""===e}function _(e){if(D(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=G(o)?I(o):_(o);if(r)for(const e in r)t[e]=r[e]}return t}return G(e)||J(e)?e:void 0}const S=/;(?![^(]*\))/g,C=/:(.+)/;function I(e){const t={};return e.split(S).forEach((e=>{if(e){const n=e.split(C);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function z(e){let t="";if(G(e))t=e;else if(D(e))for(let n=0;n<e.length;n++){const o=z(e[n]);o&&(t+=o+" ")}else if(J(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function R(e,t){if(e===t)return!0;let n=q(e),o=q(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=Q(e),o=Q(t),n||o)return e===t;if(n=D(e),o=D(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=R(e[o],t[o]);return n}(e,t);if(n=J(e),o=J(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!R(e[n],t[n]))return!1}}return String(e)===String(t)}function E(e,t){return e.findIndex((e=>R(e,t)))}const A=e=>G(e)?e:null==e?"":D(e)||J(e)&&(e.toString===Y||!Z(e.toString))?JSON.stringify(e,L,2):String(e),L=(e,t)=>t&&t.__v_isRef?L(e,t.value):H(t)?{["Map(".concat(t.size,")")]:[...t.entries()].reduce(((e,t)=>{let[n,o]=t;return e["".concat(n," =>")]=o,e}),{})}:W(t)?{["Set(".concat(t.size,")")]:[...t.values()]}:!J(t)||D(t)||ee(t)?t:String(t),O={},j=[],T=()=>{},$=()=>!1,U=/^on[^a-z]/,P=e=>U.test(e),M=e=>e.startsWith("onUpdate:"),F=Object.assign,N=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},V=Object.prototype.hasOwnProperty,B=(e,t)=>V.call(e,t),D=Array.isArray,H=e=>"[object Map]"===X(e),W=e=>"[object Set]"===X(e),q=e=>"[object Date]"===X(e),Z=e=>"function"==typeof e,G=e=>"string"==typeof e,Q=e=>"symbol"==typeof e,J=e=>null!==e&&"object"==typeof e,K=e=>J(e)&&Z(e.then)&&Z(e.catch),Y=Object.prototype.toString,X=e=>Y.call(e),ee=e=>"[object Object]"===X(e),te=e=>G(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ne=b(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),oe=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},re=/-(\w)/g,le=oe((e=>e.replace(re,((e,t)=>t?t.toUpperCase():"")))),ie=/\B([A-Z])/g,se=oe((e=>e.replace(ie,"-$1").toLowerCase())),ae=oe((e=>e.charAt(0).toUpperCase()+e.slice(1))),ce=oe((e=>e?"on".concat(ae(e)):"")),ue=(e,t)=>!Object.is(e,t),pe=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},de=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},he=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fe;let ge;class me{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.active=!0,this.effects=[],this.cleanups=[],!e&&ge&&(this.parent=ge,this.index=(ge.scopes||(ge.scopes=[])).push(this)-1)}run(e){if(this.active){const t=ge;try{return ge=this,e()}finally{ge=t}}}on(){ge=this}off(){ge=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(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 ve=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ye=e=>(e.w&xe)>0,we=e=>(e.n&xe)>0,be=new WeakMap;let ke=0,xe=1;let _e;const Se=Symbol(""),Ce=Symbol("");class Ie{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ge;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=_e,t=Re;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=_e,_e=this,Re=!0,xe=1<<++ke,ke<=30?(e=>{let{deps:t}=e;if(t.length)for(let e=0;e<t.length;e++)t[e].w|=xe})(this):ze(this),this.fn()}finally{ke<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];ye(r)&&!we(r)?r.delete(e):t[n++]=r,r.w&=~xe,r.n&=~xe}t.length=n}})(this),xe=1<<--ke,_e=this.parent,Re=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){_e===this?this.deferStop=!0:this.active&&(ze(this),this.onStop&&this.onStop(),this.active=!1)}}function ze(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Re=!0;const Ee=[];function Ae(){Ee.push(Re),Re=!1}function Le(){const e=Ee.pop();Re=void 0===e||e}function Oe(e,t,n){if(Re&&_e){let t=be.get(e);t||be.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=ve()),je(o)}}function je(e,t){let n=!1;ke<=30?we(e)||(e.n|=xe,n=!ye(e)):n=!e.has(_e),n&&(e.add(_e),_e.deps.push(e))}function Te(e,t,n,o,r,l){const i=be.get(e);if(!i)return;let s=[];if("clear"===t)s=[...i.values()];else if("length"===n&&D(e))i.forEach(((e,t)=>{("length"===t||t>=o)&&s.push(e)}));else switch(void 0!==n&&s.push(i.get(n)),t){case"add":D(e)?te(n)&&s.push(i.get("length")):(s.push(i.get(Se)),H(e)&&s.push(i.get(Ce)));break;case"delete":D(e)||(s.push(i.get(Se)),H(e)&&s.push(i.get(Ce)));break;case"set":H(e)&&s.push(i.get(Se))}if(1===s.length)s[0]&&$e(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);$e(ve(e))}}function $e(e,t){const n=D(e)?e:[...e];for(const e of n)e.computed&&Ue(e);for(const e of n)e.computed||Ue(e)}function Ue(e,t){(e!==_e||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Pe=b("__proto__,__v_isRef,__isVue"),Me=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(Q)),Fe=He(),Ne=He(!1,!0),Ve=He(!0),Be=De();function De(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=Et(this);for(let t=0,n=this.length;t<n;t++)Oe(e,0,t+"");for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];const l=e[t](...o);return-1===l||!1===l?e[t](...o.map(Et)):l}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(){Ae();for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];const r=Et(this)[t].apply(this,n);return Le(),r}})),e}function He(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?wt:yt:t?vt:mt).get(n))return n;const l=D(n);if(!e&&l&&B(Be,o))return Reflect.get(Be,o,r);const i=Reflect.get(n,o,r);return(Q(o)?Me.has(o):Pe(o))?i:(e||Oe(n,0,o),t?i:$t(i)?l&&te(o)?i:i.value:J(i)?e?_t(i):kt(i):i)}}function We(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,o,r){let l=t[n];if(It(l)&&$t(l)&&!$t(o))return!1;if(!e&&!It(o)&&(zt(o)||(o=Et(o),l=Et(l)),!D(t)&&$t(l)&&!$t(o)))return l.value=o,!0;const i=D(t)&&te(n)?Number(n)<t.length:B(t,n),s=Reflect.set(t,n,o,r);return t===Et(r)&&(i?ue(o,l)&&Te(t,"set",n,o):Te(t,"add",n,o)),s}}const qe={get:Fe,set:We(),deleteProperty:function(e,t){const n=B(e,t),o=Reflect.deleteProperty(e,t);return o&&n&&Te(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return Q(t)&&Me.has(t)||Oe(e,0,t),n},ownKeys:function(e){return Oe(e,0,D(e)?"length":Se),Reflect.ownKeys(e)}},Ze={get:Ve,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},Ge=F({},qe,{get:Ne,set:We(!0)}),Qe=e=>e,Je=e=>Reflect.getPrototypeOf(e);function Ke(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=Et(e=e.__v_raw),l=Et(t);n||(t!==l&&Oe(r,0,t),Oe(r,0,l));const{has:i}=Je(r),s=o?Qe:n?Ot:Lt;return i.call(r,t)?s(e.get(t)):i.call(r,l)?s(e.get(l)):void(e!==r&&e.get(t))}function Ye(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,o=Et(n),r=Et(e);return t||(e!==r&&Oe(o,0,e),Oe(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&Oe(Et(e),0,Se),Reflect.get(e,"size",e)}function et(e){e=Et(e);const t=Et(this);return Je(t).has.call(t,e)||(t.add(e),Te(t,"add",e,e)),this}function tt(e,t){t=Et(t);const n=Et(this),{has:o,get:r}=Je(n);let l=o.call(n,e);l||(e=Et(e),l=o.call(n,e));const i=r.call(n,e);return n.set(e,t),l?ue(t,i)&&Te(n,"set",e,t):Te(n,"add",e,t),this}function nt(e){const t=Et(this),{has:n,get:o}=Je(t);let r=n.call(t,e);r||(e=Et(e),r=n.call(t,e)),o&&o.call(t,e);const l=t.delete(e);return r&&Te(t,"delete",e,void 0),l}function ot(){const e=Et(this),t=0!==e.size,n=e.clear();return t&&Te(e,"clear",void 0,void 0),n}function rt(e,t){return function(n,o){const r=this,l=r.__v_raw,i=Et(l),s=t?Qe:e?Ot:Lt;return!e&&Oe(i,0,Se),l.forEach(((e,t)=>n.call(o,s(e),s(t),r)))}}function lt(e,t,n){return function(){const o=this.__v_raw,r=Et(o),l=H(r),i="entries"===e||e===Symbol.iterator&&l,s="keys"===e&&l,a=o[e](...arguments),c=n?Qe:t?Ot:Lt;return!t&&Oe(r,0,s?Ce:Se),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:i?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function it(e){return function(){return"delete"!==e&&this}}function st(){const e={get(e){return Ke(this,e)},get size(){return Xe(this)},has:Ye,add:et,set:tt,delete:nt,clear:ot,forEach:rt(!1,!1)},t={get(e){return Ke(this,e,!1,!0)},get size(){return Xe(this)},has:Ye,add:et,set:tt,delete:nt,clear:ot,forEach:rt(!1,!0)},n={get(e){return Ke(this,e,!0)},get size(){return Xe(this,!0)},has(e){return Ye.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!1)},o={get(e){return Ke(this,e,!0,!0)},get size(){return Xe(this,!0)},has(e){return Ye.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=lt(r,!1,!1),n[r]=lt(r,!0,!1),t[r]=lt(r,!1,!0),o[r]=lt(r,!0,!0)})),[e,n,t,o]}const[at,ct,ut,pt]=st();function dt(e,t){const n=t?e?pt:ut:e?ct:at;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(B(n,o)&&o in t?n:t,o,r)}const ht={get:dt(!1,!1)},ft={get:dt(!1,!0)},gt={get:dt(!0,!1)},mt=new WeakMap,vt=new WeakMap,yt=new WeakMap,wt=new WeakMap;function bt(e){return e.__v_skip||!Object.isExtensible(e)?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=>X(e).slice(8,-1))(e))}function kt(e){return It(e)?e:St(e,!1,qe,ht,mt)}function xt(e){return St(e,!1,Ge,ft,vt)}function _t(e){return St(e,!0,Ze,gt,yt)}function St(e,t,n,o,r){if(!J(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const l=r.get(e);if(l)return l;const i=bt(e);if(0===i)return e;const s=new Proxy(e,2===i?o:n);return r.set(e,s),s}function Ct(e){return It(e)?Ct(e.__v_raw):!(!e||!e.__v_isReactive)}function It(e){return!(!e||!e.__v_isReadonly)}function zt(e){return!(!e||!e.__v_isShallow)}function Rt(e){return Ct(e)||It(e)}function Et(e){const t=e&&e.__v_raw;return t?Et(t):e}function At(e){return de(e,"__v_skip",!0),e}const Lt=e=>J(e)?kt(e):e,Ot=e=>J(e)?_t(e):e;function jt(e){Re&&_e&&je((e=Et(e)).dep||(e.dep=ve()))}function Tt(e,t){(e=Et(e)).dep&&$e(e.dep)}function $t(e){return!(!e||!0!==e.__v_isRef)}function Ut(e){return Mt(e,!1)}function Pt(e){return Mt(e,!0)}function Mt(e,t){return $t(e)?e:new Ft(e,t)}class Ft{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Et(e),this._value=t?e:Lt(e)}get value(){return jt(this),this._value}set value(e){e=this.__v_isShallow?e:Et(e),ue(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Lt(e),Tt(this))}}function Nt(e){return $t(e)?e.value:e}const Vt={get:(e,t,n)=>Nt(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return $t(r)&&!$t(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Bt(e){return Ct(e)?e:new Proxy(e,Vt)}class Dt{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Ie(e,(()=>{this._dirty||(this._dirty=!0,Tt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Et(this);return jt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Ht(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){qt(e,t,n)}return r}function Wt(e,t,n,o){if(Z(e)){const r=Ht(e,t,n,o);return r&&K(r)&&r.catch((e=>{qt(e,t,n)})),r}const r=[];for(let l=0;l<e.length;l++)r.push(Wt(e[l],t,n,o));return r}function qt(e,t,n){let o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r=t?t.vnode:null;if(t){let o=t.parent;const r=t.proxy,l=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,l))return;o=o.parent}const i=t.appContext.config.errorHandler;if(i)return void Ht(i,null,10,[e,r,l])}Zt(e,n,r,o)}function Zt(e,t,n){console.error(e)}let Gt=!1,Qt=!1;const Jt=[];let Kt=0;const Yt=[];let Xt=null,en=0;const tn=[];let nn=null,on=0;const rn=Promise.resolve();let ln=null,sn=null;function an(e){const t=ln||rn;return e?t.then(this?e.bind(this):e):t}function cn(e){Jt.length&&Jt.includes(e,Gt&&e.allowRecurse?Kt+1:Kt)||e===sn||(null==e.id?Jt.push(e):Jt.splice(function(e){let t=Kt+1,n=Jt.length;for(;t<n;){const o=t+n>>>1;gn(Jt[o])<e?t=o+1:n=o}return t}(e.id),0,e),un())}function un(){Gt||Qt||(Qt=!0,ln=rn.then(mn))}function pn(e,t,n,o){D(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?o+1:o)||n.push(e),un()}function dn(e){pn(e,Xt,Yt,en)}function hn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(Yt.length){for(sn=t,Xt=[...new Set(Yt)],Yt.length=0,en=0;en<Xt.length;en++)Xt[en]();Xt=null,en=0,sn=null,hn(e,t)}}function fn(e){if(hn(),tn.length){const e=[...new Set(tn)];if(tn.length=0,nn)return void nn.push(...e);for(nn=e,nn.sort(((e,t)=>gn(e)-gn(t))),on=0;on<nn.length;on++)nn[on]();nn=null,on=0}}const gn=e=>null==e.id?1/0:e.id;function mn(e){Qt=!1,Gt=!0,hn(e),Jt.sort(((e,t)=>gn(e)-gn(t)));try{for(Kt=0;Kt<Jt.length;Kt++){const e=Jt[Kt];e&&!1!==e.active&&Ht(e,null,14)}}finally{Kt=0,Jt.length=0,fn(),Gt=!1,ln=null,(Jt.length||Yt.length||tn.length)&&mn(e)}}function vn(e,t){if(e.isUnmounted)return;const n=e.vnode.props||O;for(var o=arguments.length,r=new Array(o>2?o-2:0),l=2;l<o;l++)r[l-2]=arguments[l];let i=r;const s=t.startsWith("update:"),a=s&&t.slice(7);if(a&&a in n){const e="".concat("modelValue"===a?"model":a,"Modifiers"),{number:t,trim:o}=n[e]||O;o&&(i=r.map((e=>e.trim()))),t&&(i=r.map(he))}let c,u=n[c=ce(t)]||n[c=ce(le(t))];!u&&s&&(u=n[c=ce(se(t))]),u&&Wt(u,e,6,i);const p=n[c+"Once"];if(p){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,Wt(p,e,6,i)}}function yn(e,t){const n=t.emitsCache,o=n.get(e);if(void 0!==o)return o;const r=e.emits;let l={},i=!1;return r||i?(D(r)?r.forEach((e=>l[e]=null)):F(l,r),n.set(e,l),l):(n.set(e,null),null)}function wn(e,t){return!(!e||!P(t))&&(t=t.slice(2).replace(/Once$/,""),B(e,t[0].toLowerCase()+t.slice(1))||B(e,se(t))||B(e,t))}let bn=null,kn=null;function xn(e){const t=bn;return bn=e,kn=e&&e.type.__scopeId||null,t}function _n(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:l,propsOptions:[i],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=xn(e);try{if(4&n.shapeFlag){const e=r||o;m=Ho(u.call(e,e,p,l,h,d,f)),v=a}else{const e=t;m=Ho(e.length>1?e(l,{attrs:a,slots:s,emit:c}):e(l,null)),v=t.props?a:Sn(a)}}catch(t){Co.length=0,qt(t,e,1),m=Fo(_o)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some(M)&&(v=Cn(v,i)),w=Vo(w,v))}return n.dirs&&(w=Vo(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,xn(y),m}const Sn=e=>{let t;for(const n in e)("class"===n||"style"===n||P(n))&&((t||(t={}))[n]=e[n]);return t},Cn=(e,t)=>{const n={};for(const o in e)M(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function In(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const l=o[r];if(t[l]!==e[l]&&!wn(n,l))return!0}return!1}const zn=e=>e.__isSuspense;function Rn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=Ko||bn;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&Z(t)?t.call(o.proxy):t}}function En(e,t){return On(e,null,t)}const An={};function Ln(e,t,n){return On(e,t,n)}function On(e,t){let{immediate:n,deep:o,flush:r,onTrack:l,onTrigger:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;const s=Ko;let a,c,u=!1,p=!1;if($t(e)?(a=()=>e.value,u=zt(e)):Ct(e)?(a=()=>e,o=!0):D(e)?(p=!0,u=e.some((e=>Ct(e)||zt(e))),a=()=>e.map((e=>$t(e)?e.value:Ct(e)?jn(e):Z(e)?Ht(e,s,2):void 0))):a=Z(e)?t?()=>Ht(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),Wt(e,s,3,[d])}:T,t&&o){const e=a;a=()=>jn(e())}let d=e=>{c=m.onStop=()=>{Ht(e,s,4)}};if(nr)return d=T,t?n&&Wt(t,s,3,[a(),p?[]:void 0,d]):a(),T;let h=p?[]:An;const f=()=>{if(m.active)if(t){const e=m.run();(o||u||(p?e.some(((e,t)=>ue(e,h[t]))):ue(e,h)))&&(c&&c(),Wt(t,s,3,[e,h===An?void 0:h,d]),h=e)}else m.run()};let g;f.allowRecurse=!!t,g="sync"===r?f:"post"===r?()=>mo(f,s&&s.suspense):()=>dn(f);const m=new Ie(a,g);return t?n?f():h=m.run():"post"===r?mo(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&N(s.scope.effects,m)}}function jn(e,t){if(!J(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),$t(e))jn(e.value,t);else if(D(e))for(let n=0;n<e.length;n++)jn(e[n],t);else if(W(e)||H(e))e.forEach((e=>{jn(e,t)}));else if(ee(e))for(const n in e)jn(e[n],t);return e}function Tn(e){return Z(e)?{setup:e,name:e.name}:e}const $n=e=>!!e.type.__asyncLoader;function Un(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ko,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=function(){if(n.isUnmounted)return;Ae(),Xo(n);for(var o=arguments.length,r=new Array(o),l=0;l<o;l++)r[l]=arguments[l];const i=Wt(t,n,e,r);return er(),Le(),i});return o?r.unshift(l):r.push(l),l}}const Pn=e=>function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ko;return(!nr||"sp"===e)&&Un(e,t,n)},Mn=Pn("m"),Fn=Pn("bum"),Nn=Pn("um");function Vn(e,t){const n=bn;if(null===n)return e;const o=ir(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,l,i,s=O]=t[e];Z(n)&&(n={mounted:n,updated:n}),n.deep&&jn(l),r.push({dir:n,instance:o,value:l,oldValue:void 0,arg:i,modifiers:s})}return e}function Bn(e,t,n,o){const r=e.dirs,l=t&&t.dirs;for(let i=0;i<r.length;i++){const s=r[i];l&&(s.oldValue=l[i].value);let a=s.dir[o];a&&(Ae(),Wt(a,n,8,[e.el,s,e,t]),Le())}}const Dn="components";function Hn(e,t){return function(e,t){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=bn||Ko;if(o){const r=o.type;if(e===Dn){const e=sr(r,!1);if(e&&(e===t||e===le(t)||e===ae(le(t))))return r}const l=qn(o[e]||r[e],t)||qn(o.appContext[e],t);return!l&&n?r:l}}(Dn,e,!0,t)||e}const Wn=Symbol();function qn(e,t){return e&&(e[t]||e[le(t)]||e[ae(le(t))])}function Zn(e,t,n,o){let r;const l=n&&n[o];if(D(e)||G(e)){r=new Array(e.length);for(let n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,void 0,l&&l[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,l&&l[n])}else if(J(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,l&&l[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;o<i;o++){const i=n[o];r[o]=t(e[i],i,o,l&&l[o])}}else r=[];return n&&(n[o]=r),r}const Gn=e=>e?tr(e)?ir(e)||e.proxy:Gn(e.parent):null,Qn=F(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=>Gn(e.parent),$root:e=>Gn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>cn(e.update)),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>T}),Jn={get(e,t){let{_:n}=e;const{ctx:o,setupState:r,data:l,props:i,accessCache:s,type:a,appContext:c}=n;let u;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return r[t];case 2:return l[t];case 4:return o[t];case 3:return i[t]}else{if(r!==O&&B(r,t))return s[t]=1,r[t];if(l!==O&&B(l,t))return s[t]=2,l[t];if((u=n.propsOptions[0])&&B(u,t))return s[t]=3,i[t];if(o!==O&&B(o,t))return s[t]=4,o[t];s[t]=0}}const p=Qn[t];let d,h;return p?("$attrs"===t&&Oe(n,0,t),p(n)):(d=a.__cssModules)&&(d=d[t])?d:o!==O&&B(o,t)?(s[t]=4,o[t]):(h=c.config.globalProperties,B(h,t)?h[t]:void 0)},set(e,t,n){let{_:o}=e;const{data:r,setupState:l,ctx:i}=o;return l!==O&&B(l,t)?(l[t]=n,!0):r!==O&&B(r,t)?(r[t]=n,!0):!B(o.props,t)&&(("$"!==t[0]||!(t.slice(1)in o))&&(i[t]=n,!0))},has(e,t){let n,{_:{data:o,setupState:r,accessCache:l,ctx:i,appContext:s,propsOptions:a}}=e;return!!l[t]||o!==O&&B(o,t)||r!==O&&B(r,t)||(n=a[0])&&B(n,t)||B(i,t)||B(Qn,t)||B(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:B(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Kn(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r={},l={};de(l,$o,1),e.propsDefaults=Object.create(null),Yn(e,t,r,l);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:xt(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function Yn(e,t,n,o){const[r,l]=e.propsOptions;let i,s=!1;if(t)for(let a in t){if(ne(a))continue;const c=t[a];let u;r&&B(r,u=le(a))?l&&l.includes(u)?(i||(i={}))[u]=c:n[u]=c:wn(e.emitsOptions,a)||a in o&&c===o[a]||(o[a]=c,s=!0)}if(l){const t=Et(n),o=i||O;for(let i=0;i<l.length;i++){const s=l[i];n[s]=Xn(r,t,s,o[s],e,!B(o,s))}}return s}function Xn(e,t,n,o,r,l){const i=e[n];if(null!=i){const e=B(i,"default");if(e&&void 0===o){const e=i.default;if(i.type!==Function&&Z(e)){const{propsDefaults:l}=r;n in l?o=l[n]:(Xo(r),o=l[n]=e.call(null,t),er())}else o=e}i[0]&&(l&&!e?o=!1:!i[1]||""!==o&&o!==se(n)||(o=!0))}return o}function eo(e,t){const n=t.propsCache,o=n.get(e);if(o)return o;const r=e.props,l={},i=[];let s=!1;if(!r&&!s)return n.set(e,j),j;if(D(r))for(let e=0;e<r.length;e++){const t=le(r[e]);to(t)&&(l[t]=O)}else if(r)for(const e in r){const t=le(e);if(to(t)){const n=r[e],o=l[t]=D(n)||Z(n)?{type:n}:n;if(o){const e=ro(Boolean,o.type),n=ro(String,o.type);o[0]=e>-1,o[1]=n<0||e<n,(e>-1||B(o,"default"))&&i.push(t)}}}const a=[l,i];return n.set(e,a),a}function to(e){return"$"!==e[0]}function no(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function oo(e,t){return no(e)===no(t)}function ro(e,t){return D(t)?t.findIndex((t=>oo(t,e))):Z(t)&&oo(t,e)?0:-1}const lo=e=>"_"===e[0]||"$stable"===e,io=e=>D(e)?e.map(Ho):[Ho(e)],so=(e,t,n)=>{if(t._n)return t;const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bn;if(!t)return e;if(e._n)return e;const n=function(){n._d&&Eo(-1);const o=xn(t),r=e(...arguments);return xn(o),n._d&&Eo(1),r};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return io(t(...arguments))}),n);return o._c=!1,o},ao=(e,t,n)=>{const o=e._ctx;for(const n in e){if(lo(n))continue;const r=e[n];if(Z(r))t[n]=so(0,r,o);else if(null!=r){const e=io(r);t[n]=()=>e}}},co=(e,t)=>{const n=io(t);e.slots.default=()=>n},uo=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Et(t),de(t,"_",n)):ao(t,e.slots={})}else e.slots={},t&&co(e,t);de(e.slots,$o,1)};function po(){return{app:null,config:{isNativeTag:$,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ho=0;function fo(e,t){return function(n){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Z(n)||(n=Object.assign({},n)),null==o||J(o)||(o=null);const r=po(),l=new Set;let i=!1;const s=r.app={_uid:ho++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:pr,get config(){return r.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return l.has(e)||(e&&Z(e.install)?(l.add(e),e.install(s,...n)):Z(e)&&(l.add(e),e(s,...n))),s},mixin:e=>s,component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(l,a,c){if(!i){const u=Fo(n,o);return u.appContext=r,a&&t?t(u,l):e(u,l,c),i=!0,s._container=l,l.__vue_app__=s,ir(u.component)||u.component.proxy}},unmount(){i&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s)};return s}}function go(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(D(e))return void e.forEach(((e,l)=>go(e,t&&(D(t)?t[l]:t),n,o,r)));if($n(o)&&!r)return;const l=4&o.shapeFlag?ir(o.component)||o.component.proxy:o.el,i=r?null:l,{i:s,r:a}=e,c=t&&t.r,u=s.refs===O?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(G(c)?(u[c]=null,B(p,c)&&(p[c]=null)):$t(c)&&(c.value=null)),Z(a))Ht(a,s,12,[i,u]);else{const t=G(a),o=$t(a);if(t||o){const s=()=>{if(e.f){const n=t?u[a]:a.value;r?D(n)&&N(n,l):D(n)?n.includes(l)||n.push(l):t?(u[a]=[l],B(p,a)&&(p[a]=u[a])):(a.value=[l],e.k&&(u[e.k]=a.value))}else t?(u[a]=i,B(p,a)&&(p[a]=i)):o&&(a.value=i,e.k&&(u[e.k]=i))};i?(s.id=-1,mo(s,n)):s()}}}const mo=function(e,t){t&&t.pendingBranch?D(e)?t.effects.push(...e):t.effects.push(e):pn(e,nn,tn,on)};function vo(e){return function(e,t){(fe||(fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:o,patchProp:r,createElement:l,createText:i,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=T,cloneNode:h,insertStaticContent:f}=e,g=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e===t)return;e&&!To(e,t)&&(o=G(e),D(e,r,l,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case xo:m(e,t,n,o);break;case _o:v(e,t,n,o);break;case So:null==e&&y(t,n,o,i);break;case ko:R(e,t,n,o,r,l,i,s,a);break;default:1&p?k(e,t,n,o,r,l,i,s,a):6&p?E(e,t,n,o,r,l,i,s,a):(64&p||128&p)&&c.process(e,t,n,o,r,l,i,s,a,J)}null!=u&&r&&go(u,e&&e.ref,l,t||e,!t)},m=(e,t,o,r)=>{if(null==e)n(t.el=i(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,o,r)=>{null==e?n(t.el=s(t.children||""),o,r):t.el=e.el},y=(e,t,n,o)=>{[e.el,e.anchor]=f(e.children,t,n,o,e.el,e.anchor)},w=(e,t,o)=>{let r,{el:l,anchor:i}=e;for(;l&&l!==i;)r=p(l),n(l,t,o),l=r;n(i,t,o)},b=e=>{let t,{el:n,anchor:r}=e;for(;n&&n!==r;)t=p(n),o(n),n=t;o(r)},k=(e,t,n,o,r,l,i,s,a)=>{i=i||"svg"===t.type,null==e?x(t,n,o,r,l,i,s,a):C(e,t,r,l,i,s,a)},x=(e,t,o,i,s,a,u,p)=>{let d,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:b}=e;if(e.el&&void 0!==h&&-1===w)d=e.el=h(e.el);else{if(d=e.el=l(e.type,a,m&&m.is,m),8&v?c(d,e.children):16&v&&S(e.children,d,null,i,s,a&&"foreignObject"!==g,u,p),b&&Bn(e,null,i,"created"),m){for(const t in m)"value"===t||ne(t)||r(d,t,null,m[t],a,e.children,i,s,Z);"value"in m&&r(d,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Go(f,i,e)}_(d,e,e.scopeId,u,i)}b&&Bn(e,null,i,"beforeMount");const k=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;k&&y.beforeEnter(d),n(d,t,o),((f=m&&m.onVnodeMounted)||k||b)&&mo((()=>{f&&Go(f,i,e),k&&y.enter(d),b&&Bn(e,null,i,"mounted")}),s)},_=(e,t,n,o,r)=>{if(n&&d(e,n),o)for(let t=0;t<o.length;t++)d(e,o[t]);if(r){if(t===r.subTree){const t=r.vnode;_(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},S=function(e,t,n,o,r,l,i,s){for(let a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;a<e.length;a++){const c=e[a]=s?Wo(e[a]):Ho(e[a]);g(null,c,t,n,o,r,l,i,s)}},C=(e,t,n,o,l,i,s)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||O,f=t.props||O;let g;n&&yo(n,!1),(g=f.onVnodeBeforeUpdate)&&Go(g,n,t,e),d&&Bn(t,e,n,"beforeUpdate"),n&&yo(n,!0);const m=l&&"foreignObject"!==t.type;if(p?I(e.dynamicChildren,p,a,n,o,m,i):s||P(e,t,a,null,n,o,m,i,!1),u>0){if(16&u)z(a,t,h,f,n,o,l);else if(2&u&&h.class!==f.class&&r(a,"class",null,f.class,l),4&u&&r(a,"style",h.style,f.style,l),8&u){const i=t.dynamicProps;for(let t=0;t<i.length;t++){const s=i[t],c=h[s],u=f[s];u===c&&"value"!==s||r(a,s,c,u,l,e.children,n,o,Z)}}1&u&&e.children!==t.children&&c(a,t.children)}else s||null!=p||z(a,t,h,f,n,o,l);((g=f.onVnodeUpdated)||d)&&mo((()=>{g&&Go(g,n,t,e),d&&Bn(t,e,n,"updated")}),o)},I=(e,t,n,o,r,l,i)=>{for(let s=0;s<t.length;s++){const a=e[s],c=t[s],p=a.el&&(a.type===ko||!To(a,c)||70&a.shapeFlag)?u(a.el):n;g(a,c,p,null,o,r,l,i,!0)}},z=(e,t,n,o,l,i,s)=>{if(n!==o){for(const a in o){if(ne(a))continue;const c=o[a],u=n[a];c!==u&&"value"!==a&&r(e,a,u,c,s,t.children,l,i,Z)}if(n!==O)for(const a in n)ne(a)||a in o||r(e,a,n[a],null,s,t.children,l,i,Z);"value"in o&&r(e,"value",n.value,o.value)}},R=(e,t,o,r,l,s,a,c,u)=>{const p=t.el=e?e.el:i(""),d=t.anchor=e?e.anchor:i("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,o,r),n(d,o,r),S(t.children,o,d,l,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(I(e.dynamicChildren,f,o,l,s,a,c),(null!=t.key||l&&t===l.subTree)&&wo(e,t,!0)):P(e,t,o,d,l,s,a,c,u)},E=(e,t,n,o,r,l,i,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,a):A(t,n,o,r,l,i,a):L(e,t,a)},A=(e,t,n,o,r,l,i)=>{const s=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||Qo,l={uid:Jo++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new me(!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:eo(o,r),emitsOptions:yn(o,r),emit:null,emitted:null,propsDefaults:O,inheritAttrs:o.inheritAttrs,ctx:O,data:O,props:O,attrs:O,slots:O,refs:O,setupState:O,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};l.ctx={_:l},l.root=t?t.root:l,l.emit=vn.bind(null,l),e.ce&&e.ce(l);return l}(e,o,r);if(e.type.__isKeepAlive&&(s.ctx.renderer=J),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];nr=t;const{props:n,children:o}=e.vnode,r=tr(e);Kn(e,n,r,t),uo(e,o);const l=r?or(e,t):void 0;nr=!1}(s),s.asyncDep){if(r&&r.registerDep(s,$),!e.el){const e=s.subTree=Fo(_o);v(null,e,t,n)}}else $(s,e,t,n,r,l,i)},L=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:l}=e,{props:i,children:s,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!r&&!s||s&&s.$stable)||o!==i&&(o?!i||In(o,i,c):!!i);if(1024&a)return!0;if(16&a)return o?In(o,i,c):!!i;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(i[n]!==o[n]&&!wn(c,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void U(o,t,n);o.next=t,function(e){const t=Jt.indexOf(e);t>Kt&&Jt.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},$=(e,t,n,o,r,l,i)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:o,u:s,parent:a,vnode:c}=e,p=n;yo(e,!1),n?(n.el=c.el,U(e,n,i)):n=c,o&&pe(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Go(t,a,n,c),yo(e,!0);const d=_n(e),h=e.subTree;e.subTree=d,g(h,d,u(h.el),G(h),e,r,l),n.el=d.el,null===p&&function(e,t){let{vnode:n,parent:o}=e;for(;o&&o.subTree===n;)(n=o.vnode).el=t,o=o.parent}(e,d.el),s&&mo(s,r),(t=n.props&&n.props.onVnodeUpdated)&&mo((()=>Go(t,a,n,c)),r)}else{let i;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=$n(t);if(yo(e,!1),c&&pe(c),!d&&(i=a&&a.onVnodeBeforeMount)&&Go(i,p,t),yo(e,!0),s&&Y){const n=()=>{e.subTree=_n(e),Y(s,e.subTree,e,r,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=_n(e);g(null,i,n,o,e,r,l),t.el=i.el}if(u&&mo(u,r),!d&&(i=a&&a.onVnodeMounted)){const e=t;mo((()=>Go(i,p,e)),r)}(256&t.shapeFlag||p&&$n(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&mo(e.a,r),e.isMounted=!0,t=n=o=null}},a=e.effect=new Ie(s,(()=>cn(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,yo(e,!0),c()},U=(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:l,vnode:{patchFlag:i}}=e,s=Et(r),[a]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;Yn(e,t,r,l)&&(c=!0);for(const l in s)t&&(B(t,l)||(o=se(l))!==l&&B(t,o))||(a?!n||void 0===n[l]&&void 0===n[o]||(r[l]=Xn(a,s,l,void 0,e,!0)):delete r[l]);if(l!==s)for(const e in l)t&&B(t,e)||(delete l[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let i=n[o];if(wn(e.emitsOptions,i))continue;const u=t[i];if(a)if(B(l,i))u!==l[i]&&(l[i]=u,c=!0);else{const t=le(i);r[t]=Xn(a,s,t,u,e,!1)}else u!==l[i]&&(l[i]=u,c=!0)}}c&&Te(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:r}=e;let l=!0,i=O;if(32&o.shapeFlag){const e=t._;e?n&&1===e?l=!1:(F(r,t),n||1!==e||delete r._):(l=!t.$stable,ao(t,r)),i=t}else t&&(co(e,t),i={default:1});if(l)for(const e in r)lo(e)||e in i||delete r[e]})(e,t.children,n),Ae(),hn(void 0,e.update),Le()},P=function(e,t,n,o,r,l,i,s){let a=arguments.length>8&&void 0!==arguments[8]&&arguments[8];const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void N(u,d,n,o,r,l,i,s,a);if(256&h)return void M(u,d,n,o,r,l,i,s,a)}8&f?(16&p&&Z(u,r,l),d!==u&&c(n,d)):16&p?16&f?N(u,d,n,o,r,l,i,s,a):Z(u,r,l,!0):(8&p&&c(n,""),16&f&&S(d,n,o,r,l,i,s,a))},M=(e,t,n,o,r,l,i,s,a)=>{t=t||j;const c=(e=e||j).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const o=t[d]=a?Wo(t[d]):Ho(t[d]);g(e[d],o,n,null,r,l,i,s,a)}c>u?Z(e,r,l,!0,!1,p):S(t,n,o,r,l,i,s,a,p)},N=(e,t,n,o,r,l,i,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const o=e[c],u=t[c]=a?Wo(t[c]):Ho(t[c]);if(!To(o,u))break;g(o,u,n,null,r,l,i,s,a),c++}for(;c<=p&&c<=d;){const o=e[p],c=t[d]=a?Wo(t[d]):Ho(t[d]);if(!To(o,c))break;g(o,c,n,null,r,l,i,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:o;for(;c<=d;)g(null,t[c]=a?Wo(t[c]):Ho(t[c]),n,p,r,l,i,s,a),c++}}else if(c>d)for(;c<=p;)D(e[c],r,l,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=d;c++){const e=t[c]=a?Wo(t[c]):Ho(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const w=d-f+1;let b=!1,k=0;const x=new Array(w);for(c=0;c<w;c++)x[c]=0;for(c=h;c<=p;c++){const o=e[c];if(y>=w){D(o,r,l,!0);continue}let u;if(null!=o.key)u=m.get(o.key);else for(v=f;v<=d;v++)if(0===x[v-f]&&To(o,t[v])){u=v;break}void 0===u?D(o,r,l,!0):(x[u-f]=c+1,u>=k?k=u:b=!0,g(o,t[u],n,null,r,l,i,s,a),y++)}const _=b?function(e){const t=e.slice(),n=[0];let o,r,l,i,s;const a=e.length;for(o=0;o<a;o++){const a=e[o];if(0!==a){if(r=n[n.length-1],e[r]<a){t[o]=r,n.push(o);continue}for(l=0,i=n.length-1;l<i;)s=l+i>>1,e[n[s]]<a?l=s+1:i=s;a<e[n[l]]&&(l>0&&(t[o]=n[l-1]),n[l]=o)}}l=n.length,i=n[l-1];for(;l-- >0;)n[l]=i,i=t[i];return n}(x):j;for(v=_.length-1,c=w-1;c>=0;c--){const e=f+c,p=t[e],d=e+1<u?t[e+1].el:o;0===x[c]?g(null,p,n,d,r,l,i,s,a):b&&(v<0||c!==_[v]?V(p,n,d,2):v--)}}},V=function(e,t,o,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const{el:i,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void V(e.component.subTree,t,o,r);if(128&u)return void e.suspense.move(t,o,r);if(64&u)return void s.move(e,t,o,J);if(s===ko){n(i,t,o);for(let e=0;e<c.length;e++)V(c[e],t,o,r);return void n(e.anchor,t,o)}if(s===So)return void w(e,t,o);if(2!==r&&1&u&&a)if(0===r)a.beforeEnter(i),n(i,t,o),mo((()=>a.enter(i)),l);else{const{leave:e,delayLeave:r,afterLeave:l}=a,s=()=>n(i,t,o),c=()=>{e(i,(()=>{s(),l&&l()}))};r?r(i,s,c):c()}else n(i,t,o)},D=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{type:l,props:i,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&go(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!$n(e);let g;if(f&&(g=i&&i.onVnodeBeforeUnmount)&&Go(g,t,e),6&u)q(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&Bn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,J,o):c&&(l!==ko||p>0&&64&p)?Z(c,t,n,!1,!0):(l===ko&&384&p||!r&&16&u)&&Z(a,t,n),o&&H(e)}(f&&(g=i&&i.onVnodeUnmounted)||h)&&mo((()=>{g&&Go(g,t,e),h&&Bn(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:r,transition:l}=e;if(t===ko)return void W(n,r);if(t===So)return void b(e);const i=()=>{o(n),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&e.shapeFlag&&l&&!l.persisted){const{leave:t,delayLeave:o}=l,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},W=(e,t)=>{let n;for(;e!==t;)n=p(e),o(e),e=n;o(t)},q=(e,t,n)=>{const{bum:o,scope:r,update:l,subTree:i,um:s}=e;o&&pe(o),r.stop(),l&&(l.active=!1,D(i,e,t,n)),s&&mo(s,t),mo((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Z=function(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];for(let l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;l<e.length;l++)D(e[l],t,n,o,r)},G=e=>6&e.shapeFlag?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),Q=(e,t,n)=>{null==e?t._vnode&&D(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),fn(),t._vnode=e},J={p:g,um:D,m:V,r:H,mt:A,mc:S,pc:P,pbc:I,n:G,o:e};let K,Y;t&&([K,Y]=t(J));return{render:Q,hydrate:K,createApp:fo(Q,K)}}(e)}function yo(e,t){let{effect:n,update:o}=e;n.allowRecurse=o.allowRecurse=t}function wo(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=e.children,r=t.children;if(D(o)&&D(r))for(let e=0;e<o.length;e++){const t=o[e];let l=r[e];1&l.shapeFlag&&!l.dynamicChildren&&((l.patchFlag<=0||32===l.patchFlag)&&(l=r[e]=Wo(r[e]),l.el=t.el),n||wo(t,l))}}const bo=e=>e.__isTeleport,ko=Symbol(void 0),xo=Symbol(void 0),_o=Symbol(void 0),So=Symbol(void 0),Co=[];let Io=null;function zo(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Co.push(Io=e?null:[])}let Ro=1;function Eo(e){Ro+=e}function Ao(e){return e.dynamicChildren=Ro>0?Io||j:null,Co.pop(),Io=Co[Co.length-1]||null,Ro>0&&Io&&Io.push(e),e}function Lo(e,t,n,o,r,l){return Ao(Mo(e,t,n,o,r,l,!0))}function Oo(e,t,n,o,r){return Ao(Fo(e,t,n,o,r,!0))}function jo(e){return!!e&&!0===e.__v_isVNode}function To(e,t){return e.type===t.type&&e.key===t.key}const $o="__vInternal",Uo=e=>{let{key:t}=e;return null!=t?t:null},Po=e=>{let{ref:t,ref_key:n,ref_for:o}=e;return null!=t?G(t)||$t(t)||Z(t)?{i:bn,r:t,k:n,f:!!o}:t:null};function Mo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===ko?0:1,i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Uo(t),ref:t&&Po(t),scopeId:kn,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:l,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return s?(qo(a,n),128&l&&e.normalize(a)):n&&(a.shapeFlag|=G(n)?8:16),Ro>0&&!i&&Io&&(a.patchFlag>0||6&l)&&32!==a.patchFlag&&Io.push(a),a}const Fo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,l=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==Wn||(e=_o);if(jo(e)){const o=Vo(e,t,!0);return n&&qo(o,n),Ro>0&&!l&&Io&&(6&o.shapeFlag?Io[Io.indexOf(e)]=o:Io.push(o)),o.patchFlag|=-2,o}ar(e)&&(e=e.__vccOpts);if(t){t=No(t);let{class:e,style:n}=t;e&&!G(e)&&(t.class=z(e)),J(n)&&(Rt(n)&&!D(n)&&(n=F({},n)),t.style=_(n))}const i=G(e)?1:zn(e)?128:bo(e)?64:J(e)?4:Z(e)?2:0;return Mo(e,t,n,o,r,i,l,!0)};function No(e){return e?Rt(e)||$o in e?F({},e):e:null}function Vo(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{props:o,ref:r,patchFlag:l,children:i}=e,s=t?Zo(o||{},t):o,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Uo(s),ref:t&&t.ref?n&&r?D(r)?r.concat(Po(t)):[r,Po(t)]:Po(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ko?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vo(e.ssContent),ssFallback:e.ssFallback&&Vo(e.ssFallback),el:e.el,anchor:e.anchor};return a}function Bo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Fo(xo,null,e,t)}function Do(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(zo(),Oo(_o,null,e)):Fo(_o,null,e)}function Ho(e){return null==e||"boolean"==typeof e?Fo(_o):D(e)?Fo(ko,null,e.slice()):"object"==typeof e?Wo(e):Fo(xo,null,String(e))}function Wo(e){return null===e.el||e.memo?e:Vo(e)}function qo(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(D(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),qo(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||$o in t?3===o&&bn&&(1===bn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=bn}}else Z(t)?(t={default:t,_ctx:bn},n=32):(t=String(t),64&o?(n=16,t=[Bo(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zo(){const e={};for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];for(const t in n)if("class"===t)e.class!==n.class&&(e.class=z([e.class,n.class]));else if("style"===t)e.style=_([e.style,n.style]);else if(P(t)){const o=e[t],r=n[t];!r||o===r||D(o)&&o.includes(r)||(e[t]=o?[].concat(o,r):r)}else""!==t&&(e[t]=n[t])}return e}function Go(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Wt(e,t,7,[n,o])}const Qo=po();let Jo=0;let Ko=null;const Yo=()=>Ko||bn,Xo=e=>{Ko=e,e.scope.on()},er=()=>{Ko&&Ko.scope.off(),Ko=null};function tr(e){return 4&e.vnode.shapeFlag}let nr=!1;function or(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=At(new Proxy(e.ctx,Jn));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)=>(Oe(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Xo(e),Ae();const r=Ht(o,e,0,[e.props,n]);if(Le(),er(),K(r)){if(r.then(er,er),t)return r.then((n=>{rr(e,n,t)})).catch((t=>{qt(t,e,0)}));e.asyncDep=r}else rr(e,r,t)}else lr(e,t)}function rr(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:J(t)&&(e.setupState=Bt(t)),lr(e,n)}function lr(e,t,n){const o=e.type;e.render||(e.render=o.render||T)}function ir(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Bt(At(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Qn?Qn[n](e):void 0}))}function sr(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function ar(e){return Z(e)&&"__vccOpts"in e}const cr=(e,t)=>function(e,t){let n,o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const l=Z(e);l?(n=e,o=T):(n=e.get,o=e.set);return new Dt(n,o,l||!o,r)}(e,t,nr);function ur(e,t,n){const o=arguments.length;return 2===o?J(t)&&!D(t)?jo(t)?Fo(e,null,[t]):Fo(e,t):Fo(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&jo(n)&&(n=[n]),Fo(e,t,n))}const pr="3.2.37",dr="undefined"!=typeof document?document:null,hr=dr&&dr.createElement("template"),fr={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?dr.createElementNS("http://www.w3.org/2000/svg",e):dr.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>dr.createTextNode(e),createComment:e=>dr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>dr.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,r,l){const i=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==l&&(r=r.nextSibling););else{hr.innerHTML=o?"<svg>".concat(e,"</svg>"):e;const r=hr.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function gr(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}function mr(e,t,n){const o=e.style,r=G(n);if(n&&!r){for(const e in n)yr(o,e,n[e]);if(t&&!G(t))for(const e in t)null==n[e]&&yr(o,e,"")}else{const l=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=l)}}const vr=/\s*!important$/;function yr(e,t,n){if(D(n))n.forEach((n=>yr(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=br[t];if(n)return n;let o=le(t);if("filter"!==o&&o in e)return br[t]=o;o=ae(o);for(let n=0;n<wr.length;n++){const r=wr[n]+o;if(r in e)return br[t]=r}return t}(e,t);vr.test(n)?e.setProperty(se(o),n.replace(vr,""),"important"):e[o]=n}}const wr=["Webkit","Moz","ms"],br={};const kr="http://www.w3.org/1999/xlink";function xr(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(kr,t.slice(6,t.length)):e.setAttributeNS(kr,t,n);else{const o=k(t);null==n||o&&!x(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function _r(e,t,n,o,r,l,i){if("innerHTML"===t||"textContent"===t)return o&&i(o,r,l),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=x(n):null==n&&"string"===o?(n="",s=!0):"number"===o&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}const[Sr,Cr]=(()=>{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Ir=0;const zr=Promise.resolve(),Rr=()=>{Ir=0};function Er(e,t,n,o){e.addEventListener(t,n,o)}function Ar(e,t,n,o){e.removeEventListener(t,n,o)}function Lr(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const l=e._vei||(e._vei={}),i=l[t];if(o&&i)i.value=o;else{const[n,s]=jr(t);if(o){Er(e,n,l[t]=Tr(o,r),s)}else i&&(Ar(e,n,i,s),l[t]=void 0)}}const Or=/(?:Once|Passive|Capture)$/;function jr(e){let t;if(Or.test(e)){let n;for(t={};n=e.match(Or);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[se(e.slice(2)),t]}function Tr(e,t){const n=e=>{const o=e.timeStamp||Sr();(Cr||o>=n.attached-1)&&Wt(function(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Ir||(zr.then(Rr),Ir=Sr()),n}const $r=/^on[a-z]/;function Ur(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&$r.test(t)&&Z(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!$r.test(t)||!G(n))&&t in e))))}const Pr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?e=>pe(t,e):t};function Mr(e){e.target.composing=!0}function Fr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Nr={created(e,t,n){let{modifiers:{lazy:o,trim:r,number:l}}=t;e._assign=Pr(n);const i=l||n.props&&"number"===n.props.type;Er(e,o?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;r&&(n=n.trim()),i&&(n=he(n)),e._assign(n)})),r&&Er(e,"change",(()=>{e.value=e.value.trim()})),o||(Er(e,"compositionstart",Mr),Er(e,"compositionend",Fr),Er(e,"change",Fr))},mounted(e,t){let{value:n}=t;e.value=null==n?"":n},beforeUpdate(e,t,n){let{value:o,modifiers:{lazy:r,trim:l,number:i}}=t;if(e._assign=Pr(n),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(r)return;if(l&&e.value.trim()===o)return;if((i||"number"===e.type)&&he(e.value)===o)return}const s=null==o?"":o;e.value!==s&&(e.value=s)}},Vr={deep:!0,created(e,t,n){e._assign=Pr(n),Er(e,"change",(()=>{const t=e._modelValue,n=qr(e),o=e.checked,r=e._assign;if(D(t)){const e=E(t,n),l=-1!==e;if(o&&!l)r(t.concat(n));else if(!o&&l){const n=[...t];n.splice(e,1),r(n)}}else if(W(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(Zr(e,o))}))},mounted:Br,beforeUpdate(e,t,n){e._assign=Pr(n),Br(e,t,n)}};function Br(e,t,n){let{value:o,oldValue:r}=t;e._modelValue=o,D(o)?e.checked=E(o,n.props.value)>-1:W(o)?e.checked=o.has(n.props.value):o!==r&&(e.checked=R(o,Zr(e,!0)))}const Dr={created(e,t,n){let{value:o}=t;e.checked=R(o,n.props.value),e._assign=Pr(n),Er(e,"change",(()=>{e._assign(qr(e))}))},beforeUpdate(e,t,n){let{value:o,oldValue:r}=t;e._assign=Pr(n),o!==r&&(e.checked=R(o,n.props.value))}},Hr={deep:!0,created(e,t,n){let{value:o,modifiers:{number:r}}=t;const l=W(o);Er(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>r?he(qr(e)):qr(e)));e._assign(e.multiple?l?new Set(t):t:t[0])})),e._assign=Pr(n)},mounted(e,t){let{value:n}=t;Wr(e,n)},beforeUpdate(e,t,n){e._assign=Pr(n)},updated(e,t){let{value:n}=t;Wr(e,n)}};function Wr(e,t){const n=e.multiple;if(!n||D(t)||W(t)){for(let o=0,r=e.options.length;o<r;o++){const r=e.options[o],l=qr(r);if(n)D(t)?r.selected=E(t,l)>-1:r.selected=t.has(l);else if(R(qr(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function qr(e){return"_value"in e?e._value:e.value}function Zr(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Gr={created(e,t,n){Qr(e,t,n,null,"created")},mounted(e,t,n){Qr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){Qr(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){Qr(e,t,n,o,"updated")}};function Qr(e,t,n,o,r){const l=function(e,t){switch(e){case"SELECT":return Hr;case"TEXTAREA":return Nr;default:switch(t){case"checkbox":return Vr;case"radio":return Dr;default:return Nr}}}(e.tagName,n.props&&n.props.type)[r];l&&l(e,t,n,o)}const Jr={beforeMount(e,t,n){let{value:o}=t,{transition:r}=n;e._vod="none"===e.style.display?"":e.style.display,r&&o?r.beforeEnter(e):Kr(e,o)},mounted(e,t,n){let{value:o}=t,{transition:r}=n;r&&o&&r.enter(e)},updated(e,t,n){let{value:o,oldValue:r}=t,{transition:l}=n;!o!=!r&&(l?o?(l.beforeEnter(e),Kr(e,!0),l.enter(e)):l.leave(e,(()=>{Kr(e,!1)})):Kr(e,o))},beforeUnmount(e,t){let{value:n}=t;Kr(e,n)}};function Kr(e,t){e.style.display=t?e._vod:"none"}const Yr=F({patchProp:function(e,t,n,o){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,a=arguments.length>8?arguments[8]:void 0;"class"===t?gr(e,o,r):"style"===t?mr(e,n,o):P(t)?M(t)||Lr(e,t,n,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):Ur(e,t,o,r))?_r(e,t,o,l,i,s,a):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),xr(e,t,o,r))}},fr);let Xr;function el(){return Xr||(Xr=vo(Yr))}function tl(e){if(G(e)){return document.querySelector(e)}return e}var nl;const ol="undefined"!=typeof window,rl=e=>"function"==typeof e,ll=e=>"string"==typeof e,il=()=>{};function sl(e){return"function"==typeof e?e():Nt(e)}function al(e,t){return function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];e((()=>t.apply(this,o)),{fn:t,thisArg:this,args:o})}}ol&&(null==(nl=null==window?void 0:window.navigator)?void 0:nl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const cl=e=>e();function ul(e){let t,n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=r=>{const l=sl(e),i=sl(o.maxWait);if(t&&clearTimeout(t),l<=0||void 0!==i&&i<=0)return n&&(clearTimeout(n),n=null),r();i&&!n&&(n=setTimeout((()=>{t&&clearTimeout(t),n=null,r()}),i)),t=setTimeout((()=>{n&&clearTimeout(n),n=null,r()}),l)};return r}function pl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cl;const t=Ut(!0);function n(){t.value=!1}function o(){t.value=!0}const r=function(){t.value&&e(...arguments)};return{isActive:t,pause:n,resume:o,eventFilter:r}}function dl(e){return!!ge&&(function(e){ge&&ge.cleanups.push(e)}(e),!0)}function hl(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Yo()?Mn(e):t?e():an(e)}function fl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:o=!0,immediateCallback:r=!1}=n;let l=null;const i=Ut(!1);function s(){l&&(clearInterval(l),l=null)}function a(){i.value=!1,s()}function c(){Nt(t)<=0||(i.value=!0,r&&e(),s(),l=setInterval(e,sl(t)))}if(o&&ol&&c(),$t(t)){dl(Ln(t,(()=>{i.value&&ol&&c()})))}return dl(a),{isActive:i,pause:a,resume:c}}var gl=Object.getOwnPropertySymbols,ml=Object.prototype.hasOwnProperty,vl=Object.prototype.propertyIsEnumerable,yl=(e,t)=>{var n={};for(var o in e)ml.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&gl)for(var o of gl(e))t.indexOf(o)<0&&vl.call(e,o)&&(n[o]=e[o]);return n};function wl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=n,{eventFilter:r=cl}=o,l=yl(o,["eventFilter"]);return Ln(e,al(r,t),l)}var bl=Object.defineProperty,kl=Object.defineProperties,xl=Object.getOwnPropertyDescriptors,_l=Object.getOwnPropertySymbols,Sl=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable,Il=(e,t,n)=>t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zl=(e,t)=>{for(var n in t||(t={}))Sl.call(t,n)&&Il(e,n,t[n]);if(_l)for(var n of _l(t))Cl.call(t,n)&&Il(e,n,t[n]);return e},Rl=(e,t)=>kl(e,xl(t)),El=(e,t)=>{var n={};for(var o in e)Sl.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&_l)for(var o of _l(e))t.indexOf(o)<0&&Cl.call(e,o)&&(n[o]=e[o]);return n};function Al(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=n,{eventFilter:r}=o,l=El(o,["eventFilter"]),{eventFilter:i,pause:s,resume:a,isActive:c}=pl(r),u=wl(e,t,Rl(zl({},l),{eventFilter:i}));return{stop:u,pause:s,resume:a,isActive:c}}function Ll(e){var t;const n=sl(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Ol=ol?window:void 0,jl=ol?window.document:void 0;function Tl(){let e,t,n,o;for(var r=arguments.length,l=new Array(r),i=0;i<r;i++)l[i]=arguments[i];if(ll(l[0])?([t,n,o]=l,e=Ol):[e,t,n,o]=l,!e)return il;let s=il;const a=Ln((()=>Ll(e)),(e=>{s(),e&&(e.addEventListener(t,n,o),s=()=>{e.removeEventListener(t,n,o),s=il})}),{immediate:!0,flush:"post"}),c=()=>{a(),s()};return dl(c),c}ol&&window.navigator,ol&&window.location;const $l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ul="__vueuse_ssr_handlers__";$l[Ul]=$l[Ul]||{};const Pl=$l[Ul];function Ml(e,t){return Pl[e]||t}function Fl(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}var Nl=Object.defineProperty,Vl=Object.getOwnPropertySymbols,Bl=Object.prototype.hasOwnProperty,Dl=Object.prototype.propertyIsEnumerable,Hl=(e,t,n)=>t in e?Nl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wl=(e,t)=>{for(var n in t||(t={}))Bl.call(t,n)&&Hl(e,n,t[n]);if(Vl)for(var n of Vl(t))Dl.call(t,n)&&Hl(e,n,t[n]);return e};const ql={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function Zl(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var r;const{flush:l="pre",deep:i=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:p=Ol,eventFilter:d,onError:h=(e=>{console.error(e)})}=o,f=(u?Pt:Ut)(t);if(!n)try{n=Ml("getDefaultStorage",(()=>{var e;return null==(e=Ol)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=sl(t),m=Fl(g),v=null!=(r=o.serializer)?r:ql[m],{pause:y,resume:w}=Al(f,(()=>b(f.value)),{flush:l,deep:i,eventFilter:d});return p&&s&&Tl(p,"storage",x),x(),f;function b(t){try{null==t?n.removeItem(e):n.setItem(e,v.write(t))}catch(e){h(e)}}function k(t){if(!t||t.key===e){y();try{const o=t?t.newValue:n.getItem(e);if(null==o)return a&&null!==g&&n.setItem(e,v.write(g)),g;if(!t&&c){const e=v.read(o);return rl(c)?c(e,g):"object"!==m||Array.isArray(e)?e:Wl(Wl({},g),e)}return"string"!=typeof o?o:v.read(o)}catch(e){h(e)}finally{w()}}}function x(t){t&&t.key!==e||(f.value=k(t))}}function Gl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{immediate:n=!0,window:o=Ol}=t,r=Ut(!1);let l=null;function i(){r.value&&o&&(e(),l=o.requestAnimationFrame(i))}function s(){!r.value&&o&&(r.value=!0,i())}function a(){r.value=!1,null!=l&&o&&(o.cancelAnimationFrame(l),l=null)}return n&&s(),dl(a),{isActive:r,pause:a,resume:s}}var Ql,Jl,Kl=Object.defineProperty,Yl=Object.getOwnPropertySymbols,Xl=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable,ti=(e,t,n)=>t in e?Kl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ni=(e,t)=>{for(var n in t||(t={}))Xl.call(t,n)&&ti(e,n,t[n]);if(Yl)for(var n of Yl(t))ei.call(t,n)&&ti(e,n,t[n]);return e};(Jl=Ql||(Ql={})).UP="UP",Jl.RIGHT="RIGHT",Jl.DOWN="DOWN",Jl.LEFT="LEFT",Jl.NONE="NONE";let oi=0;var ri=Object.defineProperty,li=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable,ai=(e,t,n)=>t in e?ri(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))ii.call(t,n)&&ai(e,n,t[n]);if(li)for(var n of li(t))si.call(t,n)&&ai(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const ci=e=>{try{e=decodeURI(e)}catch(e){}return e},ui=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},pi=e=>/^(https?:)?\/\//.test(e),di=e=>{const t=ui(e);return pi(t)?t:"https://".concat(t)},hi=e=>Array.isArray(e)?e:!!e&&[0,e],fi=(e,t)=>"function"==typeof e?e:!1!==e&&t,gi="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-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}",mi=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},vi=(e,t,n)=>{if(!e)return"";const o="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,r=t.getTime()-o.getTime(),l=Math.floor(r/864e5);if(0===l){const e=r%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,o=Math.floor(t/6e4);if(0===o){const e=t%6e4,o=Math.round(e/1e3);return"".concat(o," ").concat(n.seconds)}return"".concat(o," ").concat(n.minutes)}return"".concat(t," ").concat(n.hours)}return l<0?n.now:l<8?"".concat(l," ").concat(n.days):(e=>{const t=mi(e.getDate(),2),n=mi(e.getMonth()+1,2),o=mi(e.getFullYear(),2);return"".concat(o,"-").concat(n,"-").concat(t)})(o)},yi=e=>{const t=Zl("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch("".concat(e,"/info.json")).then((e=>e.json())).then((o=>{const r={folder:e,...o};return n&&(t.value[e]=r),r}))},wi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"".concat(t?"".concat(t,"/"):"").concat(n).concat(e).concat(o?".".concat(o):"")},bi=e=>{"AbortError"!==e.name&&console.error(e.message)},ki={"Content-Type":"application/json"},xi=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},_i=e=>{let{serverURL:t,lang:n,token:o,objectId:r,...l}=e;const i={"Content-Type":"application/json",Authorization:"Bearer ".concat(o)};return fetch("".concat(t,"/comment/").concat(r,"?lang=").concat(n),{method:"PUT",headers:i,body:JSON.stringify(l)}).then((e=>e.json()))},Si=e=>{let{serverURL:t,lang:n,paths:o,signal:r}=e;return fetch("".concat(t,"/article?path=").concat(encodeURIComponent(o.join(",")),"&lang=").concat(n),{signal:r}).then((e=>e.json())).then((e=>xi(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))},Ci=e=>{let{serverURL:t,lang:n,path:o}=e;return fetch("".concat(t,"/article?lang=").concat(n),{method:"POST",headers:ki,body:JSON.stringify({path:o})}).then((e=>e.json())).then((e=>xi(e,"visit count")))},Ii=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,zi=e=>e.type.includes("image"),Ri=e=>{const t=Array.from(e).find(zi);return t?t.getAsFile():null};function Ei(){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}}let Ai={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 Li=/[&<>"']/,Oi=/[&<>"']/g,ji=/[<>"']|&(?!#?\w+;)/,Ti=/[<>"']|&(?!#?\w+;)/g,$i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ui=e=>$i[e];function Pi(e,t){if(t){if(Li.test(e))return e.replace(Oi,Ui)}else if(ji.test(e))return e.replace(Ti,Ui);return e}const Mi=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Fi(e){return e.replace(Mi,((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 Ni=/(^|[^\[])\^/g;function Vi(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,o)=>(o=(o=o.source||o).replace(Ni,"$1"),e=e.replace(t,o),n),getRegex:()=>new RegExp(e,t)};return n}const Bi=/[^\w:]/g,Di=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Hi(e,t,n){if(e){let e;try{e=decodeURIComponent(Fi(n)).replace(Bi,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Di.test(n)&&(n=function(e,t){Wi[" "+e]||(qi.test(e)?Wi[" "+e]=e+"/":Wi[" "+e]=Yi(e,"/",!0));const n=-1===(e=Wi[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Zi,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Gi,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Wi={},qi=/^[^:]+:\/*[^/]*$/,Zi=/^([^:]+:)[\s\S]*$/,Gi=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Qi={exec:function(){}};function Ji(e){let t,n,o=1;for(;o<arguments.length;o++)for(n in t=arguments[o],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Ki(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let o=!1,r=t;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"})).split(/ \|/);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(/\\\|/g,"|");return n}function Yi(e,t,n){const o=e.length;if(0===o)return"";let r=0;for(;r<o;){const l=e.charAt(o-r-1);if(l!==t||n){if(l===t||!n)break;r++}else r++}return e.slice(0,o-r)}function Xi(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function es(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function ts(e,t,n,o){const r=t.href,l=t.title?Pi(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:l,text:i,tokens:o.inlineTokens(i,[])};return o.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:l,text:Pi(i)}}class ns{constructor(e){this.options=e||Ai}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}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:Yi(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=Yi(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(/^ *>[ \t]?/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,l,i,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?"\\d{1,9}\\".concat(f.slice(-1)):"\\".concat(f),this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp("^( {0,3}".concat(f,")((?:[\t ][^\\n]*)?(?:\\n|$))"));for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0],u=e.split("\n",1)[0],this.options.pedantic?(l=2,d=c.trimLeft()):(l=t[2].search(/[^ ]/),l=l>4?1:l,d=c.slice(l),l+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))")),o=new RegExp("^ {0,".concat(Math.min(3,l-1),"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)")),r=new RegExp("^ {0,".concat(Math.min(3,l-1),"}(?:```|~~~)")),i=new RegExp("^ {0,".concat(Math.min(3,l-1),"}#"));for(;e&&(p=e.split("\n",1)[0],c=p,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!r.test(c))&&!i.test(c)&&!t.test(c)&&!o.test(e);){if(c.search(/[^ ]/)>=l||!c.trim())d+="\n"+c.slice(l);else{if(s)break;d+="\n"+c}s||c.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(d),o&&(r="[ ] "!==o[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!o,checked:r,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(i=0;i<y;i++){this.lexer.state.top=!1,m.items[i].tokens=this.lexer.blockTokens(m.items[i].text,[]);const e=m.items[i].tokens.filter((e=>"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!m.loose&&e.length&&t&&(m.loose=!0,m.items[i].loose=!0)}return m}}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]):Pi(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{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:Ki(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,o,r,l,i=e.align.length;for(n=0;n<i;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(i=e.rows.length,n=0;n<i;n++)e.rows[n]=Ki(e.rows[n],e.header.length).map((e=>({text:e})));for(i=e.header.length,o=0;o<i;o++)e.header[o].tokens=[],this.lexer.inline(e.header[o].text,e.header[o].tokens);for(i=e.rows.length,o=0;o<i;o++)for(l=e.rows[o],r=0;r<l.length;r++)l[r].tokens=[],this.lexer.inline(l[r].text,l[r].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Pi(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Pi(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Yi(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let o=0,r=0;for(;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])o++;else if(e[r]===t[1]&&(o--,o<0))return r;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],o="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],o=e[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),ts(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 ts(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",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,l,i=n,s=0;const a="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=a.exec(t));){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(l=r.length,o[3]||o[4]){i+=l;continue}if((o[5]||o[6])&&n%3&&!((n+l)%3)){s+=l;continue}if(i-=l,i>0)continue;if(l=Math.min(l,l+i+s),Math.min(n,l)%2){const t=e.slice(1,n+o.index+l);return{type:"em",raw:e.slice(0,n+o.index+l+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+o.index+l-1);return{type:"strong",raw:e.slice(0,n+o.index+l+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=Pi(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=Pi(this.options.mangle?t(n[1]):n[1]),o="mailto:"+e):(e=Pi(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=Pi(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=Pi(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]):Pi(n[0]):n[0]:Pi(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const os={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}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Qi,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};os.def=Vi(os.def).replace("label",os._label).replace("title",os._title).getRegex(),os.bullet=/(?:[*+-]|\d{1,9}[.)])/,os.listItemStart=Vi(/^( *)(bull) */).replace("bull",os.bullet).getRegex(),os.list=Vi(os.list).replace(/bull/g,os.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+os.def.source+")").getRegex(),os._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",os._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,os.html=Vi(os.html,"i").replace("comment",os._comment).replace("tag",os._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),os.paragraph=Vi(os._paragraph).replace("hr",os.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",os._tag).getRegex(),os.blockquote=Vi(os.blockquote).replace("paragraph",os.paragraph).getRegex(),os.normal=Ji({},os),os.gfm=Ji({},os.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),os.gfm.table=Vi(os.gfm.table).replace("hr",os.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",os._tag).getRegex(),os.gfm.paragraph=Vi(os._paragraph).replace("hr",os.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",os.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",os._tag).getRegex(),os.pedantic=Ji({},os.normal,{html:Vi("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",os._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Qi,paragraph:Vi(os.normal._paragraph).replace("hr",os.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",os.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const rs={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Qi,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,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:Qi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function ls(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function is(e){let t,n,o="";const r=e.length;for(t=0;t<r;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),o+="&#"+n+";";return o}rs._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",rs.punctuation=Vi(rs.punctuation).replace(/punctuation/g,rs._punctuation).getRegex(),rs.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,rs.escapedEmSt=/\\\*|\\_/g,rs._comment=Vi(os._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),rs.emStrong.lDelim=Vi(rs.emStrong.lDelim).replace(/punct/g,rs._punctuation).getRegex(),rs.emStrong.rDelimAst=Vi(rs.emStrong.rDelimAst,"g").replace(/punct/g,rs._punctuation).getRegex(),rs.emStrong.rDelimUnd=Vi(rs.emStrong.rDelimUnd,"g").replace(/punct/g,rs._punctuation).getRegex(),rs._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,rs._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,rs._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])?)+(?![-_])/,rs.autolink=Vi(rs.autolink).replace("scheme",rs._scheme).replace("email",rs._email).getRegex(),rs._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,rs.tag=Vi(rs.tag).replace("comment",rs._comment).replace("attribute",rs._attribute).getRegex(),rs._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rs._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,rs._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,rs.link=Vi(rs.link).replace("label",rs._label).replace("href",rs._href).replace("title",rs._title).getRegex(),rs.reflink=Vi(rs.reflink).replace("label",rs._label).replace("ref",os._label).getRegex(),rs.nolink=Vi(rs.nolink).replace("ref",os._label).getRegex(),rs.reflinkSearch=Vi(rs.reflinkSearch,"g").replace("reflink",rs.reflink).replace("nolink",rs.nolink).getRegex(),rs.normal=Ji({},rs),rs.pedantic=Ji({},rs.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:Vi(/^!?\[(label)\]\((.*?)\)/).replace("label",rs._label).getRegex(),reflink:Vi(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",rs._label).getRegex()}),rs.gfm=Ji({},rs.normal,{escape:Vi(rs.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),rs.gfm.url=Vi(rs.gfm.url,"i").replace("email",rs.gfm._extended_email).getRegex(),rs.breaks=Ji({},rs.gfm,{br:Vi(rs.br).replace("{2,}","*").getRegex(),text:Vi(rs.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});class ss{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ai,this.options.tokenizer=this.options.tokenizer||new ns,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:os.normal,inline:rs.normal};this.options.pedantic?(t.block=os.pedantic,t.inline=rs.pedantic):this.options.gfm&&(t.block=os.gfm,this.options.breaks?t.inline=rs.breaks:t.inline=rs.gfm),this.tokenizer.rules=t}static get rules(){return{block:os,inline:rs}}static lex(e,t){return new ss(t).lex(e)}static lexInline(e,t){return new ss(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e){let t,n,o,r,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(t=n.call({lexer:this},e,l))&&(e=e.substring(t.raw.length),l.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&l.length>0?l[l.length-1].raw+="\n":l.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=l[l.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?l.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=l[l.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),l.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),l.push(t);else{if(o=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(o)))n=l[l.length-1],r&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):l.push(t),r=o.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=l[l.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):l.push(t);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,l}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e){let t,n,o,r,l,i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,r.index)+"["+es("a",r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,r.index)+"["+es("a",r[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(r=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,r.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(l||(i=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,s))&&(e=e.substring(t.raw.length),s.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.emStrong(e,a,i))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.autolink(e,is))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,is))){if(o=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(o=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(o,ls))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(i=t.raw.slice(-1)),l=!0,n=s[s.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);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(t.raw.length),s.push(t);return s}}class as{constructor(e){this.options=e||Ai}code(e,t,n){const o=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,o);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",o?'<pre><code class="'+this.options.langPrefix+Pi(o,!0)+'">'+(n?e:Pi(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:Pi(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n".concat(e,"</blockquote>\n")}html(e){return e}heading(e,t,n,o){if(this.options.headerIds){const r=this.options.headerPrefix+o.slug(n);return"<h".concat(t,' id="').concat(r,'">').concat(e,"</h").concat(t,">\n")}return"<h".concat(t,">").concat(e,"</h").concat(t,">\n")}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const o=t?"ol":"ul";return"<"+o+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+o+">\n"}listitem(e){return"<li>".concat(e,"</li>\n")}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>".concat(e,"</p>\n")}table(e,t){return t&&(t="<tbody>".concat(t,"</tbody>")),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n".concat(e,"</tr>\n")}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"</".concat(n,">\n")}strong(e){return"<strong>".concat(e,"</strong>")}em(e){return"<em>".concat(e,"</em>")}codespan(e){return"<code>".concat(e,"</code>")}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>".concat(e,"</del>")}link(e,t,n){if(null===(e=Hi(this.options.sanitize,this.options.baseUrl,e)))return n;let o='<a href="'+Pi(e)+'"';return t&&(o+=' title="'+t+'"'),o+=">"+n+"</a>",o}image(e,t,n){if(null===(e=Hi(this.options.sanitize,this.options.baseUrl,e)))return n;let o='<img src="'.concat(e,'" alt="').concat(n,'"');return t&&(o+=' title="'.concat(t,'"')),o+=this.options.xhtml?"/>":">",o}text(e){return e}}class cs{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 us{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){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class ps{constructor(e){this.options=e||Ai,this.options.renderer=this.options.renderer||new as,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new cs,this.slugger=new us}static parse(e,t){return new ps(t).parse(e)}static parseInline(e,t){return new ps(t).parseInline(e)}parse(e){let t,n,o,r,l,i,s,a,c,u,p,d,h,f,g,m,v,y,w,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],k="";const x=e.length;for(t=0;t<x;t++)if(u=e[t],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(w=this.options.extensions.renderers[u.type].call({parser:this},u),!1!==w||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)))k+=w||"";else switch(u.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(u.tokens),u.depth,Fi(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(u.text,u.lang,u.escaped);continue;case"table":for(a="",s="",r=u.header.length,n=0;n<r;n++)s+=this.renderer.tablecell(this.parseInline(u.header[n].tokens),{header:!0,align:u.align[n]});for(a+=this.renderer.tablerow(s),c="",r=u.rows.length,n=0;n<r;n++){for(i=u.rows[n],s="",l=i.length,o=0;o<l;o++)s+=this.renderer.tablecell(this.parseInline(i[o].tokens),{header:!1,align:u.align[o]});c+=this.renderer.tablerow(s)}k+=this.renderer.table(a,c);continue;case"blockquote":c=this.parse(u.tokens),k+=this.renderer.blockquote(c);continue;case"list":for(p=u.ordered,d=u.start,h=u.loose,r=u.items.length,c="",n=0;n<r;n++)g=u.items[n],m=g.checked,v=g.task,f="",g.task&&(y=this.renderer.checkbox(m),h?g.tokens.length>0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,h),c+=this.renderer.listitem(f,v,m);k+=this.renderer.list(c,p,d);continue;case"html":k+=this.renderer.html(u.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1<x&&"text"===e[t+1].type;)u=e[++t],c+="\n"+(u.tokens?this.parseInline(u.tokens):u.text);k+=b?this.renderer.paragraph(c):c;continue;default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,o,r,l="";const i=e.length;for(n=0;n<i;n++)if(o=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]&&(r=this.options.extensions.renderers[o.type].call({parser:this},o),!1!==r||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)))l+=r||"";else switch(o.type){case"escape":case"text":l+=t.text(o.text);break;case"html":l+=t.html(o.text);break;case"link":l+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break;case"image":l+=t.image(o.href,o.title,o.text);break;case"strong":l+=t.strong(this.parseInline(o.tokens,t));break;case"em":l+=t.em(this.parseInline(o.tokens,t));break;case"codespan":l+=t.codespan(o.text);break;case"br":l+=t.br();break;case"del":l+=t.del(this.parseInline(o.tokens,t));break;default:{const e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return l}}function ds(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),Xi(t=Ji({},ds.defaults,t||{})),n){const o=t.highlight;let r;try{r=ss.lex(e,t)}catch(e){return n(e)}const l=function(e){let l;if(!e)try{t.walkTokens&&ds.walkTokens(r,t.walkTokens),l=ps.parse(r,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,l)};if(!o||o.length<3)return l();if(delete t.highlight,!r.length)return l();let i=0;return ds.walkTokens(r,(function(e){"code"===e.type&&(i++,setTimeout((()=>{o(e.text,e.lang,(function(t,n){if(t)return l(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),i--,0===i&&l()}))}),0))})),void(0===i&&l())}try{const n=ss.lex(e,t);return t.walkTokens&&ds.walkTokens(n,t.walkTokens),ps.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Pi(e.message+"",!0)+"</pre>";throw e}}ds.options=ds.setOptions=function(e){var t;return Ji(ds.defaults,e),t=ds.defaults,Ai=t,ds},ds.getDefaults=Ei,ds.defaults=Ai,ds.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=Ji({},...t),r=ds.defaults.extensions||{renderers:{},childTokens:{}};let l;t.forEach((e=>{if(e.extensions&&(l=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=r.renderers?r.renderers[e.name]:null;r.renderers[e.name]=t?function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];let l=e.renderer.apply(this,o);return!1===l&&(l=t.apply(this,o)),l}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");r[e.level]?r[e.level].unshift(e.tokenizer):r[e.level]=[e.tokenizer],e.start&&("block"===e.level?r.startBlock?r.startBlock.push(e.start):r.startBlock=[e.start]:"inline"===e.level&&(r.startInline?r.startInline.push(e.start):r.startInline=[e.start]))}e.childTokens&&(r.childTokens[e.name]=e.childTokens)}))),e.renderer){const t=ds.defaults.renderer||new as;for(const n in e.renderer){const o=t[n];t[n]=function(){for(var r=arguments.length,l=new Array(r),i=0;i<r;i++)l[i]=arguments[i];let s=e.renderer[n].apply(t,l);return!1===s&&(s=o.apply(t,l)),s}}o.renderer=t}if(e.tokenizer){const t=ds.defaults.tokenizer||new ns;for(const n in e.tokenizer){const o=t[n];t[n]=function(){for(var r=arguments.length,l=new Array(r),i=0;i<r;i++)l[i]=arguments[i];let s=e.tokenizer[n].apply(t,l);return!1===s&&(s=o.apply(t,l)),s}}o.tokenizer=t}if(e.walkTokens){const t=ds.defaults.walkTokens;o.walkTokens=function(n){e.walkTokens.call(this,n),t&&t.call(this,n)}}l&&(o.extensions=r),ds.setOptions(o)}))},ds.walkTokens=function(e,t){for(const n of e)switch(t.call(ds,n),n.type){case"table":for(const e of n.header)ds.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)ds.walkTokens(n.tokens,t);break;case"list":ds.walkTokens(n.items,t);break;default:ds.defaults.extensions&&ds.defaults.extensions.childTokens&&ds.defaults.extensions.childTokens[n.type]?ds.defaults.extensions.childTokens[n.type].forEach((function(e){ds.walkTokens(n[e],t)})):n.tokens&&ds.walkTokens(n.tokens,t)}},ds.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");Xi(t=Ji({},ds.defaults,t||{}));try{const n=ss.lexInline(e,t);return t.walkTokens&&ds.walkTokens(n,t.walkTokens),ps.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+Pi(e.message+"",!0)+"</pre>";throw e}},ds.Parser=ps,ds.parser=ps.parse,ds.Renderer=as,ds.TextRenderer=cs,ds.Lexer=ss,ds.lexer=ss.lex,ds.Tokenizer=ns,ds.Slugger=us,ds.parse=ds;const hs=/\$.*?\$/,fs=/^\$(.*?)\$/,gs=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ms=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/:(.+?):/g,((e,n)=>t[n]?'<img class="wl-emoji" src="'.concat(t[n],'" alt="').concat(n,'">'):e))},vs=(e,t)=>{let{emojiMap:n,highlighter:o,texRenderer:r}=t;if(ds.setOptions({highlight:o||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=gs.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(hs);return-1!==t?t:e.length},tokenizer(t){const n=fs.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);ds.use({extensions:e})}return ds.parse(ms(e,n))},ys=e=>e.dataset.path||e.getAttribute("id"),ws=(e,t)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,o=Ut(new Date),r=()=>o.value=new Date,l="requestAnimationFrame"===n?Gl(r,{immediate:!0}):fl(r,n,{immediate:!0});return t?ni({now:o},l):o}();return cr((()=>vi(e,n.value,t)))};let bs=null;const ks=()=>bs||(bs=Zl("WALINE_USER",{}));let xs=null;const _s=()=>xs||(xs=Zl("WALINE_LIKE",[])),Ss=e=>{var t;let{serverURL:n,path:o=window.location.pathname,selector:r=".waline-comment-count",lang:l="zh-CN"}=e;const i=new AbortController,s=document.querySelectorAll(r),a=ks();return s.length&&(e=>{let{serverURL:t,lang:n,paths:o,signal:r,token:l}=e;const i={};return l&&(i.Authorization="Bearer ".concat(l)),fetch("".concat(t,"/comment?type=count&url=").concat(encodeURIComponent(o.join(",")),"&lang=").concat(n),{signal:r,headers:i}).then((e=>e.json())).then((e=>xi(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:di(n),paths:Array.from(s).map((e=>ci(e.dataset.path||e.getAttribute("id")||o))),lang:l,signal:i.signal,token:null===(t=a.value)||void 0===t?void 0:t.token}).then((e=>{s.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(bi),i.abort.bind(i)};e.commentCount=Ss;var Cs,Is,zs="function"==typeof Map?new Map:(Cs=[],Is=[],{has:function(e){return Cs.indexOf(e)>-1},get:function(e){return Is[Cs.indexOf(e)]},set:function(e,t){-1===Cs.indexOf(e)&&(Cs.push(e),Is.push(t))},delete:function(e){var t=Cs.indexOf(e);t>-1&&(Cs.splice(t,1),Is.splice(t,1))}}),Rs=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(Cs){Rs=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Es(e){var t=zs.get(e);t&&t.destroy()}function As(e){var t=zs.get(e);t&&t.update()}var Ls=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Ls=function(e){return e}).destroy=function(e){return e},Ls.update=function(e){return e}):((Ls=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&&!zs.has(e)){var t,n=null,o=null,r=null,l=function(){e.clientWidth!==o&&c()},i=function(t){window.removeEventListener("resize",l,!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]})),zs.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",l,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",zs.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 s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o<t?"hidden"===n.overflowY&&(s("scroll"),a(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(s("hidden"),a(),o="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),r!==o){r=o;var l=Rs("autosize:resized");try{e.dispatchEvent(l)}catch(e){}}}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Es),e},Ls.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],As),e});var Os=Ls;const js=e=>{let{size:t}=e;return ur("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ur("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ur("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))};var Ts=Tn({name:"ImageWall",components:{LoadingIcon:js},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emits:["insert"],setup(e){let t=null;const n=Ut(null),o=Ut({}),r=Ut([]),l=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},i=e=>new Array(e).fill(null).map((()=>[])),s=async t=>{var o;if(t>=e.items.length)return;await an();const l=Array.from((null===(o=n.value)||void 0===o?void 0:o.children)||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));r.value[Number(l.dataset.index)].push(t),await s(t+1)},a=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.value.length===l()&&!e)return;r.value=i(l());const t=window.scrollY;await s(0),window.scrollTo({top:t})};return Ln((()=>[e.items]),(()=>{o.value={},a(!0)})),Ln((()=>[e.columnWidth,e.gap]),(()=>a())),Mn((()=>{a(!0),t=new ResizeObserver((()=>a())),t.observe(n.value)})),Fn((()=>t.unobserve(n.value))),{columns:r,state:o,wall:n}}}),$s=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n};const Us=["data-index"],Ps=["src","title","onLoad","onClick"];var Ms=Tn({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return ur("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:t,height:t},[ur("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"}),ur("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:()=>ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ur("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:()=>ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ur("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"}),ur("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"})]),ImageWall:$s(Ts,[["render",function(e,t,n,o,r,l){const i=Hn("LoadingIcon");return zo(),Lo("div",{ref:"wall",class:"wl-gallery",style:_({gap:"".concat(e.gap,"px")})},[(zo(!0),Lo(ko,null,Zn(e.columns,((t,n)=>(zo(),Lo("div",{key:n,class:"wl-gallery-column","data-index":n,style:_({gap:"".concat(e.gap,"px")})},[(zo(!0),Lo(ko,null,Zn(t,(t=>(zo(),Lo(ko,{key:t},[e.state[e.items[t].src]?Do("v-if",!0):(zo(),Oo(i,{key:0,size:36,style:{margin:"20px auto"}})),Mo("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:n=>e.state[e.items[t].src]=!0,onClick:n=>e.$emit("insert","![](".concat(e.items[t].src,")"))},null,40,Ps)],64)))),128))],12,Us)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>ur("svg",{width:"16",height:"16",ariaHidden:"true"},ur("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:()=>ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ur("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"}),ur("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:js,GifIcon:()=>ur("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ur("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ur("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})])},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=Rn("config"),r=Zl("WALINE_COMMENT_BOX_EDITOR",""),l=Zl("WALINE_USER_META",{nick:"",mail:"",link:""}),i=ks(),s=Ut({}),a=Ut(null),c=Ut(null),u=Ut(null),p=Ut(null),d=Ut(null),h=Ut(null),f=Ut(null),g=Ut({tabs:[],map:{}}),m=Ut(0),v=Ut(!1),y=Ut(!1),w=Ut(!1),b=Ut(""),k=Ut(0),x=kt({loading:!0,list:[]}),_=Ut(0),S=Ut(!1),C=Ut(""),I=Ut(!1),z=cr((()=>o.value.locale)),R=cr((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),E=cr((()=>!1!==o.value.imageUploader)),A=e=>{const t=a.value,n=t.selectionStart,o=t.selectionEnd||0,l=t.scrollTop;r.value=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=l},L=e=>{const t="![".concat(o.value.locale.uploading," ").concat(e.name,"]()");return A(t),Promise.resolve().then((()=>o.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))})).catch((e=>{alert(e.message),r.value=r.value.replace(t,"")}))},O=()=>{var t,c;const{serverURL:u,lang:p,login:d,wordLimit:h,requiredMeta:f}=o.value,m={comment:C.value,nick:l.value.nick,mail:l.value.mail,link:l.value.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"===d)return;var v,y,w;if(f.indexOf("nick")>-1&&!m.nick)return null===(v=s.value.nick)||void 0===v||v.focus(),alert(z.value.nickError);if(f.indexOf("mail")>-1&&!m.mail||m.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(m.mail))return null===(y=s.value.mail)||void 0===y||y.focus(),alert(z.value.mailError);if(!m.comment)return void(null===(w=a.value)||void 0===w||w.focus());m.nick||(m.nick=z.value.anonymous)}if(!S.value)return alert(z.value.wordHint.replace("$0",h[0].toString()).replace("$1",h[1].toString()).replace("$2",k.value.toString()));m.comment=ms(m.comment,g.value.map),e.replyId&&e.rootId&&(m.pid=e.replyId,m.rid=e.rootId,m.at=e.replyUser),I.value=!0,(e=>{let{serverURL:t,lang:n,token:o,comment:r}=e;const l={"Content-Type":"application/json"};return o&&(l.Authorization="Bearer ".concat(o)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:l,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:u,lang:p,token:null===(c=i.value)||void 0===c?void 0:c.token,comment:m}).then((t=>{if(I.value=!1,t.errmsg)return alert(t.errmsg);n("submit",t.data),r.value="",b.value="",e.replyId&&n("cancel-reply")})).catch((e=>{I.value=!1,alert(e.message)}))},j=e=>{u.value.contains(e.target)||p.value.contains(e.target)||(v.value=!1),d.value.contains(e.target)||h.value.contains(e.target)||(y.value=!1)},T=async e=>{var t;const{scrollTop:n,clientHeight:r,scrollHeight:l}=e.target,i=(r+n)/l,s=o.value.search,a=(null===(t=f.value)||void 0===t?void 0:t.value)||"";i<.9||x.loading||(x.loading=!0,x.list.push(...s.more?await s.more(a,x.list.length):await s.search(a)),x.loading=!1,setTimeout((()=>{e.target.scrollTop=n}),50))},$=function(e){return al(ul(arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e)}((e=>{x.list=[],T(e)}),300);Ln([o,k],(e=>{let[t,n]=e;const{wordLimit:o}=t;o?n<o[0]&&0!==o[0]?(_.value=o[0],S.value=!1):n>o[1]?(_.value=o[1],S.value=!1):(_.value=o[1],S.value=!0):(_.value=0,S.value=!0)}),{immediate:!0}),Ln(y,(async e=>{if(!e)return;const t=o.value.search;f.value&&(f.value.value=""),x.loading=!0,x.list=t.default?await t.default():await t.search(""),x.loading=!1}));const U=e=>{let{data:t}=e;t&&"profile"===t.type&&(i.value={...i.value,...t.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(i)))))};return Mn((()=>{document.body.addEventListener("click",j),window.addEventListener("message",U),Ln((()=>r.value),(e=>{const{highlighter:t,texRenderer:n}=o.value;C.value=e,b.value=vs(e,{emojiMap:g.value.map,highlighter:t,texRenderer:n}),k.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),e?Os(a.value):Os.destroy(a.value)}),{immediate:!0}),Ln((()=>o.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?yi(ui(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:o,icon:r,prefix:l,type:i,items:s}=e;t.tabs.push({name:n,icon:wi(r,o,l,i),items:s.map((e=>{const n="".concat(l||"").concat(e);return t.map[n]=wi(e,o,l,i),n}))})})),t}))).then((e=>{g.value=e}));var t}),{immediate:!0})})),Nn((()=>{document.body.removeEventListener("click",j),window.removeEventListener("message",U)})),{config:o,locale:z,insert:A,onChange:()=>{const e=c.value;e.files&&E.value&&L(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=Ri(e.dataTransfer.items);t&&E.value&&(L(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&O()},onPaste:e=>{if(e.clipboardData){const t=Ri(e.clipboardData.items);t&&E.value&&L(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-450)/2,l=(window.innerHeight-450)/2,s=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(r,",top=").concat(l,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:null},"*");const a=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==s||s.close(),i.value=t.data,(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{i.value={},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,l=(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(l,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:i.value.token},"*")},submitComment:O,onImageWallScroll:T,onGifSearch:$,isLogin:R,userInfo:i,isSubmitting:I,wordNumber:k,wordLimit:_,isWordNumberLegal:S,editor:r,userMeta:l,emoji:g,emojiTabIndex:m,showEmoji:v,gifData:x,showGif:y,canUploadImage:E,previewText:b,showPreview:w,inputRefs:s,editorRef:a,emojiButtonRef:u,emojiPopupRef:p,gifButtonRef:d,gifPopupRef:h,imageUploadRef:c,gifSearchInputRef:f}}});const Fs={class:"wl-comment"},Ns={key:0,class:"wl-login-info"},Vs={class:"wl-avatar"},Bs=["title"],Ds=["title"],Hs=["src"],Ws=["title","textContent"],qs={class:"wl-panel"},Zs=["for","textContent"],Gs=["id","onUpdate:modelValue","name","type"],Qs=["placeholder"],Js={class:"wl-preview"},Ks=Mo("hr",null,null,-1),Ys=["innerHTML"],Xs={class:"wl-footer"},ea={class:"wl-actions"},ta={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},na=["title"],oa=["title"],ra=["title"],la=["title"],ia={class:"wl-info"},sa={class:"wl-text-number"},aa={key:0},ca=Bo("  /  "),ua=["textContent"],pa=["textContent"],da=["disabled"],ha=["placeholder"],fa={key:0,class:"wl-loading"},ga={key:0,class:"wl-tab-wrapper"},ma=["title","onClick"],va=["src","alt"],ya={key:0,class:"wl-tabs"},wa=["onClick"],ba=["src","alt","title"],ka=["title"];var xa=$s(Ms,[["render",function(e,t,n,o,r,l){const i=Hn("CloseIcon"),s=Hn("MarkdownIcon"),a=Hn("EmojiIcon"),c=Hn("GifIcon"),u=Hn("ImageIcon"),p=Hn("PreviewIcon"),d=Hn("LoadingIcon"),h=Hn("ImageWall");return zo(),Lo("div",Fs,["disable"!==e.config.login&&e.isLogin?(zo(),Lo("div",Ns,[Mo("div",Vs,[Mo("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[Fo(i,{size:14})],8,Bs),Mo("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)})},[Mo("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,Hs)],8,Ds)]),Mo("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[2]||(t[2]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:A(e.userInfo.display_name)},null,8,Ws)])):Do("v-if",!0),Mo("div",qs,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(zo(),Lo("div",{key:0,class:z(["wl-header","item".concat(e.config.meta.length)])},[(zo(!0),Lo(ko,null,Zn(e.config.meta,(t=>(zo(),Lo("div",{key:t,class:"wl-header-item"},[Mo("label",{for:t,textContent:A(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":"(".concat(e.locale.optional,")")))},null,8,Zs),Vn(Mo("input",{id:"wl-".concat(t),ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},"onUpdate:modelValue":n=>e.userMeta[t]=n,class:z(["wl-input","wl-".concat(t)]),name:t,type:"mail"===t?"email":"text"},null,10,Gs),[[Gr,e.userMeta[t]]])])))),128))],2)):Do("v-if",!0),Vn(Mo("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[3]||(t[3]=t=>e.editor=t),class:"wl-editor",placeholder:e.replyUser?"@".concat(e.replyUser):e.locale.placeholder,onKeydown:t[4]||(t[4]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[5]||(t[5]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[6]||(t[6]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,Qs),[[Nr,e.editor]]),Vn(Mo("div",Js,[Ks,Mo("h4",null,A(e.locale.preview)+":",1),Do(" eslint-disable-next-line vue/no-v-html "),Mo("div",{class:"wl-content",innerHTML:e.previewText},null,8,Ys)],512),[[Jr,e.showPreview]]),Mo("div",Xs,[Mo("div",ea,[Mo("a",ta,[Fo(s)]),Vn(Mo("button",{ref:"emojiButtonRef",class:z(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[7]||(t[7]=t=>e.showEmoji=!e.showEmoji)},[Fo(a)],10,na),[[Jr,e.emoji.tabs.length]]),e.config.search?(zo(),Lo("button",{key:0,ref:"gifButtonRef",class:z(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[8]||(t[8]=t=>e.showGif=!e.showGif)},[Fo(c)],10,oa)):Do("v-if",!0),Mo("input",{id:"wl-image-upload",ref:"imageUploadRef",class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[9]||(t[9]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(zo(),Lo("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[Fo(u)],8,ra)):Do("v-if",!0),Mo("button",{class:z(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[10]||(t[10]=t=>e.showPreview=!e.showPreview)},[Fo(p)],10,la)]),Mo("div",ia,[Mo("div",sa,[Bo(A(e.wordNumber)+" ",1),e.config.wordLimit?(zo(),Lo("span",aa,[ca,Mo("span",{class:z({illegal:!e.isWordNumberLegal}),textContent:A(e.wordLimit)},null,10,ua)])):Do("v-if",!0),Bo("  "+A(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Do("v-if",!0):(zo(),Lo("button",{key:0,class:"wl-btn",onClick:t[11]||(t[11]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:A(e.locale.login)},null,8,pa)),"force"!==e.config.login||e.isLogin?(zo(),Lo("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[12]||(t[12]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(zo(),Oo(d,{key:0,size:16})):(zo(),Lo(ko,{key:1},[Bo(A(e.locale.submit),1)],64))],8,da)):Do("v-if",!0)]),Mo("div",{ref:"gifPopupRef",class:z(["wl-gif-popup",{display:e.showGif}])},[Mo("input",{ref:"gifSearchInputRef",type:"text",placeholder:e.locale.gifSearchPlaceholder,onInput:t[13]||(t[13]=function(){return e.onGifSearch&&e.onGifSearch(...arguments)})},null,40,ha),Fo(h,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[14]||(t[14]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(zo(),Lo("div",fa,[Fo(d,{size:30})])):Do("v-if",!0)],2),Mo("div",{ref:"emojiPopupRef",class:z(["wl-emoji-popup",{display:e.showEmoji}])},[(zo(!0),Lo(ko,null,Zn(e.emoji.tabs,((t,n)=>(zo(),Lo(ko,{key:t.name},[n===e.emojiTabIndex?(zo(),Lo("div",ga,[(zo(!0),Lo(ko,null,Zn(t.items,(t=>(zo(),Lo("button",{key:t,title:t,onClick:n=>e.insert(":".concat(t,":"))},[e.showEmoji?(zo(),Lo("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,va)):Do("v-if",!0)],8,ma)))),128))])):Do("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(zo(),Lo("div",ya,[(zo(!0),Lo(ko,null,Zn(e.emoji.tabs,((t,n)=>(zo(),Lo("button",{key:t.name,class:z(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Mo("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ba)],10,wa)))),128))])):Do("v-if",!0)],2)])]),e.replyId?(zo(),Lo("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[15]||(t[15]=t=>e.$emit("cancel-reply"))},[Fo(i,{size:24})],8,ka)):Do("v-if",!0)])}],["__file","CommentBox.vue"]]);const _a=["approved","waiting","spam"];var Sa=Tn({components:{CommentBox:xa,DeleteIcon:()=>ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ur("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),LikeIcon:e=>{let{active:t=!1}=e;return ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ur("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z".concat(t?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:t?"red":"currentColor"})])},ReplyIcon:()=>ur("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ur("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),VerifiedIcon:()=>ur("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ur("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"}))},props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object,default:null}},emits:["submit","reply","like","delete","status","sticky"],setup(e){const t=Rn("config"),n=_s(),o=ks(),r=cr((()=>t.value.locale)),l=cr((()=>{const{link:t}=e.comment;return t?pi(t)?t:"https://".concat(t):""})),i=cr((()=>n.value.includes(e.comment.objectId))),s=ws(e.comment.insertedAt,r.value),a=cr((()=>"administrator"===o.value.type)),c=cr((()=>e.comment.user_id&&o.value.objectId===e.comment.user_id)),u=cr((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:r,isReplyingCurrent:u,link:l,like:i,time:s,isAdmin:a,isOwner:c,commentStatus:_a}}});const Ca=["id"],Ia={class:"wl-user","aria-hidden":"true"},za=["src"],Ra={class:"wl-card"},Ea={class:"wl-head"},Aa=["href"],La={key:1,class:"wl-nick"},Oa=["textContent"],ja=["textContent"],Ta=["textContent"],$a=["textContent"],Ua=["textContent"],Pa={class:"wl-comment-actions"},Ma=["title"],Fa=["textContent"],Na=["title"],Va={class:"wl-meta","aria-hidden":"true"},Ba=["textContent"],Da=["textContent"],Ha=["textContent"],Wa=["innerHTML"],qa={key:0,class:"wl-admin-actions"},Za={class:"wl-comment-status"},Ga=["disabled","onClick","textContent"],Qa={key:1,class:"wl-reply-wrapper"},Ja={key:2,class:"wl-quote"};var Ka=Tn({name:"WalineRoot",components:{CommentBox:xa,CommentCard:$s(Sa,[["render",function(e,t,n,o,r,l){const i=Hn("VerifiedIcon"),s=Hn("DeleteIcon"),a=Hn("LikeIcon"),c=Hn("ReplyIcon"),u=Hn("CommentBox"),p=Hn("CommentCard",!0);return zo(),Lo("div",{id:e.comment.objectId,class:"wl-item"},[Mo("div",Ia,[e.comment.avatar?(zo(),Lo("img",{key:0,src:e.comment.avatar},null,8,za)):Do("v-if",!0),e.comment.type?(zo(),Oo(i,{key:1})):Do("v-if",!0)]),Mo("div",Ra,[Mo("div",Ea,[e.link?(zo(),Lo("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},A(e.comment.nick),9,Aa)):(zo(),Lo("span",La,A(e.comment.nick),1)),"administrator"===e.comment.type?(zo(),Lo("span",{key:2,class:"wl-badge",textContent:A(e.locale.admin)},null,8,Oa)):Do("v-if",!0),e.comment.label?(zo(),Lo("span",{key:3,class:"wl-badge",textContent:A(e.comment.label)},null,8,ja)):Do("v-if",!0),e.comment.sticky?(zo(),Lo("span",{key:4,class:"wl-badge",textContent:A(e.locale.sticky)},null,8,Ta)):Do("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(zo(),Lo("span",{key:5,class:z("wl-badge level".concat(e.comment.level)),textContent:A(e.locale["level".concat(e.comment.level)]||"Level ".concat(e.comment.level))},null,10,$a)):Do("v-if",!0),Mo("span",{class:"wl-time",textContent:A(e.time)},null,8,Ua),Mo("div",Pa,[e.isAdmin||e.isOwner?(zo(),Lo("button",{key:0,class:"wl-delete",onClick:t[0]||(t[0]=t=>e.$emit("delete",e.comment))},[Fo(s)])):Do("v-if",!0),Mo("button",{class:"wl-like",title:e.like?e.locale.cancelLike:e.locale.like,onClick:t[1]||(t[1]=t=>e.$emit("like",e.comment))},[Fo(a,{active:e.like},null,8,["active"]),"like"in e.comment?(zo(),Lo("span",{key:0,textContent:A(e.comment.like)},null,8,Fa)):Do("v-if",!0)],8,Ma),Mo("button",{class:z(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[2]||(t[2]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[Fo(c)],10,Na)])]),Mo("div",Va,[e.comment.addr?(zo(),Lo("span",{key:0,textContent:A(e.comment.addr)},null,8,Ba)):Do("v-if",!0),e.comment.browser?(zo(),Lo("span",{key:1,textContent:A(e.comment.browser)},null,8,Da)):Do("v-if",!0),e.comment.os?(zo(),Lo("span",{key:2,textContent:A(e.comment.os)},null,8,Ha)):Do("v-if",!0)]),Do(" eslint-disable-next-line vue/no-v-html "),Mo("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,Wa),e.isAdmin?(zo(),Lo("div",qa,[Mo("span",Za,[(zo(!0),Lo(ko,null,Zn(e.commentStatus,(t=>(zo(),Lo("button",{key:t,class:z("wl-btn wl-".concat(t)),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:A(e.locale[t])},null,10,Ga)))),128))]),e.isAdmin&&!e.comment.rid?(zo(),Lo("button",{key:0,class:"wl-btn wl-sticky",onClick:t[3]||(t[3]=t=>e.$emit("sticky",e.comment))},A(e.comment.sticky?e.locale.unsticky:e.locale.sticky),1)):Do("v-if",!0)])):Do("v-if",!0),e.isReplyingCurrent?(zo(),Lo("div",Qa,[Fo(u,{"reply-id":e.comment.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t)),onCancelReply:t[5]||(t[5]=t=>e.$emit("reply",null))},null,8,["reply-id","reply-user","root-id"])])):Do("v-if",!0),e.comment.children?(zo(),Lo("div",Ja,[(zo(!0),Lo(ko,null,Zn(e.comment.children,(n=>(zo(),Oo(p,{key:n.objectId,comment:n,reply:e.reply,"root-id":e.rootId,onReply:t[6]||(t[6]=t=>e.$emit("reply",t)),onSubmit:t[7]||(t[7]=t=>e.$emit("submit",t)),onLike:t[8]||(t[8]=t=>e.$emit("like",t)),onDelete:t[9]||(t[9]=t=>e.$emit("delete",t)),onStatus:t[10]||(t[10]=t=>e.$emit("status",t)),onSticky:t[11]||(t[11]=t=>e.$emit("sticky",t))},null,8,["comment","reply","root-id"])))),128))])):Do("v-if",!0)])],8,Ca)}],["__file","CommentCard.vue"]]),LoadingIcon:js},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright"],setup(e){const t=cr((()=>(e=>{let{serverURL:t,path:s=location.pathname,lang:a=o,locale:c,emoji:p=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:d=["nick","mail","link"],requiredMeta:h=[],dark:f=!1,pageSize:g=10,wordLimit:m,imageUploader:v,highlighter:y,texRenderer:b,copyright:k=!0,login:x="enable",search:_=i(),...S}=e;return{serverURL:di(t),path:ci(s),locale:{...w[a]||w[o],..."object"==typeof c?c:{}},wordLimit:hi(m),meta:n(d),requiredMeta:n(h),imageUploader:fi(v,r),highlighter:fi(y,u),texRenderer:fi(b,l),lang:a,dark:f,emoji:p,pageSize:g,login:x,copyright:k,search:_,...S}})(e))),s=ks(),a=_s(),c=Ut("loading"),p=Ut(0),d=Ut(1),h=Ut(0),f=Ut([]),g=Ut(null),m=cr((()=>{return"string"==typeof(e=t.value.dark)?"auto"===e?"@media(prefers-color-scheme:dark){body".concat(gi,"}"):"".concat(e).concat(gi):!0===e?":root".concat(gi):"";var e}));let v;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Ut(!1),{document:o=jl,immediate:r=!0,manual:l=!1,id:i="vueuse_styletag_".concat(++oi)}=t,s=Ut(e);let a=()=>{};const c=()=>{if(!o)return;const e=o.getElementById(i)||o.createElement("style");e.type="text/css",e.id=i,t.media&&(e.media=t.media),o.head.appendChild(e),n.value||(a=Ln(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{o&&n.value&&(a(),o.head.removeChild(o.getElementById(i)),n.value=!1)};r&&!l&&hl(c),l||dl(u),_t(n)}(m);const y=e=>{var n,o;const{serverURL:r,path:l,pageSize:i}=t.value,a=new AbortController;c.value="loading",null===(n=v)||void 0===n||n(),(e=>{let{serverURL:t,lang:n,path:o,page:r,pageSize:l,signal:i,token:s}=e;const a={};return s&&(a.Authorization="Bearer ".concat(s)),fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(o),"&pageSize=").concat(l,"&page=").concat(r,"&lang=").concat(n),{signal:i,headers:a}).then((e=>e.json())).then((e=>xi(e,"comment list")))})({serverURL:r,lang:t.value.lang,path:l,pageSize:i,page:e,signal:a.signal,token:null===(o=s.value)||void 0===o?void 0:o.token}).then((t=>{c.value="success",p.value=t.count,f.value.push(...t.data),d.value=e,h.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),c.value="error")})),v=a.abort.bind(a)},b=()=>{p.value=0,f.value=[],y(1)};return function(e,t){if(Ko){let n=Ko.provides;const o=Ko.parent&&Ko.parent.provides;o===n&&(n=Ko.provides=Object.create(o)),n[e]=t}}("config",t),Ln((()=>e.path),b),Mn((()=>b())),{config:t,darkmodeStyle:m,i18n:cr((()=>t.value.locale)),status:c,count:p,page:d,totalPages:h,data:f,reply:g,loadMore:()=>y(d.value+1),refresh:b,onReply:e=>{g.value=e},onSubmit:e=>{if(e.rid){const t=f.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 f.value.unshift(e)},onStatusChange:async e=>{var n;let{comment:o,status:r}=e;if(o.status===r)return;const{serverURL:l,lang:i}=t.value;await _i({serverURL:l,lang:i,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:o.objectId,status:r}),o.status=r},onDelete:async e=>{var n;let{objectId:o}=e;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:r,lang:l}=t.value;await(e=>{let{serverURL:t,lang:n,token:o,objectId:r}=e;const l={Authorization:"Bearer ".concat(o)};return fetch("".concat(t,"/comment/").concat(r,"?lang=").concat(n),{method:"DELETE",headers:l}).then((e=>e.json()))})({serverURL:r,lang:l,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:o}),f.value.some(((e,t)=>e.objectId===o?(f.value=f.value.filter(((e,n)=>n!==t)),!0):e.children.some(((n,r)=>n.objectId===o&&(f.value[t].children=e.children.filter(((e,t)=>t!==r)),!0)))))},onSticky:async e=>{var n;if(e.rid)return;const{serverURL:o,lang:r}=t.value;await _i({serverURL:o,lang:r,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:n,lang:o}=t.value,{objectId:r}=e,l=a.value.includes(r);await(e=>{let{serverURL:t,lang:n,objectId:o,like:r}=e;return fetch("".concat(t,"/comment/").concat(o,"?lang=").concat(n),{method:"PUT",headers:ki,body:JSON.stringify({like:r})}).then((e=>e.json()))})({serverURL:n,lang:o,objectId:r,like:!l}),l?a.value=a.value.filter((e=>e!==r)):(a.value=[...a.value,r],a.value.length>50&&(a.value=a.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)},version:"2.6.3"}}});const Ya={"data-waline":""},Xa={class:"wl-count"},ec=["textContent"],tc={class:"wl-cards"},nc={key:1,class:"wl-operation"},oc=["textContent"],rc={key:0,class:"wl-loading"},lc=["textContent"],ic={class:"wl-operation"},sc=["textContent"],ac={key:3,class:"wl-power"},cc=Bo(" Powered by "),uc=Mo("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var pc=$s(Ka,[["render",function(e,t,n,o,r,l){const i=Hn("CommentBox"),s=Hn("CommentCard"),a=Hn("LoadingIcon");return zo(),Lo("div",Ya,[e.reply?Do("v-if",!0):(zo(),Oo(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Mo("div",Xa,[e.count?(zo(),Lo("span",{key:0,class:"wl-num",textContent:A(e.count)},null,8,ec)):Do("v-if",!0),Bo(" "+A(e.i18n.comment),1)]),Mo("div",tc,[(zo(!0),Lo(ko,null,Zn(e.data,(t=>(zo(),Oo(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","onReply","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(zo(),Lo("div",nc,[Mo("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:A(e.i18n.refresh)},null,8,oc)])):(zo(),Lo(ko,{key:2},["loading"===e.status?(zo(),Lo("div",rc,[Fo(a,{size:30})])):e.data.length?e.page<e.totalPages?(zo(),Lo(ko,{key:2},[Do(" Load more button "),Mo("div",ic,[Mo("button",{type:"button",class:"wl-btn",onClick:t[1]||(t[1]=function(){return e.loadMore&&e.loadMore(...arguments)}),textContent:A(e.i18n.more)},null,8,sc)])],2112)):Do("v-if",!0):(zo(),Lo("div",{key:1,class:"wl-empty",textContent:A(e.i18n.sofa)},null,8,lc))],64)),Do(" Copyright Information "),e.config.copyright?(zo(),Lo("div",ac,[cc,uc,Bo(" v"+A(e.version),1)])):Do("v-if",!0)])}],["__file","Waline.vue"]]);const dc=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},hc=e=>{let{serverURL:t,path:n=window.location.pathname,selector:o=".waline-pageview-count",update:r=!0,lang:l="zh-CN"}=e;const i=new AbortController,s=Array.from(document.querySelectorAll(o)),a=e=>{const t=ys(e);return null!==t&&n!==t},c=e=>Si({serverURL:di(t),paths:e.map((e=>ys(e)||n)),lang:l,signal:i.signal}).then((t=>dc(t,e))).catch(bi);if(r){const e=s.filter((e=>!a(e))),o=s.filter(a);Ci({serverURL:di(t),path:n,lang:l}).then((t=>dc(new Array(e.length).fill(t),e))),o.length&&c(o)}else c(s);return i.abort.bind(i)};e.pageviewCount=hc;e.init=e=>{let{el:t="#waline",path:n=window.location.pathname,comment:o=!1,pageview:r=!1,...l}=e;const i=t?Ii(t):null;if(t&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const s=kt({...l}),a=kt({comment:o,pageview:r,path:n}),c=i?function(){const e=el().createApp(...arguments),{mount:t}=e;return e.mount=n=>{const o=tl(n);if(!o)return;const r=e._component;Z(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const l=t(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},e}((()=>ur(pc,{path:a.path,...s}))):null;c&&c.mount(i);const u=En((()=>{a.comment&&Ss({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.comment?a.comment:void 0})})),p=En((()=>{a.pageview&&hc({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.pageview?a.pageview:void 0})}));return{el:i,update:function(){let{comment:e,pageview:t,path:n=window.location.pathname,...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(o).forEach((e=>{let[t,n]=e;s[t]=n})),a.path=n,void 0!==e&&(a.comment=e),void 0!==t&&(a.pageview=t)},destroy:()=>{null==c||c.unmount(),u(),p()}}};e.version="2.6.3";e.RecentComments=e=>{var t;let{el:n,serverURL:o,count:r,lang:l="zh-CN"}=e;const i=ks(),s=Ii(n),a=new AbortController;return(e=>{let{serverURL:t,lang:n,count:o,signal:r,token:l}=e;const i={};return l&&(i.Authorization="Bearer ".concat(l)),fetch("".concat(t,"/comment?type=recent&count=").concat(o,"&lang=").concat(n),{signal:r,headers:i}).then((e=>e.json())).then((e=>xi(e,"recent comment")))})({serverURL:o,count:r,lang:l,signal:a.signal,token:null===(t=i.value)||void 0===t?void 0:t.token}).then((e=>s&&e.length?(s.innerHTML='<ul class="wl-recent-list">'.concat(e.map((e=>'<li class="wl-recent-item"><a href="'.concat(e.url,'">').concat(e.nick,"</a>:").concat(e.comment,"</li>"))).join(""),"</ul>"),{comments:e,destroy:()=>{a.abort(),s.innerHTML=""}}):{comments:e,destroy:()=>a.abort()}))}}));
2
2
  //# sourceMappingURL=waline.js.map