@waline/client 3.0.0-alpha.1 → 3.0.0-alpha.10
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/comment.mjs +1 -1
- package/dist/comment.mjs.map +1 -1
- package/dist/{component.mjs → component.js} +4 -4
- package/dist/component.js.map +1 -0
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/{shim.mjs → slim.js} +5 -5
- package/dist/slim.js.map +1 -0
- package/dist/waline.js +42 -42
- package/dist/waline.js.map +1 -1
- package/dist/waline.umd.js +54 -0
- package/dist/waline.umd.js.map +1 -0
- package/package.json +30 -34
- package/dist/comment.cjs +0 -2
- package/dist/comment.cjs.map +0 -1
- package/dist/comment.d.cts +0 -40
- package/dist/comment.d.mts +0 -40
- package/dist/comment.js +0 -2
- package/dist/comment.js.map +0 -1
- package/dist/component.mjs.map +0 -1
- package/dist/pageview.cjs +0 -2
- package/dist/pageview.cjs.map +0 -1
- package/dist/pageview.d.cts +0 -48
- package/dist/pageview.d.mts +0 -48
- package/dist/pageview.mjs +0 -2
- package/dist/pageview.mjs.map +0 -1
- package/dist/shim.cjs +0 -9
- package/dist/shim.cjs.map +0 -1
- package/dist/shim.d.mts +0 -643
- package/dist/shim.mjs.map +0 -1
- package/dist/waline.cjs +0 -54
- package/dist/waline.cjs.map +0 -1
- package/dist/waline.d.cts +0 -643
- package/dist/waline.d.mts +0 -643
- package/dist/waline.mjs +0 -54
- package/dist/waline.mjs.map +0 -1
- /package/dist/{shim.d.cts → slim.d.ts} +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var Eh=Object.defineProperty;var Rh=(J,fe,pe)=>fe in J?Eh(J,fe,{enumerable:!0,configurable:!0,writable:!0,value:pe}):J[fe]=pe;var Ne=(J,fe,pe)=>(Rh(J,typeof fe!="symbol"?fe+"":fe,pe),pe),Th=(J,fe,pe)=>{if(!fe.has(J))throw TypeError("Cannot "+pe)};var Tr=(J,fe,pe)=>{if(fe.has(J))throw TypeError("Cannot add the same private member more than once");fe instanceof WeakSet?fe.add(J):fe.set(J,pe)};var yi=(J,fe,pe)=>(Th(J,fe,"access private method"),pe);(function(J,fe){typeof exports=="object"&&typeof module<"u"?fe(exports):typeof define=="function"&&define.amd?define(["exports"],fe):(J=typeof globalThis<"u"?globalThis:J||self,fe(J.Waline={}))})(this,function(J){"use strict";var kn,Ar,wi,go;const fe={"Content-Type":"application/json"},pe=e=>`${e.replace(/\/?$/,"/")}api/`,Tt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},bi=({serverURL:e,lang:t,paths:n,type:i,signal:r})=>fetch(`${pe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(i.join(","))}&lang=${t}`,{signal:r}).then(l=>l.json()),$n=({serverURL:e,lang:t,path:n,type:i,action:r})=>fetch(`${pe(e)}article?lang=${t}`,{method:"POST",headers:fe,body:JSON.stringify({path:n,type:i,action:r})}).then(l=>l.json()).then(l=>Tt(l,"Update counter").data),Sr=({serverURL:e,lang:t,path:n,page:i,pageSize:r,sortBy:l,signal:s,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${pe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${r}&page=${i}&lang=${t}&sortBy=${l}`,{signal:s,headers:a}).then(u=>u.json()).then(u=>Tt(u,"Get comment data").data)},Ir=({serverURL:e,lang:t,token:n,comment:i})=>{const r={"Content-Type":"application/json"};return n&&(r.Authorization=`Bearer ${n}`),fetch(`${pe(e)}comment?lang=${t}`,{method:"POST",headers:r,body:JSON.stringify(i)}).then(l=>l.json())},Lr=({serverURL:e,lang:t,token:n,objectId:i})=>fetch(`${pe(e)}comment/${i}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(r=>r.json()).then(r=>Tt(r,"Delete comment")),qt=({serverURL:e,lang:t,token:n,objectId:i,comment:r})=>fetch(`${pe(e)}comment/${i}?lang=${t}`,{method:"PUT",headers:{...fe,Authorization:`Bearer ${n}`},body:JSON.stringify(r)}).then(l=>l.json()).then(l=>Tt(l,"Update comment")),Mr=({serverURL:e,lang:t,paths:n,signal:i})=>fetch(`${pe(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:i}).then(r=>r.json()).then(r=>Tt(r,"Get comment count").data),Or=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,r=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return r==null||r.postMessage({type:"TOKEN",data:null},"*"),new Promise(l=>{const s=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(r==null||r.close(),window.removeEventListener("message",s),l(o.data))};window.addEventListener("message",s)})},zr=({serverURL:e,lang:t,paths:n,signal:i})=>bi({serverURL:e,lang:t,paths:n,type:["time"],signal:i}).then(r=>Array.isArray(r)?r:[r]),jr=e=>$n({...e,type:"time",action:"inc"}),Pr=({serverURL:e,lang:t,count:n,signal:i,token:r})=>{const l={};return r&&(l.Authorization=`Bearer ${r}`),fetch(`${pe(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:i,headers:l}).then(s=>s.json())},Ur=({serverURL:e,signal:t,pageSize:n,lang:i})=>fetch(`${pe(e)}user?pageSize=${n}&lang=${i}`,{signal:t}).then(r=>r.json()).then(r=>Tt(r,"user list")).then(r=>r.data),mo=["nick","mail","link"],Fr=e=>e.filter(t=>mo.includes(t)),Nr=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Hr="en-US",vo=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],wo=e=>new Promise((t,n)=>{if(e.size>128*1e3)return n(new Error("File too large! File size limit 128KB"));const i=new FileReader;i.readAsDataURL(e),i.onload=()=>{var r;return t(((r=i.result)==null?void 0:r.toString())||"")},i.onerror=n}),yo=e=>e===!0?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',bo=e=>{const t=async(n,i={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...i}).toString()}`).then(r=>r.json()).then(({data:r})=>r.map(l=>({title:l.title,src:l.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,i=0)=>t("search",{q:n,offset:i.toString()})}},ko=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,xo=/</,_o=/(?:^|\s)\/\/(.+?)$/gm,Co=/\/\*([\S\s]*?)\*\//gm,$o=new RegExp(`(${ko.source}|${xo.source})|((?:${_o.source})|(?:${Co.source}))`,"gmi"),Dr=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],ki={},Eo=e=>{let t=0;return e.replace($o,(n,i,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if(i==="<")return"<";let l;ki[i]?l=ki[i]:(l=Dr[t],ki[i]=l);const s=`<span style="color: #${l}">${i}</span>`;return t=++t%Dr.length,s})},Ro=["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","oldest","latest","hottest","reactionTitle"],At=e=>Object.fromEntries(e.map((t,n)=>[Ro[n],t]));var xi=At(["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!
|
|
2
|
+
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),En=At(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
|
3
|
+
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Vr=At(["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!
|
|
4
|
+
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),_i=At(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
|
5
|
+
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Ci=At(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
|
6
|
+
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Br=At(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
|
7
|
+
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const St={zh:Ci,"zh-cn":Ci,"zh-CN":Ci,"zh-tw":Br,"zh-TW":Br,en:xi,"en-US":xi,"en-us":xi,jp:En,ja:En,"jp-jp":En,"jp-JP":En,"pt-br":Vr,"pt-BR":Vr,ru:_i,"ru-ru":_i,"ru-RU":_i},Wr=e=>{try{e=decodeURI(e)}catch{}return e},qr=(e="")=>e.replace(/\/$/u,""),Kr=e=>/^(https?:)?\/\//.test(e),Rn=e=>{const t=qr(e);return Kr(t)?t:`https://${t}`},To=e=>Array.isArray(e)?e:e?[0,e]:!1,$i=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Ao=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:i,emoji:r=Nr,meta:l=["nick","mail","link"],requiredMeta:s=[],dark:o=!1,pageSize:a=10,wordLimit:u,imageUploader:f,highlighter:p,texRenderer:h,copyright:v=!0,login:T="enable",search:x,reaction:C,recaptchaV3Key:y="",turnstileKey:R="",commentSorting:P="latest",...N})=>({serverURL:Rn(e),path:Wr(t),locale:{...St[n]||St[Hr],...typeof i=="object"?i:{}},wordLimit:To(u),meta:Fr(l),requiredMeta:Fr(s),imageUploader:$i(f,wo),highlighter:$i(p,Eo),texRenderer:$i(h,yo),lang:Object.keys(St).includes(n)?n:"en-US",dark:o,emoji:typeof r=="boolean"?r?Nr:[]:r,pageSize:a,login:T,copyright:v,search:x===!1?!1:typeof x=="object"?x:bo(n),recaptchaV3Key:y,turnstileKey:R,reaction:Array.isArray(C)?C:C===!0?vo:[],commentSorting:P,...N}),Ei="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bg-color:#1e1e1e;--waline-bg-color-light:#272727;--waline-bg-color-hover: #444;--waline-border-color:#333;--waline-disable-bg-color:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bg-color:#272727;--waline-info-color:#666}",So=e=>typeof e=="string"?e==="auto"?`@media(prefers-color-scheme:dark){body${Ei}}`:`${e}${Ei}`:e===!0?`:root${Ei}`:"",Ri=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Io=e=>{const t=Ri(e.getDate(),2),n=Ri(e.getMonth()+1,2);return`${Ri(e.getFullYear(),2)}-${n}-${t}`},Lo=(e,t,n)=>{if(!e)return"";const i=typeof e=="string"?new Date(e.indexOf(" ")!==-1?e.replace(/-/g,"/"):e):e,r=t.getTime()-i.getTime(),l=Math.floor(r/(24*3600*1e3));if(l===0){const s=r%864e5,o=Math.floor(s/(3600*1e3));if(o===0){const a=s%36e5,u=Math.floor(a/(60*1e3));if(u===0){const f=a%6e4;return`${Math.round(f/1e3)} ${n.seconds}`}return`${u} ${n.minutes}`}return`${o} ${n.hours}`}return l<0?n.now:l<8?`${l} ${n.days}`:Io(i)},Mo=/^[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])?)*$/,Oo=e=>Mo.test(e);function Ti(e,t){const n=new Set(e.split(","));return t?i=>n.has(i.toLowerCase()):i=>n.has(i)}const ce={},It=[],Je=()=>{},zo=()=>!1,Tn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ai=e=>e.startsWith("onUpdate:"),Ce=Object.assign,Zr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},jo=Object.prototype.hasOwnProperty,Q=(e,t)=>jo.call(e,t),H=Array.isArray,Lt=e=>Kt(e)==="[object Map]",Mt=e=>Kt(e)==="[object Set]",Gr=e=>Kt(e)==="[object Date]",ne=e=>typeof e=="function",ye=e=>typeof e=="string",st=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",Jr=e=>(de(e)||ne(e))&&ne(e.then)&&ne(e.catch),Qr=Object.prototype.toString,Kt=e=>Qr.call(e),Po=e=>Kt(e).slice(8,-1),Yr=e=>Kt(e)==="[object Object]",Si=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,An=Ti(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Sn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Uo=/-(\w)/g,Be=Sn(e=>e.replace(Uo,(t,n)=>n?n.toUpperCase():"")),Fo=/\B([A-Z])/g,Ot=Sn(e=>e.replace(Fo,"-$1").toLowerCase()),In=Sn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ii=Sn(e=>e?`on${In(e)}`:""),ot=(e,t)=>!Object.is(e,t),Ln=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Mn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},On=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Xr;const Li=()=>Xr||(Xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zt(e){if(H(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=ye(i)?Vo(i):Zt(i);if(r)for(const l in r)t[l]=r[l]}return t}else if(ye(e)||de(e))return e}const No=/;(?![^(]*\))/g,Ho=/:([^]+)/,Do=/\/\*[^]*?\*\//g;function Vo(e){const t={};return e.replace(Do,"").split(No).forEach(n=>{if(n){const i=n.split(Ho);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function me(e){let t="";if(ye(e))t=e;else if(H(e))for(let n=0;n<e.length;n++){const i=me(e[n]);i&&(t+=i+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Bo=Ti("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function el(e){return!!e||e===""}function Wo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=mt(e[i],t[i]);return n}function mt(e,t){if(e===t)return!0;let n=Gr(e),i=Gr(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=st(e),i=st(t),n||i)return e===t;if(n=H(e),i=H(t),n||i)return n&&i?Wo(e,t):!1;if(n=de(e),i=de(t),n||i){if(!n||!i)return!1;const r=Object.keys(e).length,l=Object.keys(t).length;if(r!==l)return!1;for(const s in e){const o=e.hasOwnProperty(s),a=t.hasOwnProperty(s);if(o&&!a||!o&&a||!mt(e[s],t[s]))return!1}}return String(e)===String(t)}function Mi(e,t){return e.findIndex(n=>mt(n,t))}const ie=e=>ye(e)?e:e==null?"":H(e)||de(e)&&(e.toString===Qr||!ne(e.toString))?JSON.stringify(e,tl,2):String(e),tl=(e,t)=>t&&t.__v_isRef?tl(e,t.value):Lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],l)=>(n[Oi(i,l)+" =>"]=r,n),{})}:Mt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Oi(n))}:st(t)?Oi(t):de(t)&&!H(t)&&!Yr(t)?String(t):t,Oi=(e,t="")=>{var n;return st(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Ie;class qo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ie,!t&&Ie&&(this.index=(Ie.scopes||(Ie.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ie;try{return Ie=this,t()}finally{Ie=n}}}on(){Ie=this}off(){Ie=this.parent}stop(t){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Ko(e,t=Ie){t&&t.active&&t.effects.push(e)}function nl(){return Ie}function Zo(e){Ie&&Ie.cleanups.push(e)}let vt;class zi{constructor(t,n,i,r){this.fn=t,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,Ko(this,r)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,zt();for(const t of this.deps)if(t.computed&&this._dirtyLevel>=2)break;jt(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=at,n=vt;try{return at=!0,vt=this,this._runnings++,il(this),this.fn()}finally{rl(this),this._runnings--,vt=n,at=t}}stop(){var t;this.active&&(il(this),rl(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function il(e){e._trackId++,e._depsLength=0}function rl(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ll(e.deps[t],e);e.deps.length=e._depsLength}}function ll(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let at=!0,ji=0;const sl=[];function zt(){sl.push(at),at=!1}function jt(){const e=sl.pop();at=e===void 0?!0:e}function Pi(){ji++}function Ui(){for(ji--;!ji&&Fi.length;)Fi.shift()()}function ol(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&ll(i,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Fi=[];function al(e,t,n){Pi();for(const i of e.keys())if(!(!i.allowRecurse&&i._runnings)&&i._dirtyLevel<t&&(!i._runnings||t!==2)){const r=i._dirtyLevel;i._dirtyLevel=t,r===0&&(!i._queryings||t!==2)&&(i.trigger(),i.scheduler&&Fi.push(i.scheduler))}Ui()}const cl=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Ni=new WeakMap,wt=Symbol(""),Hi=Symbol("");function Te(e,t,n){if(at&&vt){let i=Ni.get(e);i||Ni.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=cl(()=>i.delete(n))),ol(vt,r)}}function Qe(e,t,n,i,r,l){const s=Ni.get(e);if(!s)return;let o=[];if(t==="clear")o=[...s.values()];else if(n==="length"&&H(e)){const a=Number(i);s.forEach((u,f)=>{(f==="length"||!st(f)&&f>=a)&&o.push(u)})}else switch(n!==void 0&&o.push(s.get(n)),t){case"add":H(e)?Si(n)&&o.push(s.get("length")):(o.push(s.get(wt)),Lt(e)&&o.push(s.get(Hi)));break;case"delete":H(e)||(o.push(s.get(wt)),Lt(e)&&o.push(s.get(Hi)));break;case"set":Lt(e)&&o.push(s.get(wt));break}Pi();for(const a of o)a&&al(a,3);Ui()}const Go=Ti("__proto__,__v_isRef,__isVue"),ul=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(st)),fl=Jo();function Jo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=ee(this);for(let l=0,s=this.length;l<s;l++)Te(i,"get",l+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(ee)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){zt(),Pi();const i=ee(this)[t].apply(this,n);return Ui(),jt(),i}}),e}function Qo(e){const t=ee(this);return Te(t,"has",e),t.hasOwnProperty(e)}class dl{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,i){const r=this._isReadonly,l=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return l;if(n==="__v_raw")return i===(r?l?ua:bl:l?yl:wl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const s=H(t);if(!r){if(s&&Q(fl,n))return Reflect.get(fl,n,i);if(n==="hasOwnProperty")return Qo}const o=Reflect.get(t,n,i);return(st(n)?ul.has(n):Go(n))||(r||Te(t,"get",n),l)?o:$e(o)?s&&Si(n)?o:o.value:de(o)?r?Jt(o):Gt(o):o}}class hl extends dl{constructor(t=!1){super(!1,t)}set(t,n,i,r){let l=t[n];if(!this._shallow){const a=Ut(l);if(!Hn(i)&&!Ut(i)&&(l=ee(l),i=ee(i)),!H(t)&&$e(l)&&!$e(i))return a?!1:(l.value=i,!0)}const s=H(t)&&Si(n)?Number(n)<t.length:Q(t,n),o=Reflect.set(t,n,i,r);return t===ee(r)&&(s?ot(i,l)&&Qe(t,"set",n,i):Qe(t,"add",n,i)),o}deleteProperty(t,n){const i=Q(t,n),r=Reflect.deleteProperty(t,n);return r&&i&&Qe(t,"delete",n,void 0),r}has(t,n){const i=Reflect.has(t,n);return(!st(n)||!ul.has(n))&&Te(t,"has",n),i}ownKeys(t){return Te(t,"iterate",H(t)?"length":wt),Reflect.ownKeys(t)}}class Yo extends dl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Xo=new hl,ea=new Yo,ta=new hl(!0),Di=e=>e,zn=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,i=!1){e=e.__v_raw;const r=ee(e),l=ee(t);n||(ot(t,l)&&Te(r,"get",t),Te(r,"get",l));const{has:s}=zn(r),o=i?Di:n?Wi:Qt;if(s.call(r,t))return o(e.get(t));if(s.call(r,l))return o(e.get(l));e!==r&&e.get(t)}function Pn(e,t=!1){const n=this.__v_raw,i=ee(n),r=ee(e);return t||(ot(e,r)&&Te(i,"has",e),Te(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Un(e,t=!1){return e=e.__v_raw,!t&&Te(ee(e),"iterate",wt),Reflect.get(e,"size",e)}function pl(e){e=ee(e);const t=ee(this);return zn(t).has.call(t,e)||(t.add(e),Qe(t,"add",e,e)),this}function gl(e,t){t=ee(t);const n=ee(this),{has:i,get:r}=zn(n);let l=i.call(n,e);l||(e=ee(e),l=i.call(n,e));const s=r.call(n,e);return n.set(e,t),l?ot(t,s)&&Qe(n,"set",e,t):Qe(n,"add",e,t),this}function ml(e){const t=ee(this),{has:n,get:i}=zn(t);let r=n.call(t,e);r||(e=ee(e),r=n.call(t,e)),i&&i.call(t,e);const l=t.delete(e);return r&&Qe(t,"delete",e,void 0),l}function vl(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&Qe(e,"clear",void 0,void 0),n}function Fn(e,t){return function(i,r){const l=this,s=l.__v_raw,o=ee(s),a=t?Di:e?Wi:Qt;return!e&&Te(o,"iterate",wt),s.forEach((u,f)=>i.call(r,a(u),a(f),l))}}function Nn(e,t,n){return function(...i){const r=this.__v_raw,l=ee(r),s=Lt(l),o=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,u=r[e](...i),f=n?Di:t?Wi:Qt;return!t&&Te(l,"iterate",a?Hi:wt),{next(){const{value:p,done:h}=u.next();return h?{value:p,done:h}:{value:o?[f(p[0]),f(p[1])]:f(p),done:h}},[Symbol.iterator](){return this}}}}function ct(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function na(){const e={get(l){return jn(this,l)},get size(){return Un(this)},has:Pn,add:pl,set:gl,delete:ml,clear:vl,forEach:Fn(!1,!1)},t={get(l){return jn(this,l,!1,!0)},get size(){return Un(this)},has:Pn,add:pl,set:gl,delete:ml,clear:vl,forEach:Fn(!1,!0)},n={get(l){return jn(this,l,!0)},get size(){return Un(this,!0)},has(l){return Pn.call(this,l,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Fn(!0,!1)},i={get(l){return jn(this,l,!0,!0)},get size(){return Un(this,!0)},has(l){return Pn.call(this,l,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:Fn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Nn(l,!1,!1),n[l]=Nn(l,!0,!1),t[l]=Nn(l,!1,!0),i[l]=Nn(l,!0,!0)}),[e,n,t,i]}const[ia,ra,la,sa]=na();function Vi(e,t){const n=t?e?sa:la:e?ra:ia;return(i,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(Q(n,r)&&r in i?n:i,r,l)}const oa={get:Vi(!1,!1)},aa={get:Vi(!1,!0)},ca={get:Vi(!0,!1)},wl=new WeakMap,yl=new WeakMap,bl=new WeakMap,ua=new WeakMap;function fa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function da(e){return e.__v_skip||!Object.isExtensible(e)?0:fa(Po(e))}function Gt(e){return Ut(e)?e:Bi(e,!1,Xo,oa,wl)}function ha(e){return Bi(e,!1,ta,aa,yl)}function Jt(e){return Bi(e,!0,ea,ca,bl)}function Bi(e,t,n,i,r){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=r.get(e);if(l)return l;const s=da(e);if(s===0)return e;const o=new Proxy(e,s===2?i:n);return r.set(e,o),o}function Pt(e){return Ut(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function Ut(e){return!!(e&&e.__v_isReadonly)}function Hn(e){return!!(e&&e.__v_isShallow)}function kl(e){return Pt(e)||Ut(e)}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function xl(e){return Mn(e,"__v_skip",!0),e}const Qt=e=>de(e)?Gt(e):e,Wi=e=>de(e)?Jt(e):e;class _l{constructor(t,n,i,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new zi(()=>t(this._value),()=>qi(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=ee(this);return Cl(t),(!t._cacheable||t.effect.dirty)&&ot(t._value,t._value=t.effect.run())&&qi(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function pa(e,t,n=!1){let i,r;const l=ne(e);return l?(i=e,r=Je):(i=e.get,r=e.set),new _l(i,r,l||!r,n)}function Cl(e){at&&vt&&(e=ee(e),ol(vt,e.dep||(e.dep=cl(()=>e.dep=void 0,e instanceof _l?e:void 0))))}function qi(e,t=3,n){e=ee(e);const i=e.dep;i&&al(i,t)}function $e(e){return!!(e&&e.__v_isRef===!0)}function W(e){return $l(e,!1)}function ga(e){return $l(e,!0)}function $l(e,t){return $e(e)?e:new ma(e,t)}class ma{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:Qt(t)}get value(){return Cl(this),this._value}set value(t){const n=this.__v_isShallow||Hn(t)||Ut(t);t=n?t:ee(t),ot(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Qt(t),qi(this,3))}}function Z(e){return $e(e)?e.value:e}const va={get:(e,t,n)=>Z(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return $e(r)&&!$e(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function El(e){return Pt(e)?e:new Proxy(e,va)}function ut(e,t,n,i){let r;try{r=i?e(...i):e()}catch(l){Dn(l,t,n)}return r}function We(e,t,n,i){if(ne(e)){const l=ut(e,t,n,i);return l&&Jr(l)&&l.catch(s=>{Dn(s,t,n)}),l}const r=[];for(let l=0;l<e.length;l++)r.push(We(e[l],t,n,i));return r}function Dn(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let l=t.parent;const s=t.proxy,o=`https://vuejs.org/errors/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,s,o)===!1)return}l=l.parent}const a=t.appContext.config.errorHandler;if(a){ut(a,null,10,[e,s,o]);return}}wa(e,n,r,i)}function wa(e,t,n,i=!0){console.error(e)}let Yt=!1,Ki=!1;const xe=[];let qe=0;const Ft=[];let Ye=null,yt=0;const Rl=Promise.resolve();let Zi=null;function Vn(e){const t=Zi||Rl;return e?t.then(this?e.bind(this):e):t}function ya(e){let t=qe+1,n=xe.length;for(;t<n;){const i=t+n>>>1,r=xe[i],l=Xt(r);l<e||l===e&&r.pre?t=i+1:n=i}return t}function Gi(e){(!xe.length||!xe.includes(e,Yt&&e.allowRecurse?qe+1:qe))&&(e.id==null?xe.push(e):xe.splice(ya(e.id),0,e),Tl())}function Tl(){!Yt&&!Ki&&(Ki=!0,Zi=Rl.then(Il))}function ba(e){const t=xe.indexOf(e);t>qe&&xe.splice(t,1)}function ka(e){H(e)?Ft.push(...e):(!Ye||!Ye.includes(e,e.allowRecurse?yt+1:yt))&&Ft.push(e),Tl()}function Al(e,t,n=Yt?qe+1:0){for(;n<xe.length;n++){const i=xe[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;xe.splice(n,1),n--,i()}}}function Sl(e){if(Ft.length){const t=[...new Set(Ft)];if(Ft.length=0,Ye){Ye.push(...t);return}for(Ye=t,Ye.sort((n,i)=>Xt(n)-Xt(i)),yt=0;yt<Ye.length;yt++)Ye[yt]();Ye=null,yt=0}}const Xt=e=>e.id==null?1/0:e.id,xa=(e,t)=>{const n=Xt(e)-Xt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Il(e){Ki=!1,Yt=!0,xe.sort(xa);try{for(qe=0;qe<xe.length;qe++){const t=xe[qe];t&&t.active!==!1&&ut(t,null,14)}}finally{qe=0,xe.length=0,Sl(),Yt=!1,Zi=null,(xe.length||Ft.length)&&Il()}}function _a(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||ce;let r=n;const l=t.startsWith("update:"),s=l&&t.slice(7);if(s&&s in i){const f=`${s==="modelValue"?"model":s}Modifiers`,{number:p,trim:h}=i[f]||ce;h&&(r=n.map(v=>ye(v)?v.trim():v)),p&&(r=n.map(On))}let o,a=i[o=Ii(t)]||i[o=Ii(Be(t))];!a&&l&&(a=i[o=Ii(Ot(t))]),a&&We(a,e,6,r);const u=i[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,We(u,e,6,r)}}function Ca(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const l=e.emits;let s={};return!l&&!!1?(de(e)&&i.set(e,null),null):(H(l)?l.forEach(a=>s[a]=null):Ce(s,l),de(e)&&i.set(e,s),s)}function Bn(e,t){return!e||!Tn(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,Ot(t))||Q(e,t))}let Le=null,Ll=null;function Wn(e){const t=Le;return Le=e,Ll=e&&e.type.__scopeId||null,t}function $a(e,t=Le,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&Xl(-1);const l=Wn(t);let s;try{s=e(...r)}finally{Wn(l),i._d&&Xl(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function Ji(e){const{type:t,vnode:n,proxy:i,withProxy:r,props:l,propsOptions:[s],slots:o,attrs:a,emit:u,render:f,renderCache:p,data:h,setupState:v,ctx:T,inheritAttrs:x}=e;let C,y;const R=Wn(e);try{if(n.shapeFlag&4){const N=r||i,U=N;C=Ke(f.call(U,N,p,l,v,h,T)),y=a}else{const N=t;C=Ke(N.length>1?N(l,{attrs:a,slots:o,emit:u}):N(l,null)),y=t.props?a:Ea(a)}}catch(N){ln.length=0,Dn(N,e,1),C=re(_t)}let P=C;if(y&&x!==!1){const N=Object.keys(y),{shapeFlag:U}=P;N.length&&U&7&&(s&&N.some(Ai)&&(y=Ra(y,s)),P=Nt(P,y))}return n.dirs&&(P=Nt(P),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&(P.transition=n.transition),C=P,Wn(R),C}const Ea=e=>{let t;for(const n in e)(n==="class"||n==="style"||Tn(n))&&((t||(t={}))[n]=e[n]);return t},Ra=(e,t)=>{const n={};for(const i in e)(!Ai(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Ta(e,t,n){const{props:i,children:r,component:l}=e,{props:s,children:o,patchFlag:a}=t,u=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?Ml(i,s,u):!!s;if(a&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const h=f[p];if(s[h]!==i[h]&&!Bn(u,h))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===s?!1:i?s?Ml(i,s,u):!0:!!s;return!1}function Ml(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let r=0;r<i.length;r++){const l=i[r];if(t[l]!==e[l]&&!Bn(n,l))return!0}return!1}function Aa({vnode:e,parent:t},n){if(n)for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ol="components";function Sa(e,t){return La(Ol,e,!0,t)||e}const Ia=Symbol.for("v-ndc");function La(e,t,n=!0,i=!1){const r=Le||Se;if(r){const l=r.type;if(e===Ol){const o=wc(l,!1);if(o&&(o===t||o===Be(t)||o===In(Be(t))))return l}const s=zl(r[e]||l[e],t)||zl(r.appContext[e],t);return!s&&i?l:s}}function zl(e,t){return e&&(e[t]||e[Be(t)]||e[In(Be(t))])}const Ma=e=>e.__isSuspense;function Oa(e,t){t&&t.pendingBranch?H(e)?t.effects.push(...e):t.effects.push(e):ka(e)}const za=Symbol.for("v-scx"),ja=()=>Yn(za);function jl(e,t){return Pl(e,null,t)}const qn={};function ze(e,t,n){return Pl(e,t,n)}function Pl(e,t,{immediate:n,deep:i,flush:r,once:l,onTrack:s,onTrigger:o}=ce){if(t&&l){const O=t;t=(...B)=>{O(...B),U()}}const a=Se,u=O=>i===!0?O:bt(O,i===!1?1:void 0);let f,p=!1,h=!1;if($e(e)?(f=()=>e.value,p=Hn(e)):Pt(e)?(f=()=>u(e),p=!0):H(e)?(h=!0,p=e.some(O=>Pt(O)||Hn(O)),f=()=>e.map(O=>{if($e(O))return O.value;if(Pt(O))return u(O);if(ne(O))return ut(O,a,2)})):ne(e)?t?f=()=>ut(e,a,2):f=()=>(v&&v(),We(e,a,3,[T])):f=Je,t&&i){const O=f;f=()=>bt(O())}let v,T=O=>{v=P.onStop=()=>{ut(O,a,4),v=P.onStop=void 0}},x;if(ni)if(T=Je,t?n&&We(t,a,3,[f(),h?[]:void 0,T]):f(),r==="sync"){const O=ja();x=O.__watcherHandles||(O.__watcherHandles=[])}else return Je;let C=h?new Array(e.length).fill(qn):qn;const y=()=>{if(!(!P.active||!P.dirty))if(t){const O=P.run();(i||p||(h?O.some((B,V)=>ot(B,C[V])):ot(O,C)))&&(v&&v(),We(t,a,3,[O,C===qn?void 0:h&&C[0]===qn?[]:C,T]),C=O)}else P.run()};y.allowRecurse=!!t;let R;r==="sync"?R=y:r==="post"?R=()=>Ae(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),R=()=>Gi(y));const P=new zi(f,Je,R),N=nl(),U=()=>{P.stop(),N&&Zr(N.effects,P)};return t?n?y():C=P.run():r==="post"?Ae(P.run.bind(P),a&&a.suspense):P.run(),x&&x.push(U),U}function bt(e,t,n=0,i){if(!de(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(i=i||new Set,i.has(e))return e;if(i.add(e),$e(e))bt(e.value,t,n,i);else if(H(e))for(let r=0;r<e.length;r++)bt(e[r],t,n,i);else if(Mt(e)||Lt(e))e.forEach(r=>{bt(r,t,n,i)});else if(Yr(e))for(const r in e)bt(e[r],t,n,i);return e}function Kn(e,t){const n=Le;if(n===null)return e;const i=ii(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[s,o,a,u=ce]=t[l];s&&(ne(s)&&(s={mounted:s,updated:s}),s.deep&&bt(o),r.push({dir:s,instance:i,value:o,oldValue:void 0,arg:a,modifiers:u}))}return e}function kt(e,t,n,i){const r=e.dirs,l=t&&t.dirs;for(let s=0;s<r.length;s++){const o=r[s];l&&(o.oldValue=l[s].value);let a=o.dir[i];a&&(zt(),We(a,n,8,[e.el,o,e,t]),jt())}}/*! #__NO_SIDE_EFFECTS__ */function en(e,t){return ne(e)?Ce({name:e.name},t,{setup:e}):e}const Zn=e=>!!e.type.__asyncLoader,Pa=e=>e.type.__isKeepAlive;function Ua(e,t,n=Se,i=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;zt(),cr(n);const o=We(t,n,e,s);return an(),jt(),o});return i?r.unshift(l):r.push(l),l}}const Qi=e=>(t,n=Se)=>(!ni||e==="sp")&&Ua(e,(...i)=>t(...i),n),tn=Qi("m"),Fa=Qi("bum"),Gn=Qi("um");function je(e,t,n,i){let r;const l=n&&n[i];if(H(e)||ye(e)){r=new Array(e.length);for(let s=0,o=e.length;s<o;s++)r[s]=t(e[s],s,void 0,l&&l[s])}else if(typeof e=="number"){r=new Array(e);for(let s=0;s<e;s++)r[s]=t(s+1,s,void 0,l&&l[s])}else if(de(e))if(e[Symbol.iterator])r=Array.from(e,(s,o)=>t(s,o,void 0,l&&l[o]));else{const s=Object.keys(e);r=new Array(s.length);for(let o=0,a=s.length;o<a;o++){const u=s[o];r[o]=t(e[u],u,o,l&&l[o])}}else r=[];return n&&(n[i]=r),r}const Yi=e=>e?ns(e)?ii(e)||e.proxy:Yi(e.parent):null,nn=Ce(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=>Yi(e.parent),$root:e=>Yi(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Gi(e.update)}),$nextTick:e=>e.n||(e.n=Vn.bind(e.proxy)),$watch:e=>Je}),Xi=(e,t)=>e!==ce&&!e.__isScriptSetup&&Q(e,t),Na={get({_:e},t){const{ctx:n,setupState:i,data:r,props:l,accessCache:s,type:o,appContext:a}=e;let u;if(t[0]!=="$"){const v=s[t];if(v!==void 0)switch(v){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return l[t]}else{if(Xi(i,t))return s[t]=1,i[t];if(r!==ce&&Q(r,t))return s[t]=2,r[t];if((u=e.propsOptions[0])&&Q(u,t))return s[t]=3,l[t];if(n!==ce&&Q(n,t))return s[t]=4,n[t];s[t]=0}}const f=nn[t];let p,h;if(f)return t==="$attrs"&&Te(e,"get",t),f(e);if((p=o.__cssModules)&&(p=p[t]))return p;if(n!==ce&&Q(n,t))return s[t]=4,n[t];if(h=a.config.globalProperties,Q(h,t))return h[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:l}=e;return Xi(r,t)?(r[t]=n,!0):i!==ce&&Q(i,t)?(i[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:l}},s){let o;return!!n[s]||e!==ce&&Q(e,s)||Xi(t,s)||(o=l[0])&&Q(o,s)||Q(i,s)||Q(nn,s)||Q(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ul(e){return H(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Ha(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:l,config:{optionMergeStrategies:s}}=e.appContext,o=l.get(t);let a;return o?a=o:!r.length&&!n&&!i?a=t:(a={},r.length&&r.forEach(u=>Jn(a,u,s,!0)),Jn(a,t,s)),de(t)&&l.set(t,a),a}function Jn(e,t,n,i=!1){const{mixins:r,extends:l}=t;l&&Jn(e,l,n,!0),r&&r.forEach(s=>Jn(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const o=Da[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const Da={data:Fl,props:Hl,emits:Hl,methods:rn,computed:rn,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:rn,directives:rn,watch:Ba,provide:Fl,inject:Va};function Fl(e,t){return t?e?function(){return Ce(ne(e)?e.call(this,this):e,ne(t)?t.call(this,this):t)}:t:e}function Va(e,t){return rn(Nl(e),Nl(t))}function Nl(e){if(H(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ee(e,t){return e?[...new Set([].concat(e,t))]:t}function rn(e,t){return e?Ce(Object.create(null),e,t):t}function Hl(e,t){return e?H(e)&&H(t)?[...new Set([...e,...t])]:Ce(Object.create(null),Ul(e),Ul(t??{})):t}function Ba(e,t){if(!e)return t;if(!t)return e;const n=Ce(Object.create(null),e);for(const i in t)n[i]=Ee(e[i],t[i]);return n}function Dl(){return{app:null,config:{isNativeTag:zo,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 Wa=0;function qa(e,t){return function(i,r=null){ne(i)||(i=Ce({},i)),r!=null&&!de(r)&&(r=null);const l=Dl(),s=new WeakSet;let o=!1;const a=l.app={_uid:Wa++,_component:i,_props:r,_container:null,_context:l,_instance:null,version:bc,get config(){return l.config},set config(u){},use(u,...f){return s.has(u)||(u&&ne(u.install)?(s.add(u),u.install(a,...f)):ne(u)&&(s.add(u),u(a,...f))),a},mixin(u){return a},component(u,f){return f?(l.components[u]=f,a):l.components[u]},directive(u,f){return f?(l.directives[u]=f,a):l.directives[u]},mount(u,f,p){if(!o){const h=re(i,r);return h.appContext=l,p===!0?p="svg":p===!1&&(p=void 0),f&&t?t(h,u):e(h,u,p),o=!0,a._container=u,u.__vue_app__=a,ii(h.component)||h.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(u,f){return l.provides[u]=f,a},runWithContext(u){Qn=a;try{return u()}finally{Qn=null}}};return a}}let Qn=null;function Ka(e,t){if(Se){let n=Se.provides;const i=Se.parent&&Se.parent.provides;i===n&&(n=Se.provides=Object.create(i)),n[e]=t}}function Yn(e,t,n=!1){const i=Se||Le;if(i||Qn){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:Qn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ne(t)?t.call(i&&i.proxy):t}}function Za(e,t,n,i=!1){const r={},l={};Mn(l,ei,1),e.propsDefaults=Object.create(null),Vl(e,t,r,l);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=i?r:ha(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function Ga(e,t,n,i){const{props:r,attrs:l,vnode:{patchFlag:s}}=e,o=ee(r),[a]=e.propsOptions;let u=!1;if((i||s>0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let h=f[p];if(Bn(e.emitsOptions,h))continue;const v=t[h];if(a)if(Q(l,h))v!==l[h]&&(l[h]=v,u=!0);else{const T=Be(h);r[T]=er(a,o,T,v,e,!1)}else v!==l[h]&&(l[h]=v,u=!0)}}}else{Vl(e,t,r,l)&&(u=!0);let f;for(const p in o)(!t||!Q(t,p)&&((f=Ot(p))===p||!Q(t,f)))&&(a?n&&(n[p]!==void 0||n[f]!==void 0)&&(r[p]=er(a,o,p,void 0,e,!0)):delete r[p]);if(l!==o)for(const p in l)(!t||!Q(t,p))&&(delete l[p],u=!0)}u&&Qe(e,"set","$attrs")}function Vl(e,t,n,i){const[r,l]=e.propsOptions;let s=!1,o;if(t)for(let a in t){if(An(a))continue;const u=t[a];let f;r&&Q(r,f=Be(a))?!l||!l.includes(f)?n[f]=u:(o||(o={}))[f]=u:Bn(e.emitsOptions,a)||(!(a in i)||u!==i[a])&&(i[a]=u,s=!0)}if(l){const a=ee(n),u=o||ce;for(let f=0;f<l.length;f++){const p=l[f];n[p]=er(r,a,p,u[p],e,!Q(u,p))}}return s}function er(e,t,n,i,r,l){const s=e[n];if(s!=null){const o=Q(s,"default");if(o&&i===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ne(a)){const{propsDefaults:u}=r;n in u?i=u[n]:(cr(r),i=u[n]=a.call(null,t),an())}else i=a}s[0]&&(l&&!o?i=!1:s[1]&&(i===""||i===Ot(n))&&(i=!0))}return i}function Ja(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const l=e.props,s={},o=[];if(!l&&!!1)return de(e)&&i.set(e,It),It;if(H(l))for(let f=0;f<l.length;f++){const p=Be(l[f]);Bl(p)&&(s[p]=ce)}else if(l)for(const f in l){const p=Be(f);if(Bl(p)){const h=l[f],v=s[p]=H(h)||ne(h)?{type:h}:Ce({},h);if(v){const T=Kl(Boolean,v.type),x=Kl(String,v.type);v[0]=T>-1,v[1]=x<0||T<x,(T>-1||Q(v,"default"))&&o.push(p)}}}const u=[s,o];return de(e)&&i.set(e,u),u}function Bl(e){return e[0]!=="$"}function Wl(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ql(e,t){return Wl(e)===Wl(t)}function Kl(e,t){return H(t)?t.findIndex(n=>ql(n,e)):ne(t)&&ql(t,e)?0:-1}const Zl=e=>e[0]==="_"||e==="$stable",tr=e=>H(e)?e.map(Ke):[Ke(e)],Qa=(e,t,n)=>{if(t._n)return t;const i=$a((...r)=>tr(t(...r)),n);return i._c=!1,i},Gl=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Zl(r))continue;const l=e[r];if(ne(l))t[r]=Qa(r,l,i);else if(l!=null){const s=tr(l);t[r]=()=>s}}},Jl=(e,t)=>{const n=tr(t);e.slots.default=()=>n},Ya=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ee(t),Mn(t,"_",n)):Gl(t,e.slots={})}else e.slots={},t&&Jl(e,t);Mn(e.slots,ei,1)},Xa=(e,t,n)=>{const{vnode:i,slots:r}=e;let l=!0,s=ce;if(i.shapeFlag&32){const o=t._;o?n&&o===1?l=!1:(Ce(r,t),!n&&o===1&&delete r._):(l=!t.$stable,Gl(t,r)),s=t}else t&&(Jl(e,t),s={default:1});if(l)for(const o in r)!Zl(o)&&s[o]==null&&delete r[o]};function nr(e,t,n,i,r=!1){if(H(e)){e.forEach((h,v)=>nr(h,t&&(H(t)?t[v]:t),n,i,r));return}if(Zn(i)&&!r)return;const l=i.shapeFlag&4?ii(i.component)||i.component.proxy:i.el,s=r?null:l,{i:o,r:a}=e,u=t&&t.r,f=o.refs===ce?o.refs={}:o.refs,p=o.setupState;if(u!=null&&u!==a&&(ye(u)?(f[u]=null,Q(p,u)&&(p[u]=null)):$e(u)&&(u.value=null)),ne(a))ut(a,o,12,[s,f]);else{const h=ye(a),v=$e(a);if(h||v){const T=()=>{if(e.f){const x=h?Q(p,a)?p[a]:f[a]:a.value;r?H(x)&&Zr(x,l):H(x)?x.includes(l)||x.push(l):h?(f[a]=[l],Q(p,a)&&(p[a]=f[a])):(a.value=[l],e.k&&(f[e.k]=a.value))}else h?(f[a]=s,Q(p,a)&&(p[a]=s)):v&&(a.value=s,e.k&&(f[e.k]=s))};s?(T.id=-1,Ae(T,n)):T()}}}function ec(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Li().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ae=Oa;function tc(e){return nc(e)}function nc(e,t){ec();const n=Li();n.__VUE__=!0;const{insert:i,remove:r,patchProp:l,createElement:s,createText:o,createComment:a,setText:u,setElementText:f,parentNode:p,nextSibling:h,setScopeId:v=Je,insertStaticContent:T}=e,x=(c,d,g,m=null,w=null,b=null,$=void 0,_=null,E=!!d.dynamicChildren)=>{if(c===d)return;c&&!on(c,d)&&(m=Rt(c),Ue(c,w,b,!0),c=null),d.patchFlag===-2&&(E=!1,d.dynamicChildren=null);const{type:k,ref:S,shapeFlag:F}=d;switch(k){case Xn:C(c,d,g,m);break;case _t:y(c,d,g,m);break;case rr:c==null&&R(d,g,m,$);break;case oe:De(c,d,g,m,w,b,$,_,E);break;default:F&1?U(c,d,g,m,w,b,$,_,E):F&6?q(c,d,g,m,w,b,$,_,E):(F&64||F&128)&&k.process(c,d,g,m,w,b,$,_,E,lt)}S!=null&&w&&nr(S,c&&c.ref,b,d||c,!d)},C=(c,d,g,m)=>{if(c==null)i(d.el=o(d.children),g,m);else{const w=d.el=c.el;d.children!==c.children&&u(w,d.children)}},y=(c,d,g,m)=>{c==null?i(d.el=a(d.children||""),g,m):d.el=c.el},R=(c,d,g,m)=>{[c.el,c.anchor]=T(c.children,d,g,m,c.el,c.anchor)},P=({el:c,anchor:d},g,m)=>{let w;for(;c&&c!==d;)w=h(c),i(c,g,m),c=w;i(d,g,m)},N=({el:c,anchor:d})=>{let g;for(;c&&c!==d;)g=h(c),r(c),c=g;r(d)},U=(c,d,g,m,w,b,$,_,E)=>{d.type==="svg"?$="svg":d.type==="math"&&($="mathml"),c==null?O(d,g,m,w,b,$,_,E):G(c,d,w,b,$,_,E)},O=(c,d,g,m,w,b,$,_)=>{let E,k;const{props:S,shapeFlag:F,transition:z,dirs:L}=c;if(E=c.el=s(c.type,b,S&&S.is,S),F&8?f(E,c.children):F&16&&V(c.children,E,null,m,w,ir(c,b),$,_),L&&kt(c,null,m,"created"),B(E,c,c.scopeId,$,m),S){for(const X in S)X!=="value"&&!An(X)&&l(E,X,null,S[X],b,c.children,m,w,Fe);"value"in S&&l(E,"value",null,S.value,b),(k=S.onVnodeBeforeMount)&&Ze(k,m,c)}L&&kt(c,null,m,"beforeMount");const K=ic(w,z);K&&z.beforeEnter(E),i(E,d,g),((k=S&&S.onVnodeMounted)||K||L)&&Ae(()=>{k&&Ze(k,m,c),K&&z.enter(E),L&&kt(c,null,m,"mounted")},w)},B=(c,d,g,m,w)=>{if(g&&v(c,g),m)for(let b=0;b<m.length;b++)v(c,m[b]);if(w){let b=w.subTree;if(d===b){const $=w.vnode;B(c,$,$.scopeId,$.slotScopeIds,w.parent)}}},V=(c,d,g,m,w,b,$,_,E=0)=>{for(let k=E;k<c.length;k++){const S=c[k]=_?ft(c[k]):Ke(c[k]);x(null,S,d,g,m,w,b,$,_)}},G=(c,d,g,m,w,b,$)=>{const _=d.el=c.el;let{patchFlag:E,dynamicChildren:k,dirs:S}=d;E|=c.patchFlag&16;const F=c.props||ce,z=d.props||ce;let L;if(g&&xt(g,!1),(L=z.onVnodeBeforeUpdate)&&Ze(L,g,d,c),S&&kt(d,c,g,"beforeUpdate"),g&&xt(g,!0),k?ae(c.dynamicChildren,k,_,g,m,ir(d,w),b):$||_e(c,d,_,null,g,m,ir(d,w),b,!1),E>0){if(E&16)Re(_,d,F,z,g,m,w);else if(E&2&&F.class!==z.class&&l(_,"class",null,z.class,w),E&4&&l(_,"style",F.style,z.style,w),E&8){const K=d.dynamicProps;for(let X=0;X<K.length;X++){const ue=K[X],we=F[ue],Ve=z[ue];(Ve!==we||ue==="value")&&l(_,ue,we,Ve,w,c.children,g,m,Fe)}}E&1&&c.children!==d.children&&f(_,d.children)}else!$&&k==null&&Re(_,d,F,z,g,m,w);((L=z.onVnodeUpdated)||S)&&Ae(()=>{L&&Ze(L,g,d,c),S&&kt(d,c,g,"updated")},m)},ae=(c,d,g,m,w,b,$)=>{for(let _=0;_<d.length;_++){const E=c[_],k=d[_],S=E.el&&(E.type===oe||!on(E,k)||E.shapeFlag&70)?p(E.el):g;x(E,k,S,null,m,w,b,$,!0)}},Re=(c,d,g,m,w,b,$)=>{if(g!==m){if(g!==ce)for(const _ in g)!An(_)&&!(_ in m)&&l(c,_,g[_],null,$,d.children,w,b,Fe);for(const _ in m){if(An(_))continue;const E=m[_],k=g[_];E!==k&&_!=="value"&&l(c,_,k,E,$,d.children,w,b,Fe)}"value"in m&&l(c,"value",g.value,m.value,$)}},De=(c,d,g,m,w,b,$,_,E)=>{const k=d.el=c?c.el:o(""),S=d.anchor=c?c.anchor:o("");let{patchFlag:F,dynamicChildren:z,slotScopeIds:L}=d;L&&(_=_?_.concat(L):L),c==null?(i(k,g,m),i(S,g,m),V(d.children,g,S,w,b,$,_,E)):F>0&&F&64&&z&&c.dynamicChildren?(ae(c.dynamicChildren,z,g,w,b,$,_),(d.key!=null||w&&d===w.subTree)&&Ql(c,d,!0)):_e(c,d,g,S,w,b,$,_,E)},q=(c,d,g,m,w,b,$,_,E)=>{d.slotScopeIds=_,c==null?d.shapeFlag&512?w.ctx.activate(d,g,m,$,E):D(d,g,m,w,b,$,E):se(c,d,E)},D=(c,d,g,m,w,b,$)=>{const _=c.component=dc(c,m,w);if(Pa(c)&&(_.ctx.renderer=lt),pc(_),_.asyncDep){if(w&&w.registerDep(_,ve),!c.el){const E=_.subTree=re(_t);y(null,E,d,g)}}else ve(_,c,d,g,w,b,$)},se=(c,d,g)=>{const m=d.component=c.component;if(Ta(c,d,g))if(m.asyncDep&&!m.asyncResolved){ge(m,d,g);return}else m.next=d,ba(m.update),m.effect.dirty=!0,m.update();else d.el=c.el,m.vnode=d},ve=(c,d,g,m,w,b,$)=>{const _=()=>{if(c.isMounted){let{next:S,bu:F,u:z,parent:L,vnode:K}=c;{const Wt=Yl(c);if(Wt){S&&(S.el=K.el,ge(c,S,$)),Wt.asyncDep.then(()=>{c.isUnmounted||_()});return}}let X=S,ue;xt(c,!1),S?(S.el=K.el,ge(c,S,$)):S=K,F&&Ln(F),(ue=S.props&&S.props.onVnodeBeforeUpdate)&&Ze(ue,L,S,K),xt(c,!0);const we=Ji(c),Ve=c.subTree;c.subTree=we,x(Ve,we,p(Ve.el),Rt(Ve),c,w,b),S.el=we.el,X===null&&Aa(c,we.el),z&&Ae(z,w),(ue=S.props&&S.props.onVnodeUpdated)&&Ae(()=>Ze(ue,L,S,K),w)}else{let S;const{el:F,props:z}=d,{bm:L,m:K,parent:X}=c,ue=Zn(d);if(xt(c,!1),L&&Ln(L),!ue&&(S=z&&z.onVnodeBeforeMount)&&Ze(S,X,d),xt(c,!0),F&&I){const we=()=>{c.subTree=Ji(c),I(F,c.subTree,c,w,null)};ue?d.type.__asyncLoader().then(()=>!c.isUnmounted&&we()):we()}else{const we=c.subTree=Ji(c);x(null,we,g,m,c,w,b),d.el=we.el}if(K&&Ae(K,w),!ue&&(S=z&&z.onVnodeMounted)){const we=d;Ae(()=>Ze(S,X,we),w)}(d.shapeFlag&256||X&&Zn(X.vnode)&&X.vnode.shapeFlag&256)&&c.a&&Ae(c.a,w),c.isMounted=!0,d=g=m=null}},E=c.effect=new zi(_,Je,()=>Gi(k),c.scope),k=c.update=()=>{E.dirty&&E.run()};k.id=c.uid,xt(c,!0),k()},ge=(c,d,g)=>{d.component=c;const m=c.vnode.props;c.vnode=d,c.next=null,Ga(c,d.props,m,g),Xa(c,d.children,g),zt(),Al(c),jt()},_e=(c,d,g,m,w,b,$,_,E=!1)=>{const k=c&&c.children,S=c?c.shapeFlag:0,F=d.children,{patchFlag:z,shapeFlag:L}=d;if(z>0){if(z&128){gt(k,F,g,m,w,b,$,_,E);return}else if(z&256){ke(k,F,g,m,w,b,$,_,E);return}}L&8?(S&16&&Fe(k,w,b),F!==k&&f(g,F)):S&16?L&16?gt(k,F,g,m,w,b,$,_,E):Fe(k,w,b,!0):(S&8&&f(g,""),L&16&&V(F,g,m,w,b,$,_,E))},ke=(c,d,g,m,w,b,$,_,E)=>{c=c||It,d=d||It;const k=c.length,S=d.length,F=Math.min(k,S);let z;for(z=0;z<F;z++){const L=d[z]=E?ft(d[z]):Ke(d[z]);x(c[z],L,g,null,w,b,$,_,E)}k>S?Fe(c,w,b,!0,!1,F):V(d,g,m,w,b,$,_,E,F)},gt=(c,d,g,m,w,b,$,_,E)=>{let k=0;const S=d.length;let F=c.length-1,z=S-1;for(;k<=F&&k<=z;){const L=c[k],K=d[k]=E?ft(d[k]):Ke(d[k]);if(on(L,K))x(L,K,g,null,w,b,$,_,E);else break;k++}for(;k<=F&&k<=z;){const L=c[F],K=d[z]=E?ft(d[z]):Ke(d[z]);if(on(L,K))x(L,K,g,null,w,b,$,_,E);else break;F--,z--}if(k>F){if(k<=z){const L=z+1,K=L<S?d[L].el:m;for(;k<=z;)x(null,d[k]=E?ft(d[k]):Ke(d[k]),g,K,w,b,$,_,E),k++}}else if(k>z)for(;k<=F;)Ue(c[k],w,b,!0),k++;else{const L=k,K=k,X=new Map;for(k=K;k<=z;k++){const Oe=d[k]=E?ft(d[k]):Ke(d[k]);Oe.key!=null&&X.set(Oe.key,k)}let ue,we=0;const Ve=z-K+1;let Wt=!1,fo=0;const Cn=new Array(Ve);for(k=0;k<Ve;k++)Cn[k]=0;for(k=L;k<=F;k++){const Oe=c[k];if(we>=Ve){Ue(Oe,w,b,!0);continue}let Ge;if(Oe.key!=null)Ge=X.get(Oe.key);else for(ue=K;ue<=z;ue++)if(Cn[ue-K]===0&&on(Oe,d[ue])){Ge=ue;break}Ge===void 0?Ue(Oe,w,b,!0):(Cn[Ge-K]=k+1,Ge>=fo?fo=Ge:Wt=!0,x(Oe,d[Ge],g,null,w,b,$,_,E),we++)}const ho=Wt?rc(Cn):It;for(ue=ho.length-1,k=Ve-1;k>=0;k--){const Oe=K+k,Ge=d[Oe],po=Oe+1<S?d[Oe+1].el:m;Cn[k]===0?x(null,Ge,g,po,w,b,$,_,E):Wt&&(ue<0||k!==ho[ue]?Et(Ge,g,po,2):ue--)}}},Et=(c,d,g,m,w=null)=>{const{el:b,type:$,transition:_,children:E,shapeFlag:k}=c;if(k&6){Et(c.component.subTree,d,g,m);return}if(k&128){c.suspense.move(d,g,m);return}if(k&64){$.move(c,d,g,lt);return}if($===oe){i(b,d,g);for(let F=0;F<E.length;F++)Et(E[F],d,g,m);i(c.anchor,d,g);return}if($===rr){P(c,d,g);return}if(m!==2&&k&1&&_)if(m===0)_.beforeEnter(b),i(b,d,g),Ae(()=>_.enter(b),w);else{const{leave:F,delayLeave:z,afterLeave:L}=_,K=()=>i(b,d,g),X=()=>{F(b,()=>{K(),L&&L()})};z?z(b,K,X):X()}else i(b,d,g)},Ue=(c,d,g,m=!1,w=!1)=>{const{type:b,props:$,ref:_,children:E,dynamicChildren:k,shapeFlag:S,patchFlag:F,dirs:z}=c;if(_!=null&&nr(_,null,g,c,!0),S&256){d.ctx.deactivate(c);return}const L=S&1&&z,K=!Zn(c);let X;if(K&&(X=$&&$.onVnodeBeforeUnmount)&&Ze(X,d,c),S&6)Rr(c.component,g,m);else{if(S&128){c.suspense.unmount(g,m);return}L&&kt(c,null,d,"beforeUnmount"),S&64?c.type.remove(c,d,g,w,lt,m):k&&(b!==oe||F>0&&F&64)?Fe(k,d,g,!1,!0):(b===oe&&F&384||!w&&S&16)&&Fe(E,d,g),m&&xn(c)}(K&&(X=$&&$.onVnodeUnmounted)||L)&&Ae(()=>{X&&Ze(X,d,c),L&&kt(c,null,d,"unmounted")},g)},xn=c=>{const{type:d,el:g,anchor:m,transition:w}=c;if(d===oe){Er(g,m);return}if(d===rr){N(c);return}const b=()=>{r(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(c.shapeFlag&1&&w&&!w.persisted){const{leave:$,delayLeave:_}=w,E=()=>$(g,b);_?_(c.el,b,E):E()}else b()},Er=(c,d)=>{let g;for(;c!==d;)g=h(c),r(c),c=g;r(d)},Rr=(c,d,g)=>{const{bum:m,scope:w,update:b,subTree:$,um:_}=c;m&&Ln(m),w.stop(),b&&(b.active=!1,Ue($,c,d,g)),_&&Ae(_,d),Ae(()=>{c.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Fe=(c,d,g,m=!1,w=!1,b=0)=>{for(let $=b;$<c.length;$++)Ue(c[$],d,g,m,w)},Rt=c=>c.shapeFlag&6?Rt(c.component.subTree):c.shapeFlag&128?c.suspense.next():h(c.anchor||c.el),_n=(c,d,g)=>{c==null?d._vnode&&Ue(d._vnode,null,null,!0):x(d._vnode||null,c,d,null,null,null,g),Al(),Sl(),d._vnode=c},lt={p:x,um:Ue,m:Et,r:xn,mt:D,mc:V,pc:_e,pbc:ae,n:Rt,o:e};let Bt,I;return t&&([Bt,I]=t(lt)),{render:_n,hydrate:Bt,createApp:qa(_n,Bt)}}function ir({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function xt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ic(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ql(e,t,n=!1){const i=e.children,r=t.children;if(H(i)&&H(r))for(let l=0;l<i.length;l++){const s=i[l];let o=r[l];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[l]=ft(r[l]),o.el=s.el),n||Ql(s,o)),o.type===Xn&&(o.el=s.el)}}function rc(e){const t=e.slice(),n=[0];let i,r,l,s,o;const a=e.length;for(i=0;i<a;i++){const u=e[i];if(u!==0){if(r=n[n.length-1],e[r]<u){t[i]=r,n.push(i);continue}for(l=0,s=n.length-1;l<s;)o=l+s>>1,e[n[o]]<u?l=o+1:s=o;u<e[n[l]]&&(l>0&&(t[i]=n[l-1]),n[l]=i)}}for(l=n.length,s=n[l-1];l-- >0;)n[l]=s,s=t[s];return n}function Yl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Yl(t)}const lc=e=>e.__isTeleport,oe=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),_t=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),ln=[];let He=null;function A(e=!1){ln.push(He=e?null:[])}function sc(){ln.pop(),He=ln[ln.length-1]||null}let sn=1;function Xl(e){sn+=e}function es(e){return e.dynamicChildren=sn>0?He||It:null,sc(),sn>0&&He&&He.push(e),e}function M(e,t,n,i,r,l){return es(j(e,t,n,i,r,l,!0))}function Xe(e,t,n,i,r){return es(re(e,t,n,i,r,!0))}function lr(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ei="__vInternal",ts=({key:e})=>e??null,ti=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||$e(e)||ne(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function j(e,t=null,n=null,i=0,r=null,l=e===oe?0:1,s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ts(t),ref:t&&ti(t),scopeId:Ll,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:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Le};return o?(sr(a,n),l&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),sn>0&&!s&&He&&(a.patchFlag>0||l&6)&&a.patchFlag!==32&&He.push(a),a}const re=oc;function oc(e,t=null,n=null,i=0,r=null,l=!1){if((!e||e===Ia)&&(e=_t),lr(e)){const o=Nt(e,t,!0);return n&&sr(o,n),sn>0&&!l&&He&&(o.shapeFlag&6?He[He.indexOf(e)]=o:He.push(o)),o.patchFlag|=-2,o}if(yc(e)&&(e=e.__vccOpts),t){t=ac(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=me(o)),de(a)&&(kl(a)&&!H(a)&&(a=Ce({},a)),t.style=Zt(a))}const s=ye(e)?1:Ma(e)?128:lc(e)?64:de(e)?4:ne(e)?2:0;return j(e,t,n,i,r,s,l,!0)}function ac(e){return e?kl(e)||ei in e?Ce({},e):e:null}function Nt(e,t,n=!1){const{props:i,ref:r,patchFlag:l,children:s}=e,o=t?cc(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&ts(o),ref:t&&t.ref?n&&r?H(r)?r.concat(ti(t)):[r,ti(t)]:ti(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==oe?l===-1?16:l|16: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&&Nt(e.ssContent),ssFallback:e.ssFallback&&Nt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function et(e=" ",t=0){return re(Xn,null,e,t)}function Y(e="",t=!1){return t?(A(),Xe(_t,null,e)):re(_t,null,e)}function Ke(e){return e==null||typeof e=="boolean"?re(_t):H(e)?re(oe,null,e.slice()):typeof e=="object"?ft(e):re(Xn,null,String(e))}function ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nt(e)}function sr(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(H(t))n=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),sr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ei in t)?t._ctx=Le:r===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),i&64?(n=16,t=[et(t)]):n=8);e.children=t,e.shapeFlag|=n}function cc(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const r in i)if(r==="class")t.class!==i.class&&(t.class=me([t.class,i.class]));else if(r==="style")t.style=Zt([t.style,i.style]);else if(Tn(r)){const l=t[r],s=i[r];s&&l!==s&&!(H(l)&&l.includes(s))&&(t[r]=l?[].concat(l,s):s)}else r!==""&&(t[r]=i[r])}return t}function Ze(e,t,n,i=null){We(e,t,7,[n,i])}const uc=Dl();let fc=0;function dc(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||uc,l={uid:fc++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new qo(!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:Ja(i,r),emitsOptions:Ca(i,r),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:i.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=_a.bind(null,l),e.ce&&e.ce(l),l}let Se=null;const hc=()=>Se||Le;let or,ar;{const e=Li(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),l=>{r.length>1?r.forEach(s=>s(l)):r[0](l)}};or=t("__VUE_INSTANCE_SETTERS__",n=>Se=n),ar=t("__VUE_SSR_SETTERS__",n=>ni=n)}const cr=e=>{or(e),e.scope.on()},an=()=>{Se&&Se.scope.off(),or(null)};function ns(e){return e.vnode.shapeFlag&4}let ni=!1;function pc(e,t=!1){t&&ar(t);const{props:n,children:i}=e.vnode,r=ns(e);Za(e,n,r,t),Ya(e,i);const l=r?gc(e,t):void 0;return t&&ar(!1),l}function gc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=xl(new Proxy(e.ctx,Na));const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?vc(e):null;cr(e),zt();const l=ut(i,e,0,[e.props,r]);if(jt(),an(),Jr(l)){if(l.then(an,an),t)return l.then(s=>{is(e,s,t)}).catch(s=>{Dn(s,e,0)});e.asyncDep=l}else is(e,l,t)}else ls(e,t)}function is(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=El(t)),ls(e,n)}let rs;function ls(e,t,n){const i=e.type;if(!e.render){if(!t&&rs&&!i.render){const r=i.template||Ha(e).template;if(r){const{isCustomElement:l,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:a}=i,u=Ce(Ce({isCustomElement:l,delimiters:o},s),a);i.render=rs(r,u)}}e.render=i.render||Je}}function mc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Te(e,"get","$attrs"),t[n]}}))}function vc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return mc(e)},slots:e.slots,emit:e.emit,expose:t}}function ii(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(El(xl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in nn)return nn[n](e)},has(t,n){return n in t||n in nn}}))}function wc(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function yc(e){return ne(e)&&"__vccOpts"in e}const be=(e,t)=>pa(e,t,ni);function te(e,t,n){const i=arguments.length;return i===2?de(t)&&!H(t)?lr(t)?re(e,null,[t]):re(e,t):re(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&lr(n)&&(n=[n]),re(e,t,n))}const bc="3.4.5",kc="http://www.w3.org/2000/svg",xc="http://www.w3.org/1998/Math/MathML",dt=typeof document<"u"?document:null,ss=dt&&dt.createElement("template"),_c={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const r=t==="svg"?dt.createElementNS(kc,e):t==="mathml"?dt.createElementNS(xc,e):dt.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>dt.createTextNode(e),createComment:e=>dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,l){const s=n?n.previousSibling:t.lastChild;if(r&&(r===l||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===l||!(r=r.nextSibling)););else{ss.innerHTML=i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e;const o=ss.content;if(i==="svg"||i==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Cc=Symbol("_vtc");function $c(e,t,n){const i=e[Cc];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ur=Symbol("_vod"),os={beforeMount(e,{value:t},{transition:n}){e[ur]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):cn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),cn(e,!0),i.enter(e)):i.leave(e,()=>{cn(e,!1)}):cn(e,t))},beforeUnmount(e,{value:t}){cn(e,t)}};function cn(e,t){e.style.display=t?e[ur]:"none"}const Ec=Symbol("");function Rc(e,t,n){const i=e.style,r=ye(n);if(n&&!r){if(t&&!ye(t))for(const l in t)n[l]==null&&fr(i,l,"");for(const l in n)fr(i,l,n[l])}else{const l=i.display;if(r){if(t!==n){const s=i[Ec];s&&(n+=";"+s),i.cssText=n}}else t&&e.removeAttribute("style");ur in e&&(i.display=l)}}const as=/\s*!important$/;function fr(e,t,n){if(H(n))n.forEach(i=>fr(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Tc(e,t);as.test(n)?e.setProperty(Ot(i),n.replace(as,""),"important"):e[i]=n}}const cs=["Webkit","Moz","ms"],dr={};function Tc(e,t){const n=dr[t];if(n)return n;let i=Be(t);if(i!=="filter"&&i in e)return dr[t]=i;i=In(i);for(let r=0;r<cs.length;r++){const l=cs[r]+i;if(l in e)return dr[t]=l}return t}const us="http://www.w3.org/1999/xlink";function Ac(e,t,n,i,r){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(us,t.slice(6,t.length)):e.setAttributeNS(us,t,n);else{const l=Bo(t);n==null||l&&!el(n)?e.removeAttribute(t):e.setAttribute(t,l?"":n)}}function Sc(e,t,n,i,r,l,s){if(t==="innerHTML"||t==="textContent"){i&&s(i,r,l),e[t]=n??"";return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){e._value=n;const u=o==="OPTION"?e.getAttribute("value"):e.value,f=n??"";u!==f&&(e.value=f),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=el(n):n==null&&u==="string"?(n="",a=!0):u==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function tt(e,t,n,i){e.addEventListener(t,n,i)}function Ic(e,t,n,i){e.removeEventListener(t,n,i)}const fs=Symbol("_vei");function Lc(e,t,n,i,r=null){const l=e[fs]||(e[fs]={}),s=l[t];if(i&&s)s.value=i;else{const[o,a]=Mc(t);if(i){const u=l[t]=jc(i,r);tt(e,o,u,a)}else s&&(Ic(e,o,s,a),l[t]=void 0)}}const ds=/(?:Once|Passive|Capture)$/;function Mc(e){let t;if(ds.test(e)){t={};let i;for(;i=e.match(ds);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ot(e.slice(2)),t]}let hr=0;const Oc=Promise.resolve(),zc=()=>hr||(Oc.then(()=>hr=0),hr=Date.now());function jc(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;We(Pc(i,n.value),t,5,[i])};return n.value=e,n.attached=zc(),n}function Pc(e,t){if(H(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const hs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Uc=(e,t,n,i,r,l,s,o,a)=>{const u=r==="svg";t==="class"?$c(e,i,u):t==="style"?Rc(e,n,i):Tn(t)?Ai(t)||Lc(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Fc(e,t,i,u))?Sc(e,t,i,l,s,o,a):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Ac(e,t,i,u))};function Fc(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&hs(t)&&ne(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return hs(t)&&ye(n)?!1:t in e}const ht=e=>{const t=e.props["onUpdate:modelValue"]||!1;return H(t)?n=>Ln(t,n):t};function Nc(e){e.target.composing=!0}function ps(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pe=Symbol("_assign"),pr={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[Pe]=ht(r);const l=i||r.props&&r.props.type==="number";tt(e,t?"change":"input",s=>{if(s.target.composing)return;let o=e.value;n&&(o=o.trim()),l&&(o=On(o)),e[Pe](o)}),n&&tt(e,"change",()=>{e.value=e.value.trim()}),t||(tt(e,"compositionstart",Nc),tt(e,"compositionend",ps),tt(e,"change",ps))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:r}},l){if(e[Pe]=ht(l),e.composing)return;const s=r||e.type==="number"?On(e.value):e.value,o=t??"";s!==o&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===o)||(e.value=o))}},Hc={deep:!0,created(e,t,n){e[Pe]=ht(n),tt(e,"change",()=>{const i=e._modelValue,r=Ht(e),l=e.checked,s=e[Pe];if(H(i)){const o=Mi(i,r),a=o!==-1;if(l&&!a)s(i.concat(r));else if(!l&&a){const u=[...i];u.splice(o,1),s(u)}}else if(Mt(i)){const o=new Set(i);l?o.add(r):o.delete(r),s(o)}else s(vs(e,l))})},mounted:gs,beforeUpdate(e,t,n){e[Pe]=ht(n),gs(e,t,n)}};function gs(e,{value:t,oldValue:n},i){e._modelValue=t,H(t)?e.checked=Mi(t,i.props.value)>-1:Mt(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=mt(t,vs(e,!0)))}const Dc={created(e,{value:t},n){e.checked=mt(t,n.props.value),e[Pe]=ht(n),tt(e,"change",()=>{e[Pe](Ht(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[Pe]=ht(i),t!==n&&(e.checked=mt(t,i.props.value))}},Vc={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=Mt(t);tt(e,"change",()=>{const l=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?On(Ht(s)):Ht(s));e[Pe](e.multiple?r?new Set(l):l:l[0])}),e[Pe]=ht(i)},mounted(e,{value:t}){ms(e,t)},beforeUpdate(e,t,n){e[Pe]=ht(n)},updated(e,{value:t}){ms(e,t)}};function ms(e,t){const n=e.multiple;if(!(n&&!H(t)&&!Mt(t))){for(let i=0,r=e.options.length;i<r;i++){const l=e.options[i],s=Ht(l);if(n)H(t)?l.selected=Mi(t,s)>-1:l.selected=t.has(s);else if(mt(Ht(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ht(e){return"_value"in e?e._value:e.value}function vs(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Bc={created(e,t,n){ri(e,t,n,null,"created")},mounted(e,t,n){ri(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){ri(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){ri(e,t,n,i,"updated")}};function Wc(e,t){switch(e){case"SELECT":return Vc;case"TEXTAREA":return pr;default:switch(t){case"checkbox":return Hc;case"radio":return Dc;default:return pr}}}function ri(e,t,n,i,r){const s=Wc(e.tagName,n.props&&n.props.type)[r];s&&s(e,t,n,i)}const qc=Ce({patchProp:Uc},_c);let ws;function Kc(){return ws||(ws=tc(qc))}const Zc=(...e)=>{const t=Kc().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=Jc(i);if(!r)return;const l=t._component;!ne(l)&&!l.render&&!l.template&&(l.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,Gc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function Gc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Jc(e){return ye(e)?document.querySelector(e):e}function un(e){return nl()?(Zo(e),!0):!1}function nt(e){return typeof e=="function"?e():Z(e)}const li=typeof window<"u"&&typeof document<"u",Qc=Object.prototype.toString,Yc=e=>Qc.call(e)==="[object Object]",si=()=>{};function ys(e,t){function n(...i){return new Promise((r,l)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(r).catch(l)})}return n}const bs=e=>e();function Xc(e,t={}){let n,i,r=si;const l=o=>{clearTimeout(o),r(),r=si};return o=>{const a=nt(e),u=nt(t.maxWait);return n&&l(n),a<=0||u!==void 0&&u<=0?(i&&(l(i),i=null),Promise.resolve(o())):new Promise((f,p)=>{r=t.rejectOnCancel?p:f,u&&!i&&(i=setTimeout(()=>{n&&l(n),i=null,f(o())},u)),n=setTimeout(()=>{i&&l(i),i=null,f(o())},a)})}}function eu(e=bs){const t=W(!0);function n(){t.value=!1}function i(){t.value=!0}const r=(...l)=>{t.value&&e(...l)};return{isActive:Jt(t),pause:n,resume:i,eventFilter:r}}function ks(e){return e||hc()}function tu(e,t=200,n={}){return ys(Xc(t,n),e)}function nu(e,t,n={}){const{eventFilter:i=bs,...r}=n;return ze(e,ys(i,t),r)}function iu(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:l,pause:s,resume:o,isActive:a}=eu(i);return{stop:nu(e,t,{...r,eventFilter:l}),pause:s,resume:o,isActive:a}}function gr(e,t=!0,n){ks()?tn(e,n):t?e():Vn(e)}function ru(e,t){ks(t)&&Gn(e,t)}function lu(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let l=null;const s=W(!1);function o(){l&&(clearInterval(l),l=null)}function a(){s.value=!1,o()}function u(){const f=nt(t);f<=0||(s.value=!0,r&&e(),o(),l=setInterval(e,f))}if(i&&li&&u(),$e(t)||typeof t=="function"){const f=ze(t,()=>{s.value&&li&&u()});un(f)}return un(a),{isActive:s,pause:a,resume:u}}function su(e){var t;const n=nt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const oi=li?window:void 0,xs=li?window.document:void 0;function _s(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=oi):[t,n,i,r]=e,!t)return si;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const l=[],s=()=>{l.forEach(f=>f()),l.length=0},o=(f,p,h,v)=>(f.addEventListener(p,h,v),()=>f.removeEventListener(p,h,v)),a=ze(()=>[su(t),nt(r)],([f,p])=>{if(s(),!f)return;const h=Yc(p)?{...p}:p;l.push(...n.flatMap(v=>i.map(T=>o(f,v,T,h))))},{immediate:!0,flush:"post"}),u=()=>{a(),s()};return un(u),u}function ou(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=oi}=t,l=W(!1),s=i?1e3/i:null;let o=0,a=null;function u(h){if(!l.value||!r)return;const v=h-(o||h);if(s&&v<s){a=r.requestAnimationFrame(u);return}e({delta:v,timestamp:h}),o=h,a=r.requestAnimationFrame(u)}function f(){!l.value&&r&&(l.value=!0,a=r.requestAnimationFrame(u))}function p(){l.value=!1,a!=null&&r&&(r.cancelAnimationFrame(a),a=null)}return n&&f(),un(p),{isActive:Jt(l),pause:p,resume:f}}const ai=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ci="__vueuse_ssr_handlers__",au=cu();function cu(){return ci in ai||(ai[ci]=ai[ci]||{}),ai[ci]}function uu(e,t){return au[e]||t}function fu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const du={boolean:{read:e=>e==="true",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()}},Cs="vueuse-storage";function Dt(e,t,n,i={}){var r;const{flush:l="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:f,window:p=oi,eventFilter:h,onError:v=G=>{console.error(G)},initOnMounted:T}=i,x=(f?ga:W)(typeof t=="function"?t():t);if(!n)try{n=uu("getDefaultStorage",()=>{var G;return(G=oi)==null?void 0:G.localStorage})()}catch(G){v(G)}if(!n)return x;const C=nt(t),y=fu(C),R=(r=i.serializer)!=null?r:du[y],{pause:P,resume:N}=iu(x,()=>U(x.value),{flush:l,deep:s,eventFilter:h});return p&&o&&gr(()=>{_s(p,"storage",V),_s(p,Cs,B),T&&V()}),T||V(),x;function U(G){try{if(G==null)n.removeItem(e);else{const ae=R.write(G),Re=n.getItem(e);Re!==ae&&(n.setItem(e,ae),p&&p.dispatchEvent(new CustomEvent(Cs,{detail:{key:e,oldValue:Re,newValue:ae,storageArea:n}})))}}catch(ae){v(ae)}}function O(G){const ae=G?G.newValue:n.getItem(e);if(ae==null)return a&&C!=null&&n.setItem(e,R.write(C)),C;if(!G&&u){const Re=R.read(ae);return typeof u=="function"?u(Re,C):y==="object"&&!Array.isArray(Re)?{...C,...Re}:Re}else return typeof ae!="string"?ae:R.read(ae)}function B(G){V(G.detail)}function V(G){if(!(G&&G.storageArea!==n)){if(G&&G.key==null){x.value=C;return}if(!(G&&G.key!==e)){P();try{(G==null?void 0:G.newValue)!==R.write(x.value)&&(x.value=O(G))}catch(ae){v(ae)}finally{G?Vn(N):N()}}}}}function hu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=W(new Date),r=()=>i.value=new Date,l=n==="requestAnimationFrame"?ou(r,{immediate:!0}):lu(r,n,{immediate:!0});return t?{now:i,...l}:i}function pu(e,t=si,n={}){const{immediate:i=!0,manual:r=!1,type:l="text/javascript",async:s=!0,crossOrigin:o,referrerPolicy:a,noModule:u,defer:f,document:p=xs,attrs:h={}}=n,v=W(null);let T=null;const x=R=>new Promise((P,N)=>{const U=V=>(v.value=V,P(V),V);if(!p){P(!1);return}let O=!1,B=p.querySelector(`script[src="${nt(e)}"]`);B?B.hasAttribute("data-loaded")&&U(B):(B=p.createElement("script"),B.type=l,B.async=s,B.src=nt(e),f&&(B.defer=f),o&&(B.crossOrigin=o),u&&(B.noModule=u),a&&(B.referrerPolicy=a),Object.entries(h).forEach(([V,G])=>B==null?void 0:B.setAttribute(V,G)),O=!0),B.addEventListener("error",V=>N(V)),B.addEventListener("abort",V=>N(V)),B.addEventListener("load",()=>{B.setAttribute("data-loaded","true"),t(B),U(B)}),O&&(B=p.head.appendChild(B)),R||U(B)}),C=(R=!0)=>(T||(T=x(R)),T),y=()=>{if(!p)return;T=null,v.value&&(v.value=null);const R=p.querySelector(`script[src="${nt(e)}"]`);R&&p.head.removeChild(R)};return i&&!r&&gr(C),r||ru(y),{scriptTag:v,load:C,unload:y}}let gu=0;function mu(e,t={}){const n=W(!1),{document:i=xs,immediate:r=!0,manual:l=!1,id:s=`vueuse_styletag_${++gu}`}=t,o=W(e);let a=()=>{};const u=()=>{if(!i)return;const p=i.getElementById(s)||i.createElement("style");p.isConnected||(p.id=s,t.media&&(p.media=t.media),i.head.appendChild(p)),!n.value&&(a=ze(o,h=>{p.textContent=h},{immediate:!0}),n.value=!0)},f=()=>{!i||!n.value||(a(),i.head.removeChild(i.getElementById(s)),n.value=!1)};return r&&!l&&gr(u),l||un(f),{id:s,css:o,unload:f,load:u,isLoaded:Jt(n)}}const vu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),wu=e=>{const t=Dt("WALINE_EMOJI",{}),n=vu(e);if(n){const i=t.value[e];if(i)return Promise.resolve(i)}return fetch(`${e}/info.json`).then(i=>i.json()).then(i=>{const r={folder:e,...i};return n&&(t.value[e]=r),r})},$s=(e,t="",n="",i="")=>`${t?`${t}/`:""}${n}${e}${i?`.${i}`:""}`,yu=e=>Promise.all(e.map(t=>typeof t=="string"?wu(qr(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(i=>{const{name:r,folder:l,icon:s,prefix:o,type:a,items:u}=i;n.tabs.push({name:r,icon:$s(s,l,o,a),items:u.map(f=>{const p=`${o||""}${f}`;return n.map[p]=$s(f,l,o,a),p})})}),n}),Es=e=>{e.name!=="AbortError"&&console.error(e.message)},mr=e=>e instanceof HTMLElement?e:typeof e=="string"?document.querySelector(e):null,bu=e=>e.type.includes("image"),Rs=e=>{const t=Array.from(e).find(bu);return t?t.getAsFile():null};function vr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Ct=vr();function Ts(e){Ct=e}const As=/[&<>"']/,ku=new RegExp(As.source,"g"),Ss=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,xu=new RegExp(Ss.source,"g"),_u={"&":"&","<":"<",">":">",'"':""","'":"'"},Is=e=>_u[e];function Me(e,t){if(t){if(As.test(e))return e.replace(ku,Is)}else if(Ss.test(e))return e.replace(xu,Is);return e}const Cu=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function $u(e){return e.replace(Cu,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Eu=/(^|[^\[])\^/g;function le(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const i={replace:(r,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(Eu,"$1"),n=n.replace(r,s),i},getRegex:()=>new RegExp(n,t)};return i}function Ls(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const fn={exec:()=>null};function Ms(e,t){const n=e.replace(/\|/g,(l,s,o)=>{let a=!1,u=s;for(;--u>=0&&o[u]==="\\";)a=!a;return a?"|":" |"}),i=n.split(/ \|/);let r=0;if(i[0].trim()||i.shift(),i.length>0&&!i[i.length-1].trim()&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(/\\\|/g,"|");return i}function ui(e,t,n){const i=e.length;if(i===0)return"";let r=0;for(;r<i;){const l=e.charAt(i-r-1);if(l===t&&!n)r++;else if(l!==t&&n)r++;else break}return e.slice(0,i-r)}function Ru(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return-1}function Os(e,t,n,i){const r=t.href,l=t.title?Me(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){i.state.inLink=!0;const o={type:"link",raw:n,href:r,title:l,text:s,tokens:i.inlineTokens(s)};return i.state.inLink=!1,o}return{type:"image",raw:n,href:r,title:l,text:Me(s)}}function Tu(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const i=n[1];return t.split(`
|
|
8
|
+
`).map(r=>{const l=r.match(/^\s+/);if(l===null)return r;const[s]=l;return s.length>=i.length?r.slice(i.length):r}).join(`
|
|
9
|
+
`)}class fi{options;rules;lexer;constructor(t){this.options=t||Ct}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const i=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:ui(i,`
|
|
10
|
+
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const i=n[0],r=Tu(i,n[3]||"");return{type:"code",raw:i,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:r}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let i=n[2].trim();if(/#$/.test(i)){const r=ui(i,"#");(this.options.pedantic||!r||/ $/.test(r))&&(i=r.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const i=ui(n[0].replace(/^ *>[ \t]?/gm,""),`
|
|
11
|
+
`),r=this.lexer.state.top;this.lexer.state.top=!0;const l=this.lexer.blockTokens(i);return this.lexer.state.top=r,{type:"blockquote",raw:n[0],tokens:l,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let i=n[1].trim();const r=i.length>1,l={type:"list",raw:"",ordered:r,start:r?+i.slice(0,-1):"",loose:!1,items:[]};i=r?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=r?i:"[*+-]");const s=new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`);let o="",a="",u=!1;for(;t;){let f=!1;if(!(n=s.exec(t))||this.rules.block.hr.test(t))break;o=n[0],t=t.substring(o.length);let p=n[2].split(`
|
|
12
|
+
`,1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),h=t.split(`
|
|
13
|
+
`,1)[0],v=0;this.options.pedantic?(v=2,a=p.trimStart()):(v=n[2].search(/[^ ]/),v=v>4?1:v,a=p.slice(v),v+=n[1].length);let T=!1;if(!p&&/^ *$/.test(h)&&(o+=h+`
|
|
14
|
+
`,t=t.substring(h.length+1),f=!0),!f){const y=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),R=new RegExp(`^ {0,${Math.min(3,v-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),P=new RegExp(`^ {0,${Math.min(3,v-1)}}(?:\`\`\`|~~~)`),N=new RegExp(`^ {0,${Math.min(3,v-1)}}#`);for(;t;){const U=t.split(`
|
|
15
|
+
`,1)[0];if(h=U,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),P.test(h)||N.test(h)||y.test(h)||R.test(t))break;if(h.search(/[^ ]/)>=v||!h.trim())a+=`
|
|
16
|
+
`+h.slice(v);else{if(T||p.search(/[^ ]/)>=4||P.test(p)||N.test(p)||R.test(p))break;a+=`
|
|
17
|
+
`+h}!T&&!h.trim()&&(T=!0),o+=U+`
|
|
18
|
+
`,t=t.substring(U.length+1),p=h.slice(v)}}l.loose||(u?l.loose=!0:/\n *\n *$/.test(o)&&(u=!0));let x=null,C;this.options.gfm&&(x=/^\[[ xX]\] /.exec(a),x&&(C=x[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),l.items.push({type:"list_item",raw:o,task:!!x,checked:C,loose:!1,text:a,tokens:[]}),l.raw+=o}l.items[l.items.length-1].raw=o.trimEnd(),l.items[l.items.length-1].text=a.trimEnd(),l.raw=l.raw.trimEnd();for(let f=0;f<l.items.length;f++)if(this.lexer.state.top=!1,l.items[f].tokens=this.lexer.blockTokens(l.items[f].text,[]),!l.loose){const p=l.items[f].tokens.filter(v=>v.type==="space"),h=p.length>0&&p.some(v=>/\n.*\n/.test(v.raw));l.loose=h}if(l.loose)for(let f=0;f<l.items.length;f++)l.items[f].loose=!0;return l}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const i=n[1].toLowerCase().replace(/\s+/g," "),r=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:i,raw:n[0],href:r,title:l}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const i=Ms(n[1]),r=n[2].replace(/^\||\| *$/g,"").split("|"),l=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
19
|
+
`):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(i.length===r.length){for(const o of r)/^ *-+: *$/.test(o)?s.align.push("right"):/^ *:-+: *$/.test(o)?s.align.push("center"):/^ *:-+ *$/.test(o)?s.align.push("left"):s.align.push(null);for(const o of i)s.header.push({text:o,tokens:this.lexer.inline(o)});for(const o of l)s.rows.push(Ms(o,s.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return s}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const i=n[1].charAt(n[1].length-1)===`
|
|
20
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:i,tokens:this.lexer.inline(i)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Me(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const i=n[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;const s=ui(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{const s=Ru(n[2],"()");if(s>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let r=n[2],l="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);s&&(r=s[1],l=s[3])}else l=n[3]?n[3].slice(1,-1):"";return r=r.trim(),/^</.test(r)&&(this.options.pedantic&&!/>$/.test(i)?r=r.slice(1):r=r.slice(1,-1)),Os(n,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){const r=(i[2]||i[1]).replace(/\s+/g," "),l=n[r.toLowerCase()];if(!l){const s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return Os(i,l,i[0],this.lexer)}}emStrong(t,n,i=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!r||r[3]&&i.match(/[\p{L}\p{N}]/u))return;if(!(r[1]||r[2]||"")||!i||this.rules.inline.punctuation.exec(i)){const s=[...r[0]].length-1;let o,a,u=s,f=0;const p=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(p.lastIndex=0,n=n.slice(-1*t.length+s);(r=p.exec(n))!=null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(a=[...o].length,r[3]||r[4]){u+=a;continue}else if((r[5]||r[6])&&s%3&&!((s+a)%3)){f+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+f);const h=[...r[0]][0].length,v=t.slice(0,s+r.index+h+a);if(Math.min(s,a)%2){const x=v.slice(1,-1);return{type:"em",raw:v,text:x,tokens:this.lexer.inlineTokens(x)}}const T=v.slice(2,-2);return{type:"strong",raw:v,text:T,tokens:this.lexer.inlineTokens(T)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let i=n[2].replace(/\n/g," ");const r=/[^ ]/.test(i),l=/^ /.test(i)&&/ $/.test(i);return r&&l&&(i=i.substring(1,i.length-1)),i=Me(i,!0),{type:"codespan",raw:n[0],text:i}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let i,r;return n[2]==="@"?(i=Me(n[1]),r="mailto:"+i):(i=Me(n[1]),r=i),{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let n;if(n=this.rules.inline.url.exec(t)){let r,l;if(n[2]==="@")r=Me(n[0]),l="mailto:"+r;else{let s;do s=n[0],n[0]=((i=this.rules.inline._backpedal.exec(n[0]))==null?void 0:i[0])??"";while(s!==n[0]);r=Me(n[0]),n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let i;return this.lexer.state.inRawBlock?i=n[0]:i=Me(n[0]),{type:"text",raw:n[0],text:i}}}}const Au=/^(?: *(?:\n|$))+/,Su=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Iu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,dn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Lu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,zs=/(?:[*+-]|\d{1,9}[.)])/,js=le(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,zs).getRegex(),wr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Mu=/^[^\n]+/,yr=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ou=le(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",yr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zu=le(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,zs).getRegex(),di="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",br=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,ju=le("^ {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|$))","i").replace("comment",br).replace("tag",di).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ps=le(wr).replace("hr",dn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",di).getRegex(),kr={blockquote:le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ps).getRegex(),code:Su,def:Ou,fences:Iu,heading:Lu,hr:dn,html:ju,lheading:js,list:zu,newline:Au,paragraph:Ps,table:fn,text:Mu},Us=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",dn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",di).getRegex(),Pu={...kr,table:Us,paragraph:le(wr).replace("hr",dn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Us).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",di).getRegex()},Uu={...kr,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",br).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:fn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(wr).replace("hr",dn).replace("heading",` *#{1,6} *[^
|
|
21
|
+
]`).replace("lheading",js).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Fs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Fu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ns=/^( {2,}|\\)\n(?!\s*$)/,Nu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,hn="\\p{P}$+<=>`^|~",Hu=le(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,hn).getRegex(),Du=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Vu=le(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,hn).getRegex(),Bu=le("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,hn).getRegex(),Wu=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,hn).getRegex(),qu=le(/\\([punct])/,"gu").replace(/punct/g,hn).getRegex(),Ku=le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),Zu=le(br).replace("(?:-->|$)","-->").getRegex(),Gu=le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Zu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),hi=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ju=le(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",hi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Hs=le(/^!?\[(label)\]\[(ref)\]/).replace("label",hi).replace("ref",yr).getRegex(),Ds=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",yr).getRegex(),Qu=le("reflink|nolink(?!\\()","g").replace("reflink",Hs).replace("nolink",Ds).getRegex(),xr={_backpedal:fn,anyPunctuation:qu,autolink:Ku,blockSkip:Du,br:Ns,code:Fu,del:fn,emStrongLDelim:Vu,emStrongRDelimAst:Bu,emStrongRDelimUnd:Wu,escape:Fs,link:Ju,nolink:Ds,punctuation:Hu,reflink:Hs,reflinkSearch:Qu,tag:Gu,text:Nu,url:fn},Yu={...xr,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",hi).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hi).getRegex()},_r={...xr,escape:le(Fs).replace("])","~|])").getRegex(),url:le(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_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.!#$%&'*+\/=?_`{\|}~-]+@)))/},Xu={..._r,br:le(Ns).replace("{2,}","*").getRegex(),text:le(_r.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},pi={normal:kr,gfm:Pu,pedantic:Uu},pn={normal:xr,gfm:_r,breaks:Xu,pedantic:Yu};class it{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ct,this.options.tokenizer=this.options.tokenizer||new fi,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 n={block:pi.normal,inline:pn.normal};this.options.pedantic?(n.block=pi.pedantic,n.inline=pn.pedantic):this.options.gfm&&(n.block=pi.gfm,this.options.breaks?n.inline=pn.breaks:n.inline=pn.gfm),this.tokenizer.rules=n}static get rules(){return{block:pi,inline:pn}}static lex(t,n){return new it(n).lex(t)}static lexInline(t,n){return new it(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
|
|
22
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(o,a,u)=>a+" ".repeat(u.length));let i,r,l,s;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(i=o.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),i.raw.length===1&&n.length>0?n[n.length-1].raw+=`
|
|
23
|
+
`:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),r=n[n.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
|
|
24
|
+
`+i.raw,r.text+=`
|
|
25
|
+
`+i.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text):n.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),r=n[n.length-1],r&&(r.type==="paragraph"||r.type==="text")?(r.raw+=`
|
|
26
|
+
`+i.raw,r.text+=`
|
|
27
|
+
`+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(l=t,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const a=t.slice(1);let u;this.options.extensions.startBlock.forEach(f=>{u=f.call({lexer:this},a),typeof u=="number"&&u>=0&&(o=Math.min(o,u))}),o<1/0&&o>=0&&(l=t.substring(0,o+1))}if(this.state.top&&(i=this.tokenizer.paragraph(l))){r=n[n.length-1],s&&r.type==="paragraph"?(r.raw+=`
|
|
28
|
+
`+i.raw,r.text+=`
|
|
29
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):n.push(i),s=l.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),r=n[n.length-1],r&&r.type==="text"?(r.raw+=`
|
|
30
|
+
`+i.raw,r.text+=`
|
|
31
|
+
`+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):n.push(i);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let i,r,l,s=t,o,a,u;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,o.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(i=f.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))){if(i=this.tokenizer.escape(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.tag(t)){t=t.substring(i.raw.length),r=n[n.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):n.push(i);continue}if(i=this.tokenizer.link(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(i.raw.length),r=n[n.length-1],r&&i.type==="text"&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):n.push(i);continue}if(i=this.tokenizer.emStrong(t,s,u)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.codespan(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.br(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.del(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.autolink(t)){t=t.substring(i.raw.length),n.push(i);continue}if(!this.state.inLink&&(i=this.tokenizer.url(t))){t=t.substring(i.raw.length),n.push(i);continue}if(l=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const p=t.slice(1);let h;this.options.extensions.startInline.forEach(v=>{h=v.call({lexer:this},p),typeof h=="number"&&h>=0&&(f=Math.min(f,h))}),f<1/0&&f>=0&&(l=t.substring(0,f+1))}if(i=this.tokenizer.inlineText(l)){t=t.substring(i.raw.length),i.raw.slice(-1)!=="_"&&(u=i.raw.slice(-1)),a=!0,r=n[n.length-1],r&&r.type==="text"?(r.raw+=i.raw,r.text+=i.text):n.push(i);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return n}}class gi{options;constructor(t){this.options=t||Ct}code(t,n,i){var l;const r=(l=(n||"").match(/^\S*/))==null?void 0:l[0];return t=t.replace(/\n$/,"")+`
|
|
32
|
+
`,r?'<pre><code class="language-'+Me(r)+'">'+(i?t:Me(t,!0))+`</code></pre>
|
|
33
|
+
`:"<pre><code>"+(i?t:Me(t,!0))+`</code></pre>
|
|
34
|
+
`}blockquote(t){return`<blockquote>
|
|
35
|
+
${t}</blockquote>
|
|
36
|
+
`}html(t,n){return t}heading(t,n,i){return`<h${n}>${t}</h${n}>
|
|
37
|
+
`}hr(){return`<hr>
|
|
38
|
+
`}list(t,n,i){const r=n?"ol":"ul",l=n&&i!==1?' start="'+i+'"':"";return"<"+r+l+`>
|
|
39
|
+
`+t+"</"+r+`>
|
|
40
|
+
`}listitem(t,n,i){return`<li>${t}</li>
|
|
41
|
+
`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(t){return`<p>${t}</p>
|
|
42
|
+
`}table(t,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
43
|
+
<thead>
|
|
44
|
+
`+t+`</thead>
|
|
45
|
+
`+n+`</table>
|
|
46
|
+
`}tablerow(t){return`<tr>
|
|
47
|
+
${t}</tr>
|
|
48
|
+
`}tablecell(t,n){const i=n.header?"th":"td";return(n.align?`<${i} align="${n.align}">`:`<${i}>`)+t+`</${i}>
|
|
49
|
+
`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return"<br>"}del(t){return`<del>${t}</del>`}link(t,n,i){const r=Ls(t);if(r===null)return i;t=r;let l='<a href="'+t+'"';return n&&(l+=' title="'+n+'"'),l+=">"+i+"</a>",l}image(t,n,i){const r=Ls(t);if(r===null)return i;t=r;let l=`<img src="${t}" alt="${i}"`;return n&&(l+=` title="${n}"`),l+=">",l}text(t){return t}}class Cr{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,n,i){return""+i}image(t,n,i){return""+i}br(){return""}}class rt{options;renderer;textRenderer;constructor(t){this.options=t||Ct,this.options.renderer=this.options.renderer||new gi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Cr}static parse(t,n){return new rt(n).parse(t)}static parseInline(t,n){return new rt(n).parseInline(t)}parse(t,n=!0){let i="";for(let r=0;r<t.length;r++){const l=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[l.type]){const s=l,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){i+=o||"";continue}}switch(l.type){case"space":continue;case"hr":{i+=this.renderer.hr();continue}case"heading":{const s=l;i+=this.renderer.heading(this.parseInline(s.tokens),s.depth,$u(this.parseInline(s.tokens,this.textRenderer)));continue}case"code":{const s=l;i+=this.renderer.code(s.text,s.lang,!!s.escaped);continue}case"table":{const s=l;let o="",a="";for(let f=0;f<s.header.length;f++)a+=this.renderer.tablecell(this.parseInline(s.header[f].tokens),{header:!0,align:s.align[f]});o+=this.renderer.tablerow(a);let u="";for(let f=0;f<s.rows.length;f++){const p=s.rows[f];a="";for(let h=0;h<p.length;h++)a+=this.renderer.tablecell(this.parseInline(p[h].tokens),{header:!1,align:s.align[h]});u+=this.renderer.tablerow(a)}i+=this.renderer.table(o,u);continue}case"blockquote":{const s=l,o=this.parse(s.tokens);i+=this.renderer.blockquote(o);continue}case"list":{const s=l,o=s.ordered,a=s.start,u=s.loose;let f="";for(let p=0;p<s.items.length;p++){const h=s.items[p],v=h.checked,T=h.task;let x="";if(h.task){const C=this.renderer.checkbox(!!v);u?h.tokens.length>0&&h.tokens[0].type==="paragraph"?(h.tokens[0].text=C+" "+h.tokens[0].text,h.tokens[0].tokens&&h.tokens[0].tokens.length>0&&h.tokens[0].tokens[0].type==="text"&&(h.tokens[0].tokens[0].text=C+" "+h.tokens[0].tokens[0].text)):h.tokens.unshift({type:"text",text:C+" "}):x+=C+" "}x+=this.parse(h.tokens,u),f+=this.renderer.listitem(x,T,!!v)}i+=this.renderer.list(f,o,a);continue}case"html":{const s=l;i+=this.renderer.html(s.text,s.block);continue}case"paragraph":{const s=l;i+=this.renderer.paragraph(this.parseInline(s.tokens));continue}case"text":{let s=l,o=s.tokens?this.parseInline(s.tokens):s.text;for(;r+1<t.length&&t[r+1].type==="text";)s=t[++r],o+=`
|
|
50
|
+
`+(s.tokens?this.parseInline(s.tokens):s.text);i+=n?this.renderer.paragraph(o):o;continue}default:{const s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}parseInline(t,n){n=n||this.renderer;let i="";for(let r=0;r<t.length;r++){const l=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[l.type]){const s=this.options.extensions.renderers[l.type].call({parser:this},l);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){i+=s||"";continue}}switch(l.type){case"escape":{const s=l;i+=n.text(s.text);break}case"html":{const s=l;i+=n.html(s.text);break}case"link":{const s=l;i+=n.link(s.href,s.title,this.parseInline(s.tokens,n));break}case"image":{const s=l;i+=n.image(s.href,s.title,s.text);break}case"strong":{const s=l;i+=n.strong(this.parseInline(s.tokens,n));break}case"em":{const s=l;i+=n.em(this.parseInline(s.tokens,n));break}case"codespan":{const s=l;i+=n.codespan(s.text);break}case"br":{i+=n.br();break}case"del":{const s=l;i+=n.del(this.parseInline(s.tokens,n));break}case"text":{const s=l;i+=n.text(s.text);break}default:{const s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return i}}class gn{options;constructor(t){this.options=t||Ct}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}Ne(gn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Vs{constructor(...t){Tr(this,kn);Tr(this,wi);Ne(this,"defaults",vr());Ne(this,"options",this.setOptions);Ne(this,"parse",yi(this,kn,Ar).call(this,it.lex,rt.parse));Ne(this,"parseInline",yi(this,kn,Ar).call(this,it.lexInline,rt.parseInline));Ne(this,"Parser",rt);Ne(this,"Renderer",gi);Ne(this,"TextRenderer",Cr);Ne(this,"Lexer",it);Ne(this,"Tokenizer",fi);Ne(this,"Hooks",gn);this.use(...t)}walkTokens(t,n){var r,l;let i=[];for(const s of t)switch(i=i.concat(n.call(this,s)),s.type){case"table":{const o=s;for(const a of o.header)i=i.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const u of a)i=i.concat(this.walkTokens(u.tokens,n));break}case"list":{const o=s;i=i.concat(this.walkTokens(o.items,n));break}default:{const o=s;(l=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&l[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{i=i.concat(this.walkTokens(o[a],n))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,n)))}}return i}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{const r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){const s=n.renderers[l.name];s?n.renderers[l.name]=function(...o){let a=l.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:n.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=n[l.level];s?s.unshift(l.tokenizer):n[l.level]=[l.tokenizer],l.start&&(l.level==="block"?n.startBlock?n.startBlock.push(l.start):n.startBlock=[l.start]:l.level==="inline"&&(n.startInline?n.startInline.push(l.start):n.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(n.childTokens[l.name]=l.childTokens)}),r.extensions=n),i.renderer){const l=this.defaults.renderer||new gi(this.defaults);for(const s in i.renderer){if(!(s in l))throw new Error(`renderer '${s}' does not exist`);if(s==="options")continue;const o=s,a=i.renderer[o],u=l[o];l[o]=(...f)=>{let p=a.apply(l,f);return p===!1&&(p=u.apply(l,f)),p||""}}r.renderer=l}if(i.tokenizer){const l=this.defaults.tokenizer||new fi(this.defaults);for(const s in i.tokenizer){if(!(s in l))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const o=s,a=i.tokenizer[o],u=l[o];l[o]=(...f)=>{let p=a.apply(l,f);return p===!1&&(p=u.apply(l,f)),p}}r.tokenizer=l}if(i.hooks){const l=this.defaults.hooks||new gn;for(const s in i.hooks){if(!(s in l))throw new Error(`hook '${s}' does not exist`);if(s==="options")continue;const o=s,a=i.hooks[o],u=l[o];gn.passThroughHooks.has(s)?l[o]=f=>{if(this.defaults.async)return Promise.resolve(a.call(l,f)).then(h=>u.call(l,h));const p=a.call(l,f);return u.call(l,p)}:l[o]=(...f)=>{let p=a.apply(l,f);return p===!1&&(p=u.apply(l,f)),p}}r.hooks=l}if(i.walkTokens){const l=this.defaults.walkTokens,s=i.walkTokens;r.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),l&&(a=a.concat(l.call(this,o))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return it.lex(t,n??this.defaults)}parser(t,n){return rt.parse(t,n??this.defaults)}}kn=new WeakSet,Ar=function(t,n){return(i,r)=>{const l={...r},s={...this.defaults,...l};this.defaults.async===!0&&l.async===!1&&(s.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),s.async=!0);const o=yi(this,wi,go).call(this,!!s.silent,!!s.async);if(typeof i>"u"||i===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(s.hooks&&(s.hooks.options=s),s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(i):i).then(a=>t(a,s)).then(a=>s.hooks?s.hooks.processAllTokens(a):a).then(a=>s.walkTokens?Promise.all(this.walkTokens(a,s.walkTokens)).then(()=>a):a).then(a=>n(a,s)).then(a=>s.hooks?s.hooks.postprocess(a):a).catch(o);try{s.hooks&&(i=s.hooks.preprocess(i));let a=t(i,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let u=n(a,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(a){return o(a)}}},wi=new WeakSet,go=function(t,n){return i=>{if(i.message+=`
|
|
51
|
+
Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+Me(i.message+"",!0)+"</pre>";return n?Promise.resolve(r):r}if(n)return Promise.reject(i);throw i}};const $t=new Vs;function he(e,t){return $t.parse(e,t)}he.options=he.setOptions=function(e){return $t.setOptions(e),he.defaults=$t.defaults,Ts(he.defaults),he},he.getDefaults=vr,he.defaults=Ct,he.use=function(...e){return $t.use(...e),he.defaults=$t.defaults,Ts(he.defaults),he},he.walkTokens=function(e,t){return $t.walkTokens(e,t)},he.parseInline=$t.parseInline,he.Parser=rt,he.parser=rt.parse,he.Renderer=gi,he.TextRenderer=Cr,he.Lexer=it,he.lexer=it.lex,he.Tokenizer=fi,he.Hooks=gn,he.parse=he;function ef(e){if(typeof e=="function"&&(e={highlight:e}),!e||typeof e.highlight!="function")throw new Error("Must provide highlight function");return typeof e.langPrefix!="string"&&(e.langPrefix="language-"),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=Bs(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Ws(t));const i=e.highlight(t.text,n,t.lang||"");if(i instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");Ws(t)(i)},renderer:{code(t,n,i){const r=Bs(n),l=r?` class="${e.langPrefix}${Gs(r)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${i?t:Gs(t,!0)}
|
|
52
|
+
</code></pre>`}}}}function Bs(e){return(e||"").match(/\S*/)[0]}function Ws(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const qs=/[&<>"']/,tf=new RegExp(qs.source,"g"),Ks=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,nf=new RegExp(Ks.source,"g"),rf={"&":"&","<":"<",">":">",'"':""","'":"'"},Zs=e=>rf[e];function Gs(e,t){if(t){if(qs.test(e))return e.replace(tf,Zs)}else if(Ks.test(e))return e.replace(nf,Zs);return e}const lf=/\$.*?\$/,sf=/^\$(.*?)\$/,of=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,af=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=of.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(lf);return n!==-1?n:t.length},tokenizer(t){const n=sf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Js=(e="",t={})=>e.replace(/:(.+?):/g,(n,i)=>t[i]?`<img class="wl-emoji" src="${t[i]}" alt="${i}">`:n),cf=(e,{emojiMap:t,highlighter:n,texRenderer:i})=>{const r=new Vs;if(r.setOptions({breaks:!0}),n&&r.use(ef({highlight:n})),i){const l=af(i);r.use({extensions:l})}return r.parse(Js(e,t))},$r=e=>e.dataset.path||null,uf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),ff=e=>e.match(/[\u4E00-\u9FD5]/gu),df=e=>{var t,n;return(((t=uf(e))==null?void 0:t.reduce((i,r)=>i+(["",",","."].includes(r.trim())?0:r.trim().split(/\s+/u).length),0))||0)+(((n=ff(e))==null?void 0:n.length)||0)},hf=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},Qs=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:i=navigator.language})=>{const r=new AbortController,l=document.querySelectorAll(n);return l.length&&Mr({serverURL:Rn(e),paths:Array.from(l).map(s=>Wr($r(s)||t)),lang:i,signal:r.signal}).then(s=>{l.forEach((o,a)=>{o.innerText=s[a].toString()})}).catch(Es),r.abort.bind(r)},Ys=({size:e})=>te("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[te("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"}),te("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"})]),pf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("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"})),gf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("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"})),mf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("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"}),te("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"})]),vf=({active:e=!1})=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("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${e?"":"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:e?"red":"currentColor"})]),wf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("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"}),te("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"})]),yf=()=>te("svg",{width:"16",height:"16",ariaHidden:"true"},te("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"})),bf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("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"})),kf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),xf=()=>te("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},te("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"})),mn=({size:e=100})=>te("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},te("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},te("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),_f=()=>te("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[te("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"}),te("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"})]),Cf=()=>Dt("WALINE_USER_META",{nick:"",mail:"",link:""}),$f=()=>Dt("WALINE_COMMENT_BOX_EDITOR",""),Ef="WALINE_LIKE";let Xs=null;const eo=()=>Xs||(Xs=Dt(Ef,[])),Rf="WALINE_REACTION";let to=null;const Tf=()=>to??(to=Dt(Rf,{}));var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},no={},Vt={},vn={},Af=mi&&mi.__awaiter||function(e,t,n,i){function r(l){return l instanceof n?l:new n(function(s){s(l)})}return new(n||(n=Promise))(function(l,s){function o(f){try{u(i.next(f))}catch(p){s(p)}}function a(f){try{u(i.throw(f))}catch(p){s(p)}}function u(f){f.done?l(f.value):r(f.value).then(o,a)}u((i=i.apply(e,t||[])).next())})},Sf=mi&&mi.__generator||function(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},i,r,l,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(f){return a([u,f])}}function a(u){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,r&&(l=u[0]&2?r.return:u[0]?r.throw||((l=r.return)&&l.call(r),0):r.next)&&!(l=l.call(r,u[1])).done)return l;switch(r=0,l&&(u=[u[0]&2,l.value]),u[0]){case 0:case 1:l=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,r=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!l||u[1]>l[0]&&u[1]<l[3])){n.label=u[1];break}if(u[0]===6&&n.label<l[1]){n.label=l[1],l=u;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(u);break}l[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],r=0}finally{i=l=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(vn,"__esModule",{value:!0}),vn.ReCaptchaInstance=void 0;var If=function(){function e(t,n,i){this.siteKey=t,this.recaptchaID=n,this.recaptcha=i,this.styleContainer=null}return e.prototype.execute=function(t){return Af(this,void 0,void 0,function(){return Sf(this,function(n){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:t}):this.recaptcha.execute(this.recaptchaID,{action:t})]})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();vn.ReCaptchaInstance=If,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.getInstance=Vt.load=void 0;var Lf=vn,pt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(pt||(pt={}));var io=function(){function e(){}return e.load=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===pt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===pt.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(r,l){e.successfulLoadingConsumers.push(function(s){return r(s)}),e.errorLoadingRunnable.push(function(s){return l(s)})});e.instanceSiteKey=t,e.setLoadingState(pt.LOADING);var i=new e;return new Promise(function(r,l){i.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(pt.LOADED);var s=i.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new Lf.ReCaptchaInstance(t,s,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,r(o)}).catch(function(s){e.errorLoadingRunnable.forEach(function(o){return o(s)}),e.errorLoadingRunnable=[],l(s)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?pt.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,i,r,l){var s=this;n===void 0&&(n=!1),i===void 0&&(i=!1),r===void 0&&(r={}),l===void 0&&(l="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(i?a="https://recaptcha.net/recaptcha/enterprise.js":a="https://recaptcha.net/recaptcha/api.js"),i&&(a="https://www.google.com/recaptcha/enterprise.js"),l&&(a=l),r.render&&(r.render=void 0);var u=this.buildQueryString(r);return o.src=a+"?render=explicit"+u,new Promise(function(f,p){o.addEventListener("load",s.waitForScriptToLoad(function(){f(o)},i),!1),o.onerror=function(h){e.setLoadingState(pt.NOT_LOADED),p(h)},document.head.appendChild(o)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(i){return!!t[i]}).map(function(i){return i+"="+t[i]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var i=this;return function(){window.grecaptcha===void 0?setTimeout(function(){i.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,n,i,r){var l={sitekey:n,badge:i.badge,size:i.size,tabindex:i.tabindex};return i.container?r?t.enterprise.render(i.container,l):t.render(i.container,l):r?t.enterprise.render(l):t.render(l)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Vt.load=io.load,Vt.getInstance=io.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Vt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=vn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(no);const ro={},Mf=e=>{const t=ro[e]??(ro[e]=no.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(i=>i.execute(n))}},Of=e=>({execute:async t=>{const{load:n}=pu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const i=window==null?void 0:window.turnstile;return new Promise(r=>{i==null||i.ready(()=>{i==null||i.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:r})})})}}),zf="WALINE_USER";let lo=null;const vi=()=>lo??(lo=Dt(zf,{})),jf={key:0,class:"wl-reaction"},Pf=["textContent"],Uf={class:"wl-reaction-list"},Ff=["onClick"],Nf={class:"wl-reaction-img"},Hf=["src","alt"],Df=["textContent"],Vf=["textContent"];var Bf=en({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Tf(),i=Yn("config"),r=W(-1),l=W([]),s=be(()=>i.value.locale),o=be(()=>i.value.reaction.length>0),a=be(()=>{const{reaction:h,path:v}=i.value;return h.map((T,x)=>({icon:T,desc:s.value[`reaction${x}`],active:n.value[v]===x}))});let u;const f=async()=>{if(o.value){const{serverURL:h,lang:v,path:T,reaction:x}=i.value,C=new AbortController;u=C.abort.bind(C);const y=await bi({serverURL:h,lang:v,paths:[T],type:x.map((R,P)=>`reaction${P}`),signal:C.signal});if(Array.isArray(y)||typeof y=="number")return;l.value=x.map((R,P)=>y[`reaction${P}`])}},p=async h=>{if(r.value===-1){const{serverURL:v,lang:T,path:x}=i.value,C=n.value[x];r.value=h,C!==void 0&&(await $n({serverURL:v,lang:T,path:x,type:`reaction${C}`,action:"desc"}),l.value[C]=Math.max(l.value[C]-1,0)),C!==h&&(await $n({serverURL:v,lang:T,path:x,type:`reaction${h}`}),l.value[h]=(l.value[h]||0)+1),C===h?delete n.value[x]:n.value[x]=h,r.value=-1}};return tn(()=>{ze(()=>[i.value.serverURL,i.value.path],()=>{f()},{immediate:!0})}),Gn(()=>u==null?void 0:u()),(h,v)=>a.value.length?(A(),M("div",jf,[j("div",{class:"wl-reaction-title",textContent:ie(s.value.reactionTitle)},null,8,Pf),j("ul",Uf,[(A(!0),M(oe,null,je(a.value,({active:T,icon:x,desc:C},y)=>(A(),M("li",{key:y,class:me(["wl-reaction-item",{active:T}]),onClick:R=>p(y)},[j("div",Nf,[j("img",{src:x,alt:C},null,8,Hf),r.value===y?(A(),Xe(Z(mn),{key:0,class:"wl-reaction-loading"})):(A(),M("div",{key:1,class:"wl-reaction-votes",textContent:ie(l.value[y]||0)},null,8,Df))]),j("div",{class:"wl-reaction-text",textContent:ie(C)},null,8,Vf)],10,Ff))),128))])])):Y("v-if",!0)}}),wn=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},Wf=wn(Bf,[["__file","ArticleReaction.vue"]]),yn=new Map;function qf(e){var t=yn.get(e);t&&t.destroy()}function Kf(e){var t=yn.get(e);t&&t.update()}var bn=null;typeof window>"u"?((bn=function(e){return e}).destroy=function(e){return e},bn.update=function(e){return e}):((bn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(i){if(i&&i.nodeName&&i.nodeName==="TEXTAREA"&&!yn.has(i)){var r,l=null,s=window.getComputedStyle(i),o=(r=i.value,function(){u({testForHeightReduction:r===""||!i.value.startsWith(r),restoreTextAlign:null}),r=i.value}),a=(function(p){i.removeEventListener("autosize:destroy",a),i.removeEventListener("autosize:update",f),i.removeEventListener("input",o),window.removeEventListener("resize",f),Object.keys(p).forEach(function(h){return i.style[h]=p[h]}),yn.delete(i)}).bind(i,{height:i.style.height,resize:i.style.resize,textAlign:i.style.textAlign,overflowY:i.style.overflowY,overflowX:i.style.overflowX,wordWrap:i.style.wordWrap});i.addEventListener("autosize:destroy",a),i.addEventListener("autosize:update",f),i.addEventListener("input",o),window.addEventListener("resize",f),i.style.overflowX="hidden",i.style.wordWrap="break-word",yn.set(i,{destroy:a,update:f}),f()}function u(p){var h,v,T=p.restoreTextAlign,x=T===void 0?null:T,C=p.testForHeightReduction,y=C===void 0||C,R=s.overflowY;if(i.scrollHeight!==0&&(s.resize==="vertical"?i.style.resize="none":s.resize==="both"&&(i.style.resize="horizontal"),y&&(h=function(N){for(var U=[];N&&N.parentNode&&N.parentNode instanceof Element;)N.parentNode.scrollTop&&U.push([N.parentNode,N.parentNode.scrollTop]),N=N.parentNode;return function(){return U.forEach(function(O){var B=O[0],V=O[1];B.style.scrollBehavior="auto",B.scrollTop=V,B.style.scrollBehavior=null})}}(i),i.style.height=""),v=s.boxSizing==="content-box"?i.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):i.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&v>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(i.style.overflow="scroll"),v=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(i.style.overflow="hidden"),i.style.height=v+"px",x&&(i.style.textAlign=x),h&&h(),l!==v&&(i.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),l=v),R!==s.overflow&&!x)){var P=s.textAlign;s.overflow==="hidden"&&(i.style.textAlign=P==="start"?"end":"start"),u({restoreTextAlign:P,testForHeightReduction:!0})}}function f(){u({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],qf),e},bn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kf),e});var so=bn;const Zf=["data-index"],Gf=["src","title","onClick"];var Jf=en({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let i=null;const r=W(null),l=W({}),s=W([]),o=()=>{const h=Math.floor((r.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return h>0?h:1},a=h=>new Array(h).fill(null).map(()=>[]),u=async h=>{var v;if(h>=n.items.length)return;await Vn();const T=Array.from(((v=r.value)==null?void 0:v.children)||[]).reduce((x,C)=>C.getBoundingClientRect().height<x.getBoundingClientRect().height?C:x);s.value[Number(T.dataset.index)].push(h),await u(h+1)},f=async(h=!1)=>{if(s.value.length===o()&&!h)return;s.value=a(o());const v=window.scrollY;await u(0),window.scrollTo({top:v})},p=h=>{l.value[h.target.src]=!0};return tn(()=>{f(!0),i=new ResizeObserver(()=>{f()}),i.observe(r.value),ze(()=>[n.items],()=>{l.value={},f(!0)}),ze(()=>[n.columnWidth,n.gap],()=>{f()})}),Fa(()=>i.unobserve(r.value)),(h,v)=>(A(),M("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:Zt({gap:`${h.gap}px`})},[(A(!0),M(oe,null,je(s.value,(T,x)=>(A(),M("div",{key:x,class:"wl-gallery-column","data-index":x,style:Zt({gap:`${h.gap}px`})},[(A(!0),M(oe,null,je(T,C=>(A(),M(oe,{key:C},[l.value[h.items[C].src]?Y("v-if",!0):(A(),Xe(Z(mn),{key:0,size:36,style:{margin:"20px auto"}})),j("img",{class:"wl-gallery-item",src:h.items[C].src,title:h.items[C].title,loading:"lazy",onLoad:p,onClick:y=>h.$emit("insert",``)},null,40,Gf)],64))),128))],12,Zf))),128))],4))}}),Qf=wn(Jf,[["__file","ImageWall.vue"]]);const Yf={class:"wl-comment"},Xf={key:0,class:"wl-login-info"},ed={class:"wl-avatar"},td=["title"],nd=["title"],id=["src"],rd=["title","textContent"],ld={class:"wl-panel"},sd=["for","textContent"],od=["id","onUpdate:modelValue","name","type"],ad=["placeholder"],cd={class:"wl-preview"},ud=j("hr",null,null,-1),fd=["innerHTML"],dd={class:"wl-footer"},hd={class:"wl-actions"},pd={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},gd=["title"],md=["title"],vd=["title"],wd=["title"],yd={class:"wl-info"},bd=j("div",{class:"wl-captcha-container"},null,-1),kd={class:"wl-text-number"},xd={key:0},_d=["textContent"],Cd=["textContent"],$d=["disabled"],Ed=["placeholder"],Rd={key:1,class:"wl-loading"},Td={key:0,class:"wl-tab-wrapper"},Ad=["title","onClick"],Sd=["src","alt"],Id={key:0,class:"wl-tabs"},Ld=["onClick"],Md=["src","alt","title"],Od=["title"];var zd=en({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:n}){const i=e,r=n;t();const l=Yn("config"),s=$f(),o=Cf(),a=vi(),u=W({}),f=W(null),p=W(null),h=W(null),v=W(null),T=W(null),x=W(null),C=W(null),y=W({tabs:[],map:{}}),R=W(0),P=W(!1),N=W(!1),U=W(!1),O=W(""),B=W(0),V=Gt({loading:!0,list:[]}),G=W(0),ae=W(!1),Re=W(""),De=W(!1),q=W(!1),D=be(()=>l.value.locale),se=be(()=>{var I;return!!((I=a.value)!=null&&I.token)}),ve=be(()=>l.value.imageUploader!==!1),ge=I=>{const c=f.value,d=c.selectionStart,g=c.selectionEnd||0,m=c.scrollTop;s.value=c.value.substring(0,d)+I+c.value.substring(g,c.value.length),c.focus(),c.selectionStart=d+I.length,c.selectionEnd=d+I.length,c.scrollTop=m},_e=I=>{const c=I.key;(I.ctrlKey||I.metaKey)&&c==="Enter"&&xn()},ke=I=>{const c=`![${l.value.locale.uploading} ${I.name}]()`;return ge(c),De.value=!0,Promise.resolve().then(()=>l.value.imageUploader(I)).then(d=>{s.value=s.value.replace(c,`\r
|
|
53
|
+
`)}).catch(d=>{alert(d.message),s.value=s.value.replace(c,"")}).then(()=>{De.value=!1})},gt=I=>{var c;if((c=I.dataTransfer)!=null&&c.items){const d=Rs(I.dataTransfer.items);d&&ve.value&&(ke(d),I.preventDefault())}},Et=I=>{if(I.clipboardData){const c=Rs(I.clipboardData.items);c&&ve.value&&ke(c)}},Ue=()=>{const I=p.value;I.files&&ve.value&&ke(I.files[0]).then(()=>{I.value=""})},xn=async()=>{var I,c,d,g,m,w;const{serverURL:b,lang:$,login:_,wordLimit:E,requiredMeta:k,recaptchaV3Key:S,turnstileKey:F}=l.value,z=await hf(),L={comment:Re.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:l.value.path,ua:z};if((I=a.value)!=null&&I.token)L.nick=a.value.display_name,L.mail=a.value.email,L.link=a.value.url;else{if(_==="force")return;if(k.indexOf("nick")>-1&&!L.nick)return(c=u.value.nick)==null||c.focus(),alert(D.value.nickError);if(k.indexOf("mail")>-1&&!L.mail||L.mail&&!Oo(L.mail))return(d=u.value.mail)==null||d.focus(),alert(D.value.mailError);L.nick||(L.nick=D.value.anonymous)}if(!L.comment){(g=f.value)==null||g.focus();return}if(!ae.value)return alert(D.value.wordHint.replace("$0",E[0].toString()).replace("$1",E[1].toString()).replace("$2",B.value.toString()));L.comment=Js(L.comment,y.value.map),i.replyId&&i.rootId&&(L.pid=i.replyId,L.rid=i.rootId,L.at=i.replyUser),De.value=!0;try{S&&(L.recaptchaV3=await Mf(S).execute("social")),F&&(L.turnstile=await Of(F).execute("social"));const K={serverURL:b,lang:$,token:(m=a.value)==null?void 0:m.token,comment:L},X=await(i.edit?qt({objectId:i.edit.objectId,...K}):Ir(K));if(De.value=!1,X.errmsg)return alert(X.errmsg);r("submit",X.data),s.value="",O.value="",i.replyId&&r("cancelReply"),(w=i.edit)!=null&&w.objectId&&r("cancelEdit")}catch(K){De.value=!1,alert(K.message)}},Er=I=>{I.preventDefault();const{lang:c,serverURL:d}=l.value;Or({serverURL:d,lang:c}).then(g=>{a.value=g,(g.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(g)),r("log")})},Rr=()=>{a.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Fe=I=>{I.preventDefault();const{lang:c,serverURL:d}=l.value,g=800,m=800,w=(window.innerWidth-g)/2,b=(window.innerHeight-m)/2,$=new URLSearchParams({lng:c,token:a.value.token}),_=window.open(`${d}/ui/profile?${$.toString()}`,"_blank",`width=${g},height=${m},left=${w},top=${b},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);_==null||_.postMessage({type:"TOKEN",data:a.value.token},"*")},Rt=I=>{var c,d,g,m;!((c=h.value)!=null&&c.contains(I.target))&&!((d=v.value)!=null&&d.contains(I.target))&&(P.value=!1),!((g=T.value)!=null&&g.contains(I.target))&&!((m=x.value)!=null&&m.contains(I.target))&&(N.value=!1)},_n=async I=>{var c;const{scrollTop:d,clientHeight:g,scrollHeight:m}=I.target,w=(g+d)/m,b=l.value.search,$=((c=C.value)==null?void 0:c.value)||"";w<.9||V.loading||q.value||(V.loading=!0,(b.more&&V.list.length?await b.more($,V.list.length):await b.search($)).length?V.list=[...V.list,...b.more&&V.list.length?await b.more($,V.list.length):await b.search($)]:q.value=!0,V.loading=!1,setTimeout(()=>{I.target.scrollTop=d},50))},lt=tu(I=>{V.list=[],q.value=!1,_n(I)},300);ze([l,B],([I,c])=>{const{wordLimit:d}=I;d?c<d[0]&&d[0]!==0?(G.value=d[0],ae.value=!1):c>d[1]?(G.value=d[1],ae.value=!1):(G.value=d[1],ae.value=!0):(G.value=0,ae.value=!0)},{immediate:!0});const Bt=({data:I})=>{!I||I.type!=="profile"||(a.value={...a.value,...I.data},[localStorage,sessionStorage].filter(c=>c.getItem("WALINE_USER")).forEach(c=>c.setItem("WALINE_USER",JSON.stringify(a))))};return tn(()=>{var I;document.body.addEventListener("click",Rt),window.addEventListener("message",Bt),(I=i.edit)!=null&&I.objectId&&(s.value=i.edit.orig),ze(N,async c=>{if(!c)return;const d=l.value.search;C.value&&(C.value.value=""),V.loading=!0,V.list=d.default?await d.default():await d.search(""),V.loading=!1}),ze(()=>s.value,c=>{const{highlighter:d,texRenderer:g}=l.value;Re.value=c,O.value=cf(c,{emojiMap:y.value.map,highlighter:d,texRenderer:g}),B.value=df(c),c?so(f.value):so.destroy(f.value)},{immediate:!0}),ze(()=>l.value.emoji,c=>yu(c).then(d=>{y.value=d}),{immediate:!0})}),Gn(()=>{document.body.removeEventListener("click",Rt),window.removeEventListener("message",Bt)}),(I,c)=>{var d,g;return A(),M("div",Yf,[Z(l).login!=="disable"&&se.value&&!((d=I.edit)!=null&&d.objectId)?(A(),M("div",Xf,[j("div",ed,[j("button",{type:"submit",class:"wl-logout-btn",title:D.value.logout,onClick:Rr},[re(Z(Ys),{size:14})],8,td),j("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:D.value.profile,onClick:Fe},[j("img",{src:Z(a).avatar,alt:"avatar"},null,8,id)],8,nd)]),j("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:D.value.profile,onClick:Fe,textContent:ie(Z(a).display_name)},null,8,rd)])):Y("v-if",!0),j("div",ld,[Z(l).login!=="force"&&Z(l).meta.length&&!se.value?(A(),M("div",{key:0,class:me(["wl-header",`item${Z(l).meta.length}`])},[(A(!0),M(oe,null,je(Z(l).meta,m=>(A(),M("div",{key:m,class:"wl-header-item"},[j("label",{for:`wl-${m}`,textContent:ie(D.value[m]+(Z(l).requiredMeta.includes(m)||!Z(l).requiredMeta.length?"":`(${D.value.optional})`))},null,8,sd),Kn(j("input",{id:`wl-${m}`,ref_for:!0,ref:w=>{w&&(u.value[m]=w)},"onUpdate:modelValue":w=>Z(o)[m]=w,class:me(["wl-input",`wl-${m}`]),name:m,type:m==="mail"?"email":"text"},null,10,od),[[Bc,Z(o)[m]]])]))),128))],2)):Y("v-if",!0),Kn(j("textarea",{id:"wl-edit",ref_key:"editorRef",ref:f,"onUpdate:modelValue":c[0]||(c[0]=m=>$e(s)?s.value=m:null),class:"wl-editor",placeholder:I.replyUser?`@${I.replyUser}`:D.value.placeholder,onKeydown:_e,onDrop:gt,onPaste:Et},null,40,ad),[[pr,Z(s)]]),Kn(j("div",cd,[ud,j("h4",null,ie(D.value.preview)+":",1),j("div",{class:"wl-content",innerHTML:O.value},null,8,fd)],512),[[os,U.value]]),j("div",dd,[j("div",hd,[j("a",pd,[re(Z(yf))]),Kn(j("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:me(["wl-action",{active:P.value}]),title:D.value.emoji,onClick:c[1]||(c[1]=m=>P.value=!P.value)},[re(Z(gf))],10,gd),[[os,y.value.tabs.length]]),Z(l).search?(A(),M("button",{key:0,ref_key:"gifButtonRef",ref:T,type:"button",class:me(["wl-action",{active:N.value}]),title:D.value.gif,onClick:c[2]||(c[2]=m=>N.value=!N.value)},[re(Z(_f))],10,md)):Y("v-if",!0),j("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:p,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Ue},null,544),ve.value?(A(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:D.value.uploadImage},[re(Z(mf))],8,vd)):Y("v-if",!0),j("button",{type:"button",class:me(["wl-action",{active:U.value}]),title:D.value.preview,onClick:c[3]||(c[3]=m=>U.value=!U.value)},[re(Z(wf))],10,wd)]),j("div",yd,[bd,j("div",kd,[et(ie(B.value)+" ",1),Z(l).wordLimit?(A(),M("span",xd,[et(" / "),j("span",{class:me({illegal:!ae.value}),textContent:ie(G.value)},null,10,_d)])):Y("v-if",!0),et(" "+ie(D.value.word),1)]),Z(l).login!=="disable"&&!se.value?(A(),M("button",{key:0,type:"button",class:"wl-btn",onClick:Er,textContent:ie(D.value.login)},null,8,Cd)):Y("v-if",!0),Z(l).login!=="force"||se.value?(A(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:De.value,onClick:xn},[De.value?(A(),Xe(Z(mn),{key:0,size:16})):(A(),M(oe,{key:1},[et(ie(D.value.submit),1)],64))],8,$d)):Y("v-if",!0)]),j("div",{ref_key:"gifPopupRef",ref:x,class:me(["wl-gif-popup",{display:N.value}])},[j("input",{ref_key:"gifSearchInputRef",ref:C,type:"text",placeholder:D.value.gifSearchPlaceholder,onInput:c[4]||(c[4]=(...m)=>Z(lt)&&Z(lt)(...m))},null,40,Ed),V.list.length?(A(),Xe(Qf,{key:0,items:V.list,"column-width":200,gap:6,onInsert:c[5]||(c[5]=m=>ge(m)),onScroll:_n},null,8,["items"])):Y("v-if",!0),V.loading?(A(),M("div",Rd,[re(Z(mn),{size:30})])):Y("v-if",!0)],2),j("div",{ref_key:"emojiPopupRef",ref:v,class:me(["wl-emoji-popup",{display:P.value}])},[(A(!0),M(oe,null,je(y.value.tabs,(m,w)=>(A(),M(oe,{key:m.name},[w===R.value?(A(),M("div",Td,[(A(!0),M(oe,null,je(m.items,b=>(A(),M("button",{key:b,type:"button",title:b,onClick:$=>ge(`:${b}:`)},[P.value?(A(),M("img",{key:0,class:"wl-emoji",src:y.value.map[b],alt:b,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Sd)):Y("v-if",!0)],8,Ad))),128))])):Y("v-if",!0)],64))),128)),y.value.tabs.length>1?(A(),M("div",Id,[(A(!0),M(oe,null,je(y.value.tabs,(m,w)=>(A(),M("button",{key:m.name,type:"button",class:me(["wl-tab",{active:R.value===w}]),onClick:b=>R.value=w},[j("img",{class:"wl-emoji",src:m.icon,alt:m.name,title:m.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Md)],10,Ld))),128))])):Y("v-if",!0)],2)])]),I.replyId||(g=I.edit)!=null&&g.objectId?(A(),M("button",{key:1,type:"button",class:"wl-close",title:D.value.cancelReply,onClick:c[6]||(c[6]=m=>I.$emit(I.replyId?"cancelReply":"cancelEdit"))},[re(Z(Ys),{size:24})],8,Od)):Y("v-if",!0)])}}}),oo=wn(zd,[["__file","CommentBox.vue"]]);const jd=["id"],Pd={class:"wl-user","aria-hidden":"true"},Ud=["src"],Fd={class:"wl-card"},Nd={class:"wl-head"},Hd=["href"],Dd={key:1,class:"wl-nick"},Vd=["textContent"],Bd=["textContent"],Wd=["textContent"],qd=["textContent"],Kd=["textContent"],Zd={class:"wl-comment-actions"},Gd=["title"],Jd=["title"],Qd={class:"wl-meta","aria-hidden":"true"},Yd=["data-value","textContent"],Xd=["innerHTML"],eh={key:1,class:"wl-admin-actions"},th={class:"wl-comment-status"},nh=["disabled","onClick","textContent"],ih={key:3,class:"wl-quote"};var rh=en({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,i=t,r=["approved","waiting","spam"],l=Yn("config"),s=eo(),o=hu(),a=vi(),u=be(()=>l.value.locale),f=be(()=>{const{link:y}=n.comment;return y?Kr(y)?y:`https://${y}`:""}),p=be(()=>s.value.includes(n.comment.objectId)),h=be(()=>Lo(new Date(n.comment.time),o.value,u.value)),v=be(()=>a.value.type==="administrator"),T=be(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),x=be(()=>{var y;return n.comment.objectId===((y=n.reply)==null?void 0:y.objectId)}),C=be(()=>{var y;return n.comment.objectId===((y=n.edit)==null?void 0:y.objectId)});return(y,R)=>{var P;const N=Sa("CommentCard",!0);return A(),M("div",{id:y.comment.objectId,class:"wl-card-item"},[j("div",Pd,[y.comment.avatar?(A(),M("img",{key:0,class:"wl-user-avatar",src:y.comment.avatar},null,8,Ud)):Y("v-if",!0),y.comment.type?(A(),Xe(Z(xf),{key:1})):Y("v-if",!0)]),j("div",Fd,[j("div",Nd,[f.value?(A(),M("a",{key:0,class:"wl-nick",href:f.value,target:"_blank",rel:"nofollow noopener noreferrer"},ie(y.comment.nick),9,Hd)):(A(),M("span",Dd,ie(y.comment.nick),1)),y.comment.type==="administrator"?(A(),M("span",{key:2,class:"wl-badge",textContent:ie(u.value.admin)},null,8,Vd)):Y("v-if",!0),y.comment.label?(A(),M("span",{key:3,class:"wl-badge",textContent:ie(y.comment.label)},null,8,Bd)):Y("v-if",!0),y.comment.sticky?(A(),M("span",{key:4,class:"wl-badge",textContent:ie(u.value.sticky)},null,8,Wd)):Y("v-if",!0),typeof y.comment.level=="number"?(A(),M("span",{key:5,class:me(`wl-badge level${y.comment.level}`),textContent:ie(u.value[`level${y.comment.level}`]||`Level ${y.comment.level}`)},null,10,qd)):Y("v-if",!0),j("span",{class:"wl-time",textContent:ie(h.value)},null,8,Kd),j("div",Zd,[v.value||T.value?(A(),M(oe,{key:0},[j("button",{type:"button",class:"wl-edit",onClick:R[0]||(R[0]=U=>i("edit",y.comment))},[re(Z(kf))]),j("button",{type:"button",class:"wl-delete",onClick:R[1]||(R[1]=U=>i("delete",y.comment))},[re(Z(pf))])],64)):Y("v-if",!0),j("button",{type:"button",class:"wl-like",title:p.value?u.value.cancelLike:u.value.like,onClick:R[2]||(R[2]=U=>i("like",y.comment))},[re(Z(vf),{active:p.value},null,8,["active"]),et(" "+ie("like"in y.comment?y.comment.like:""),1)],8,Gd),j("button",{type:"button",class:me(["wl-reply",{active:x.value}]),title:x.value?u.value.cancelReply:u.value.reply,onClick:R[3]||(R[3]=U=>i("reply",x.value?null:y.comment))},[re(Z(bf))],10,Jd)])]),j("div",Qd,[(A(),M(oe,null,je(["addr","browser","os"],U=>(A(),M(oe,null,[y.comment[U]?(A(),M("span",{key:U,class:me(`wl-${U}`),"data-value":y.comment[U],textContent:ie(y.comment[U])},null,10,Yd)):Y("v-if",!0)],64))),64))]),C.value?Y("v-if",!0):(A(),M("div",{key:0,class:"wl-content",innerHTML:y.comment.comment},null,8,Xd)),v.value&&!C.value?(A(),M("div",eh,[j("span",th,[(A(),M(oe,null,je(r,U=>j("button",{key:U,type:"submit",class:me(`wl-btn wl-${U}`),disabled:y.comment.status===U,onClick:O=>i("status",{status:U,comment:y.comment}),textContent:ie(u.value[U])},null,10,nh)),64))]),v.value&&!("rid"in y.comment)?(A(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:R[4]||(R[4]=U=>i("sticky",y.comment))},ie(y.comment.sticky?u.value.unsticky:u.value.sticky),1)):Y("v-if",!0)])):Y("v-if",!0),x.value||C.value?(A(),M("div",{key:2,class:me({"wl-reply-wrapper":x.value,"wl-edit-wrapper":C.value})},[re(oo,{edit:y.edit,"reply-id":(P=y.reply)==null?void 0:P.objectId,"reply-user":y.comment.nick,"root-id":y.rootId,onLog:R[5]||(R[5]=U=>i("log")),onCancelReply:R[6]||(R[6]=U=>i("reply",null)),onCancelEdit:R[7]||(R[7]=U=>i("edit",null)),onSubmit:R[8]||(R[8]=U=>i("submit",U))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Y("v-if",!0),"children"in y.comment?(A(),M("div",ih,[(A(!0),M(oe,null,je(y.comment.children,U=>(A(),Xe(N,{key:U.objectId,comment:U,reply:y.reply,edit:y.edit,"root-id":y.rootId,onLog:R[9]||(R[9]=O=>i("log")),onDelete:R[10]||(R[10]=O=>i("delete",O)),onEdit:R[11]||(R[11]=O=>i("edit",O)),onLike:R[12]||(R[12]=O=>i("like",O)),onReply:R[13]||(R[13]=O=>i("reply",O)),onStatus:R[14]||(R[14]=O=>i("status",O)),onSticky:R[15]||(R[15]=O=>i("sticky",O)),onSubmit:R[16]||(R[16]=O=>i("submit",O))},null,8,["comment","reply","edit","root-id"]))),128))])):Y("v-if",!0)])],8,jd)}}}),lh=wn(rh,[["__file","CommentCard.vue"]]);const ao="3.0.0-alpha.10",sh={"data-waline":""},oh={class:"wl-meta-head"},ah={class:"wl-count"},ch=["textContent"],uh={class:"wl-sort"},fh=["onClick"],dh={class:"wl-cards"},hh={key:1,class:"wl-operation"},ph=["textContent"],gh={key:2,class:"wl-loading"},mh=["textContent"],vh={key:4,class:"wl-operation"},wh=["textContent"],yh={key:5,class:"wl-power"},bh=j("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var kh=en({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},i=Object.keys(n),r=vi(),l=eo(),s=W("loading"),o=W(0),a=W(1),u=W(0),f=be(()=>Ao(t)),p=W(f.value.commentSorting),h=W([]),v=W(null),T=W(null),x=be(()=>So(f.value.dark)),C=be(()=>f.value.locale);mu(x,{id:"waline-darkmode"});let y;const R=q=>{var D;const{serverURL:se,path:ve,pageSize:ge}=f.value,_e=new AbortController;s.value="loading",y==null||y(),Sr({serverURL:se,lang:f.value.lang,path:ve,pageSize:ge,sortBy:n[p.value],page:q,signal:_e.signal,token:(D=r.value)==null?void 0:D.token}).then(ke=>{s.value="success",o.value=ke.count,h.value.push(...ke.data),a.value=q,u.value=ke.totalPages}).catch(ke=>{ke.name!=="AbortError"&&(console.error(ke.message),s.value="error")}),y=_e.abort.bind(_e)},P=()=>R(a.value+1),N=()=>{o.value=0,h.value=[],R(1)},U=q=>{p.value!==q&&(p.value=q,N())},O=q=>{v.value=q},B=q=>{T.value=q},V=q=>{if(T.value)T.value.comment=q.comment,T.value.orig=q.orig;else if("rid"in q){const D=h.value.find(({objectId:se})=>se===q.rid);if(!D)return;Array.isArray(D.children)||(D.children=[]),D.children.push(q)}else h.value.unshift(q),o.value+=1},G=async({comment:q,status:D})=>{var se;if(q.status===D)return;const{serverURL:ve,lang:ge}=f.value;await qt({serverURL:ve,lang:ge,token:(se=r.value)==null?void 0:se.token,objectId:q.objectId,comment:{status:D}}),q.status=D},ae=async q=>{var D;if("rid"in q)return;const{serverURL:se,lang:ve}=f.value;await qt({serverURL:se,lang:ve,token:(D=r.value)==null?void 0:D.token,objectId:q.objectId,comment:{sticky:q.sticky?0:1}}),q.sticky=!q.sticky},Re=async({objectId:q})=>{var D;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:se,lang:ve}=f.value;await Lr({serverURL:se,lang:ve,token:(D=r.value)==null?void 0:D.token,objectId:q}),h.value.some((ge,_e)=>ge.objectId===q?(h.value=h.value.filter((ke,gt)=>gt!==_e),!0):ge.children.some((ke,gt)=>ke.objectId===q?(h.value[_e].children=ge.children.filter((Et,Ue)=>Ue!==gt),!0):!1))},De=async q=>{var D;const{serverURL:se,lang:ve}=f.value,{objectId:ge}=q,_e=l.value.includes(ge);await qt({serverURL:se,lang:ve,objectId:ge,token:(D=r.value)==null?void 0:D.token,comment:{like:!_e}}),_e?l.value=l.value.filter(ke=>ke!==ge):(l.value=[...l.value,ge],l.value.length>50&&(l.value=l.value.slice(-50))),q.like=(q.like||0)+(_e?-1:1)};return Ka("config",f),tn(()=>{ze(()=>[t.serverURL,t.path],()=>N(),{immediate:!0})}),Gn(()=>y==null?void 0:y()),(q,D)=>(A(),M("div",sh,[re(Wf),v.value?Y("v-if",!0):(A(),Xe(oo,{key:0,onLog:N,onSubmit:V})),j("div",oh,[j("div",ah,[o.value?(A(),M("span",{key:0,class:"wl-num",textContent:ie(o.value)},null,8,ch)):Y("v-if",!0),et(" "+ie(C.value.comment),1)]),j("ul",uh,[(A(!0),M(oe,null,je(Z(i),se=>(A(),M("li",{key:se,class:me([se===p.value?"active":""]),onClick:ve=>U(se)},ie(C.value[se]),11,fh))),128))])]),j("div",dh,[(A(!0),M(oe,null,je(h.value,se=>(A(),Xe(lh,{key:se.objectId,"root-id":se.objectId,comment:se,reply:v.value,edit:T.value,onLog:N,onReply:O,onEdit:B,onSubmit:V,onStatus:G,onDelete:Re,onSticky:ae,onLike:De},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(A(),M("div",hh,[j("button",{type:"button",class:"wl-btn",onClick:N,textContent:ie(C.value.refresh)},null,8,ph)])):s.value==="loading"?(A(),M("div",gh,[re(Z(mn),{size:30})])):h.value.length?a.value<u.value?(A(),M("div",vh,[j("button",{type:"button",class:"wl-btn",onClick:P,textContent:ie(C.value.more)},null,8,wh)])):Y("v-if",!0):(A(),M("div",{key:3,class:"wl-empty",textContent:ie(C.value.sofa)},null,8,mh)),f.value.copyright?(A(),M("div",yh,[et(" Powered by "),bh,et(" v"+ie(Z(ao)),1)])):Y("v-if",!0)]))}}),xh=wn(kh,[["__file","WalineComment.vue"]]);const co=(e,t)=>{t.forEach((n,i)=>{n.innerText=e[i].toString()})},uo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:i=!0,lang:r=navigator.language})=>{const l=new AbortController,s=Array.from(document.querySelectorAll(n)),o=u=>{const f=$r(u);return f!==null&&t!==f},a=u=>zr({serverURL:Rn(e),paths:u.map(f=>$r(f)||t),lang:r,signal:l.signal}).then(f=>co(f,u)).catch(Es);if(i){const u=s.filter(p=>!o(p)),f=s.filter(o);jr({serverURL:Rn(e),path:t,lang:r}).then(([p])=>co(new Array(u.length).fill(p),u)),f.length&&a(f)}else a(s);return l.abort.bind(l)},_h=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:i=!1,...r})=>{const l=e?mr(e):null;if(e&&!l)throw new Error("Option 'el' do not match any domElement!");if(!r.serverURL)throw new Error("Option 'serverURL' is missing!");const s=Gt({...r}),o=Gt({comment:n,pageview:i,path:t}),a=()=>{o.comment&&Qs({serverURL:s.serverURL,path:o.path,...typeof o.comment=="string"?{selector:o.comment}:{}})},u=()=>{o.pageview&&uo({serverURL:s.serverURL,path:o.path,...typeof o.pageview=="string"?{selector:o.pageview}:{}})},f=l?Zc(()=>te(xh,{path:o.path,...s})):null;f&&f.mount(l);const p=jl(a),h=jl(u);return{el:l,update:({comment:v,pageview:T,path:x=window.location.pathname,...C}={})=>{Object.entries(C).forEach(([y,R])=>{s[y]=R}),o.path=x,v!==void 0&&(o.comment=v),T!==void 0&&(o.pageview=T)},destroy:()=>{f==null||f.unmount(),p(),h()}}},Ch=({el:e,serverURL:t,count:n,lang:i=navigator.language})=>{var r;const l=vi(),s=mr(e),o=new AbortController;return Pr({serverURL:t,count:n,lang:i,signal:o.signal,token:(r=l.value)==null?void 0:r.token}).then(a=>s&&a.length?(s.innerHTML=`<ul class="wl-recent-list">${a.map(u=>`<li class="wl-recent-item"><a href="${u.url}">${u.nick}</a>:${u.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),s.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},$h=({el:e,serverURL:t,count:n,locale:i,lang:r=navigator.language,mode:l="list"})=>{const s=mr(e),o=new AbortController;return Ur({serverURL:t,pageSize:n,lang:r,signal:o.signal}).then(a=>!s||!a.length?{users:a,destroy:()=>o.abort()}:(i={...St[r]||St[Hr],...typeof i=="object"?i:{}},s.innerHTML=`<ul class="wl-user-${l}">${a.map((u,f)=>[`<li class="wl-user-item" aria-label="${u.nick}">`,u.link&&`<a href="${u.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${u.avatar}" alt="${u.nick}">`,`<span class="wl-user-badge">${f+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',u.nick,u.level&&`<span class="wl-badge">${i?i[`level${u.level}`]:`Level ${u.level}`}</span>`,u.label&&`<span class="wl-badge">${u.label}</span>`,"</div>",u.link&&u.link,"</div>",u.link&&"</a>","</li>"].filter(p=>p).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),s.innerHTML=""}}))};J.RecentComments=Ch,J.UserList=$h,J.addComment=Ir,J.commentCount=Qs,J.defaultLocales=St,J.deleteComment=Lr,J.fetchCommentCount=Mr,J.getArticleCounter=bi,J.getComment=Sr,J.getPageview=zr,J.getRecentComment=Pr,J.getUserList=Ur,J.init=_h,J.login=Or,J.pageviewCount=uo,J.updateArticleCounter=$n,J.updateComment=qt,J.updatePageview=jr,J.version=ao});
|
|
54
|
+
//# sourceMappingURL=waline.umd.js.map
|