@waline/client 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var Hd=Object.defineProperty;var Nd=(Z,pe,ve)=>pe in Z?Hd(Z,pe,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Z[pe]=ve;var Ve=(Z,pe,ve)=>(Nd(Z,typeof pe!="symbol"?pe+"":pe,ve),ve),Dd=(Z,pe,ve)=>{if(!pe.has(Z))throw TypeError("Cannot "+ve)};var Cr=(Z,pe,ve)=>{if(pe.has(Z))throw TypeError("Cannot add the same private member more than once");pe instanceof WeakSet?pe.add(Z):pe.set(Z,ve)};var xi=(Z,pe,ve)=>(Dd(Z,pe,"access private method"),ve);(function(Z,pe){typeof exports=="object"&&typeof module<"u"?pe(exports):typeof define=="function"&&define.amd?define(["exports"],pe):(Z=typeof globalThis<"u"?globalThis:Z||self,pe(Z.Waline={}))})(this,function(Z){"use strict";var $n,$r,wi,wo;const pe={"Content-Type":"application/json"},ve=e=>`${e.replace(/\/?$/,"/")}api/`,wt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},_i=({serverURL:e,lang:t,paths:n,type:i,signal:r})=>fetch(`${ve(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(i.join(","))}&lang=${t}`,{signal:r}).then(l=>l.json()).then(l=>wt(l,"Get counter").data),Tn=({serverURL:e,lang:t,path:n,type:i,action:r})=>fetch(`${ve(e)}article?lang=${t}`,{method:"POST",headers:pe,body:JSON.stringify({path:n,type:i,action:r})}).then(l=>l.json()).then(l=>wt(l,"Update counter").data),Er=({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(`${ve(e)}comment?path=${encodeURIComponent(n)}&pageSize=${r}&page=${i}&lang=${t}&sortBy=${l}`,{signal:s,headers:a}).then(c=>c.json()).then(c=>wt(c,"Get comment data").data)},Tr=({serverURL:e,lang:t,token:n,comment:i})=>{const r={"Content-Type":"application/json"};return n&&(r.Authorization=`Bearer ${n}`),fetch(`${ve(e)}comment?lang=${t}`,{method:"POST",headers:r,body:JSON.stringify(i)}).then(l=>l.json())},Rr=({serverURL:e,lang:t,token:n,objectId:i})=>fetch(`${ve(e)}comment/${i}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(r=>r.json()).then(r=>wt(r,"Delete comment")),qt=({serverURL:e,lang:t,token:n,objectId:i,comment:r})=>fetch(`${ve(e)}comment/${i}?lang=${t}`,{method:"PUT",headers:{...pe,Authorization:`Bearer ${n}`},body:JSON.stringify(r)}).then(l=>l.json()).then(l=>wt(l,"Update comment")),Sr=({serverURL:e,lang:t,paths:n,signal:i})=>fetch(`${ve(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:i}).then(r=>r.json()).then(r=>wt(r,"Get comment count").data),Ar=({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)})},Ir=({serverURL:e,lang:t,paths:n,signal:i})=>_i({serverURL:e,lang:t,paths:n,type:["time"],signal:i}),Lr=e=>Tn({...e,type:"time",action:"inc"}),Mr=({serverURL:e,lang:t,count:n,signal:i,token:r})=>{const l={};return r&&(l.Authorization=`Bearer ${r}`),fetch(`${ve(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:i,headers:l}).then(s=>s.json())},Or=({serverURL:e,signal:t,pageSize:n,lang:i})=>fetch(`${ve(e)}user?pageSize=${n}&lang=${i}`,{signal:t}).then(r=>r.json()).then(r=>wt(r,"user list")).then(r=>r.data),bo=["nick","mail","link"],zr=e=>e.filter(t=>bo.includes(t)),jr=["//unpkg.com/@waline/emojis@1.1.0/weibo"],ko=["//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"],xo=e=>new Promise((t,n)=>{if(e.size>128e3)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}),_o=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>',Co=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()})}},$o=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Eo=/</,To=/(?:^|\s)\/\/(.+?)$/gm,Ro=/\/\*([\S\s]*?)\*\//gm,So=new RegExp(`(${$o.source}|${Eo.source})|((?:${To.source})|(?:${Ro.source}))`,"gmi"),Pr=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Ci={},Ao=e=>{let t=0;return e.replace(So,(n,i,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if(i==="<")return"&lt;";let l;Ci[i]?l=Ci[i]:(l=Pr[t],Ci[i]=l);const s=`<span style="color: #${l}">${i}</span>`;return t=++t%Pr.length,s})},Io=["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)=>[Io[n],t]));var Fr=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!
1
+ var Hd=Object.defineProperty;var Nd=(Z,pe,ve)=>pe in Z?Hd(Z,pe,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Z[pe]=ve;var Ve=(Z,pe,ve)=>(Nd(Z,typeof pe!="symbol"?pe+"":pe,ve),ve),Dd=(Z,pe,ve)=>{if(!pe.has(Z))throw TypeError("Cannot "+ve)};var Cr=(Z,pe,ve)=>{if(pe.has(Z))throw TypeError("Cannot add the same private member more than once");pe instanceof WeakSet?pe.add(Z):pe.set(Z,ve)};var xi=(Z,pe,ve)=>(Dd(Z,pe,"access private method"),ve);(function(Z,pe){typeof exports=="object"&&typeof module<"u"?pe(exports):typeof define=="function"&&define.amd?define(["exports"],pe):(Z=typeof globalThis<"u"?globalThis:Z||self,pe(Z.Waline={}))})(this,function(Z){"use strict";var $n,$r,wi,wo;const pe={"Content-Type":"application/json"},ve=e=>`${e.replace(/\/?$/,"/")}api/`,wt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},_i=({serverURL:e,lang:t,paths:n,type:i,signal:r})=>fetch(`${ve(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(i.join(","))}&lang=${t}`,{signal:r}).then(l=>l.json()).then(l=>wt(l,"Get counter").data),Tn=({serverURL:e,lang:t,path:n,type:i,action:r})=>fetch(`${ve(e)}article?lang=${t}`,{method:"POST",headers:pe,body:JSON.stringify({path:n,type:i,action:r})}).then(l=>l.json()).then(l=>wt(l,"Update counter").data),Er=({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(`${ve(e)}comment?path=${encodeURIComponent(n)}&pageSize=${r}&page=${i}&lang=${t}&sortBy=${l}`,{signal:s,headers:a}).then(c=>c.json()).then(c=>wt(c,"Get comment data").data)},Tr=({serverURL:e,lang:t,token:n,comment:i})=>{const r={"Content-Type":"application/json"};return n&&(r.Authorization=`Bearer ${n}`),fetch(`${ve(e)}comment?lang=${t}`,{method:"POST",headers:r,body:JSON.stringify(i)}).then(l=>l.json())},Rr=({serverURL:e,lang:t,token:n,objectId:i})=>fetch(`${ve(e)}comment/${i}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(r=>r.json()).then(r=>wt(r,"Delete comment")),Kt=({serverURL:e,lang:t,token:n,objectId:i,comment:r})=>fetch(`${ve(e)}comment/${i}?lang=${t}`,{method:"PUT",headers:{...pe,Authorization:`Bearer ${n}`},body:JSON.stringify(r)}).then(l=>l.json()).then(l=>wt(l,"Update comment")),Sr=({serverURL:e,lang:t,paths:n,signal:i})=>fetch(`${ve(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:i}).then(r=>r.json()).then(r=>wt(r,"Get comment count").data),Ar=({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)})},Ir=({serverURL:e,lang:t,paths:n,signal:i})=>_i({serverURL:e,lang:t,paths:n,type:["time"],signal:i}),Lr=e=>Tn({...e,type:"time",action:"inc"}),Mr=({serverURL:e,lang:t,count:n,signal:i,token:r})=>{const l={};return r&&(l.Authorization=`Bearer ${r}`),fetch(`${ve(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:i,headers:l}).then(s=>s.json())},Or=({serverURL:e,signal:t,pageSize:n,lang:i})=>fetch(`${ve(e)}user?pageSize=${n}&lang=${i}`,{signal:t}).then(r=>r.json()).then(r=>wt(r,"user list")).then(r=>r.data),bo=["nick","mail","link"],zr=e=>e.filter(t=>bo.includes(t)),jr=["//unpkg.com/@waline/emojis@1.1.0/weibo"],ko=["//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"],xo=e=>new Promise((t,n)=>{if(e.size>128e3)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}),_o=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>',Co=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()})}},$o=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Eo=/</,To=/(?:^|\s)\/\/(.+?)$/gm,Ro=/\/\*([\S\s]*?)\*\//gm,So=new RegExp(`(${$o.source}|${Eo.source})|((?:${To.source})|(?:${Ro.source}))`,"gmi"),Pr=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Ci={},Ao=e=>{let t=0;return e.replace(So,(n,i,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if(i==="<")return"&lt;";let l;Ci[i]?l=Ci[i]:(l=Pr[t],Ci[i]=l);const s=`<span style="color: #${l}">${i}</span>`;return t=++t%Pr.length,s})},Io=["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)=>[Io[n],t]));var Fr=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
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?"]),Ur=at(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots !
3
3
  Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Hr=at(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
4
4
  現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Lo=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!
@@ -6,25 +6,25 @@ var Hd=Object.defineProperty;var Nd=(Z,pe,ve)=>pe in Z?Hd(Z,pe,{enumerable:!0,co
6
6
  Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Dr=at(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ!
7
7
  Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),Vr=at(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
8
8
  当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Mo=at(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
9
- 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Br="en-US",Rn={zh:Vr,"zh-cn":Vr,"zh-tw":Mo,en:Fr,"en-us":Fr,fr:Ur,"fr-fr":Ur,jp:Hr,"jp-jp":Hr,"pt-br":Lo,ru:Nr,"ru-ru":Nr,vi:Dr,"vi-vn":Dr},Wr=e=>Rn[e.toLowerCase()]||Rn[Br],Oo=e=>Object.keys(Rn).includes(e.toLowerCase())?e:Br,qr=e=>{try{e=decodeURI(e)}catch{}return e},Kr=(e="")=>e.replace(/\/$/u,""),Zr=e=>/^(https?:)?\/\//.test(e),Sn=e=>{const t=Kr(e);return Zr(t)?t:`https://${t}`},zo=e=>Array.isArray(e)?e:e?[0,e]:!1,$i=(e,t)=>typeof e=="function"?e:e===!1?!1:t,jo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:i,emoji:r=jr,meta:l=["nick","mail","link"],requiredMeta:s=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:f,highlighter:d,texRenderer:p,copyright:m=!0,login:I="enable",search:k,reaction:E,recaptchaV3Key:w="",turnstileKey:$="",commentSorting:U="latest",...D})=>({serverURL:Sn(e),path:qr(t),lang:Oo(n),locale:{...Wr(n),...typeof i=="object"?i:{}},wordLimit:zo(c),meta:zr(l),requiredMeta:zr(s),imageUploader:$i(f,xo),highlighter:$i(d,Ao),texRenderer:$i(p,_o),dark:o,emoji:typeof r=="boolean"?r?jr:[]:r,pageSize:a,login:I,copyright:m,search:k===!1?!1:typeof k=="object"?k:Co(n),recaptchaV3Key:w,turnstileKey:$,reaction:Array.isArray(E)?E:E===!0?ko:[],commentSorting:U,...D}),Ot=e=>typeof e=="string",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}",Po=e=>Ot(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Ei}}`:`${e}${Ei}`:e===!0?`:root${Ei}`:"",Ti=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Fo=e=>{const t=Ti(e.getDate(),2),n=Ti(e.getMonth()+1,2);return`${Ti(e.getFullYear(),2)}-${n}-${t}`},Uo=(e,t,n)=>{if(!e)return"";const i=Ot(e)?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,c=Math.floor(a/(60*1e3));if(c===0){const f=a%6e4;return`${Math.round(f/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return l<0?n.now:l<8?`${l} ${n.days}`:Fo(i)},Ho=/^[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])?)*$/,No=e=>Ho.test(e);/**
9
+ 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Br="en-US",Rn={zh:Vr,"zh-cn":Vr,"zh-tw":Mo,en:Fr,"en-us":Fr,fr:Ur,"fr-fr":Ur,jp:Hr,"jp-jp":Hr,"pt-br":Lo,ru:Nr,"ru-ru":Nr,vi:Dr,"vi-vn":Dr},Wr=e=>Rn[e.toLowerCase()]||Rn[Br],Oo=e=>Object.keys(Rn).includes(e.toLowerCase())?e:Br,qr=e=>{try{e=decodeURI(e)}catch{}return e},Kr=(e="")=>e.replace(/\/$/u,""),Zr=e=>/^(https?:)?\/\//.test(e),Sn=e=>{const t=Kr(e);return Zr(t)?t:`https://${t}`},zo=e=>Array.isArray(e)?e:e?[0,e]:!1,$i=(e,t)=>typeof e=="function"?e:e===!1?!1:t,jo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:i,emoji:r=jr,meta:l=["nick","mail","link"],requiredMeta:s=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:f,highlighter:d,texRenderer:p,copyright:m=!0,login:I="enable",search:k,reaction:E,recaptchaV3Key:w="",turnstileKey:$="",commentSorting:U="latest",...D})=>({serverURL:Sn(e),path:qr(t),lang:Oo(n),locale:{...Wr(n),...typeof i=="object"?i:{}},wordLimit:zo(c),meta:zr(l),requiredMeta:zr(s),imageUploader:$i(f,xo),highlighter:$i(d,Ao),texRenderer:$i(p,_o),dark:o,emoji:typeof r=="boolean"?r?jr:[]:r,pageSize:a,login:I,copyright:m,search:k===!1?!1:typeof k=="object"?k:Co(n),recaptchaV3Key:w,turnstileKey:$,reaction:Array.isArray(E)?E:E===!0?ko:[],commentSorting:U,...D}),zt=e=>typeof e=="string",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}",Po=e=>zt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Ei}}`:`${e}${Ei}`:e===!0?`:root${Ei}`:"",Ti=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Fo=e=>{const t=Ti(e.getDate(),2),n=Ti(e.getMonth()+1,2);return`${Ti(e.getFullYear(),2)}-${n}-${t}`},Uo=(e,t,n)=>{if(!e)return"";const i=zt(e)?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,c=Math.floor(a/(60*1e3));if(c===0){const f=a%6e4;return`${Math.round(f/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return l<0?n.now:l<8?`${l} ${n.days}`:Fo(i)},Ho=/^[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])?)*$/,No=e=>Ho.test(e);/**
10
10
  * @vue/shared v3.4.27
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **//*! #__NO_SIDE_EFFECTS__ */function Ri(e,t){const n=new Set(e.split(","));return i=>n.has(i)}const fe={},zt=[],Xe=()=>{},Do=()=>!1,An=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Si=e=>e.startsWith("onUpdate:"),$e=Object.assign,Gr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Vo=Object.prototype.hasOwnProperty,J=(e,t)=>Vo.call(e,t),V=Array.isArray,jt=e=>Kt(e)==="[object Map]",Pt=e=>Kt(e)==="[object Set]",Qr=e=>Kt(e)==="[object Date]",ie=e=>typeof e=="function",xe=e=>typeof e=="string",et=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Jr=e=>(ge(e)||ie(e))&&ie(e.then)&&ie(e.catch),Yr=Object.prototype.toString,Kt=e=>Yr.call(e),Bo=e=>Kt(e).slice(8,-1),Xr=e=>Kt(e)==="[object Object]",Ai=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zt=Ri(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),In=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Wo=/-(\w)/g,Ke=In(e=>e.replace(Wo,(t,n)=>n?n.toUpperCase():"")),qo=/\B([A-Z])/g,Ft=In(e=>e.replace(qo,"-$1").toLowerCase()),Ln=In(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ii=In(e=>e?`on${Ln(e)}`:""),ct=(e,t)=>!Object.is(e,t),Mn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},el=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},On=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let tl;const Li=()=>tl||(tl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gt(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=xe(i)?Qo(i):Gt(i);if(r)for(const l in r)t[l]=r[l]}return t}else if(xe(e)||ge(e))return e}const Ko=/;(?![^(]*\))/g,Zo=/:([^]+)/,Go=/\/\*[^]*?\*\//g;function Qo(e){const t={};return e.replace(Go,"").split(Ko).forEach(n=>{if(n){const i=n.split(Zo);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ye(e){let t="";if(xe(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const i=ye(e[n]);i&&(t+=i+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Jo=Ri("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function nl(e){return!!e||e===""}function Yo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=bt(e[i],t[i]);return n}function bt(e,t){if(e===t)return!0;let n=Qr(e),i=Qr(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=et(e),i=et(t),n||i)return e===t;if(n=V(e),i=V(t),n||i)return n&&i?Yo(e,t):!1;if(n=ge(e),i=ge(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||!bt(e[s],t[s]))return!1}}return String(e)===String(t)}function Mi(e,t){return e.findIndex(n=>bt(n,t))}const ee=e=>xe(e)?e:e==null?"":V(e)||ge(e)&&(e.toString===Yr||!ie(e.toString))?JSON.stringify(e,il,2):String(e),il=(e,t)=>t&&t.__v_isRef?il(e,t.value):jt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],l)=>(n[Oi(i,l)+" =>"]=r,n),{})}:Pt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Oi(n))}:et(t)?Oi(t):ge(t)&&!V(t)&&!Xr(t)?String(t):t,Oi=(e,t="")=>{var n;return et(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
13
+ **//*! #__NO_SIDE_EFFECTS__ */function Ri(e,t){const n=new Set(e.split(","));return i=>n.has(i)}const fe={},jt=[],Xe=()=>{},Do=()=>!1,An=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Si=e=>e.startsWith("onUpdate:"),$e=Object.assign,Gr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Vo=Object.prototype.hasOwnProperty,J=(e,t)=>Vo.call(e,t),V=Array.isArray,Pt=e=>Zt(e)==="[object Map]",Ft=e=>Zt(e)==="[object Set]",Qr=e=>Zt(e)==="[object Date]",ie=e=>typeof e=="function",xe=e=>typeof e=="string",et=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",Jr=e=>(ge(e)||ie(e))&&ie(e.then)&&ie(e.catch),Yr=Object.prototype.toString,Zt=e=>Yr.call(e),Bo=e=>Zt(e).slice(8,-1),Xr=e=>Zt(e)==="[object Object]",Ai=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gt=Ri(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),In=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Wo=/-(\w)/g,Ke=In(e=>e.replace(Wo,(t,n)=>n?n.toUpperCase():"")),qo=/\B([A-Z])/g,Ut=In(e=>e.replace(qo,"-$1").toLowerCase()),Ln=In(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ii=In(e=>e?`on${Ln(e)}`:""),ct=(e,t)=>!Object.is(e,t),Mn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},el=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},On=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let tl;const Li=()=>tl||(tl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Qt(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],r=xe(i)?Qo(i):Qt(i);if(r)for(const l in r)t[l]=r[l]}return t}else if(xe(e)||ge(e))return e}const Ko=/;(?![^(]*\))/g,Zo=/:([^]+)/,Go=/\/\*[^]*?\*\//g;function Qo(e){const t={};return e.replace(Go,"").split(Ko).forEach(n=>{if(n){const i=n.split(Zo);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ye(e){let t="";if(xe(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const i=ye(e[n]);i&&(t+=i+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Jo=Ri("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function nl(e){return!!e||e===""}function Yo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=bt(e[i],t[i]);return n}function bt(e,t){if(e===t)return!0;let n=Qr(e),i=Qr(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=et(e),i=et(t),n||i)return e===t;if(n=V(e),i=V(t),n||i)return n&&i?Yo(e,t):!1;if(n=ge(e),i=ge(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||!bt(e[s],t[s]))return!1}}return String(e)===String(t)}function Mi(e,t){return e.findIndex(n=>bt(n,t))}const ee=e=>xe(e)?e:e==null?"":V(e)||ge(e)&&(e.toString===Yr||!ie(e.toString))?JSON.stringify(e,il,2):String(e),il=(e,t)=>t&&t.__v_isRef?il(e,t.value):Pt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],l)=>(n[Oi(i,l)+" =>"]=r,n),{})}:Ft(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Oi(n))}:et(t)?Oi(t):ge(t)&&!V(t)&&!Xr(t)?String(t):t,Oi=(e,t="")=>{var n;return et(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
14
14
  * @vue/reactivity v3.4.27
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/let je;class Xo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=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 ea(e,t=je){t&&t.active&&t.effects.push(e)}function rl(){return je}function ta(e){je&&je.cleanups.push(e)}let kt;class zi{constructor(t,n,i,r){this.fn=t,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,ea(this,r)}get dirty(){return(this._dirtyLevel===2||this._dirtyLevel===3)&&(this._dirtyLevel=1,xt(),this._dirtyLevel===1&&(this._dirtyLevel=0),_t()),this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ut,n=kt;try{return ut=!0,kt=this,this._runnings++,ll(this),this.fn()}finally{sl(this),this._runnings--,kt=n,ut=t}}stop(){this.active&&(ll(this),sl(this),this.onStop&&this.onStop(),this.active=!1)}}function ll(e){e._trackId++,e._depsLength=0}function sl(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ol(e.deps[t],e);e.deps.length=e._depsLength}}function ol(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let ut=!0,ji=0;const al=[];function xt(){al.push(ut),ut=!1}function _t(){const e=al.pop();ut=e===void 0?!0:e}function Pi(){ji++}function Fi(){for(ji--;!ji&&Ui.length;)Ui.shift()()}function cl(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&ol(i,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ui=[];function ul(e,t,n){Pi();for(const i of e.keys()){let r;i._dirtyLevel<t&&(r??(r=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=e.get(i)===i._trackId))&&(i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Ui.push(i.scheduler)))}Fi()}const fl=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Hi=new WeakMap,Ct=Symbol(""),Ni=Symbol("");function Me(e,t,n){if(ut&&kt){let i=Hi.get(e);i||Hi.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=fl(()=>i.delete(n))),cl(kt,r)}}function tt(e,t,n,i,r,l){const s=Hi.get(e);if(!s)return;let o=[];if(t==="clear")o=[...s.values()];else if(n==="length"&&V(e)){const a=Number(i);s.forEach((c,f)=>{(f==="length"||!et(f)&&f>=a)&&o.push(c)})}else switch(n!==void 0&&o.push(s.get(n)),t){case"add":V(e)?Ai(n)&&o.push(s.get("length")):(o.push(s.get(Ct)),jt(e)&&o.push(s.get(Ni)));break;case"delete":V(e)||(o.push(s.get(Ct)),jt(e)&&o.push(s.get(Ni)));break;case"set":jt(e)&&o.push(s.get(Ct));break}Pi();for(const a of o)a&&ul(a,4);Fi()}const na=Ri("__proto__,__v_isRef,__isVue"),hl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(et)),dl=ia();function ia(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=te(this);for(let l=0,s=this.length;l<s;l++)Me(i,"get",l+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(te)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){xt(),Pi();const i=te(this)[t].apply(this,n);return Fi(),_t(),i}}),e}function ra(e){et(e)||(e=String(e));const t=te(this);return Me(t,"has",e),t.hasOwnProperty(e)}class pl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const r=this._isReadonly,l=this._isShallow;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?va:xl:l?kl:bl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const s=V(t);if(!r){if(s&&J(dl,n))return Reflect.get(dl,n,i);if(n==="hasOwnProperty")return ra}const o=Reflect.get(t,n,i);return(et(n)?hl.has(n):na(n))||(r||Me(t,"get",n),l)?o:Re(o)?s&&Ai(n)?o:o.value:ge(o)?r?Jt(o):Qt(o):o}}class gl extends pl{constructor(t=!1){super(!1,t)}set(t,n,i,r){let l=t[n];if(!this._isShallow){const a=Xt(l);if(!Nn(i)&&!Xt(i)&&(l=te(l),i=te(i)),!V(t)&&Re(l)&&!Re(i))return a?!1:(l.value=i,!0)}const s=V(t)&&Ai(n)?Number(n)<t.length:J(t,n),o=Reflect.set(t,n,i,r);return t===te(r)&&(s?ct(i,l)&&tt(t,"set",n,i):tt(t,"add",n,i)),o}deleteProperty(t,n){const i=J(t,n),r=Reflect.deleteProperty(t,n);return r&&i&&tt(t,"delete",n,void 0),r}has(t,n){const i=Reflect.has(t,n);return(!et(n)||!hl.has(n))&&Me(t,"has",n),i}ownKeys(t){return Me(t,"iterate",V(t)?"length":Ct),Reflect.ownKeys(t)}}class la extends pl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const sa=new gl,oa=new la,aa=new gl(!0),Di=e=>e,zn=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,i=!1){e=e.__v_raw;const r=te(e),l=te(t);n||(ct(t,l)&&Me(r,"get",t),Me(r,"get",l));const{has:s}=zn(r),o=i?Di:n?Wi:en;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=te(n),r=te(e);return t||(ct(e,r)&&Me(i,"has",e),Me(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Fn(e,t=!1){return e=e.__v_raw,!t&&Me(te(e),"iterate",Ct),Reflect.get(e,"size",e)}function ml(e){e=te(e);const t=te(this);return zn(t).has.call(t,e)||(t.add(e),tt(t,"add",e,e)),this}function vl(e,t){t=te(t);const n=te(this),{has:i,get:r}=zn(n);let l=i.call(n,e);l||(e=te(e),l=i.call(n,e));const s=r.call(n,e);return n.set(e,t),l?ct(t,s)&&tt(n,"set",e,t):tt(n,"add",e,t),this}function yl(e){const t=te(this),{has:n,get:i}=zn(t);let r=n.call(t,e);r||(e=te(e),r=n.call(t,e)),i&&i.call(t,e);const l=t.delete(e);return r&&tt(t,"delete",e,void 0),l}function wl(){const e=te(this),t=e.size!==0,n=e.clear();return t&&tt(e,"clear",void 0,void 0),n}function Un(e,t){return function(i,r){const l=this,s=l.__v_raw,o=te(s),a=t?Di:e?Wi:en;return!e&&Me(o,"iterate",Ct),s.forEach((c,f)=>i.call(r,a(c),a(f),l))}}function Hn(e,t,n){return function(...i){const r=this.__v_raw,l=te(r),s=jt(l),o=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...i),f=n?Di:t?Wi:en;return!t&&Me(l,"iterate",a?Ni:Ct),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:o?[f(d[0]),f(d[1])]:f(d),done:p}},[Symbol.iterator](){return this}}}}function ft(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ca(){const e={get(l){return jn(this,l)},get size(){return Fn(this)},has:Pn,add:ml,set:vl,delete:yl,clear:wl,forEach:Un(!1,!1)},t={get(l){return jn(this,l,!1,!0)},get size(){return Fn(this)},has:Pn,add:ml,set:vl,delete:yl,clear:wl,forEach:Un(!1,!0)},n={get(l){return jn(this,l,!0)},get size(){return Fn(this,!0)},has(l){return Pn.call(this,l,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:Un(!0,!1)},i={get(l){return jn(this,l,!0,!0)},get size(){return Fn(this,!0)},has(l){return Pn.call(this,l,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:Un(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Hn(l,!1,!1),n[l]=Hn(l,!0,!1),t[l]=Hn(l,!1,!0),i[l]=Hn(l,!0,!0)}),[e,n,t,i]}const[ua,fa,ha,da]=ca();function Vi(e,t){const n=t?e?da:ha:e?fa:ua;return(i,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(J(n,r)&&r in i?n:i,r,l)}const pa={get:Vi(!1,!1)},ga={get:Vi(!1,!0)},ma={get:Vi(!0,!1)},bl=new WeakMap,kl=new WeakMap,xl=new WeakMap,va=new WeakMap;function ya(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wa(e){return e.__v_skip||!Object.isExtensible(e)?0:ya(Bo(e))}function Qt(e){return Xt(e)?e:Bi(e,!1,sa,pa,bl)}function ba(e){return Bi(e,!1,aa,ga,kl)}function Jt(e){return Bi(e,!0,oa,ma,xl)}function Bi(e,t,n,i,r){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=r.get(e);if(l)return l;const s=wa(e);if(s===0)return e;const o=new Proxy(e,s===2?i:n);return r.set(e,o),o}function Yt(e){return Xt(e)?Yt(e.__v_raw):!!(e&&e.__v_isReactive)}function Xt(e){return!!(e&&e.__v_isReadonly)}function Nn(e){return!!(e&&e.__v_isShallow)}function _l(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function ka(e){return Object.isExtensible(e)&&el(e,"__v_skip",!0),e}const en=e=>ge(e)?Qt(e):e,Wi=e=>ge(e)?Jt(e):e;class Cl{constructor(t,n,i,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new zi(()=>t(this._value),()=>Dn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=te(this);return(!t._cacheable||t.effect.dirty)&&ct(t._value,t._value=t.effect.run())&&Dn(t,4),$l(t),t.effect._dirtyLevel>=2&&Dn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function xa(e,t,n=!1){let i,r;const l=ie(e);return l?(i=e,r=Xe):(i=e.get,r=e.set),new Cl(i,r,l||!r,n)}function $l(e){var t;ut&&kt&&(e=te(e),cl(kt,(t=e.dep)!=null?t:e.dep=fl(()=>e.dep=void 0,e instanceof Cl?e:void 0)))}function Dn(e,t=4,n){e=te(e);const i=e.dep;i&&ul(i,t)}function Re(e){return!!(e&&e.__v_isRef===!0)}function q(e){return El(e,!1)}function _a(e){return El(e,!0)}function El(e,t){return Re(e)?e:new Ca(e,t)}class Ca{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:te(t),this._value=n?t:en(t)}get value(){return $l(this),this._value}set value(t){const n=this.__v_isShallow||Nn(t)||Xt(t);t=n?t:te(t),ct(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:en(t),Dn(this,4))}}function K(e){return Re(e)?e.value:e}const $a={get:(e,t,n)=>K(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Re(r)&&!Re(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Tl(e){return Yt(e)?e:new Proxy(e,$a)}/**
17
+ **/let je;class Xo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=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 ea(e,t=je){t&&t.active&&t.effects.push(e)}function rl(){return je}function ta(e){je&&je.cleanups.push(e)}let kt;class zi{constructor(t,n,i,r){this.fn=t,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,ea(this,r)}get dirty(){return(this._dirtyLevel===2||this._dirtyLevel===3)&&(this._dirtyLevel=1,xt(),this._dirtyLevel===1&&(this._dirtyLevel=0),_t()),this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=ut,n=kt;try{return ut=!0,kt=this,this._runnings++,ll(this),this.fn()}finally{sl(this),this._runnings--,kt=n,ut=t}}stop(){this.active&&(ll(this),sl(this),this.onStop&&this.onStop(),this.active=!1)}}function ll(e){e._trackId++,e._depsLength=0}function sl(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ol(e.deps[t],e);e.deps.length=e._depsLength}}function ol(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let ut=!0,ji=0;const al=[];function xt(){al.push(ut),ut=!1}function _t(){const e=al.pop();ut=e===void 0?!0:e}function Pi(){ji++}function Fi(){for(ji--;!ji&&Ui.length;)Ui.shift()()}function cl(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&ol(i,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ui=[];function ul(e,t,n){Pi();for(const i of e.keys()){let r;i._dirtyLevel<t&&(r??(r=e.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=e.get(i)===i._trackId))&&(i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Ui.push(i.scheduler)))}Fi()}const fl=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Hi=new WeakMap,Ct=Symbol(""),Ni=Symbol("");function Me(e,t,n){if(ut&&kt){let i=Hi.get(e);i||Hi.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=fl(()=>i.delete(n))),cl(kt,r)}}function tt(e,t,n,i,r,l){const s=Hi.get(e);if(!s)return;let o=[];if(t==="clear")o=[...s.values()];else if(n==="length"&&V(e)){const a=Number(i);s.forEach((c,f)=>{(f==="length"||!et(f)&&f>=a)&&o.push(c)})}else switch(n!==void 0&&o.push(s.get(n)),t){case"add":V(e)?Ai(n)&&o.push(s.get("length")):(o.push(s.get(Ct)),Pt(e)&&o.push(s.get(Ni)));break;case"delete":V(e)||(o.push(s.get(Ct)),Pt(e)&&o.push(s.get(Ni)));break;case"set":Pt(e)&&o.push(s.get(Ct));break}Pi();for(const a of o)a&&ul(a,4);Fi()}const na=Ri("__proto__,__v_isRef,__isVue"),hl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(et)),dl=ia();function ia(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=te(this);for(let l=0,s=this.length;l<s;l++)Me(i,"get",l+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(te)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){xt(),Pi();const i=te(this)[t].apply(this,n);return Fi(),_t(),i}}),e}function ra(e){et(e)||(e=String(e));const t=te(this);return Me(t,"has",e),t.hasOwnProperty(e)}class pl{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const r=this._isReadonly,l=this._isShallow;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?va:xl:l?kl:bl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const s=V(t);if(!r){if(s&&J(dl,n))return Reflect.get(dl,n,i);if(n==="hasOwnProperty")return ra}const o=Reflect.get(t,n,i);return(et(n)?hl.has(n):na(n))||(r||Me(t,"get",n),l)?o:Re(o)?s&&Ai(n)?o:o.value:ge(o)?r?Yt(o):Jt(o):o}}class gl extends pl{constructor(t=!1){super(!1,t)}set(t,n,i,r){let l=t[n];if(!this._isShallow){const a=en(l);if(!Nn(i)&&!en(i)&&(l=te(l),i=te(i)),!V(t)&&Re(l)&&!Re(i))return a?!1:(l.value=i,!0)}const s=V(t)&&Ai(n)?Number(n)<t.length:J(t,n),o=Reflect.set(t,n,i,r);return t===te(r)&&(s?ct(i,l)&&tt(t,"set",n,i):tt(t,"add",n,i)),o}deleteProperty(t,n){const i=J(t,n),r=Reflect.deleteProperty(t,n);return r&&i&&tt(t,"delete",n,void 0),r}has(t,n){const i=Reflect.has(t,n);return(!et(n)||!hl.has(n))&&Me(t,"has",n),i}ownKeys(t){return Me(t,"iterate",V(t)?"length":Ct),Reflect.ownKeys(t)}}class la extends pl{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const sa=new gl,oa=new la,aa=new gl(!0),Di=e=>e,zn=e=>Reflect.getPrototypeOf(e);function jn(e,t,n=!1,i=!1){e=e.__v_raw;const r=te(e),l=te(t);n||(ct(t,l)&&Me(r,"get",t),Me(r,"get",l));const{has:s}=zn(r),o=i?Di:n?Wi:tn;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=te(n),r=te(e);return t||(ct(e,r)&&Me(i,"has",e),Me(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Fn(e,t=!1){return e=e.__v_raw,!t&&Me(te(e),"iterate",Ct),Reflect.get(e,"size",e)}function ml(e){e=te(e);const t=te(this);return zn(t).has.call(t,e)||(t.add(e),tt(t,"add",e,e)),this}function vl(e,t){t=te(t);const n=te(this),{has:i,get:r}=zn(n);let l=i.call(n,e);l||(e=te(e),l=i.call(n,e));const s=r.call(n,e);return n.set(e,t),l?ct(t,s)&&tt(n,"set",e,t):tt(n,"add",e,t),this}function yl(e){const t=te(this),{has:n,get:i}=zn(t);let r=n.call(t,e);r||(e=te(e),r=n.call(t,e)),i&&i.call(t,e);const l=t.delete(e);return r&&tt(t,"delete",e,void 0),l}function wl(){const e=te(this),t=e.size!==0,n=e.clear();return t&&tt(e,"clear",void 0,void 0),n}function Un(e,t){return function(i,r){const l=this,s=l.__v_raw,o=te(s),a=t?Di:e?Wi:tn;return!e&&Me(o,"iterate",Ct),s.forEach((c,f)=>i.call(r,a(c),a(f),l))}}function Hn(e,t,n){return function(...i){const r=this.__v_raw,l=te(r),s=Pt(l),o=e==="entries"||e===Symbol.iterator&&s,a=e==="keys"&&s,c=r[e](...i),f=n?Di:t?Wi:tn;return!t&&Me(l,"iterate",a?Ni:Ct),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:o?[f(d[0]),f(d[1])]:f(d),done:p}},[Symbol.iterator](){return this}}}}function ft(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ca(){const e={get(l){return jn(this,l)},get size(){return Fn(this)},has:Pn,add:ml,set:vl,delete:yl,clear:wl,forEach:Un(!1,!1)},t={get(l){return jn(this,l,!1,!0)},get size(){return Fn(this)},has:Pn,add:ml,set:vl,delete:yl,clear:wl,forEach:Un(!1,!0)},n={get(l){return jn(this,l,!0)},get size(){return Fn(this,!0)},has(l){return Pn.call(this,l,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:Un(!0,!1)},i={get(l){return jn(this,l,!0,!0)},get size(){return Fn(this,!0)},has(l){return Pn.call(this,l,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:Un(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Hn(l,!1,!1),n[l]=Hn(l,!0,!1),t[l]=Hn(l,!1,!0),i[l]=Hn(l,!0,!0)}),[e,n,t,i]}const[ua,fa,ha,da]=ca();function Vi(e,t){const n=t?e?da:ha:e?fa:ua;return(i,r,l)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(J(n,r)&&r in i?n:i,r,l)}const pa={get:Vi(!1,!1)},ga={get:Vi(!1,!0)},ma={get:Vi(!0,!1)},bl=new WeakMap,kl=new WeakMap,xl=new WeakMap,va=new WeakMap;function ya(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wa(e){return e.__v_skip||!Object.isExtensible(e)?0:ya(Bo(e))}function Jt(e){return en(e)?e:Bi(e,!1,sa,pa,bl)}function ba(e){return Bi(e,!1,aa,ga,kl)}function Yt(e){return Bi(e,!0,oa,ma,xl)}function Bi(e,t,n,i,r){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=r.get(e);if(l)return l;const s=wa(e);if(s===0)return e;const o=new Proxy(e,s===2?i:n);return r.set(e,o),o}function Xt(e){return en(e)?Xt(e.__v_raw):!!(e&&e.__v_isReactive)}function en(e){return!!(e&&e.__v_isReadonly)}function Nn(e){return!!(e&&e.__v_isShallow)}function _l(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function ka(e){return Object.isExtensible(e)&&el(e,"__v_skip",!0),e}const tn=e=>ge(e)?Jt(e):e,Wi=e=>ge(e)?Yt(e):e;class Cl{constructor(t,n,i,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new zi(()=>t(this._value),()=>Dn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=te(this);return(!t._cacheable||t.effect.dirty)&&ct(t._value,t._value=t.effect.run())&&Dn(t,4),$l(t),t.effect._dirtyLevel>=2&&Dn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function xa(e,t,n=!1){let i,r;const l=ie(e);return l?(i=e,r=Xe):(i=e.get,r=e.set),new Cl(i,r,l||!r,n)}function $l(e){var t;ut&&kt&&(e=te(e),cl(kt,(t=e.dep)!=null?t:e.dep=fl(()=>e.dep=void 0,e instanceof Cl?e:void 0)))}function Dn(e,t=4,n){e=te(e);const i=e.dep;i&&ul(i,t)}function Re(e){return!!(e&&e.__v_isRef===!0)}function q(e){return El(e,!1)}function _a(e){return El(e,!0)}function El(e,t){return Re(e)?e:new Ca(e,t)}class Ca{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:te(t),this._value=n?t:tn(t)}get value(){return $l(this),this._value}set value(t){const n=this.__v_isShallow||Nn(t)||en(t);t=n?t:te(t),ct(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:tn(t),Dn(this,4))}}function K(e){return Re(e)?e.value:e}const $a={get:(e,t,n)=>K(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Re(r)&&!Re(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Tl(e){return Xt(e)?e:new Proxy(e,$a)}/**
18
18
  * @vue/runtime-core v3.4.27
19
19
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
20
20
  * @license MIT
21
- **/function ht(e,t,n,i){try{return i?e(...i):e()}catch(r){Vn(r,t,n)}}function Ze(e,t,n,i){if(ie(e)){const r=ht(e,t,n,i);return r&&Jr(r)&&r.catch(l=>{Vn(l,t,n)}),r}if(V(e)){const r=[];for(let l=0;l<e.length;l++)r.push(Ze(e[l],t,n,i));return r}}function Vn(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/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,o)===!1)return}l=l.parent}const a=t.appContext.config.errorHandler;if(a){xt(),ht(a,null,10,[e,s,o]),_t();return}}Ea(e,n,r,i)}function Ea(e,t,n,i=!0){console.error(e)}let tn=!1,qi=!1;const Ee=[];let Ge=0;const Ut=[];let dt=null,$t=0;const Rl=Promise.resolve();let Ki=null;function nn(e){const t=Ki||Rl;return e?t.then(this?e.bind(this):e):t}function Ta(e){let t=Ge+1,n=Ee.length;for(;t<n;){const i=t+n>>>1,r=Ee[i],l=rn(r);l<e||l===e&&r.pre?t=i+1:n=i}return t}function Zi(e){(!Ee.length||!Ee.includes(e,tn&&e.allowRecurse?Ge+1:Ge))&&(e.id==null?Ee.push(e):Ee.splice(Ta(e.id),0,e),Sl())}function Sl(){!tn&&!qi&&(qi=!0,Ki=Rl.then(Ll))}function Ra(e){const t=Ee.indexOf(e);t>Ge&&Ee.splice(t,1)}function Sa(e){V(e)?Ut.push(...e):(!dt||!dt.includes(e,e.allowRecurse?$t+1:$t))&&Ut.push(e),Sl()}function Al(e,t,n=tn?Ge+1:0){for(;n<Ee.length;n++){const i=Ee[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;Ee.splice(n,1),n--,i()}}}function Il(e){if(Ut.length){const t=[...new Set(Ut)].sort((n,i)=>rn(n)-rn(i));if(Ut.length=0,dt){dt.push(...t);return}for(dt=t,$t=0;$t<dt.length;$t++)dt[$t]();dt=null,$t=0}}const rn=e=>e.id==null?1/0:e.id,Aa=(e,t)=>{const n=rn(e)-rn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ll(e){qi=!1,tn=!0,Ee.sort(Aa);try{for(Ge=0;Ge<Ee.length;Ge++){const t=Ee[Ge];t&&t.active!==!1&&ht(t,null,14)}}finally{Ge=0,Ee.length=0,Il(),tn=!1,Ki=null,(Ee.length||Ut.length)&&Ll()}}function Ia(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||fe;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:d,trim:p}=i[f]||fe;p&&(r=n.map(m=>xe(m)?m.trim():m)),d&&(r=n.map(On))}let o,a=i[o=Ii(t)]||i[o=Ii(Ke(t))];!a&&l&&(a=i[o=Ii(Ft(t))]),a&&Ze(a,e,6,r);const c=i[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Ze(c,e,6,r)}}function La(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?(ge(e)&&i.set(e,null),null):(V(l)?l.forEach(a=>s[a]=null):$e(s,l),ge(e)&&i.set(e,s),s)}function Bn(e,t){return!e||!An(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,Ft(t))||J(e,t))}let Se=null,Ml=null;function Wn(e){const t=Se;return Se=e,Ml=e&&e.type.__scopeId||null,t}function Ma(e,t=Se,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&ns(-1);const l=Wn(t);let s;try{s=e(...r)}finally{Wn(l),i._d&&ns(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function Gi(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[l],slots:s,attrs:o,emit:a,render:c,renderCache:f,props:d,data:p,setupState:m,ctx:I,inheritAttrs:k}=e,E=Wn(e);let w,$;try{if(n.shapeFlag&4){const D=r||i,H=D;w=Qe(c.call(H,D,f,d,m,p,I)),$=o}else{const D=t;w=Qe(D.length>1?D(d,{attrs:o,slots:s,emit:a}):D(d,null)),$=t.props?o:Oa(o)}}catch(D){un.length=0,Vn(D,e,1),w=le(St)}let U=w;if($&&k!==!1){const D=Object.keys($),{shapeFlag:H}=U;D.length&&H&7&&(l&&D.some(Si)&&($=za($,l)),U=Ht(U,$,!1,!0))}return n.dirs&&(U=Ht(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&(U.transition=n.transition),w=U,Wn(E),w}const Oa=e=>{let t;for(const n in e)(n==="class"||n==="style"||An(n))&&((t||(t={}))[n]=e[n]);return t},za=(e,t)=>{const n={};for(const i in e)(!Si(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function ja(e,t,n){const{props:i,children:r,component:l}=e,{props:s,children:o,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?Ol(i,s,c):!!s;if(a&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const p=f[d];if(s[p]!==i[p]&&!Bn(c,p))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===s?!1:i?s?Ol(i,s,c):!0:!!s;return!1}function Ol(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 Pa({vnode:e,parent:t},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 Fa="components";function Ua(e,t){return Na(Fa,e,!0,t)||e}const Ha=Symbol.for("v-ndc");function Na(e,t,n=!0,i=!1){const r=Se||Ie;if(r){const l=r.type;{const o=Tc(l,!1);if(o&&(o===t||o===Ke(t)||o===Ln(Ke(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[Ke(t)]||e[Ln(Ke(t))])}const Da=e=>e.__isSuspense;function Va(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Sa(e)}const Ba=Symbol.for("v-scx"),Wa=()=>Qn(Ba);function jl(e,t){return Pl(e,null,t)}const qn={};function He(e,t,n){return Pl(e,t,n)}function Pl(e,t,{immediate:n,deep:i,flush:r,once:l,onTrack:s,onTrigger:o}=fe){if(t&&l){const O=t;t=(...N)=>{O(...N),H()}}const a=Ie,c=O=>i===!0?O:Et(O,i===!1?1:void 0);let f,d=!1,p=!1;if(Re(e)?(f=()=>e.value,d=Nn(e)):Yt(e)?(f=()=>c(e),d=!0):V(e)?(p=!0,d=e.some(O=>Yt(O)||Nn(O)),f=()=>e.map(O=>{if(Re(O))return O.value;if(Yt(O))return c(O);if(ie(O))return ht(O,a,2)})):ie(e)?t?f=()=>ht(e,a,2):f=()=>(m&&m(),Ze(e,a,3,[I])):f=Xe,t&&i){const O=f;f=()=>Et(O())}let m,I=O=>{m=U.onStop=()=>{ht(O,a,4),m=U.onStop=void 0}},k;if(ei)if(I=Xe,t?n&&Ze(t,a,3,[f(),p?[]:void 0,I]):f(),r==="sync"){const O=Wa();k=O.__watcherHandles||(O.__watcherHandles=[])}else return Xe;let E=p?new Array(e.length).fill(qn):qn;const w=()=>{if(!(!U.active||!U.dirty))if(t){const O=U.run();(i||d||(p?O.some((N,X)=>ct(N,E[X])):ct(O,E)))&&(m&&m(),Ze(t,a,3,[O,E===qn?void 0:p&&E[0]===qn?[]:E,I]),E=O)}else U.run()};w.allowRecurse=!!t;let $;r==="sync"?$=w:r==="post"?$=()=>Oe(w,a&&a.suspense):(w.pre=!0,a&&(w.id=a.uid),$=()=>Zi(w));const U=new zi(f,Xe,$),D=rl(),H=()=>{U.stop(),D&&Gr(D.effects,U)};return t?n?w():E=U.run():r==="post"?Oe(U.run.bind(U),a&&a.suspense):U.run(),k&&k.push(H),H}function Et(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Re(e))Et(e.value,t,n);else if(V(e))for(let i=0;i<e.length;i++)Et(e[i],t,n);else if(Pt(e)||jt(e))e.forEach(i=>{Et(i,t,n)});else if(Xr(e))for(const i in e)Et(e[i],t,n);return e}function Kn(e,t){if(Se===null)return e;const n=ti(Se)||Se.proxy,i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[l,s,o,a=fe]=t[r];l&&(ie(l)&&(l={mounted:l,updated:l}),l.deep&&Et(s),i.push({dir:l,instance:n,value:s,oldValue:void 0,arg:o,modifiers:a}))}return e}function Tt(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&&(xt(),Ze(a,n,8,[e.el,o,e,t]),_t())}}/*! #__NO_SIDE_EFFECTS__ */function ln(e,t){return ie(e)?$e({name:e.name},t,{setup:e}):e}const Zn=e=>!!e.type.__asyncLoader,qa=e=>e.type.__isKeepAlive;function Ka(e,t,n=Ie,i=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;xt();const o=ar(n),a=Ze(t,n,e,s);return o(),_t(),a});return i?r.unshift(l):r.push(l),l}}const Qi=e=>(t,n=Ie)=>(!ei||e==="sp")&&Ka(e,(...i)=>t(...i),n),sn=Qi("m"),Za=Qi("bum"),Ji=Qi("um");function Ne(e,t,n,i){let r;const l=n;if(V(e)||xe(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)}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)}else if(ge(e))if(e[Symbol.iterator])r=Array.from(e,(s,o)=>t(s,o,void 0,l));else{const s=Object.keys(e);r=new Array(s.length);for(let o=0,a=s.length;o<a;o++){const c=s[o];r[o]=t(e[c],c,o,l)}}else r=[];return r}const Yi=e=>e?ss(e)?ti(e)||e.proxy:Yi(e.parent):null,on=$e(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,Zi(e.update)}),$nextTick:e=>e.n||(e.n=nn.bind(e.proxy)),$watch:e=>Xe}),Xi=(e,t)=>e!==fe&&!e.__isScriptSetup&&J(e,t),Ga={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:l,accessCache:s,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const m=s[t];if(m!==void 0)switch(m){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!==fe&&J(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&J(c,t))return s[t]=3,l[t];if(n!==fe&&J(n,t))return s[t]=4,n[t];s[t]=0}}const f=on[t];let d,p;if(f)return t==="$attrs"&&Me(e.attrs,"get",""),f(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(n!==fe&&J(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,J(p,t))return p[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:l}=e;return Xi(r,t)?(r[t]=n,!0):i!==fe&&J(i,t)?(i[t]=n,!0):J(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!==fe&&J(e,s)||Xi(t,s)||(o=l[0])&&J(o,s)||J(i,s)||J(on,s)||J(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:J(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fl(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Qa(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(c=>Gn(a,c,s,!0)),Gn(a,t,s)),ge(t)&&l.set(t,a),a}function Gn(e,t,n,i=!1){const{mixins:r,extends:l}=t;l&&Gn(e,l,n,!0),r&&r.forEach(s=>Gn(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const o=Ja[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const Ja={data:Ul,props:Nl,emits:Nl,methods:an,computed:an,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:an,directives:an,watch:Xa,provide:Ul,inject:Ya};function Ul(e,t){return t?e?function(){return $e(ie(e)?e.call(this,this):e,ie(t)?t.call(this,this):t)}:t:e}function Ya(e,t){return an(Hl(e),Hl(t))}function Hl(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ae(e,t){return e?[...new Set([].concat(e,t))]:t}function an(e,t){return e?$e(Object.create(null),e,t):t}function Nl(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:$e(Object.create(null),Fl(e),Fl(t??{})):t}function Xa(e,t){if(!e)return t;if(!t)return e;const n=$e(Object.create(null),e);for(const i in t)n[i]=Ae(e[i],t[i]);return n}function Dl(){return{app:null,config:{isNativeTag:Do,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 ec=0;function tc(e,t){return function(i,r=null){ie(i)||(i=$e({},i)),r!=null&&!ge(r)&&(r=null);const l=Dl(),s=new WeakSet;let o=!1;const a=l.app={_uid:ec++,_component:i,_props:r,_container:null,_context:l,_instance:null,version:Sc,get config(){return l.config},set config(c){},use(c,...f){return s.has(c)||(c&&ie(c.install)?(s.add(c),c.install(a,...f)):ie(c)&&(s.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(l.components[c]=f,a):l.components[c]},directive(c,f){return f?(l.directives[c]=f,a):l.directives[c]},mount(c,f,d){if(!o){const p=le(i,r);return p.appContext=l,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(p,c):e(p,c,d),o=!0,a._container=c,c.__vue_app__=a,ti(p.component)||p.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return l.provides[c]=f,a},runWithContext(c){const f=cn;cn=a;try{return c()}finally{cn=f}}};return a}}let cn=null;function nc(e,t){if(Ie){let n=Ie.provides;const i=Ie.parent&&Ie.parent.provides;i===n&&(n=Ie.provides=Object.create(i)),n[e]=t}}function Qn(e,t,n=!1){const i=Ie||Se;if(i||cn){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:cn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ie(t)?t.call(i&&i.proxy):t}}const Vl={},Bl=()=>Object.create(Vl),Wl=e=>Object.getPrototypeOf(e)===Vl;function ic(e,t,n,i=!1){const r={},l=Bl();e.propsDefaults=Object.create(null),ql(e,t,r,l);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=i?r:ba(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function rc(e,t,n,i){const{props:r,attrs:l,vnode:{patchFlag:s}}=e,o=te(r),[a]=e.propsOptions;let c=!1;if((i||s>0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let p=f[d];if(Bn(e.emitsOptions,p))continue;const m=t[p];if(a)if(J(l,p))m!==l[p]&&(l[p]=m,c=!0);else{const I=Ke(p);r[I]=er(a,o,I,m,e,!1)}else m!==l[p]&&(l[p]=m,c=!0)}}}else{ql(e,t,r,l)&&(c=!0);let f;for(const d in o)(!t||!J(t,d)&&((f=Ft(d))===d||!J(t,f)))&&(a?n&&(n[d]!==void 0||n[f]!==void 0)&&(r[d]=er(a,o,d,void 0,e,!0)):delete r[d]);if(l!==o)for(const d in l)(!t||!J(t,d))&&(delete l[d],c=!0)}c&&tt(e.attrs,"set","")}function ql(e,t,n,i){const[r,l]=e.propsOptions;let s=!1,o;if(t)for(let a in t){if(Zt(a))continue;const c=t[a];let f;r&&J(r,f=Ke(a))?!l||!l.includes(f)?n[f]=c:(o||(o={}))[f]=c:Bn(e.emitsOptions,a)||(!(a in i)||c!==i[a])&&(i[a]=c,s=!0)}if(l){const a=te(n),c=o||fe;for(let f=0;f<l.length;f++){const d=l[f];n[d]=er(r,a,d,c[d],e,!J(c,d))}}return s}function er(e,t,n,i,r,l){const s=e[n];if(s!=null){const o=J(s,"default");if(o&&i===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ie(a)){const{propsDefaults:c}=r;if(n in c)i=c[n];else{const f=ar(r);i=c[n]=a.call(null,t),f()}}else i=a}s[0]&&(l&&!o?i=!1:s[1]&&(i===""||i===Ft(n))&&(i=!0))}return i}function lc(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 ge(e)&&i.set(e,zt),zt;if(V(l))for(let f=0;f<l.length;f++){const d=Ke(l[f]);Kl(d)&&(s[d]=fe)}else if(l)for(const f in l){const d=Ke(f);if(Kl(d)){const p=l[f],m=s[d]=V(p)||ie(p)?{type:p}:$e({},p);if(m){const I=Ql(Boolean,m.type),k=Ql(String,m.type);m[0]=I>-1,m[1]=k<0||I<k,(I>-1||J(m,"default"))&&o.push(d)}}}const c=[s,o];return ge(e)&&i.set(e,c),c}function Kl(e){return e[0]!=="$"&&!Zt(e)}function Zl(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Gl(e,t){return Zl(e)===Zl(t)}function Ql(e,t){return V(t)?t.findIndex(n=>Gl(n,e)):ie(t)&&Gl(t,e)?0:-1}const Jl=e=>e[0]==="_"||e==="$stable",tr=e=>V(e)?e.map(Qe):[Qe(e)],sc=(e,t,n)=>{if(t._n)return t;const i=Ma((...r)=>tr(t(...r)),n);return i._c=!1,i},Yl=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Jl(r))continue;const l=e[r];if(ie(l))t[r]=sc(r,l,i);else if(l!=null){const s=tr(l);t[r]=()=>s}}},Xl=(e,t)=>{const n=tr(t);e.slots.default=()=>n},oc=(e,t)=>{const n=e.slots=Bl();if(e.vnode.shapeFlag&32){const i=t._;i?($e(n,t),el(n,"_",i,!0)):Yl(t,n)}else t&&Xl(e,t)},ac=(e,t,n)=>{const{vnode:i,slots:r}=e;let l=!0,s=fe;if(i.shapeFlag&32){const o=t._;o?n&&o===1?l=!1:($e(r,t),!n&&o===1&&delete r._):(l=!t.$stable,Yl(t,r)),s=t}else t&&(Xl(e,t),s={default:1});if(l)for(const o in r)!Jl(o)&&s[o]==null&&delete r[o]};function nr(e,t,n,i,r=!1){if(V(e)){e.forEach((p,m)=>nr(p,t&&(V(t)?t[m]:t),n,i,r));return}if(Zn(i)&&!r)return;const l=i.shapeFlag&4?ti(i.component)||i.component.proxy:i.el,s=r?null:l,{i:o,r:a}=e,c=t&&t.r,f=o.refs===fe?o.refs={}:o.refs,d=o.setupState;if(c!=null&&c!==a&&(xe(c)?(f[c]=null,J(d,c)&&(d[c]=null)):Re(c)&&(c.value=null)),ie(a))ht(a,o,12,[s,f]);else{const p=xe(a),m=Re(a);if(p||m){const I=()=>{if(e.f){const k=p?J(d,a)?d[a]:f[a]:a.value;r?V(k)&&Gr(k,l):V(k)?k.includes(l)||k.push(l):p?(f[a]=[l],J(d,a)&&(d[a]=f[a])):(a.value=[l],e.k&&(f[e.k]=a.value))}else p?(f[a]=s,J(d,a)&&(d[a]=s)):m&&(a.value=s,e.k&&(f[e.k]=s))};s?(I.id=-1,Oe(I,n)):I()}}}function cc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Li().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Oe=Va;function uc(e){return fc(e)}function fc(e,t){cc();const n=Li();n.__VUE__=!0;const{insert:i,remove:r,patchProp:l,createElement:s,createText:o,createComment:a,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:m=Xe,insertStaticContent:I}=e,k=(u,h,g,v=null,y=null,_=null,R=void 0,x=null,T=!!h.dynamicChildren)=>{if(u===h)return;u&&!hn(u,h)&&(v=Mt(u),Fe(u,y,_,!0),u=null),h.patchFlag===-2&&(T=!1,h.dynamicChildren=null);const{type:b,ref:C,shapeFlag:F}=h;switch(b){case Jn:E(u,h,g,v);break;case St:w(u,h,g,v);break;case rr:u==null&&$(h,g,v,R);break;case ue:Te(u,h,g,v,y,_,R,x,T);break;default:F&1?H(u,h,g,v,y,_,R,x,T):F&6?z(u,h,g,v,y,_,R,x,T):(F&64||F&128)&&b.process(u,h,g,v,y,_,R,x,T,S)}C!=null&&y&&nr(C,u&&u.ref,_,h||u,!h)},E=(u,h,g,v)=>{if(u==null)i(h.el=o(h.children),g,v);else{const y=h.el=u.el;h.children!==u.children&&c(y,h.children)}},w=(u,h,g,v)=>{u==null?i(h.el=a(h.children||""),g,v):h.el=u.el},$=(u,h,g,v)=>{[u.el,u.anchor]=I(u.children,h,g,v,u.el,u.anchor)},U=({el:u,anchor:h},g,v)=>{let y;for(;u&&u!==h;)y=p(u),i(u,g,v),u=y;i(h,g,v)},D=({el:u,anchor:h})=>{let g;for(;u&&u!==h;)g=p(u),r(u),u=g;r(h)},H=(u,h,g,v,y,_,R,x,T)=>{h.type==="svg"?R="svg":h.type==="math"&&(R="mathml"),u==null?O(h,g,v,y,_,R,x,T):ze(u,h,y,_,R,x,T)},O=(u,h,g,v,y,_,R,x)=>{let T,b;const{props:C,shapeFlag:F,transition:j,dirs:W}=u;if(T=u.el=s(u.type,_,C&&C.is,C),F&8?f(T,u.children):F&16&&X(u.children,T,null,v,y,ir(u,_),R,x),W&&Tt(u,null,v,"created"),N(T,u,u.scopeId,R,v),C){for(const ce in C)ce!=="value"&&!Zt(ce)&&l(T,ce,null,C[ce],_,u.children,v,y,We);"value"in C&&l(T,"value",null,C.value,_),(b=C.onVnodeBeforeMount)&&Je(b,v,u)}W&&Tt(u,null,v,"beforeMount");const Q=hc(y,j);Q&&j.beforeEnter(T),i(T,h,g),((b=C&&C.onVnodeMounted)||Q||W)&&Oe(()=>{b&&Je(b,v,u),Q&&j.enter(T),W&&Tt(u,null,v,"mounted")},y)},N=(u,h,g,v,y)=>{if(g&&m(u,g),v)for(let _=0;_<v.length;_++)m(u,v[_]);if(y){let _=y.subTree;if(h===_){const R=y.vnode;N(u,R,R.scopeId,R.slotScopeIds,y.parent)}}},X=(u,h,g,v,y,_,R,x,T=0)=>{for(let b=T;b<u.length;b++){const C=u[b]=x?pt(u[b]):Qe(u[b]);k(null,C,h,g,v,y,_,R,x)}},ze=(u,h,g,v,y,_,R)=>{const x=h.el=u.el;let{patchFlag:T,dynamicChildren:b,dirs:C}=h;T|=u.patchFlag&16;const F=u.props||fe,j=h.props||fe;let W;if(g&&Rt(g,!1),(W=j.onVnodeBeforeUpdate)&&Je(W,g,h,u),C&&Tt(h,u,g,"beforeUpdate"),g&&Rt(g,!0),b?G(u.dynamicChildren,b,x,g,v,ir(h,y),_):R||be(u,h,x,null,g,v,ir(h,y),_,!1),T>0){if(T&16)oe(x,h,F,j,g,v,y);else if(T&2&&F.class!==j.class&&l(x,"class",null,j.class,y),T&4&&l(x,"style",F.style,j.style,y),T&8){const Q=h.dynamicProps;for(let ce=0;ce<Q.length;ce++){const de=Q[ce],ke=F[de],qe=j[de];(qe!==ke||de==="value")&&l(x,de,ke,qe,y,u.children,g,v,We)}}T&1&&u.children!==h.children&&f(x,h.children)}else!R&&b==null&&oe(x,h,F,j,g,v,y);((W=j.onVnodeUpdated)||C)&&Oe(()=>{W&&Je(W,g,h,u),C&&Tt(h,u,g,"updated")},v)},G=(u,h,g,v,y,_,R)=>{for(let x=0;x<h.length;x++){const T=u[x],b=h[x],C=T.el&&(T.type===ue||!hn(T,b)||T.shapeFlag&70)?d(T.el):g;k(T,b,C,null,v,y,_,R,!0)}},oe=(u,h,g,v,y,_,R)=>{if(g!==v){if(g!==fe)for(const x in g)!Zt(x)&&!(x in v)&&l(u,x,g[x],null,R,h.children,y,_,We);for(const x in v){if(Zt(x))continue;const T=v[x],b=g[x];T!==b&&x!=="value"&&l(u,x,b,T,R,h.children,y,_,We)}"value"in v&&l(u,"value",g.value,v.value,R)}},Te=(u,h,g,v,y,_,R,x,T)=>{const b=h.el=u?u.el:o(""),C=h.anchor=u?u.anchor:o("");let{patchFlag:F,dynamicChildren:j,slotScopeIds:W}=h;W&&(x=x?x.concat(W):W),u==null?(i(b,g,v),i(C,g,v),X(h.children||[],g,C,y,_,R,x,T)):F>0&&F&64&&j&&u.dynamicChildren?(G(u.dynamicChildren,j,g,y,_,R,x),(h.key!=null||y&&h===y.subTree)&&es(u,h,!0)):be(u,h,g,C,y,_,R,x,T)},z=(u,h,g,v,y,_,R,x,T)=>{h.slotScopeIds=x,u==null?h.shapeFlag&512?y.ctx.activate(h,g,v,R,T):re(h,g,v,y,_,R,T):ae(u,h,T)},re=(u,h,g,v,y,_,R)=>{const x=u.component=kc(u,v,y);if(qa(u)&&(x.ctx.renderer=S),_c(x),x.asyncDep){if(y&&y.registerDep(x,Ce),!u.el){const T=x.subTree=le(St);w(null,T,h,g)}}else Ce(x,u,h,g,y,_,R)},ae=(u,h,g)=>{const v=h.component=u.component;if(ja(u,h,g))if(v.asyncDep&&!v.asyncResolved){we(v,h,g);return}else v.next=h,Ra(v.update),v.effect.dirty=!0,v.update();else h.el=u.el,v.vnode=h},Ce=(u,h,g,v,y,_,R)=>{const x=()=>{if(u.isMounted){let{next:C,bu:F,u:j,parent:W,vnode:Q}=u;{const Wt=ts(u);if(Wt){C&&(C.el=Q.el,we(u,C,R)),Wt.asyncDep.then(()=>{u.isUnmounted||x()});return}}let ce=C,de;Rt(u,!1),C?(C.el=Q.el,we(u,C,R)):C=Q,F&&Mn(F),(de=C.props&&C.props.onVnodeBeforeUpdate)&&Je(de,W,C,Q),Rt(u,!0);const ke=Gi(u),qe=u.subTree;u.subTree=ke,k(qe,ke,d(qe.el),Mt(qe),u,y,_),C.el=ke.el,ce===null&&Pa(u,ke.el),j&&Oe(j,y),(de=C.props&&C.props.onVnodeUpdated)&&Oe(()=>Je(de,W,C,Q),y)}else{let C;const{el:F,props:j}=h,{bm:W,m:Q,parent:ce}=u,de=Zn(h);if(Rt(u,!1),W&&Mn(W),!de&&(C=j&&j.onVnodeBeforeMount)&&Je(C,ce,h),Rt(u,!0),F&&he){const ke=()=>{u.subTree=Gi(u),he(F,u.subTree,u,y,null)};de?h.type.__asyncLoader().then(()=>!u.isUnmounted&&ke()):ke()}else{const ke=u.subTree=Gi(u);k(null,ke,g,v,u,y,_),h.el=ke.el}if(Q&&Oe(Q,y),!de&&(C=j&&j.onVnodeMounted)){const ke=h;Oe(()=>Je(C,ce,ke),y)}(h.shapeFlag&256||ce&&Zn(ce.vnode)&&ce.vnode.shapeFlag&256)&&u.a&&Oe(u.a,y),u.isMounted=!0,h=g=v=null}},T=u.effect=new zi(x,Xe,()=>Zi(b),u.scope),b=u.update=()=>{T.dirty&&T.run()};b.id=u.uid,Rt(u,!0),b()},we=(u,h,g)=>{h.component=u;const v=u.vnode.props;u.vnode=h,u.next=null,rc(u,h.props,v,g),ac(u,h.children,g),xt(),Al(u),_t()},be=(u,h,g,v,y,_,R,x,T=!1)=>{const b=u&&u.children,C=u?u.shapeFlag:0,F=h.children,{patchFlag:j,shapeFlag:W}=h;if(j>0){if(j&128){yt(b,F,g,v,y,_,R,x,T);return}else if(j&256){Le(b,F,g,v,y,_,R,x,T);return}}W&8?(C&16&&We(b,y,_),F!==b&&f(g,F)):C&16?W&16?yt(b,F,g,v,y,_,R,x,T):We(b,y,_,!0):(C&8&&f(g,""),W&16&&X(F,g,v,y,_,R,x,T))},Le=(u,h,g,v,y,_,R,x,T)=>{u=u||zt,h=h||zt;const b=u.length,C=h.length,F=Math.min(b,C);let j;for(j=0;j<F;j++){const W=h[j]=T?pt(h[j]):Qe(h[j]);k(u[j],W,g,null,y,_,R,x,T)}b>C?We(u,y,_,!0,!1,F):X(h,g,v,y,_,R,x,T,F)},yt=(u,h,g,v,y,_,R,x,T)=>{let b=0;const C=h.length;let F=u.length-1,j=C-1;for(;b<=F&&b<=j;){const W=u[b],Q=h[b]=T?pt(h[b]):Qe(h[b]);if(hn(W,Q))k(W,Q,g,null,y,_,R,x,T);else break;b++}for(;b<=F&&b<=j;){const W=u[F],Q=h[j]=T?pt(h[j]):Qe(h[j]);if(hn(W,Q))k(W,Q,g,null,y,_,R,x,T);else break;F--,j--}if(b>F){if(b<=j){const W=j+1,Q=W<C?h[W].el:v;for(;b<=j;)k(null,h[b]=T?pt(h[b]):Qe(h[b]),g,Q,y,_,R,x,T),b++}}else if(b>j)for(;b<=F;)Fe(u[b],y,_,!0),b++;else{const W=b,Q=b,ce=new Map;for(b=Q;b<=j;b++){const Ue=h[b]=T?pt(h[b]):Qe(h[b]);Ue.key!=null&&ce.set(Ue.key,b)}let de,ke=0;const qe=j-Q+1;let Wt=!1,mo=0;const En=new Array(qe);for(b=0;b<qe;b++)En[b]=0;for(b=W;b<=F;b++){const Ue=u[b];if(ke>=qe){Fe(Ue,y,_,!0);continue}let Ye;if(Ue.key!=null)Ye=ce.get(Ue.key);else for(de=Q;de<=j;de++)if(En[de-Q]===0&&hn(Ue,h[de])){Ye=de;break}Ye===void 0?Fe(Ue,y,_,!0):(En[Ye-Q]=b+1,Ye>=mo?mo=Ye:Wt=!0,k(Ue,h[Ye],g,null,y,_,R,x,T),ke++)}const vo=Wt?dc(En):zt;for(de=vo.length-1,b=qe-1;b>=0;b--){const Ue=Q+b,Ye=h[Ue],yo=Ue+1<C?h[Ue+1].el:v;En[b]===0?k(null,Ye,g,yo,y,_,R,x,T):Wt&&(de<0||b!==vo[de]?Lt(Ye,g,yo,2):de--)}}},Lt=(u,h,g,v,y=null)=>{const{el:_,type:R,transition:x,children:T,shapeFlag:b}=u;if(b&6){Lt(u.component.subTree,h,g,v);return}if(b&128){u.suspense.move(h,g,v);return}if(b&64){R.move(u,h,g,S);return}if(R===ue){i(_,h,g);for(let F=0;F<T.length;F++)Lt(T[F],h,g,v);i(u.anchor,h,g);return}if(R===rr){U(u,h,g);return}if(v!==2&&b&1&&x)if(v===0)x.beforeEnter(_),i(_,h,g),Oe(()=>x.enter(_),y);else{const{leave:F,delayLeave:j,afterLeave:W}=x,Q=()=>i(_,h,g),ce=()=>{F(_,()=>{Q(),W&&W()})};j?j(_,Q,ce):ce()}else i(_,h,g)},Fe=(u,h,g,v=!1,y=!1)=>{const{type:_,props:R,ref:x,children:T,dynamicChildren:b,shapeFlag:C,patchFlag:F,dirs:j}=u;if(x!=null&&nr(x,null,g,u,!0),C&256){h.ctx.deactivate(u);return}const W=C&1&&j,Q=!Zn(u);let ce;if(Q&&(ce=R&&R.onVnodeBeforeUnmount)&&Je(ce,h,u),C&6)ki(u.component,g,v);else{if(C&128){u.suspense.unmount(g,v);return}W&&Tt(u,null,h,"beforeUnmount"),C&64?u.type.remove(u,h,g,y,S,v):b&&(_!==ue||F>0&&F&64)?We(b,h,g,!1,!0):(_===ue&&F&384||!y&&C&16)&&We(T,h,g),v&&bi(u)}(Q&&(ce=R&&R.onVnodeUnmounted)||W)&&Oe(()=>{ce&&Je(ce,h,u),W&&Tt(u,null,h,"unmounted")},g)},bi=u=>{const{type:h,el:g,anchor:v,transition:y}=u;if(h===ue){_r(g,v);return}if(h===rr){D(u);return}const _=()=>{r(g),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(u.shapeFlag&1&&y&&!y.persisted){const{leave:R,delayLeave:x}=y,T=()=>R(g,_);x?x(u.el,_,T):T()}else _()},_r=(u,h)=>{let g;for(;u!==h;)g=p(u),r(u),u=g;r(h)},ki=(u,h,g)=>{const{bum:v,scope:y,update:_,subTree:R,um:x}=u;v&&Mn(v),y.stop(),_&&(_.active=!1,Fe(R,u,h,g)),x&&Oe(x,h),Oe(()=>{u.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},We=(u,h,g,v=!1,y=!1,_=0)=>{for(let R=_;R<u.length;R++)Fe(u[R],h,g,v,y)},Mt=u=>u.shapeFlag&6?Mt(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el);let Bt=!1;const L=(u,h,g)=>{u==null?h._vnode&&Fe(h._vnode,null,null,!0):k(h._vnode||null,u,h,null,null,null,g),Bt||(Bt=!0,Al(),Il(),Bt=!1),h._vnode=u},S={p:k,um:Fe,m:Lt,r:bi,mt:re,mc:X,pc:be,pbc:G,n:Mt,o:e};let B,he;return{render:L,hydrate:B,createApp:tc(L,B)}}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 Rt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function es(e,t,n=!1){const i=e.children,r=t.children;if(V(i)&&V(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]=pt(r[l]),o.el=s.el),n||es(s,o)),o.type===Jn&&(o.el=s.el)}}function dc(e){const t=e.slice(),n=[0];let i,r,l,s,o;const a=e.length;for(i=0;i<a;i++){const c=e[i];if(c!==0){if(r=n[n.length-1],e[r]<c){t[i]=r,n.push(i);continue}for(l=0,s=n.length-1;l<s;)o=l+s>>1,e[n[o]]<c?l=o+1:s=o;c<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 ts(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ts(t)}const pc=e=>e.__isTeleport,ue=Symbol.for("v-fgt"),Jn=Symbol.for("v-txt"),St=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),un=[];let Be=null;function A(e=!1){un.push(Be=e?null:[])}function gc(){un.pop(),Be=un[un.length-1]||null}let fn=1;function ns(e){fn+=e}function is(e){return e.dynamicChildren=fn>0?Be||zt:null,gc(),fn>0&&Be&&Be.push(e),e}function M(e,t,n,i,r,l){return is(P(e,t,n,i,r,l,!0))}function nt(e,t,n,i,r){return is(le(e,t,n,i,r,!0))}function lr(e){return e?e.__v_isVNode===!0:!1}function hn(e,t){return e.type===t.type&&e.key===t.key}const rs=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||Re(e)||ie(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,i=0,r=null,l=e===ue?0:1,s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rs(t),ref:t&&Yn(t),scopeId:Ml,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:Se};return o?(sr(a,n),l&128&&e.normalize(a)):n&&(a.shapeFlag|=xe(n)?8:16),fn>0&&!s&&Be&&(a.patchFlag>0||l&6)&&a.patchFlag!==32&&Be.push(a),a}const le=mc;function mc(e,t=null,n=null,i=0,r=null,l=!1){if((!e||e===Ha)&&(e=St),lr(e)){const o=Ht(e,t,!0);return n&&sr(o,n),fn>0&&!l&&Be&&(o.shapeFlag&6?Be[Be.indexOf(e)]=o:Be.push(o)),o.patchFlag|=-2,o}if(Rc(e)&&(e=e.__vccOpts),t){t=vc(t);let{class:o,style:a}=t;o&&!xe(o)&&(t.class=ye(o)),ge(a)&&(_l(a)&&!V(a)&&(a=$e({},a)),t.style=Gt(a))}const s=xe(e)?1:Da(e)?128:pc(e)?64:ge(e)?4:ie(e)?2:0;return P(e,t,n,i,r,s,l,!0)}function vc(e){return e?_l(e)||Wl(e)?$e({},e):e:null}function Ht(e,t,n=!1,i=!1){const{props:r,ref:l,patchFlag:s,children:o,transition:a}=e,c=t?yc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&rs(c),ref:t&&t.ref?n&&l?V(l)?l.concat(Yn(t)):[l,Yn(t)]:Yn(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ht(e.ssContent),ssFallback:e.ssFallback&&Ht(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&i&&(f.transition=a.clone(f)),f}function it(e=" ",t=0){return le(Jn,null,e,t)}function Y(e="",t=!1){return t?(A(),nt(St,null,e)):le(St,null,e)}function Qe(e){return e==null||typeof e=="boolean"?le(St):V(e)?le(ue,null,e.slice()):typeof e=="object"?pt(e):le(Jn,null,String(e))}function pt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ht(e)}function sr(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(V(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&&!Wl(t)?t._ctx=Se:r===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ie(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),i&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function yc(...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=ye([t.class,i.class]));else if(r==="style")t.style=Gt([t.style,i.style]);else if(An(r)){const l=t[r],s=i[r];s&&l!==s&&!(V(l)&&l.includes(s))&&(t[r]=l?[].concat(l,s):s)}else r!==""&&(t[r]=i[r])}return t}function Je(e,t,n,i=null){Ze(e,t,7,[n,i])}const wc=Dl();let bc=0;function kc(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||wc,l={uid:bc++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Xo(!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:lc(i,r),emitsOptions:La(i,r),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:i.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,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=Ia.bind(null,l),e.ce&&e.ce(l),l}let Ie=null;const xc=()=>Ie||Se;let Xn,or;{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)}};Xn=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),or=t("__VUE_SSR_SETTERS__",n=>ei=n)}const ar=e=>{const t=Ie;return Xn(e),e.scope.on(),()=>{e.scope.off(),Xn(t)}},ls=()=>{Ie&&Ie.scope.off(),Xn(null)};function ss(e){return e.vnode.shapeFlag&4}let ei=!1;function _c(e,t=!1){t&&or(t);const{props:n,children:i}=e.vnode,r=ss(e);ic(e,n,r,t),oc(e,i);const l=r?Cc(e,t):void 0;return t&&or(!1),l}function Cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ga);const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?Ec(e):null,l=ar(e);xt();const s=ht(i,e,0,[e.props,r]);if(_t(),l(),Jr(s)){if(s.then(ls,ls),t)return s.then(o=>{os(e,o,t)}).catch(o=>{Vn(o,e,0)});e.asyncDep=s}else os(e,s,t)}else cs(e,t)}function os(e,t,n){ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Tl(t)),cs(e,n)}let as;function cs(e,t,n){const i=e.type;if(!e.render){if(!t&&as&&!i.render){const r=i.template||Qa(e).template;if(r){const{isCustomElement:l,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:a}=i,c=$e($e({isCustomElement:l,delimiters:o},s),a);i.render=as(r,c)}}e.render=i.render||Xe}}const $c={get(e,t){return Me(e,"get",""),e[t]}};function Ec(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$c),slots:e.slots,emit:e.emit,expose:t}}function ti(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Tl(ka(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in on)return on[n](e)},has(t,n){return n in t||n in on}}))}function Tc(e,t=!0){return ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Rc(e){return ie(e)&&"__vccOpts"in e}const _e=(e,t)=>xa(e,t,ei);function ne(e,t,n){const i=arguments.length;return i===2?ge(t)&&!V(t)?lr(t)?le(e,null,[t]):le(e,t):le(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&lr(n)&&(n=[n]),le(e,t,n))}const Sc="3.4.27";/**
21
+ **/function ht(e,t,n,i){try{return i?e(...i):e()}catch(r){Vn(r,t,n)}}function Ze(e,t,n,i){if(ie(e)){const r=ht(e,t,n,i);return r&&Jr(r)&&r.catch(l=>{Vn(l,t,n)}),r}if(V(e)){const r=[];for(let l=0;l<e.length;l++)r.push(Ze(e[l],t,n,i));return r}}function Vn(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/error-reference/#runtime-${n}`;for(;l;){const c=l.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,s,o)===!1)return}l=l.parent}const a=t.appContext.config.errorHandler;if(a){xt(),ht(a,null,10,[e,s,o]),_t();return}}Ea(e,n,r,i)}function Ea(e,t,n,i=!0){console.error(e)}let nn=!1,qi=!1;const Ee=[];let Ge=0;const Ht=[];let dt=null,$t=0;const Rl=Promise.resolve();let Ki=null;function Et(e){const t=Ki||Rl;return e?t.then(this?e.bind(this):e):t}function Ta(e){let t=Ge+1,n=Ee.length;for(;t<n;){const i=t+n>>>1,r=Ee[i],l=rn(r);l<e||l===e&&r.pre?t=i+1:n=i}return t}function Zi(e){(!Ee.length||!Ee.includes(e,nn&&e.allowRecurse?Ge+1:Ge))&&(e.id==null?Ee.push(e):Ee.splice(Ta(e.id),0,e),Sl())}function Sl(){!nn&&!qi&&(qi=!0,Ki=Rl.then(Ll))}function Ra(e){const t=Ee.indexOf(e);t>Ge&&Ee.splice(t,1)}function Sa(e){V(e)?Ht.push(...e):(!dt||!dt.includes(e,e.allowRecurse?$t+1:$t))&&Ht.push(e),Sl()}function Al(e,t,n=nn?Ge+1:0){for(;n<Ee.length;n++){const i=Ee[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;Ee.splice(n,1),n--,i()}}}function Il(e){if(Ht.length){const t=[...new Set(Ht)].sort((n,i)=>rn(n)-rn(i));if(Ht.length=0,dt){dt.push(...t);return}for(dt=t,$t=0;$t<dt.length;$t++)dt[$t]();dt=null,$t=0}}const rn=e=>e.id==null?1/0:e.id,Aa=(e,t)=>{const n=rn(e)-rn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ll(e){qi=!1,nn=!0,Ee.sort(Aa);try{for(Ge=0;Ge<Ee.length;Ge++){const t=Ee[Ge];t&&t.active!==!1&&ht(t,null,14)}}finally{Ge=0,Ee.length=0,Il(),nn=!1,Ki=null,(Ee.length||Ht.length)&&Ll()}}function Ia(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||fe;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:d,trim:p}=i[f]||fe;p&&(r=n.map(m=>xe(m)?m.trim():m)),d&&(r=n.map(On))}let o,a=i[o=Ii(t)]||i[o=Ii(Ke(t))];!a&&l&&(a=i[o=Ii(Ut(t))]),a&&Ze(a,e,6,r);const c=i[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Ze(c,e,6,r)}}function La(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?(ge(e)&&i.set(e,null),null):(V(l)?l.forEach(a=>s[a]=null):$e(s,l),ge(e)&&i.set(e,s),s)}function Bn(e,t){return!e||!An(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,Ut(t))||J(e,t))}let Se=null,Ml=null;function Wn(e){const t=Se;return Se=e,Ml=e&&e.type.__scopeId||null,t}function Ma(e,t=Se,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&ns(-1);const l=Wn(t);let s;try{s=e(...r)}finally{Wn(l),i._d&&ns(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function Gi(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[l],slots:s,attrs:o,emit:a,render:c,renderCache:f,props:d,data:p,setupState:m,ctx:I,inheritAttrs:k}=e,E=Wn(e);let w,$;try{if(n.shapeFlag&4){const D=r||i,H=D;w=Qe(c.call(H,D,f,d,m,p,I)),$=o}else{const D=t;w=Qe(D.length>1?D(d,{attrs:o,slots:s,emit:a}):D(d,null)),$=t.props?o:Oa(o)}}catch(D){un.length=0,Vn(D,e,1),w=le(At)}let U=w;if($&&k!==!1){const D=Object.keys($),{shapeFlag:H}=U;D.length&&H&7&&(l&&D.some(Si)&&($=za($,l)),U=Nt(U,$,!1,!0))}return n.dirs&&(U=Nt(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&(U.transition=n.transition),w=U,Wn(E),w}const Oa=e=>{let t;for(const n in e)(n==="class"||n==="style"||An(n))&&((t||(t={}))[n]=e[n]);return t},za=(e,t)=>{const n={};for(const i in e)(!Si(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function ja(e,t,n){const{props:i,children:r,component:l}=e,{props:s,children:o,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?Ol(i,s,c):!!s;if(a&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const p=f[d];if(s[p]!==i[p]&&!Bn(c,p))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===s?!1:i?s?Ol(i,s,c):!0:!!s;return!1}function Ol(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 Pa({vnode:e,parent:t},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 Fa="components";function Ua(e,t){return Na(Fa,e,!0,t)||e}const Ha=Symbol.for("v-ndc");function Na(e,t,n=!0,i=!1){const r=Se||Ie;if(r){const l=r.type;{const o=Tc(l,!1);if(o&&(o===t||o===Ke(t)||o===Ln(Ke(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[Ke(t)]||e[Ln(Ke(t))])}const Da=e=>e.__isSuspense;function Va(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Sa(e)}const Ba=Symbol.for("v-scx"),Wa=()=>Qn(Ba);function jl(e,t){return Pl(e,null,t)}const qn={};function He(e,t,n){return Pl(e,t,n)}function Pl(e,t,{immediate:n,deep:i,flush:r,once:l,onTrack:s,onTrigger:o}=fe){if(t&&l){const O=t;t=(...N)=>{O(...N),H()}}const a=Ie,c=O=>i===!0?O:Tt(O,i===!1?1:void 0);let f,d=!1,p=!1;if(Re(e)?(f=()=>e.value,d=Nn(e)):Xt(e)?(f=()=>c(e),d=!0):V(e)?(p=!0,d=e.some(O=>Xt(O)||Nn(O)),f=()=>e.map(O=>{if(Re(O))return O.value;if(Xt(O))return c(O);if(ie(O))return ht(O,a,2)})):ie(e)?t?f=()=>ht(e,a,2):f=()=>(m&&m(),Ze(e,a,3,[I])):f=Xe,t&&i){const O=f;f=()=>Tt(O())}let m,I=O=>{m=U.onStop=()=>{ht(O,a,4),m=U.onStop=void 0}},k;if(ei)if(I=Xe,t?n&&Ze(t,a,3,[f(),p?[]:void 0,I]):f(),r==="sync"){const O=Wa();k=O.__watcherHandles||(O.__watcherHandles=[])}else return Xe;let E=p?new Array(e.length).fill(qn):qn;const w=()=>{if(!(!U.active||!U.dirty))if(t){const O=U.run();(i||d||(p?O.some((N,X)=>ct(N,E[X])):ct(O,E)))&&(m&&m(),Ze(t,a,3,[O,E===qn?void 0:p&&E[0]===qn?[]:E,I]),E=O)}else U.run()};w.allowRecurse=!!t;let $;r==="sync"?$=w:r==="post"?$=()=>Oe(w,a&&a.suspense):(w.pre=!0,a&&(w.id=a.uid),$=()=>Zi(w));const U=new zi(f,Xe,$),D=rl(),H=()=>{U.stop(),D&&Gr(D.effects,U)};return t?n?w():E=U.run():r==="post"?Oe(U.run.bind(U),a&&a.suspense):U.run(),k&&k.push(H),H}function Tt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Re(e))Tt(e.value,t,n);else if(V(e))for(let i=0;i<e.length;i++)Tt(e[i],t,n);else if(Ft(e)||Pt(e))e.forEach(i=>{Tt(i,t,n)});else if(Xr(e))for(const i in e)Tt(e[i],t,n);return e}function Kn(e,t){if(Se===null)return e;const n=ti(Se)||Se.proxy,i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[l,s,o,a=fe]=t[r];l&&(ie(l)&&(l={mounted:l,updated:l}),l.deep&&Tt(s),i.push({dir:l,instance:n,value:s,oldValue:void 0,arg:o,modifiers:a}))}return e}function Rt(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&&(xt(),Ze(a,n,8,[e.el,o,e,t]),_t())}}/*! #__NO_SIDE_EFFECTS__ */function ln(e,t){return ie(e)?$e({name:e.name},t,{setup:e}):e}const Zn=e=>!!e.type.__asyncLoader,qa=e=>e.type.__isKeepAlive;function Ka(e,t,n=Ie,i=!1){if(n){const r=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;xt();const o=ar(n),a=Ze(t,n,e,s);return o(),_t(),a});return i?r.unshift(l):r.push(l),l}}const Qi=e=>(t,n=Ie)=>(!ei||e==="sp")&&Ka(e,(...i)=>t(...i),n),sn=Qi("m"),Za=Qi("bum"),Ji=Qi("um");function Ne(e,t,n,i){let r;const l=n;if(V(e)||xe(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)}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)}else if(ge(e))if(e[Symbol.iterator])r=Array.from(e,(s,o)=>t(s,o,void 0,l));else{const s=Object.keys(e);r=new Array(s.length);for(let o=0,a=s.length;o<a;o++){const c=s[o];r[o]=t(e[c],c,o,l)}}else r=[];return r}const Yi=e=>e?ss(e)?ti(e)||e.proxy:Yi(e.parent):null,on=$e(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,Zi(e.update)}),$nextTick:e=>e.n||(e.n=Et.bind(e.proxy)),$watch:e=>Xe}),Xi=(e,t)=>e!==fe&&!e.__isScriptSetup&&J(e,t),Ga={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:l,accessCache:s,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const m=s[t];if(m!==void 0)switch(m){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!==fe&&J(r,t))return s[t]=2,r[t];if((c=e.propsOptions[0])&&J(c,t))return s[t]=3,l[t];if(n!==fe&&J(n,t))return s[t]=4,n[t];s[t]=0}}const f=on[t];let d,p;if(f)return t==="$attrs"&&Me(e.attrs,"get",""),f(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(n!==fe&&J(n,t))return s[t]=4,n[t];if(p=a.config.globalProperties,J(p,t))return p[t]},set({_:e},t,n){const{data:i,setupState:r,ctx:l}=e;return Xi(r,t)?(r[t]=n,!0):i!==fe&&J(i,t)?(i[t]=n,!0):J(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!==fe&&J(e,s)||Xi(t,s)||(o=l[0])&&J(o,s)||J(i,s)||J(on,s)||J(r.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:J(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fl(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Qa(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(c=>Gn(a,c,s,!0)),Gn(a,t,s)),ge(t)&&l.set(t,a),a}function Gn(e,t,n,i=!1){const{mixins:r,extends:l}=t;l&&Gn(e,l,n,!0),r&&r.forEach(s=>Gn(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const o=Ja[s]||n&&n[s];e[s]=o?o(e[s],t[s]):t[s]}return e}const Ja={data:Ul,props:Nl,emits:Nl,methods:an,computed:an,beforeCreate:Ae,created:Ae,beforeMount:Ae,mounted:Ae,beforeUpdate:Ae,updated:Ae,beforeDestroy:Ae,beforeUnmount:Ae,destroyed:Ae,unmounted:Ae,activated:Ae,deactivated:Ae,errorCaptured:Ae,serverPrefetch:Ae,components:an,directives:an,watch:Xa,provide:Ul,inject:Ya};function Ul(e,t){return t?e?function(){return $e(ie(e)?e.call(this,this):e,ie(t)?t.call(this,this):t)}:t:e}function Ya(e,t){return an(Hl(e),Hl(t))}function Hl(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ae(e,t){return e?[...new Set([].concat(e,t))]:t}function an(e,t){return e?$e(Object.create(null),e,t):t}function Nl(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:$e(Object.create(null),Fl(e),Fl(t??{})):t}function Xa(e,t){if(!e)return t;if(!t)return e;const n=$e(Object.create(null),e);for(const i in t)n[i]=Ae(e[i],t[i]);return n}function Dl(){return{app:null,config:{isNativeTag:Do,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 ec=0;function tc(e,t){return function(i,r=null){ie(i)||(i=$e({},i)),r!=null&&!ge(r)&&(r=null);const l=Dl(),s=new WeakSet;let o=!1;const a=l.app={_uid:ec++,_component:i,_props:r,_container:null,_context:l,_instance:null,version:Sc,get config(){return l.config},set config(c){},use(c,...f){return s.has(c)||(c&&ie(c.install)?(s.add(c),c.install(a,...f)):ie(c)&&(s.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(l.components[c]=f,a):l.components[c]},directive(c,f){return f?(l.directives[c]=f,a):l.directives[c]},mount(c,f,d){if(!o){const p=le(i,r);return p.appContext=l,d===!0?d="svg":d===!1&&(d=void 0),f&&t?t(p,c):e(p,c,d),o=!0,a._container=c,c.__vue_app__=a,ti(p.component)||p.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return l.provides[c]=f,a},runWithContext(c){const f=cn;cn=a;try{return c()}finally{cn=f}}};return a}}let cn=null;function nc(e,t){if(Ie){let n=Ie.provides;const i=Ie.parent&&Ie.parent.provides;i===n&&(n=Ie.provides=Object.create(i)),n[e]=t}}function Qn(e,t,n=!1){const i=Ie||Se;if(i||cn){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:cn._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&ie(t)?t.call(i&&i.proxy):t}}const Vl={},Bl=()=>Object.create(Vl),Wl=e=>Object.getPrototypeOf(e)===Vl;function ic(e,t,n,i=!1){const r={},l=Bl();e.propsDefaults=Object.create(null),ql(e,t,r,l);for(const s in e.propsOptions[0])s in r||(r[s]=void 0);n?e.props=i?r:ba(r):e.type.props?e.props=r:e.props=l,e.attrs=l}function rc(e,t,n,i){const{props:r,attrs:l,vnode:{patchFlag:s}}=e,o=te(r),[a]=e.propsOptions;let c=!1;if((i||s>0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let p=f[d];if(Bn(e.emitsOptions,p))continue;const m=t[p];if(a)if(J(l,p))m!==l[p]&&(l[p]=m,c=!0);else{const I=Ke(p);r[I]=er(a,o,I,m,e,!1)}else m!==l[p]&&(l[p]=m,c=!0)}}}else{ql(e,t,r,l)&&(c=!0);let f;for(const d in o)(!t||!J(t,d)&&((f=Ut(d))===d||!J(t,f)))&&(a?n&&(n[d]!==void 0||n[f]!==void 0)&&(r[d]=er(a,o,d,void 0,e,!0)):delete r[d]);if(l!==o)for(const d in l)(!t||!J(t,d))&&(delete l[d],c=!0)}c&&tt(e.attrs,"set","")}function ql(e,t,n,i){const[r,l]=e.propsOptions;let s=!1,o;if(t)for(let a in t){if(Gt(a))continue;const c=t[a];let f;r&&J(r,f=Ke(a))?!l||!l.includes(f)?n[f]=c:(o||(o={}))[f]=c:Bn(e.emitsOptions,a)||(!(a in i)||c!==i[a])&&(i[a]=c,s=!0)}if(l){const a=te(n),c=o||fe;for(let f=0;f<l.length;f++){const d=l[f];n[d]=er(r,a,d,c[d],e,!J(c,d))}}return s}function er(e,t,n,i,r,l){const s=e[n];if(s!=null){const o=J(s,"default");if(o&&i===void 0){const a=s.default;if(s.type!==Function&&!s.skipFactory&&ie(a)){const{propsDefaults:c}=r;if(n in c)i=c[n];else{const f=ar(r);i=c[n]=a.call(null,t),f()}}else i=a}s[0]&&(l&&!o?i=!1:s[1]&&(i===""||i===Ut(n))&&(i=!0))}return i}function lc(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 ge(e)&&i.set(e,jt),jt;if(V(l))for(let f=0;f<l.length;f++){const d=Ke(l[f]);Kl(d)&&(s[d]=fe)}else if(l)for(const f in l){const d=Ke(f);if(Kl(d)){const p=l[f],m=s[d]=V(p)||ie(p)?{type:p}:$e({},p);if(m){const I=Ql(Boolean,m.type),k=Ql(String,m.type);m[0]=I>-1,m[1]=k<0||I<k,(I>-1||J(m,"default"))&&o.push(d)}}}const c=[s,o];return ge(e)&&i.set(e,c),c}function Kl(e){return e[0]!=="$"&&!Gt(e)}function Zl(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Gl(e,t){return Zl(e)===Zl(t)}function Ql(e,t){return V(t)?t.findIndex(n=>Gl(n,e)):ie(t)&&Gl(t,e)?0:-1}const Jl=e=>e[0]==="_"||e==="$stable",tr=e=>V(e)?e.map(Qe):[Qe(e)],sc=(e,t,n)=>{if(t._n)return t;const i=Ma((...r)=>tr(t(...r)),n);return i._c=!1,i},Yl=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Jl(r))continue;const l=e[r];if(ie(l))t[r]=sc(r,l,i);else if(l!=null){const s=tr(l);t[r]=()=>s}}},Xl=(e,t)=>{const n=tr(t);e.slots.default=()=>n},oc=(e,t)=>{const n=e.slots=Bl();if(e.vnode.shapeFlag&32){const i=t._;i?($e(n,t),el(n,"_",i,!0)):Yl(t,n)}else t&&Xl(e,t)},ac=(e,t,n)=>{const{vnode:i,slots:r}=e;let l=!0,s=fe;if(i.shapeFlag&32){const o=t._;o?n&&o===1?l=!1:($e(r,t),!n&&o===1&&delete r._):(l=!t.$stable,Yl(t,r)),s=t}else t&&(Xl(e,t),s={default:1});if(l)for(const o in r)!Jl(o)&&s[o]==null&&delete r[o]};function nr(e,t,n,i,r=!1){if(V(e)){e.forEach((p,m)=>nr(p,t&&(V(t)?t[m]:t),n,i,r));return}if(Zn(i)&&!r)return;const l=i.shapeFlag&4?ti(i.component)||i.component.proxy:i.el,s=r?null:l,{i:o,r:a}=e,c=t&&t.r,f=o.refs===fe?o.refs={}:o.refs,d=o.setupState;if(c!=null&&c!==a&&(xe(c)?(f[c]=null,J(d,c)&&(d[c]=null)):Re(c)&&(c.value=null)),ie(a))ht(a,o,12,[s,f]);else{const p=xe(a),m=Re(a);if(p||m){const I=()=>{if(e.f){const k=p?J(d,a)?d[a]:f[a]:a.value;r?V(k)&&Gr(k,l):V(k)?k.includes(l)||k.push(l):p?(f[a]=[l],J(d,a)&&(d[a]=f[a])):(a.value=[l],e.k&&(f[e.k]=a.value))}else p?(f[a]=s,J(d,a)&&(d[a]=s)):m&&(a.value=s,e.k&&(f[e.k]=s))};s?(I.id=-1,Oe(I,n)):I()}}}function cc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Li().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Oe=Va;function uc(e){return fc(e)}function fc(e,t){cc();const n=Li();n.__VUE__=!0;const{insert:i,remove:r,patchProp:l,createElement:s,createText:o,createComment:a,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:m=Xe,insertStaticContent:I}=e,k=(u,h,g,v=null,y=null,_=null,R=void 0,x=null,T=!!h.dynamicChildren)=>{if(u===h)return;u&&!hn(u,h)&&(v=Ot(u),Fe(u,y,_,!0),u=null),h.patchFlag===-2&&(T=!1,h.dynamicChildren=null);const{type:b,ref:C,shapeFlag:F}=h;switch(b){case Jn:E(u,h,g,v);break;case At:w(u,h,g,v);break;case rr:u==null&&$(h,g,v,R);break;case ue:Te(u,h,g,v,y,_,R,x,T);break;default:F&1?H(u,h,g,v,y,_,R,x,T):F&6?z(u,h,g,v,y,_,R,x,T):(F&64||F&128)&&b.process(u,h,g,v,y,_,R,x,T,S)}C!=null&&y&&nr(C,u&&u.ref,_,h||u,!h)},E=(u,h,g,v)=>{if(u==null)i(h.el=o(h.children),g,v);else{const y=h.el=u.el;h.children!==u.children&&c(y,h.children)}},w=(u,h,g,v)=>{u==null?i(h.el=a(h.children||""),g,v):h.el=u.el},$=(u,h,g,v)=>{[u.el,u.anchor]=I(u.children,h,g,v,u.el,u.anchor)},U=({el:u,anchor:h},g,v)=>{let y;for(;u&&u!==h;)y=p(u),i(u,g,v),u=y;i(h,g,v)},D=({el:u,anchor:h})=>{let g;for(;u&&u!==h;)g=p(u),r(u),u=g;r(h)},H=(u,h,g,v,y,_,R,x,T)=>{h.type==="svg"?R="svg":h.type==="math"&&(R="mathml"),u==null?O(h,g,v,y,_,R,x,T):ze(u,h,y,_,R,x,T)},O=(u,h,g,v,y,_,R,x)=>{let T,b;const{props:C,shapeFlag:F,transition:j,dirs:W}=u;if(T=u.el=s(u.type,_,C&&C.is,C),F&8?f(T,u.children):F&16&&X(u.children,T,null,v,y,ir(u,_),R,x),W&&Rt(u,null,v,"created"),N(T,u,u.scopeId,R,v),C){for(const ce in C)ce!=="value"&&!Gt(ce)&&l(T,ce,null,C[ce],_,u.children,v,y,We);"value"in C&&l(T,"value",null,C.value,_),(b=C.onVnodeBeforeMount)&&Je(b,v,u)}W&&Rt(u,null,v,"beforeMount");const Q=hc(y,j);Q&&j.beforeEnter(T),i(T,h,g),((b=C&&C.onVnodeMounted)||Q||W)&&Oe(()=>{b&&Je(b,v,u),Q&&j.enter(T),W&&Rt(u,null,v,"mounted")},y)},N=(u,h,g,v,y)=>{if(g&&m(u,g),v)for(let _=0;_<v.length;_++)m(u,v[_]);if(y){let _=y.subTree;if(h===_){const R=y.vnode;N(u,R,R.scopeId,R.slotScopeIds,y.parent)}}},X=(u,h,g,v,y,_,R,x,T=0)=>{for(let b=T;b<u.length;b++){const C=u[b]=x?pt(u[b]):Qe(u[b]);k(null,C,h,g,v,y,_,R,x)}},ze=(u,h,g,v,y,_,R)=>{const x=h.el=u.el;let{patchFlag:T,dynamicChildren:b,dirs:C}=h;T|=u.patchFlag&16;const F=u.props||fe,j=h.props||fe;let W;if(g&&St(g,!1),(W=j.onVnodeBeforeUpdate)&&Je(W,g,h,u),C&&Rt(h,u,g,"beforeUpdate"),g&&St(g,!0),b?G(u.dynamicChildren,b,x,g,v,ir(h,y),_):R||be(u,h,x,null,g,v,ir(h,y),_,!1),T>0){if(T&16)oe(x,h,F,j,g,v,y);else if(T&2&&F.class!==j.class&&l(x,"class",null,j.class,y),T&4&&l(x,"style",F.style,j.style,y),T&8){const Q=h.dynamicProps;for(let ce=0;ce<Q.length;ce++){const de=Q[ce],ke=F[de],qe=j[de];(qe!==ke||de==="value")&&l(x,de,ke,qe,y,u.children,g,v,We)}}T&1&&u.children!==h.children&&f(x,h.children)}else!R&&b==null&&oe(x,h,F,j,g,v,y);((W=j.onVnodeUpdated)||C)&&Oe(()=>{W&&Je(W,g,h,u),C&&Rt(h,u,g,"updated")},v)},G=(u,h,g,v,y,_,R)=>{for(let x=0;x<h.length;x++){const T=u[x],b=h[x],C=T.el&&(T.type===ue||!hn(T,b)||T.shapeFlag&70)?d(T.el):g;k(T,b,C,null,v,y,_,R,!0)}},oe=(u,h,g,v,y,_,R)=>{if(g!==v){if(g!==fe)for(const x in g)!Gt(x)&&!(x in v)&&l(u,x,g[x],null,R,h.children,y,_,We);for(const x in v){if(Gt(x))continue;const T=v[x],b=g[x];T!==b&&x!=="value"&&l(u,x,b,T,R,h.children,y,_,We)}"value"in v&&l(u,"value",g.value,v.value,R)}},Te=(u,h,g,v,y,_,R,x,T)=>{const b=h.el=u?u.el:o(""),C=h.anchor=u?u.anchor:o("");let{patchFlag:F,dynamicChildren:j,slotScopeIds:W}=h;W&&(x=x?x.concat(W):W),u==null?(i(b,g,v),i(C,g,v),X(h.children||[],g,C,y,_,R,x,T)):F>0&&F&64&&j&&u.dynamicChildren?(G(u.dynamicChildren,j,g,y,_,R,x),(h.key!=null||y&&h===y.subTree)&&es(u,h,!0)):be(u,h,g,C,y,_,R,x,T)},z=(u,h,g,v,y,_,R,x,T)=>{h.slotScopeIds=x,u==null?h.shapeFlag&512?y.ctx.activate(h,g,v,R,T):re(h,g,v,y,_,R,T):ae(u,h,T)},re=(u,h,g,v,y,_,R)=>{const x=u.component=kc(u,v,y);if(qa(u)&&(x.ctx.renderer=S),_c(x),x.asyncDep){if(y&&y.registerDep(x,Ce),!u.el){const T=x.subTree=le(At);w(null,T,h,g)}}else Ce(x,u,h,g,y,_,R)},ae=(u,h,g)=>{const v=h.component=u.component;if(ja(u,h,g))if(v.asyncDep&&!v.asyncResolved){we(v,h,g);return}else v.next=h,Ra(v.update),v.effect.dirty=!0,v.update();else h.el=u.el,v.vnode=h},Ce=(u,h,g,v,y,_,R)=>{const x=()=>{if(u.isMounted){let{next:C,bu:F,u:j,parent:W,vnode:Q}=u;{const qt=ts(u);if(qt){C&&(C.el=Q.el,we(u,C,R)),qt.asyncDep.then(()=>{u.isUnmounted||x()});return}}let ce=C,de;St(u,!1),C?(C.el=Q.el,we(u,C,R)):C=Q,F&&Mn(F),(de=C.props&&C.props.onVnodeBeforeUpdate)&&Je(de,W,C,Q),St(u,!0);const ke=Gi(u),qe=u.subTree;u.subTree=ke,k(qe,ke,d(qe.el),Ot(qe),u,y,_),C.el=ke.el,ce===null&&Pa(u,ke.el),j&&Oe(j,y),(de=C.props&&C.props.onVnodeUpdated)&&Oe(()=>Je(de,W,C,Q),y)}else{let C;const{el:F,props:j}=h,{bm:W,m:Q,parent:ce}=u,de=Zn(h);if(St(u,!1),W&&Mn(W),!de&&(C=j&&j.onVnodeBeforeMount)&&Je(C,ce,h),St(u,!0),F&&he){const ke=()=>{u.subTree=Gi(u),he(F,u.subTree,u,y,null)};de?h.type.__asyncLoader().then(()=>!u.isUnmounted&&ke()):ke()}else{const ke=u.subTree=Gi(u);k(null,ke,g,v,u,y,_),h.el=ke.el}if(Q&&Oe(Q,y),!de&&(C=j&&j.onVnodeMounted)){const ke=h;Oe(()=>Je(C,ce,ke),y)}(h.shapeFlag&256||ce&&Zn(ce.vnode)&&ce.vnode.shapeFlag&256)&&u.a&&Oe(u.a,y),u.isMounted=!0,h=g=v=null}},T=u.effect=new zi(x,Xe,()=>Zi(b),u.scope),b=u.update=()=>{T.dirty&&T.run()};b.id=u.uid,St(u,!0),b()},we=(u,h,g)=>{h.component=u;const v=u.vnode.props;u.vnode=h,u.next=null,rc(u,h.props,v,g),ac(u,h.children,g),xt(),Al(u),_t()},be=(u,h,g,v,y,_,R,x,T=!1)=>{const b=u&&u.children,C=u?u.shapeFlag:0,F=h.children,{patchFlag:j,shapeFlag:W}=h;if(j>0){if(j&128){yt(b,F,g,v,y,_,R,x,T);return}else if(j&256){Le(b,F,g,v,y,_,R,x,T);return}}W&8?(C&16&&We(b,y,_),F!==b&&f(g,F)):C&16?W&16?yt(b,F,g,v,y,_,R,x,T):We(b,y,_,!0):(C&8&&f(g,""),W&16&&X(F,g,v,y,_,R,x,T))},Le=(u,h,g,v,y,_,R,x,T)=>{u=u||jt,h=h||jt;const b=u.length,C=h.length,F=Math.min(b,C);let j;for(j=0;j<F;j++){const W=h[j]=T?pt(h[j]):Qe(h[j]);k(u[j],W,g,null,y,_,R,x,T)}b>C?We(u,y,_,!0,!1,F):X(h,g,v,y,_,R,x,T,F)},yt=(u,h,g,v,y,_,R,x,T)=>{let b=0;const C=h.length;let F=u.length-1,j=C-1;for(;b<=F&&b<=j;){const W=u[b],Q=h[b]=T?pt(h[b]):Qe(h[b]);if(hn(W,Q))k(W,Q,g,null,y,_,R,x,T);else break;b++}for(;b<=F&&b<=j;){const W=u[F],Q=h[j]=T?pt(h[j]):Qe(h[j]);if(hn(W,Q))k(W,Q,g,null,y,_,R,x,T);else break;F--,j--}if(b>F){if(b<=j){const W=j+1,Q=W<C?h[W].el:v;for(;b<=j;)k(null,h[b]=T?pt(h[b]):Qe(h[b]),g,Q,y,_,R,x,T),b++}}else if(b>j)for(;b<=F;)Fe(u[b],y,_,!0),b++;else{const W=b,Q=b,ce=new Map;for(b=Q;b<=j;b++){const Ue=h[b]=T?pt(h[b]):Qe(h[b]);Ue.key!=null&&ce.set(Ue.key,b)}let de,ke=0;const qe=j-Q+1;let qt=!1,mo=0;const En=new Array(qe);for(b=0;b<qe;b++)En[b]=0;for(b=W;b<=F;b++){const Ue=u[b];if(ke>=qe){Fe(Ue,y,_,!0);continue}let Ye;if(Ue.key!=null)Ye=ce.get(Ue.key);else for(de=Q;de<=j;de++)if(En[de-Q]===0&&hn(Ue,h[de])){Ye=de;break}Ye===void 0?Fe(Ue,y,_,!0):(En[Ye-Q]=b+1,Ye>=mo?mo=Ye:qt=!0,k(Ue,h[Ye],g,null,y,_,R,x,T),ke++)}const vo=qt?dc(En):jt;for(de=vo.length-1,b=qe-1;b>=0;b--){const Ue=Q+b,Ye=h[Ue],yo=Ue+1<C?h[Ue+1].el:v;En[b]===0?k(null,Ye,g,yo,y,_,R,x,T):qt&&(de<0||b!==vo[de]?Mt(Ye,g,yo,2):de--)}}},Mt=(u,h,g,v,y=null)=>{const{el:_,type:R,transition:x,children:T,shapeFlag:b}=u;if(b&6){Mt(u.component.subTree,h,g,v);return}if(b&128){u.suspense.move(h,g,v);return}if(b&64){R.move(u,h,g,S);return}if(R===ue){i(_,h,g);for(let F=0;F<T.length;F++)Mt(T[F],h,g,v);i(u.anchor,h,g);return}if(R===rr){U(u,h,g);return}if(v!==2&&b&1&&x)if(v===0)x.beforeEnter(_),i(_,h,g),Oe(()=>x.enter(_),y);else{const{leave:F,delayLeave:j,afterLeave:W}=x,Q=()=>i(_,h,g),ce=()=>{F(_,()=>{Q(),W&&W()})};j?j(_,Q,ce):ce()}else i(_,h,g)},Fe=(u,h,g,v=!1,y=!1)=>{const{type:_,props:R,ref:x,children:T,dynamicChildren:b,shapeFlag:C,patchFlag:F,dirs:j}=u;if(x!=null&&nr(x,null,g,u,!0),C&256){h.ctx.deactivate(u);return}const W=C&1&&j,Q=!Zn(u);let ce;if(Q&&(ce=R&&R.onVnodeBeforeUnmount)&&Je(ce,h,u),C&6)ki(u.component,g,v);else{if(C&128){u.suspense.unmount(g,v);return}W&&Rt(u,null,h,"beforeUnmount"),C&64?u.type.remove(u,h,g,y,S,v):b&&(_!==ue||F>0&&F&64)?We(b,h,g,!1,!0):(_===ue&&F&384||!y&&C&16)&&We(T,h,g),v&&bi(u)}(Q&&(ce=R&&R.onVnodeUnmounted)||W)&&Oe(()=>{ce&&Je(ce,h,u),W&&Rt(u,null,h,"unmounted")},g)},bi=u=>{const{type:h,el:g,anchor:v,transition:y}=u;if(h===ue){_r(g,v);return}if(h===rr){D(u);return}const _=()=>{r(g),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(u.shapeFlag&1&&y&&!y.persisted){const{leave:R,delayLeave:x}=y,T=()=>R(g,_);x?x(u.el,_,T):T()}else _()},_r=(u,h)=>{let g;for(;u!==h;)g=p(u),r(u),u=g;r(h)},ki=(u,h,g)=>{const{bum:v,scope:y,update:_,subTree:R,um:x}=u;v&&Mn(v),y.stop(),_&&(_.active=!1,Fe(R,u,h,g)),x&&Oe(x,h),Oe(()=>{u.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},We=(u,h,g,v=!1,y=!1,_=0)=>{for(let R=_;R<u.length;R++)Fe(u[R],h,g,v,y)},Ot=u=>u.shapeFlag&6?Ot(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el);let Wt=!1;const L=(u,h,g)=>{u==null?h._vnode&&Fe(h._vnode,null,null,!0):k(h._vnode||null,u,h,null,null,null,g),Wt||(Wt=!0,Al(),Il(),Wt=!1),h._vnode=u},S={p:k,um:Fe,m:Mt,r:bi,mt:re,mc:X,pc:be,pbc:G,n:Ot,o:e};let B,he;return{render:L,hydrate:B,createApp:tc(L,B)}}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 St({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function hc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function es(e,t,n=!1){const i=e.children,r=t.children;if(V(i)&&V(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]=pt(r[l]),o.el=s.el),n||es(s,o)),o.type===Jn&&(o.el=s.el)}}function dc(e){const t=e.slice(),n=[0];let i,r,l,s,o;const a=e.length;for(i=0;i<a;i++){const c=e[i];if(c!==0){if(r=n[n.length-1],e[r]<c){t[i]=r,n.push(i);continue}for(l=0,s=n.length-1;l<s;)o=l+s>>1,e[n[o]]<c?l=o+1:s=o;c<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 ts(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ts(t)}const pc=e=>e.__isTeleport,ue=Symbol.for("v-fgt"),Jn=Symbol.for("v-txt"),At=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),un=[];let Be=null;function A(e=!1){un.push(Be=e?null:[])}function gc(){un.pop(),Be=un[un.length-1]||null}let fn=1;function ns(e){fn+=e}function is(e){return e.dynamicChildren=fn>0?Be||jt:null,gc(),fn>0&&Be&&Be.push(e),e}function M(e,t,n,i,r,l){return is(P(e,t,n,i,r,l,!0))}function nt(e,t,n,i,r){return is(le(e,t,n,i,r,!0))}function lr(e){return e?e.__v_isVNode===!0:!1}function hn(e,t){return e.type===t.type&&e.key===t.key}const rs=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||Re(e)||ie(e)?{i:Se,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,i=0,r=null,l=e===ue?0:1,s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rs(t),ref:t&&Yn(t),scopeId:Ml,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:Se};return o?(sr(a,n),l&128&&e.normalize(a)):n&&(a.shapeFlag|=xe(n)?8:16),fn>0&&!s&&Be&&(a.patchFlag>0||l&6)&&a.patchFlag!==32&&Be.push(a),a}const le=mc;function mc(e,t=null,n=null,i=0,r=null,l=!1){if((!e||e===Ha)&&(e=At),lr(e)){const o=Nt(e,t,!0);return n&&sr(o,n),fn>0&&!l&&Be&&(o.shapeFlag&6?Be[Be.indexOf(e)]=o:Be.push(o)),o.patchFlag|=-2,o}if(Rc(e)&&(e=e.__vccOpts),t){t=vc(t);let{class:o,style:a}=t;o&&!xe(o)&&(t.class=ye(o)),ge(a)&&(_l(a)&&!V(a)&&(a=$e({},a)),t.style=Qt(a))}const s=xe(e)?1:Da(e)?128:pc(e)?64:ge(e)?4:ie(e)?2:0;return P(e,t,n,i,r,s,l,!0)}function vc(e){return e?_l(e)||Wl(e)?$e({},e):e:null}function Nt(e,t,n=!1,i=!1){const{props:r,ref:l,patchFlag:s,children:o,transition:a}=e,c=t?yc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&rs(c),ref:t&&t.ref?n&&l?V(l)?l.concat(Yn(t)):[l,Yn(t)]:Yn(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ue?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,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};return a&&i&&(f.transition=a.clone(f)),f}function it(e=" ",t=0){return le(Jn,null,e,t)}function Y(e="",t=!1){return t?(A(),nt(At,null,e)):le(At,null,e)}function Qe(e){return e==null||typeof e=="boolean"?le(At):V(e)?le(ue,null,e.slice()):typeof e=="object"?pt(e):le(Jn,null,String(e))}function pt(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(V(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&&!Wl(t)?t._ctx=Se:r===3&&Se&&(Se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ie(t)?(t={default:t,_ctx:Se},n=32):(t=String(t),i&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function yc(...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=ye([t.class,i.class]));else if(r==="style")t.style=Qt([t.style,i.style]);else if(An(r)){const l=t[r],s=i[r];s&&l!==s&&!(V(l)&&l.includes(s))&&(t[r]=l?[].concat(l,s):s)}else r!==""&&(t[r]=i[r])}return t}function Je(e,t,n,i=null){Ze(e,t,7,[n,i])}const wc=Dl();let bc=0;function kc(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||wc,l={uid:bc++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Xo(!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:lc(i,r),emitsOptions:La(i,r),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:i.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,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=Ia.bind(null,l),e.ce&&e.ce(l),l}let Ie=null;const xc=()=>Ie||Se;let Xn,or;{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)}};Xn=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),or=t("__VUE_SSR_SETTERS__",n=>ei=n)}const ar=e=>{const t=Ie;return Xn(e),e.scope.on(),()=>{e.scope.off(),Xn(t)}},ls=()=>{Ie&&Ie.scope.off(),Xn(null)};function ss(e){return e.vnode.shapeFlag&4}let ei=!1;function _c(e,t=!1){t&&or(t);const{props:n,children:i}=e.vnode,r=ss(e);ic(e,n,r,t),oc(e,i);const l=r?Cc(e,t):void 0;return t&&or(!1),l}function Cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ga);const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?Ec(e):null,l=ar(e);xt();const s=ht(i,e,0,[e.props,r]);if(_t(),l(),Jr(s)){if(s.then(ls,ls),t)return s.then(o=>{os(e,o,t)}).catch(o=>{Vn(o,e,0)});e.asyncDep=s}else os(e,s,t)}else cs(e,t)}function os(e,t,n){ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Tl(t)),cs(e,n)}let as;function cs(e,t,n){const i=e.type;if(!e.render){if(!t&&as&&!i.render){const r=i.template||Qa(e).template;if(r){const{isCustomElement:l,compilerOptions:s}=e.appContext.config,{delimiters:o,compilerOptions:a}=i,c=$e($e({isCustomElement:l,delimiters:o},s),a);i.render=as(r,c)}}e.render=i.render||Xe}}const $c={get(e,t){return Me(e,"get",""),e[t]}};function Ec(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$c),slots:e.slots,emit:e.emit,expose:t}}function ti(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Tl(ka(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in on)return on[n](e)},has(t,n){return n in t||n in on}}))}function Tc(e,t=!0){return ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Rc(e){return ie(e)&&"__vccOpts"in e}const _e=(e,t)=>xa(e,t,ei);function ne(e,t,n){const i=arguments.length;return i===2?ge(t)&&!V(t)?lr(t)?le(e,null,[t]):le(e,t):le(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&lr(n)&&(n=[n]),le(e,t,n))}const Sc="3.4.27";/**
22
22
  * @vue/runtime-dom v3.4.27
23
23
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
24
24
  * @license MIT
25
- **/const Ac="http://www.w3.org/2000/svg",Ic="http://www.w3.org/1998/Math/MathML",gt=typeof document<"u"?document:null,us=gt&&gt.createElement("template"),Lc={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"?gt.createElementNS(Ac,e):t==="mathml"?gt.createElementNS(Ic,e):gt.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.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{us.innerHTML=i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e;const o=us.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]}},Mc=Symbol("_vtc");function Oc(e,t,n){const i=e[Mc];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ni=Symbol("_vod"),fs=Symbol("_vsh"),hs={beforeMount(e,{value:t},{transition:n}){e[ni]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):dn(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),dn(e,!0),i.enter(e)):i.leave(e,()=>{dn(e,!1)}):dn(e,t))},beforeUnmount(e,{value:t}){dn(e,t)}};function dn(e,t){e.style.display=t?e[ni]:"none",e[fs]=!t}const zc=Symbol(""),jc=/(^|;)\s*display\s*:/;function Pc(e,t,n){const i=e.style,r=xe(n);let l=!1;if(n&&!r){if(t)if(xe(t))for(const s of t.split(";")){const o=s.slice(0,s.indexOf(":")).trim();n[o]==null&&ii(i,o,"")}else for(const s in t)n[s]==null&&ii(i,s,"");for(const s in n)s==="display"&&(l=!0),ii(i,s,n[s])}else if(r){if(t!==n){const s=i[zc];s&&(n+=";"+s),i.cssText=n,l=jc.test(n)}}else t&&e.removeAttribute("style");ni in e&&(e[ni]=l?i.display:"",e[fs]&&(i.display="none"))}const ds=/\s*!important$/;function ii(e,t,n){if(V(n))n.forEach(i=>ii(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Fc(e,t);ds.test(n)?e.setProperty(Ft(i),n.replace(ds,""),"important"):e[i]=n}}const ps=["Webkit","Moz","ms"],cr={};function Fc(e,t){const n=cr[t];if(n)return n;let i=Ke(t);if(i!=="filter"&&i in e)return cr[t]=i;i=Ln(i);for(let r=0;r<ps.length;r++){const l=ps[r]+i;if(l in e)return cr[t]=l}return t}const gs="http://www.w3.org/1999/xlink";function Uc(e,t,n,i,r){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(gs,t.slice(6,t.length)):e.setAttributeNS(gs,t,n);else{const l=Jo(t);n==null||l&&!nl(n)?e.removeAttribute(t):e.setAttribute(t,l?"":n)}}function Hc(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("-")){const c=o==="OPTION"?e.getAttribute("value")||"":e.value,f=n??"";(c!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=nl(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function rt(e,t,n,i){e.addEventListener(t,n,i)}function Nc(e,t,n,i){e.removeEventListener(t,n,i)}const ms=Symbol("_vei");function Dc(e,t,n,i,r=null){const l=e[ms]||(e[ms]={}),s=l[t];if(i&&s)s.value=i;else{const[o,a]=Vc(t);if(i){const c=l[t]=qc(i,r);rt(e,o,c,a)}else s&&(Nc(e,o,s,a),l[t]=void 0)}}const vs=/(?:Once|Passive|Capture)$/;function Vc(e){let t;if(vs.test(e)){t={};let i;for(;i=e.match(vs);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ft(e.slice(2)),t]}let ur=0;const Bc=Promise.resolve(),Wc=()=>ur||(Bc.then(()=>ur=0),ur=Date.now());function qc(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ze(Kc(i,n.value),t,5,[i])};return n.value=e,n.attached=Wc(),n}function Kc(e,t){if(V(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 ys=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zc=(e,t,n,i,r,l,s,o,a)=>{const c=r==="svg";t==="class"?Oc(e,i,c):t==="style"?Pc(e,n,i):An(t)?Si(t)||Dc(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gc(e,t,i,c))?Hc(e,t,i,l,s,o,a):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Uc(e,t,i,c))};function Gc(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&ys(t)&&ie(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 ys(t)&&xe(n)?!1:t in e}const mt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Mn(t,n):t};function Qc(e){e.target.composing=!0}function ws(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const De=Symbol("_assign"),fr={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[De]=mt(r);const l=i||r.props&&r.props.type==="number";rt(e,t?"change":"input",s=>{if(s.target.composing)return;let o=e.value;n&&(o=o.trim()),l&&(o=On(o)),e[De](o)}),n&&rt(e,"change",()=>{e.value=e.value.trim()}),t||(rt(e,"compositionstart",Qc),rt(e,"compositionend",ws),rt(e,"change",ws))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:r}},l){if(e[De]=mt(l),e.composing)return;const s=(r||e.type==="number")&&!/^0\d/.test(e.value)?On(e.value):e.value,o=t??"";s!==o&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===o)||(e.value=o))}},Jc={deep:!0,created(e,t,n){e[De]=mt(n),rt(e,"change",()=>{const i=e._modelValue,r=Nt(e),l=e.checked,s=e[De];if(V(i)){const o=Mi(i,r),a=o!==-1;if(l&&!a)s(i.concat(r));else if(!l&&a){const c=[...i];c.splice(o,1),s(c)}}else if(Pt(i)){const o=new Set(i);l?o.add(r):o.delete(r),s(o)}else s(xs(e,l))})},mounted:bs,beforeUpdate(e,t,n){e[De]=mt(n),bs(e,t,n)}};function bs(e,{value:t,oldValue:n},i){e._modelValue=t,V(t)?e.checked=Mi(t,i.props.value)>-1:Pt(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=bt(t,xs(e,!0)))}const Yc={created(e,{value:t},n){e.checked=bt(t,n.props.value),e[De]=mt(n),rt(e,"change",()=>{e[De](Nt(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[De]=mt(i),t!==n&&(e.checked=bt(t,i.props.value))}},Xc={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=Pt(t);rt(e,"change",()=>{const l=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?On(Nt(s)):Nt(s));e[De](e.multiple?r?new Set(l):l:l[0]),e._assigning=!0,nn(()=>{e._assigning=!1})}),e[De]=mt(i)},mounted(e,{value:t,modifiers:{number:n}}){ks(e,t)},beforeUpdate(e,t,n){e[De]=mt(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ks(e,t)}};function ks(e,t,n){const i=e.multiple,r=V(t);if(!(i&&!r&&!Pt(t))){for(let l=0,s=e.options.length;l<s;l++){const o=e.options[l],a=Nt(o);if(i)if(r){const c=typeof a;c==="string"||c==="number"?o.selected=t.some(f=>String(f)===String(a)):o.selected=Mi(t,a)>-1}else o.selected=t.has(a);else if(bt(Nt(o),t)){e.selectedIndex!==l&&(e.selectedIndex=l);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nt(e){return"_value"in e?e._value:e.value}function xs(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const eu={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 tu(e,t){switch(e){case"SELECT":return Xc;case"TEXTAREA":return fr;default:switch(t){case"checkbox":return Jc;case"radio":return Yc;default:return fr}}}function ri(e,t,n,i,r){const s=tu(e.tagName,n.props&&n.props.type)[r];s&&s(e,t,n,i)}const nu=$e({patchProp:Zc},Lc);let _s;function iu(){return _s||(_s=uc(nu))}const ru=(...e)=>{const t=iu().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=su(i);if(!r)return;const l=t._component;!ie(l)&&!l.render&&!l.template&&(l.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,lu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function lu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function su(e){return xe(e)?document.querySelector(e):e}function pn(e){return rl()?(ta(e),!0):!1}function lt(e){return typeof e=="function"?e():K(e)}const li=typeof window<"u"&&typeof document<"u",ou=Object.prototype.toString,au=e=>ou.call(e)==="[object Object]",si=()=>{};function Cs(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 $s=e=>e();function cu(e,t={}){let n,i,r=si;const l=o=>{clearTimeout(o),r(),r=si};return o=>{const a=lt(e),c=lt(t.maxWait);return n&&l(n),a<=0||c!==void 0&&c<=0?(i&&(l(i),i=null),Promise.resolve(o())):new Promise((f,d)=>{r=t.rejectOnCancel?d:f,c&&!i&&(i=setTimeout(()=>{n&&l(n),i=null,f(o())},c)),n=setTimeout(()=>{i&&l(i),i=null,f(o())},a)})}}function uu(e=$s){const t=q(!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 Es(e){return xc()}function fu(e,t=200,n={}){return Cs(cu(t,n),e)}function hu(e,t,n={}){const{eventFilter:i=$s,...r}=n;return He(e,Cs(i,t),r)}function du(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:l,pause:s,resume:o,isActive:a}=uu(i);return{stop:hu(e,t,{...r,eventFilter:l}),pause:s,resume:o,isActive:a}}function hr(e,t=!0,n){Es()?sn(e,n):t?e():nn(e)}function pu(e,t){Es()&&Ji(e,t)}function gu(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let l=null;const s=q(!1);function o(){l&&(clearInterval(l),l=null)}function a(){s.value=!1,o()}function c(){const f=lt(t);f<=0||(s.value=!0,r&&e(),o(),l=setInterval(e,f))}if(i&&li&&c(),Re(t)||typeof t=="function"){const f=He(t,()=>{s.value&&li&&c()});pn(f)}return pn(a),{isActive:s,pause:a,resume:c}}function mu(e){var t;const n=lt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const oi=li?window:void 0,Ts=li?window.document:void 0;function ai(...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,d,p,m)=>(f.addEventListener(d,p,m),()=>f.removeEventListener(d,p,m)),a=He(()=>[mu(t),lt(r)],([f,d])=>{if(s(),!f)return;const p=au(d)?{...d}:d;l.push(...n.flatMap(m=>i.map(I=>o(f,m,I,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return pn(c),c}function vu(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=oi}=t,l=q(!1),s=i?1e3/i:null;let o=0,a=null;function c(p){if(!l.value||!r)return;o||(o=p);const m=p-o;if(s&&m<s){a=r.requestAnimationFrame(c);return}o=p,e({delta:m,timestamp:p}),a=r.requestAnimationFrame(c)}function f(){!l.value&&r&&(l.value=!0,o=0,a=r.requestAnimationFrame(c))}function d(){l.value=!1,a!=null&&r&&(r.cancelAnimationFrame(a),a=null)}return n&&f(),pn(d),{isActive:Jt(l),pause:d,resume:f}}const ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ui="__vueuse_ssr_handlers__",yu=wu();function wu(){return ui in ci||(ci[ui]=ci[ui]||{}),ci[ui]}function bu(e,t){return yu[e]||t}function ku(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 xu={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()}},Rs="vueuse-storage";function Dt(e,t,n,i={}){var r;const{flush:l="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:d=oi,eventFilter:p,onError:m=G=>{console.error(G)},initOnMounted:I}=i,k=(f?_a:q)(typeof t=="function"?t():t);if(!n)try{n=bu("getDefaultStorage",()=>{var G;return(G=oi)==null?void 0:G.localStorage})()}catch(G){m(G)}if(!n)return k;const E=lt(t),w=ku(E),$=(r=i.serializer)!=null?r:xu[w],{pause:U,resume:D}=du(k,()=>O(k.value),{flush:l,deep:s,eventFilter:p});d&&o&&hr(()=>{ai(d,"storage",X),ai(d,Rs,ze),I&&X()}),I||X();function H(G,oe){d&&d.dispatchEvent(new CustomEvent(Rs,{detail:{key:e,oldValue:G,newValue:oe,storageArea:n}}))}function O(G){try{const oe=n.getItem(e);if(G==null)H(oe,null),n.removeItem(e);else{const Te=$.write(G);oe!==Te&&(n.setItem(e,Te),H(oe,Te))}}catch(oe){m(oe)}}function N(G){const oe=G?G.newValue:n.getItem(e);if(oe==null)return a&&E!=null&&n.setItem(e,$.write(E)),E;if(!G&&c){const Te=$.read(oe);return typeof c=="function"?c(Te,E):w==="object"&&!Array.isArray(Te)?{...E,...Te}:Te}else return typeof oe!="string"?oe:$.read(oe)}function X(G){if(!(G&&G.storageArea!==n)){if(G&&G.key==null){k.value=E;return}if(!(G&&G.key!==e)){U();try{(G==null?void 0:G.newValue)!==$.write(k.value)&&(k.value=N(G))}catch(oe){m(oe)}finally{G?nn(D):D()}}}}function ze(G){X(G.detail)}return k}function _u(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=q(new Date),r=()=>i.value=new Date,l=n==="requestAnimationFrame"?vu(r,{immediate:!0}):gu(r,n,{immediate:!0});return t?{now:i,...l}:i}function Cu(e,t=si,n={}){const{immediate:i=!0,manual:r=!1,type:l="text/javascript",async:s=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:f,document:d=Ts,attrs:p={}}=n,m=q(null);let I=null;const k=$=>new Promise((U,D)=>{const H=X=>(m.value=X,U(X),X);if(!d){U(!1);return}let O=!1,N=d.querySelector(`script[src="${lt(e)}"]`);N?N.hasAttribute("data-loaded")&&H(N):(N=d.createElement("script"),N.type=l,N.async=s,N.src=lt(e),f&&(N.defer=f),o&&(N.crossOrigin=o),c&&(N.noModule=c),a&&(N.referrerPolicy=a),Object.entries(p).forEach(([X,ze])=>N==null?void 0:N.setAttribute(X,ze)),O=!0),N.addEventListener("error",X=>D(X)),N.addEventListener("abort",X=>D(X)),N.addEventListener("load",()=>{N.setAttribute("data-loaded","true"),t(N),H(N)}),O&&(N=d.head.appendChild(N)),$||H(N)}),E=($=!0)=>(I||(I=k($)),I),w=()=>{if(!d)return;I=null,m.value&&(m.value=null);const $=d.querySelector(`script[src="${lt(e)}"]`);$&&d.head.removeChild($)};return i&&!r&&hr(E),r||pu(w),{scriptTag:m,load:E,unload:w}}let $u=0;function Eu(e,t={}){const n=q(!1),{document:i=Ts,immediate:r=!0,manual:l=!1,id:s=`vueuse_styletag_${++$u}`}=t,o=q(e);let a=()=>{};const c=()=>{if(!i)return;const d=i.getElementById(s)||i.createElement("style");d.isConnected||(d.id=s,t.media&&(d.media=t.media),i.head.appendChild(d)),!n.value&&(a=He(o,p=>{d.textContent=p},{immediate:!0}),n.value=!0)},f=()=>{!i||!n.value||(a(),i.head.removeChild(i.getElementById(s)),n.value=!1)};return r&&!l&&hr(c),l||pn(f),{id:s,css:o,unload:f,load:c,isLoaded:Jt(n)}}const Tu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Ru=e=>{const t=Dt("WALINE_EMOJI",{}),n=Tu(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})},Ss=(e,t="",n="",i="")=>`${t?`${t}/`:""}${n}${e}${i?`.${i}`:""}`,Su=e=>Promise.all(e.map(t=>Ot(t)?Ru(Kr(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:c}=i;n.tabs.push({name:r,icon:Ss(s,l,o,a),items:c.map(f=>{const d=`${o}${f}`;return n.map[d]=Ss(f,l,o,a),d})})}),n}),As=e=>{e.name!=="AbortError"&&console.error(e.message)},dr=e=>e instanceof HTMLElement?e:Ot(e)?document.querySelector(e):null,Au=e=>e.type.includes("image"),Is=e=>{const t=Array.from(e).find(Au);return t?t.getAsFile():null};function pr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let At=pr();function Ls(e){At=e}const Ms=/[&<>"']/,Iu=new RegExp(Ms.source,"g"),Os=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Lu=new RegExp(Os.source,"g"),Mu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zs=e=>Mu[e];function Pe(e,t){if(t){if(Ms.test(e))return e.replace(Iu,zs)}else if(Os.test(e))return e.replace(Lu,zs);return e}const Ou=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function zu(e){return e.replace(Ou,(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 ju=/(^|[^\[])\^/g;function se(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(ju,"$1"),n=n.replace(r,s),i},getRegex:()=>new RegExp(n,t)};return i}function js(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const gn={exec:()=>null};function Ps(e,t){const n=e.replace(/\|/g,(l,s,o)=>{let a=!1,c=s;for(;--c>=0&&o[c]==="\\";)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 fi(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 Pu(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 Fs(e,t,n,i){const r=t.href,l=t.title?Pe(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:Pe(s)}}function Fu(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const i=n[1];return t.split(`
25
+ **/const Ac="http://www.w3.org/2000/svg",Ic="http://www.w3.org/1998/Math/MathML",gt=typeof document<"u"?document:null,us=gt&&gt.createElement("template"),Lc={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"?gt.createElementNS(Ac,e):t==="mathml"?gt.createElementNS(Ic,e):gt.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>gt.createTextNode(e),createComment:e=>gt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gt.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{us.innerHTML=i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e;const o=us.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]}},Mc=Symbol("_vtc");function Oc(e,t,n){const i=e[Mc];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ni=Symbol("_vod"),fs=Symbol("_vsh"),hs={beforeMount(e,{value:t},{transition:n}){e[ni]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):dn(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),dn(e,!0),i.enter(e)):i.leave(e,()=>{dn(e,!1)}):dn(e,t))},beforeUnmount(e,{value:t}){dn(e,t)}};function dn(e,t){e.style.display=t?e[ni]:"none",e[fs]=!t}const zc=Symbol(""),jc=/(^|;)\s*display\s*:/;function Pc(e,t,n){const i=e.style,r=xe(n);let l=!1;if(n&&!r){if(t)if(xe(t))for(const s of t.split(";")){const o=s.slice(0,s.indexOf(":")).trim();n[o]==null&&ii(i,o,"")}else for(const s in t)n[s]==null&&ii(i,s,"");for(const s in n)s==="display"&&(l=!0),ii(i,s,n[s])}else if(r){if(t!==n){const s=i[zc];s&&(n+=";"+s),i.cssText=n,l=jc.test(n)}}else t&&e.removeAttribute("style");ni in e&&(e[ni]=l?i.display:"",e[fs]&&(i.display="none"))}const ds=/\s*!important$/;function ii(e,t,n){if(V(n))n.forEach(i=>ii(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Fc(e,t);ds.test(n)?e.setProperty(Ut(i),n.replace(ds,""),"important"):e[i]=n}}const ps=["Webkit","Moz","ms"],cr={};function Fc(e,t){const n=cr[t];if(n)return n;let i=Ke(t);if(i!=="filter"&&i in e)return cr[t]=i;i=Ln(i);for(let r=0;r<ps.length;r++){const l=ps[r]+i;if(l in e)return cr[t]=l}return t}const gs="http://www.w3.org/1999/xlink";function Uc(e,t,n,i,r){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(gs,t.slice(6,t.length)):e.setAttributeNS(gs,t,n);else{const l=Jo(t);n==null||l&&!nl(n)?e.removeAttribute(t):e.setAttribute(t,l?"":n)}}function Hc(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("-")){const c=o==="OPTION"?e.getAttribute("value")||"":e.value,f=n??"";(c!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=nl(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function rt(e,t,n,i){e.addEventListener(t,n,i)}function Nc(e,t,n,i){e.removeEventListener(t,n,i)}const ms=Symbol("_vei");function Dc(e,t,n,i,r=null){const l=e[ms]||(e[ms]={}),s=l[t];if(i&&s)s.value=i;else{const[o,a]=Vc(t);if(i){const c=l[t]=qc(i,r);rt(e,o,c,a)}else s&&(Nc(e,o,s,a),l[t]=void 0)}}const vs=/(?:Once|Passive|Capture)$/;function Vc(e){let t;if(vs.test(e)){t={};let i;for(;i=e.match(vs);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ut(e.slice(2)),t]}let ur=0;const Bc=Promise.resolve(),Wc=()=>ur||(Bc.then(()=>ur=0),ur=Date.now());function qc(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ze(Kc(i,n.value),t,5,[i])};return n.value=e,n.attached=Wc(),n}function Kc(e,t){if(V(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 ys=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zc=(e,t,n,i,r,l,s,o,a)=>{const c=r==="svg";t==="class"?Oc(e,i,c):t==="style"?Pc(e,n,i):An(t)?Si(t)||Dc(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gc(e,t,i,c))?Hc(e,t,i,l,s,o,a):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Uc(e,t,i,c))};function Gc(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&ys(t)&&ie(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 ys(t)&&xe(n)?!1:t in e}const mt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Mn(t,n):t};function Qc(e){e.target.composing=!0}function ws(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const De=Symbol("_assign"),fr={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[De]=mt(r);const l=i||r.props&&r.props.type==="number";rt(e,t?"change":"input",s=>{if(s.target.composing)return;let o=e.value;n&&(o=o.trim()),l&&(o=On(o)),e[De](o)}),n&&rt(e,"change",()=>{e.value=e.value.trim()}),t||(rt(e,"compositionstart",Qc),rt(e,"compositionend",ws),rt(e,"change",ws))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:r}},l){if(e[De]=mt(l),e.composing)return;const s=(r||e.type==="number")&&!/^0\d/.test(e.value)?On(e.value):e.value,o=t??"";s!==o&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===o)||(e.value=o))}},Jc={deep:!0,created(e,t,n){e[De]=mt(n),rt(e,"change",()=>{const i=e._modelValue,r=Dt(e),l=e.checked,s=e[De];if(V(i)){const o=Mi(i,r),a=o!==-1;if(l&&!a)s(i.concat(r));else if(!l&&a){const c=[...i];c.splice(o,1),s(c)}}else if(Ft(i)){const o=new Set(i);l?o.add(r):o.delete(r),s(o)}else s(xs(e,l))})},mounted:bs,beforeUpdate(e,t,n){e[De]=mt(n),bs(e,t,n)}};function bs(e,{value:t,oldValue:n},i){e._modelValue=t,V(t)?e.checked=Mi(t,i.props.value)>-1:Ft(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=bt(t,xs(e,!0)))}const Yc={created(e,{value:t},n){e.checked=bt(t,n.props.value),e[De]=mt(n),rt(e,"change",()=>{e[De](Dt(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[De]=mt(i),t!==n&&(e.checked=bt(t,i.props.value))}},Xc={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=Ft(t);rt(e,"change",()=>{const l=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?On(Dt(s)):Dt(s));e[De](e.multiple?r?new Set(l):l:l[0]),e._assigning=!0,Et(()=>{e._assigning=!1})}),e[De]=mt(i)},mounted(e,{value:t,modifiers:{number:n}}){ks(e,t)},beforeUpdate(e,t,n){e[De]=mt(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||ks(e,t)}};function ks(e,t,n){const i=e.multiple,r=V(t);if(!(i&&!r&&!Ft(t))){for(let l=0,s=e.options.length;l<s;l++){const o=e.options[l],a=Dt(o);if(i)if(r){const c=typeof a;c==="string"||c==="number"?o.selected=t.some(f=>String(f)===String(a)):o.selected=Mi(t,a)>-1}else o.selected=t.has(a);else if(bt(Dt(o),t)){e.selectedIndex!==l&&(e.selectedIndex=l);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Dt(e){return"_value"in e?e._value:e.value}function xs(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const eu={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 tu(e,t){switch(e){case"SELECT":return Xc;case"TEXTAREA":return fr;default:switch(t){case"checkbox":return Jc;case"radio":return Yc;default:return fr}}}function ri(e,t,n,i,r){const s=tu(e.tagName,n.props&&n.props.type)[r];s&&s(e,t,n,i)}const nu=$e({patchProp:Zc},Lc);let _s;function iu(){return _s||(_s=uc(nu))}const ru=(...e)=>{const t=iu().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=su(i);if(!r)return;const l=t._component;!ie(l)&&!l.render&&!l.template&&(l.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,lu(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};function lu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function su(e){return xe(e)?document.querySelector(e):e}function pn(e){return rl()?(ta(e),!0):!1}function lt(e){return typeof e=="function"?e():K(e)}const li=typeof window<"u"&&typeof document<"u",ou=Object.prototype.toString,au=e=>ou.call(e)==="[object Object]",si=()=>{};function Cs(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 $s=e=>e();function cu(e,t={}){let n,i,r=si;const l=o=>{clearTimeout(o),r(),r=si};return o=>{const a=lt(e),c=lt(t.maxWait);return n&&l(n),a<=0||c!==void 0&&c<=0?(i&&(l(i),i=null),Promise.resolve(o())):new Promise((f,d)=>{r=t.rejectOnCancel?d:f,c&&!i&&(i=setTimeout(()=>{n&&l(n),i=null,f(o())},c)),n=setTimeout(()=>{i&&l(i),i=null,f(o())},a)})}}function uu(e=$s){const t=q(!0);function n(){t.value=!1}function i(){t.value=!0}const r=(...l)=>{t.value&&e(...l)};return{isActive:Yt(t),pause:n,resume:i,eventFilter:r}}function Es(e){return xc()}function fu(e,t=200,n={}){return Cs(cu(t,n),e)}function hu(e,t,n={}){const{eventFilter:i=$s,...r}=n;return He(e,Cs(i,t),r)}function du(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:l,pause:s,resume:o,isActive:a}=uu(i);return{stop:hu(e,t,{...r,eventFilter:l}),pause:s,resume:o,isActive:a}}function hr(e,t=!0,n){Es()?sn(e,n):t?e():Et(e)}function pu(e,t){Es()&&Ji(e,t)}function gu(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let l=null;const s=q(!1);function o(){l&&(clearInterval(l),l=null)}function a(){s.value=!1,o()}function c(){const f=lt(t);f<=0||(s.value=!0,r&&e(),o(),l=setInterval(e,f))}if(i&&li&&c(),Re(t)||typeof t=="function"){const f=He(t,()=>{s.value&&li&&c()});pn(f)}return pn(a),{isActive:s,pause:a,resume:c}}function mu(e){var t;const n=lt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const oi=li?window:void 0,Ts=li?window.document:void 0;function ai(...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,d,p,m)=>(f.addEventListener(d,p,m),()=>f.removeEventListener(d,p,m)),a=He(()=>[mu(t),lt(r)],([f,d])=>{if(s(),!f)return;const p=au(d)?{...d}:d;l.push(...n.flatMap(m=>i.map(I=>o(f,m,I,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),s()};return pn(c),c}function vu(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=oi}=t,l=q(!1),s=i?1e3/i:null;let o=0,a=null;function c(p){if(!l.value||!r)return;o||(o=p);const m=p-o;if(s&&m<s){a=r.requestAnimationFrame(c);return}o=p,e({delta:m,timestamp:p}),a=r.requestAnimationFrame(c)}function f(){!l.value&&r&&(l.value=!0,o=0,a=r.requestAnimationFrame(c))}function d(){l.value=!1,a!=null&&r&&(r.cancelAnimationFrame(a),a=null)}return n&&f(),pn(d),{isActive:Yt(l),pause:d,resume:f}}const ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ui="__vueuse_ssr_handlers__",yu=wu();function wu(){return ui in ci||(ci[ui]=ci[ui]||{}),ci[ui]}function bu(e,t){return yu[e]||t}function ku(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 xu={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()}},Rs="vueuse-storage";function Vt(e,t,n,i={}){var r;const{flush:l="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:d=oi,eventFilter:p,onError:m=G=>{console.error(G)},initOnMounted:I}=i,k=(f?_a:q)(typeof t=="function"?t():t);if(!n)try{n=bu("getDefaultStorage",()=>{var G;return(G=oi)==null?void 0:G.localStorage})()}catch(G){m(G)}if(!n)return k;const E=lt(t),w=ku(E),$=(r=i.serializer)!=null?r:xu[w],{pause:U,resume:D}=du(k,()=>O(k.value),{flush:l,deep:s,eventFilter:p});d&&o&&hr(()=>{ai(d,"storage",X),ai(d,Rs,ze),I&&X()}),I||X();function H(G,oe){d&&d.dispatchEvent(new CustomEvent(Rs,{detail:{key:e,oldValue:G,newValue:oe,storageArea:n}}))}function O(G){try{const oe=n.getItem(e);if(G==null)H(oe,null),n.removeItem(e);else{const Te=$.write(G);oe!==Te&&(n.setItem(e,Te),H(oe,Te))}}catch(oe){m(oe)}}function N(G){const oe=G?G.newValue:n.getItem(e);if(oe==null)return a&&E!=null&&n.setItem(e,$.write(E)),E;if(!G&&c){const Te=$.read(oe);return typeof c=="function"?c(Te,E):w==="object"&&!Array.isArray(Te)?{...E,...Te}:Te}else return typeof oe!="string"?oe:$.read(oe)}function X(G){if(!(G&&G.storageArea!==n)){if(G&&G.key==null){k.value=E;return}if(!(G&&G.key!==e)){U();try{(G==null?void 0:G.newValue)!==$.write(k.value)&&(k.value=N(G))}catch(oe){m(oe)}finally{G?Et(D):D()}}}}function ze(G){X(G.detail)}return k}function _u(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=q(new Date),r=()=>i.value=new Date,l=n==="requestAnimationFrame"?vu(r,{immediate:!0}):gu(r,n,{immediate:!0});return t?{now:i,...l}:i}function Cu(e,t=si,n={}){const{immediate:i=!0,manual:r=!1,type:l="text/javascript",async:s=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:f,document:d=Ts,attrs:p={}}=n,m=q(null);let I=null;const k=$=>new Promise((U,D)=>{const H=X=>(m.value=X,U(X),X);if(!d){U(!1);return}let O=!1,N=d.querySelector(`script[src="${lt(e)}"]`);N?N.hasAttribute("data-loaded")&&H(N):(N=d.createElement("script"),N.type=l,N.async=s,N.src=lt(e),f&&(N.defer=f),o&&(N.crossOrigin=o),c&&(N.noModule=c),a&&(N.referrerPolicy=a),Object.entries(p).forEach(([X,ze])=>N==null?void 0:N.setAttribute(X,ze)),O=!0),N.addEventListener("error",X=>D(X)),N.addEventListener("abort",X=>D(X)),N.addEventListener("load",()=>{N.setAttribute("data-loaded","true"),t(N),H(N)}),O&&(N=d.head.appendChild(N)),$||H(N)}),E=($=!0)=>(I||(I=k($)),I),w=()=>{if(!d)return;I=null,m.value&&(m.value=null);const $=d.querySelector(`script[src="${lt(e)}"]`);$&&d.head.removeChild($)};return i&&!r&&hr(E),r||pu(w),{scriptTag:m,load:E,unload:w}}let $u=0;function Eu(e,t={}){const n=q(!1),{document:i=Ts,immediate:r=!0,manual:l=!1,id:s=`vueuse_styletag_${++$u}`}=t,o=q(e);let a=()=>{};const c=()=>{if(!i)return;const d=i.getElementById(s)||i.createElement("style");d.isConnected||(d.id=s,t.media&&(d.media=t.media),i.head.appendChild(d)),!n.value&&(a=He(o,p=>{d.textContent=p},{immediate:!0}),n.value=!0)},f=()=>{!i||!n.value||(a(),i.head.removeChild(i.getElementById(s)),n.value=!1)};return r&&!l&&hr(c),l||pn(f),{id:s,css:o,unload:f,load:c,isLoaded:Yt(n)}}const Tu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Ru=e=>{const t=Vt("WALINE_EMOJI",{}),n=Tu(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})},Ss=(e,t="",n="",i="")=>`${t?`${t}/`:""}${n}${e}${i?`.${i}`:""}`,Su=e=>Promise.all(e.map(t=>zt(t)?Ru(Kr(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:c}=i;n.tabs.push({name:r,icon:Ss(s,l,o,a),items:c.map(f=>{const d=`${o}${f}`;return n.map[d]=Ss(f,l,o,a),d})})}),n}),As=e=>{e.name!=="AbortError"&&console.error(e.message)},dr=e=>e instanceof HTMLElement?e:zt(e)?document.querySelector(e):null,Au=e=>e.type.includes("image"),Is=e=>{const t=Array.from(e).find(Au);return t?t.getAsFile():null};function pr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let It=pr();function Ls(e){It=e}const Ms=/[&<>"']/,Iu=new RegExp(Ms.source,"g"),Os=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Lu=new RegExp(Os.source,"g"),Mu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zs=e=>Mu[e];function Pe(e,t){if(t){if(Ms.test(e))return e.replace(Iu,zs)}else if(Os.test(e))return e.replace(Lu,zs);return e}const Ou=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function zu(e){return e.replace(Ou,(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 ju=/(^|[^\[])\^/g;function se(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(ju,"$1"),n=n.replace(r,s),i},getRegex:()=>new RegExp(n,t)};return i}function js(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const gn={exec:()=>null};function Ps(e,t){const n=e.replace(/\|/g,(l,s,o)=>{let a=!1,c=s;for(;--c>=0&&o[c]==="\\";)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 fi(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 Pu(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 Fs(e,t,n,i){const r=t.href,l=t.title?Pe(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:Pe(s)}}function Fu(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const i=n[1];return t.split(`
26
26
  `).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(`
27
- `)}class hi{options;rules;lexer;constructor(t){this.options=t||At}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:fi(i,`
27
+ `)}class hi{options;rules;lexer;constructor(t){this.options=t||It}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:fi(i,`
28
28
  `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const i=n[0],r=Fu(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=fi(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){let i=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
29
29
  $1`);i=fi(i.replace(/^ *>[ \t]?/gm,""),`
30
30
  `);const 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="",c=!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 d=n[2].split(`
@@ -37,7 +37,7 @@ var Hd=Object.defineProperty;var Nd=(Z,pe,ve)=>pe in Z?Hd(Z,pe,{enumerable:!0,co
37
37
  `,t=t.substring(H.length+1),d=p.slice(m)}}l.loose||(c?l.loose=!0:/\n *\n *$/.test(o)&&(c=!0));let k=null,E;this.options.gfm&&(k=/^\[[ xX]\] /.exec(a),k&&(E=k[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),l.items.push({type:"list_item",raw:o,task:!!k,checked:E,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 d=l.items[f].tokens.filter(m=>m.type==="space"),p=d.length>0&&d.some(m=>/\n.*\n/.test(m.raw));l.loose=p}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=Ps(n[1]),r=n[2].replace(/^\||\| *$/g,"").split("|"),l=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
38
38
  `):[],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(Ps(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)===`
39
39
  `?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:Pe(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=fi(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{const s=Pu(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)),Fs(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 Fs(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,c=s,f=0;const d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+s);(r=d.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]){c+=a;continue}else if((r[5]||r[6])&&s%3&&!((s+a)%3)){f+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+f);const p=[...r[0]][0].length,m=t.slice(0,s+r.index+p+a);if(Math.min(s,a)%2){const k=m.slice(1,-1);return{type:"em",raw:m,text:k,tokens:this.lexer.inlineTokens(k)}}const I=m.slice(2,-2);return{type:"strong",raw:m,text:I,tokens:this.lexer.inlineTokens(I)}}}}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=Pe(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=Pe(n[1]),r="mailto:"+i):(i=Pe(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=Pe(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=Pe(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=Pe(n[0]),{type:"text",raw:n[0],text:i}}}}const Uu=/^(?: *(?:\n|$))+/,Hu=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Nu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,mn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Du=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Us=/(?:[*+-]|\d{1,9}[.)])/,Hs=se(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Us).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),gr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Vu=/^[^\n]+/,mr=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Bu=se(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",mr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Wu=se(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Us).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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,qu=se("^ {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",vr).replace("tag",di).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ns=se(gr).replace("hr",mn).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(),yr={blockquote:se(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ns).getRegex(),code:Hu,def:Bu,fences:Nu,heading:Du,hr:mn,html:qu,lheading:Hs,list:Wu,newline:Uu,paragraph:Ns,table:gn,text:Vu},Ds=se("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",mn).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(),Ku={...yr,table:Ds,paragraph:se(gr).replace("hr",mn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ds).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()},Zu={...yr,html:se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vr).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:gn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:se(gr).replace("hr",mn).replace("heading",` *#{1,6} *[^
40
- ]`).replace("lheading",Hs).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Vs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Gu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bs=/^( {2,}|\\)\n(?!\s*$)/,Qu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,vn="\\p{P}\\p{S}",Ju=se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,vn).getRegex(),Yu=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Xu=se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,vn).getRegex(),ef=se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,vn).getRegex(),tf=se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,vn).getRegex(),nf=se(/\\([punct])/,"gu").replace(/punct/g,vn).getRegex(),rf=se(/^<(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(),lf=se(vr).replace("(?:-->|$)","-->").getRegex(),sf=se("^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",lf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),pi=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,of=se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",pi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ws=se(/^!?\[(label)\]\[(ref)\]/).replace("label",pi).replace("ref",mr).getRegex(),qs=se(/^!?\[(ref)\](?:\[\])?/).replace("ref",mr).getRegex(),af=se("reflink|nolink(?!\\()","g").replace("reflink",Ws).replace("nolink",qs).getRegex(),wr={_backpedal:gn,anyPunctuation:nf,autolink:rf,blockSkip:Yu,br:Bs,code:Gu,del:gn,emStrongLDelim:Xu,emStrongRDelimAst:ef,emStrongRDelimUnd:tf,escape:Vs,link:of,nolink:qs,punctuation:Ju,reflink:Ws,reflinkSearch:af,tag:sf,text:Qu,url:gn},cf={...wr,link:se(/^!?\[(label)\]\((.*?)\)/).replace("label",pi).getRegex(),reflink:se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pi).getRegex()},br={...wr,escape:se(Vs).replace("])","~|])").getRegex(),url:se(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},uf={...br,br:se(Bs).replace("{2,}","*").getRegex(),text:se(br.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},gi={normal:yr,gfm:Ku,pedantic:Zu},yn={normal:wr,gfm:br,breaks:uf,pedantic:cf};class st{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||At,this.options.tokenizer=this.options.tokenizer||new hi,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:gi.normal,inline:yn.normal};this.options.pedantic?(n.block=gi.pedantic,n.inline=yn.pedantic):this.options.gfm&&(n.block=gi.gfm,this.options.breaks?n.inline=yn.breaks:n.inline=yn.gfm),this.tokenizer.rules=n}static get rules(){return{block:gi,inline:yn}}static lex(t,n){return new st(n).lex(t)}static lexInline(t,n){return new st(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
40
+ ]`).replace("lheading",Hs).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Vs=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Gu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bs=/^( {2,}|\\)\n(?!\s*$)/,Qu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,vn="\\p{P}\\p{S}",Ju=se(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,vn).getRegex(),Yu=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Xu=se(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,vn).getRegex(),ef=se("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,vn).getRegex(),tf=se("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,vn).getRegex(),nf=se(/\\([punct])/,"gu").replace(/punct/g,vn).getRegex(),rf=se(/^<(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(),lf=se(vr).replace("(?:-->|$)","-->").getRegex(),sf=se("^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",lf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),pi=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,of=se(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",pi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ws=se(/^!?\[(label)\]\[(ref)\]/).replace("label",pi).replace("ref",mr).getRegex(),qs=se(/^!?\[(ref)\](?:\[\])?/).replace("ref",mr).getRegex(),af=se("reflink|nolink(?!\\()","g").replace("reflink",Ws).replace("nolink",qs).getRegex(),wr={_backpedal:gn,anyPunctuation:nf,autolink:rf,blockSkip:Yu,br:Bs,code:Gu,del:gn,emStrongLDelim:Xu,emStrongRDelimAst:ef,emStrongRDelimUnd:tf,escape:Vs,link:of,nolink:qs,punctuation:Ju,reflink:Ws,reflinkSearch:af,tag:sf,text:Qu,url:gn},cf={...wr,link:se(/^!?\[(label)\]\((.*?)\)/).replace("label",pi).getRegex(),reflink:se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pi).getRegex()},br={...wr,escape:se(Vs).replace("])","~|])").getRegex(),url:se(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},uf={...br,br:se(Bs).replace("{2,}","*").getRegex(),text:se(br.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},gi={normal:yr,gfm:Ku,pedantic:Zu},yn={normal:wr,gfm:br,breaks:uf,pedantic:cf};class st{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||It,this.options.tokenizer=this.options.tokenizer||new hi,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:gi.normal,inline:yn.normal};this.options.pedantic?(n.block=gi.pedantic,n.inline=yn.pedantic):this.options.gfm&&(n.block=gi.gfm,this.options.breaks?n.inline=yn.breaks:n.inline=yn.gfm),this.tokenizer.rules=n}static get rules(){return{block:gi,inline:yn}}static lex(t,n){return new st(n).lex(t)}static lexInline(t,n){return new st(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
41
41
  `),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,c)=>a+" ".repeat(c.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+=`
42
42
  `: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+=`
43
43
  `+i.raw,r.text+=`
@@ -47,7 +47,7 @@ var Hd=Object.defineProperty;var Nd=(Z,pe,ve)=>pe in Z?Hd(Z,pe,{enumerable:!0,co
47
47
  `+i.raw,r.text+=`
48
48
  `+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+=`
49
49
  `+i.raw,r.text+=`
50
- `+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,c;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||(c=""),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,c)){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 d=t.slice(1);let p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},d),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),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)!=="_"&&(c=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 mi{options;constructor(t){this.options=t||At}code(t,n,i){var l;const r=(l=(n||"").match(/^\S*/))==null?void 0:l[0];return t=t.replace(/\n$/,"")+`
50
+ `+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,c;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||(c=""),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,c)){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 d=t.slice(1);let p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},d),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),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)!=="_"&&(c=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 mi{options;constructor(t){this.options=t||It}code(t,n,i){var l;const r=(l=(n||"").match(/^\S*/))==null?void 0:l[0];return t=t.replace(/\n$/,"")+`
51
51
  `,r?'<pre><code class="language-'+Pe(r)+'">'+(i?t:Pe(t,!0))+`</code></pre>
52
52
  `:"<pre><code>"+(i?t:Pe(t,!0))+`</code></pre>
53
53
  `}blockquote(t){return`<blockquote>
@@ -65,9 +65,9 @@ ${t}</blockquote>
65
65
  `}tablerow(t){return`<tr>
66
66
  ${t}</tr>
67
67
  `}tablecell(t,n){const i=n.header?"th":"td";return(n.align?`<${i} align="${n.align}">`:`<${i}>`)+t+`</${i}>
68
- `}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=js(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=js(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 kr{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 ot{options;renderer;textRenderer;constructor(t){this.options=t||At,this.options.renderer=this.options.renderer||new mi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new kr}static parse(t,n){return new ot(n).parse(t)}static parseInline(t,n){return new ot(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,zu(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 c="";for(let f=0;f<s.rows.length;f++){const d=s.rows[f];a="";for(let p=0;p<d.length;p++)a+=this.renderer.tablecell(this.parseInline(d[p].tokens),{header:!1,align:s.align[p]});c+=this.renderer.tablerow(a)}i+=this.renderer.table(o,c);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,c=s.loose;let f="";for(let d=0;d<s.items.length;d++){const p=s.items[d],m=p.checked,I=p.task;let k="";if(p.task){const E=this.renderer.checkbox(!!m);c?p.tokens.length>0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=E+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=E+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:E+" "}):k+=E+" "}k+=this.parse(p.tokens,c),f+=this.renderer.listitem(k,I,!!m)}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+=`
69
- `+(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 wn{options;constructor(t){this.options=t||At}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}Ve(wn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Ks{constructor(...t){Cr(this,$n);Cr(this,wi);Ve(this,"defaults",pr());Ve(this,"options",this.setOptions);Ve(this,"parse",xi(this,$n,$r).call(this,st.lex,ot.parse));Ve(this,"parseInline",xi(this,$n,$r).call(this,st.lexInline,ot.parseInline));Ve(this,"Parser",ot);Ve(this,"Renderer",mi);Ve(this,"TextRenderer",kr);Ve(this,"Lexer",st);Ve(this,"Tokenizer",hi);Ve(this,"Hooks",wn);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 c of a)i=i.concat(this.walkTokens(c.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=>{const c=o[a].flat(1/0);i=i.concat(this.walkTokens(c,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 mi(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],c=l[o];l[o]=(...f)=>{let d=a.apply(l,f);return d===!1&&(d=c.apply(l,f)),d||""}}r.renderer=l}if(i.tokenizer){const l=this.defaults.tokenizer||new hi(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],c=l[o];l[o]=(...f)=>{let d=a.apply(l,f);return d===!1&&(d=c.apply(l,f)),d}}r.tokenizer=l}if(i.hooks){const l=this.defaults.hooks||new wn;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],c=l[o];wn.passThroughHooks.has(s)?l[o]=f=>{if(this.defaults.async)return Promise.resolve(a.call(l,f)).then(p=>c.call(l,p));const d=a.call(l,f);return c.call(l,d)}:l[o]=(...f)=>{let d=a.apply(l,f);return d===!1&&(d=c.apply(l,f)),d}}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 st.lex(t,n??this.defaults)}parser(t,n){return ot.parse(t,n??this.defaults)}}$n=new WeakSet,$r=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=xi(this,wi,wo).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 c=n(a,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(a){return o(a)}}},wi=new WeakSet,wo=function(t,n){return i=>{if(i.message+=`
70
- Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+Pe(i.message+"",!0)+"</pre>";return n?Promise.resolve(r):r}if(n)return Promise.reject(i);throw i}};const It=new Ks;function me(e,t){return It.parse(e,t)}me.options=me.setOptions=function(e){return It.setOptions(e),me.defaults=It.defaults,Ls(me.defaults),me},me.getDefaults=pr,me.defaults=At,me.use=function(...e){return It.use(...e),me.defaults=It.defaults,Ls(me.defaults),me},me.walkTokens=function(e,t){return It.walkTokens(e,t)},me.parseInline=It.parseInline,me.Parser=ot,me.parser=ot.parse,me.Renderer=mi,me.TextRenderer=kr,me.Lexer=st,me.lexer=st.lex,me.Tokenizer=hi,me.Hooks=wn,me.parse=me;function ff(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=Zs(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Gs(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.");Gs(t)(i)},renderer:{code(t,n,i){const r=Zs(n),l=r?` class="${e.langPrefix}${Xs(r)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${i?t:Xs(t,!0)}
71
- </code></pre>`}}}}function Zs(e){return(e||"").match(/\S*/)[0]}function Gs(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Qs=/[&<>"']/,hf=new RegExp(Qs.source,"g"),Js=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,df=new RegExp(Js.source,"g"),pf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ys=e=>pf[e];function Xs(e,t){if(t){if(Qs.test(e))return e.replace(hf,Ys)}else if(Js.test(e))return e.replace(df,Ys);return e}const gf=/\$.*?\$/,mf=/^\$(.*?)\$/,vf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,yf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=vf.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(gf);return n!==-1?n:t.length},tokenizer(t){const n=mf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],eo=(e="",t={})=>e.replace(/:(.+?):/g,(n,i)=>t[i]?`<img class="wl-emoji" src="${t[i]}" alt="${i}">`:n),wf=(e,{emojiMap:t,highlighter:n,texRenderer:i})=>{const r=new Ks;if(r.setOptions({breaks:!0}),n&&r.use(ff({highlight:n})),i){const l=yf(i);r.use({extensions:l})}return r.parse(eo(e,t))},xr=e=>e.dataset.path??null,bf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),kf=e=>e.match(/[\u4E00-\u9FD5]/gu),xf=e=>{var t,n;return(((t=bf(e))==null?void 0:t.reduce((i,r)=>i+(["",",","."].includes(r.trim())?0:r.trim().split(/\s+/u).length),0))??0)+(((n=kf(e))==null?void 0:n.length)??0)},_f=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},to=({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&&Sr({serverURL:Sn(e),paths:Array.from(l).map(s=>qr(xr(s)??t)),lang:i,signal:r.signal}).then(s=>{l.forEach((o,a)=>{o.innerText=s[a].toString()})}).catch(As),r.abort.bind(r)},no=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("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"}),ne("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"})]),Cf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),$f=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),Ef=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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"}),ne("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"})]),Tf=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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"})]),Rf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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"}),ne("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"})]),Sf=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("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"})),Af=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),If=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),Lf=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("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"})),bn=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Mf=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("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"}),ne("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"})]),Of=()=>Dt("WALINE_USER_META",{nick:"",mail:"",link:""}),zf=()=>Dt("WALINE_COMMENT_BOX_EDITOR",""),jf="WALINE_LIKE";let io=null;const ro=()=>io??(io=Dt(jf,[])),Pf="WALINE_REACTION";let lo=null;const Ff=()=>lo??(lo=Dt(Pf,{}));var vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},so={},Vt={},kn={},Uf=vi&&vi.__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{c(i.next(f))}catch(d){s(d)}}function a(f){try{c(i.throw(f))}catch(d){s(d)}}function c(f){f.done?l(f.value):r(f.value).then(o,a)}c((i=i.apply(e,t||[])).next())})},Hf=vi&&vi.__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(c){return function(f){return a([c,f])}}function a(c){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,r&&(l=c[0]&2?r.return:c[0]?r.throw||((l=r.return)&&l.call(r),0):r.next)&&!(l=l.call(r,c[1])).done)return l;switch(r=0,l&&(c=[c[0]&2,l.value]),c[0]){case 0:case 1:l=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!l||c[1]>l[0]&&c[1]<l[3])){n.label=c[1];break}if(c[0]===6&&n.label<l[1]){n.label=l[1],l=c;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(c);break}l[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],r=0}finally{i=l=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(kn,"__esModule",{value:!0}),kn.ReCaptchaInstance=void 0;var Nf=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 Uf(this,void 0,void 0,function(){return Hf(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}();kn.ReCaptchaInstance=Nf,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.getInstance=Vt.load=void 0;var Df=kn,vt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(vt||(vt={}));var oo=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()===vt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===vt.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(vt.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(vt.LOADED);var s=i.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new Df.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?vt.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 c=this.buildQueryString(r);return o.src=a+"?render=explicit"+c,new Promise(function(f,d){o.addEventListener("load",s.waitForScriptToLoad(function(){f(o)},i),!1),o.onerror=function(p){e.setLoadingState(vt.NOT_LOADED),d(p)},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=oo.load,Vt.getInstance=oo.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=kn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(so);const ao={},Vf=e=>{const t=ao[e]??(ao[e]=so.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(i=>i.execute(n))}},Bf=e=>({execute:async t=>{const{load:n}=Cu("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})})})}}),Wf="WALINE_USER";let co=null;const yi=()=>co??(co=Dt(Wf,{})),qf={key:0,class:"wl-reaction"},Kf=["textContent"],Zf={class:"wl-reaction-list"},Gf=["onClick"],Qf={class:"wl-reaction-img"},Jf=["src","alt"],Yf=["textContent"],Xf=["textContent"];var eh=ln({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Ff(),i=Qn("config"),r=q(-1),l=q([]),s=_e(()=>i.value.locale),o=_e(()=>i.value.reaction.length>0),a=_e(()=>{const{reaction:p,path:m}=i.value;return p.map((I,k)=>({icon:I,desc:s.value[`reaction${k}`],active:n.value[m]===k}))});let c;const f=async()=>{if(!o.value)return;const{serverURL:p,lang:m,path:I,reaction:k}=i.value,E=new AbortController;c=E.abort.bind(E);const w=await _i({serverURL:p,lang:m,paths:[I],type:k.map(($,U)=>`reaction${U}`),signal:E.signal});l.value=k.map(($,U)=>w[0][`reaction${U}`])},d=async p=>{if(r.value===-1){const{serverURL:m,lang:I,path:k}=i.value,E=n.value[k];r.value=p,E!==void 0&&(await Tn({serverURL:m,lang:I,path:k,type:`reaction${E}`,action:"desc"}),l.value[E]=Math.max(l.value[E]-1,0)),E!==p&&(await Tn({serverURL:m,lang:I,path:k,type:`reaction${p}`}),l.value[p]=(l.value[p]||0)+1),E===p?delete n.value[k]:n.value[k]=p,r.value=-1}};return sn(()=>{He(()=>[i.value.serverURL,i.value.path],()=>{f()},{immediate:!0})}),Ji(()=>c==null?void 0:c()),(p,m)=>a.value.length?(A(),M("div",qf,[P("div",{class:"wl-reaction-title",textContent:ee(s.value.reactionTitle)},null,8,Kf),P("ul",Zf,[(A(!0),M(ue,null,Ne(a.value,({active:I,icon:k,desc:E},w)=>(A(),M("li",{key:w,class:ye(["wl-reaction-item",{active:I}]),onClick:$=>d(w)},[P("div",Qf,[P("img",{src:k,alt:E},null,8,Jf),r.value===w?(A(),nt(K(bn),{key:0,class:"wl-reaction-loading"})):(A(),M("div",{key:1,class:"wl-reaction-votes",textContent:ee(l.value[w]||0)},null,8,Yf))]),P("div",{class:"wl-reaction-text",textContent:ee(E)},null,8,Xf)],10,Gf))),128))])])):Y("v-if",!0)}}),xn=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},th=xn(eh,[["__file","ArticleReaction.vue"]]),_n=new Map;function nh(e){var t=_n.get(e);t&&t.destroy()}function ih(e){var t=_n.get(e);t&&t.update()}var Cn=null;typeof window>"u"?((Cn=function(e){return e}).destroy=function(e){return e},Cn.update=function(e){return e}):((Cn=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"&&!_n.has(i)){var r,l=null,s=window.getComputedStyle(i),o=(r=i.value,function(){c({testForHeightReduction:r===""||!i.value.startsWith(r),restoreTextAlign:null}),r=i.value}),a=(function(d){i.removeEventListener("autosize:destroy",a),i.removeEventListener("autosize:update",f),i.removeEventListener("input",o),window.removeEventListener("resize",f),Object.keys(d).forEach(function(p){return i.style[p]=d[p]}),_n.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",_n.set(i,{destroy:a,update:f}),f()}function c(d){var p,m,I=d.restoreTextAlign,k=I===void 0?null:I,E=d.testForHeightReduction,w=E===void 0||E,$=s.overflowY;if(i.scrollHeight!==0&&(s.resize==="vertical"?i.style.resize="none":s.resize==="both"&&(i.style.resize="horizontal"),w&&(p=function(D){for(var H=[];D&&D.parentNode&&D.parentNode instanceof Element;)D.parentNode.scrollTop&&H.push([D.parentNode,D.parentNode.scrollTop]),D=D.parentNode;return function(){return H.forEach(function(O){var N=O[0],X=O[1];N.style.scrollBehavior="auto",N.scrollTop=X,N.style.scrollBehavior=null})}}(i),i.style.height=""),m=s.boxSizing==="content-box"?i.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):i.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&m>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(i.style.overflow="scroll"),m=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(i.style.overflow="hidden"),i.style.height=m+"px",k&&(i.style.textAlign=k),p&&p(),l!==m&&(i.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),l=m),$!==s.overflow&&!k)){var U=s.textAlign;s.overflow==="hidden"&&(i.style.textAlign=U==="start"?"end":"start"),c({restoreTextAlign:U,testForHeightReduction:!0})}}function f(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],nh),e},Cn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ih),e});var uo=Cn;const rh=["data-index"],lh=["src","title","onClick"];var sh=ln({__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=q(null),l=q({}),s=q([]),o=()=>{const p=Math.floor((r.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return p>0?p:1},a=p=>new Array(p).fill(null).map(()=>[]),c=async p=>{var m;if(p>=n.items.length)return;await nn();const I=Array.from(((m=r.value)==null?void 0:m.children)??[]).reduce((k,E)=>E.getBoundingClientRect().height<k.getBoundingClientRect().height?E:k);s.value[Number(I.dataset.index)].push(p),await c(p+1)},f=async(p=!1)=>{if(s.value.length===o()&&!p)return;s.value=a(o());const m=window.scrollY;await c(0),window.scrollTo({top:m})},d=p=>{l.value[p.target.src]=!0};return sn(()=>{f(!0),i=new ResizeObserver(()=>{f()}),i.observe(r.value),He(()=>[n.items],()=>{l.value={},f(!0)}),He(()=>[n.columnWidth,n.gap],()=>{f()})}),Za(()=>i.unobserve(r.value)),(p,m)=>(A(),M("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:Gt({gap:`${p.gap}px`})},[(A(!0),M(ue,null,Ne(s.value,(I,k)=>(A(),M("div",{key:k,class:"wl-gallery-column","data-index":k,style:Gt({gap:`${p.gap}px`})},[(A(!0),M(ue,null,Ne(I,E=>(A(),M(ue,{key:E},[l.value[p.items[E].src]?Y("v-if",!0):(A(),nt(K(bn),{key:0,size:36,style:{margin:"20px auto"}})),P("img",{class:"wl-gallery-item",src:p.items[E].src,title:p.items[E].title,loading:"lazy",onLoad:d,onClick:w=>p.$emit("insert",`![](${p.items[E].src})`)},null,40,lh)],64))),128))],12,rh))),128))],4))}}),oh=xn(sh,[["__file","ImageWall.vue"]]);const ah={class:"wl-comment"},ch={key:0,class:"wl-login-info"},uh={class:"wl-avatar"},fh=["title"],hh=["title"],dh=["src"],ph=["title","textContent"],gh={class:"wl-panel"},mh=["for","textContent"],vh=["id","onUpdate:modelValue","name","type"],yh=["placeholder"],wh={class:"wl-preview"},bh=P("hr",null,null,-1),kh=["innerHTML"],xh={class:"wl-footer"},_h={class:"wl-actions"},Ch={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},$h=["title"],Eh=["title"],Th=["title"],Rh=["title"],Sh={class:"wl-info"},Ah=P("div",{class:"wl-captcha-container"},null,-1),Ih={class:"wl-text-number"},Lh={key:0},Mh=["textContent"],Oh=["textContent"],zh=["disabled"],jh=["placeholder"],Ph={key:1,class:"wl-loading"},Fh={key:0,class:"wl-tab-wrapper"},Uh=["title","onClick"],Hh=["src","alt"],Nh={key:0,class:"wl-tabs"},Dh=["onClick"],Vh=["src","alt","title"],Bh=["title"];var Wh=ln({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,i=t,r=Qn("config"),l=zf(),s=Of(),o=yi(),a=q({}),c=q(null),f=q(null),d=q(null),p=q(null),m=q(null),I=q(null),k=q(null),E=q({tabs:[],map:{}}),w=q(0),$=q(!1),U=q(!1),D=q(!1),H=q(""),O=q(0),N=Qt({loading:!0,list:[]}),X=q(0),ze=q(!1),G=q(""),oe=q(!1),Te=q(!1),z=_e(()=>r.value.locale),re=_e(()=>{var L;return!!((L=o.value)!=null&&L.token)}),ae=_e(()=>r.value.imageUploader!==!1),Ce=L=>{const S=c.value,B=S.selectionStart,he=S.selectionEnd||0,u=S.scrollTop;l.value=S.value.substring(0,B)+L+S.value.substring(he,S.value.length),S.focus(),S.selectionStart=B+L.length,S.selectionEnd=B+L.length,S.scrollTop=u},we=L=>{const S=L.key;(L.ctrlKey||L.metaKey)&&S==="Enter"&&Fe()},be=L=>{const S=`![${r.value.locale.uploading} ${L.name}]()`;return Ce(S),oe.value=!0,Promise.resolve().then(()=>r.value.imageUploader(L)).then(B=>{l.value=l.value.replace(S,`\r
72
- ![${L.name}](${B})`)}).catch(B=>{alert(B.message),l.value=l.value.replace(S,"")}).then(()=>{oe.value=!1})},Le=L=>{var S;if((S=L.dataTransfer)!=null&&S.items){const B=Is(L.dataTransfer.items);B&&ae.value&&(be(B),L.preventDefault())}},yt=L=>{if(L.clipboardData){const S=Is(L.clipboardData.items);S&&ae.value&&be(S)}},Lt=()=>{const L=f.value;L.files&&ae.value&&be(L.files[0]).then(()=>{L.value=""})},Fe=async()=>{var L,S,B,he,u,h;const{serverURL:g,lang:v,login:y,wordLimit:_,requiredMeta:R,recaptchaV3Key:x,turnstileKey:T}=r.value,b=await _f(),C={comment:G.value,nick:s.value.nick,mail:s.value.mail,link:s.value.link,url:r.value.path,ua:b};if((L=o.value)!=null&&L.token&&!n.edit)C.nick=o.value.display_name,C.mail=o.value.email,C.link=o.value.url;else{if(y==="force")return;if(R.indexOf("nick")>-1&&!C.nick)return(S=a.value.nick)==null||S.focus(),alert(z.value.nickError);if(R.indexOf("mail")>-1&&!C.mail||C.mail&&!No(C.mail))return(B=a.value.mail)==null||B.focus(),alert(z.value.mailError);C.nick||(C.nick=z.value.anonymous)}if(!C.comment){(he=c.value)==null||he.focus();return}if(!ze.value)return alert(z.value.wordHint.replace("$0",_[0].toString()).replace("$1",_[1].toString()).replace("$2",O.value.toString()));C.comment=eo(C.comment,E.value.map),n.replyId&&n.rootId&&(C.pid=n.replyId,C.rid=n.rootId,C.at=n.replyUser),oe.value=!0;try{x&&(C.recaptchaV3=await Vf(x).execute("social")),T&&(C.turnstile=await Bf(T).execute("social"));const F={serverURL:g,lang:v,token:(u=o.value)==null?void 0:u.token,comment:C},j=await(n.edit?qt({objectId:n.edit.objectId,...F}):Tr(F));if(oe.value=!1,j.errmsg)return alert(j.errmsg);i("submit",j.data),l.value="",H.value="",n.replyId&&i("cancelReply"),(h=n.edit)!=null&&h.objectId&&i("cancelEdit")}catch(F){oe.value=!1,alert(F.message)}},bi=L=>{L.preventDefault();const{lang:S,serverURL:B}=r.value;Ar({serverURL:B,lang:S}).then(he=>{o.value=he,(he.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(he)),i("log")})},_r=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),i("log")},ki=L=>{L.preventDefault();const{lang:S,serverURL:B}=r.value,he=800,u=800,h=(window.innerWidth-he)/2,g=(window.innerHeight-u)/2,v=new URLSearchParams({lng:S,token:o.value.token}),y=window.open(`${B}/ui/profile?${v.toString()}`,"_blank",`width=${he},height=${u},left=${h},top=${g},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);y==null||y.postMessage({type:"TOKEN",data:o.value.token},"*")},We=L=>{var S,B,he,u;!((S=d.value)!=null&&S.contains(L.target))&&!((B=p.value)!=null&&B.contains(L.target))&&($.value=!1),!((he=m.value)!=null&&he.contains(L.target))&&!((u=I.value)!=null&&u.contains(L.target))&&(U.value=!1)},Mt=async L=>{var S;const{scrollTop:B,clientHeight:he,scrollHeight:u}=L.target,h=(he+B)/u,g=r.value.search,v=((S=k.value)==null?void 0:S.value)??"";h<.9||N.loading||Te.value||(N.loading=!0,(g.more&&N.list.length?await g.more(v,N.list.length):await g.search(v)).length?N.list=[...N.list,...g.more&&N.list.length?await g.more(v,N.list.length):await g.search(v)]:Te.value=!0,N.loading=!1,setTimeout(()=>{L.target.scrollTop=B},50))},Bt=fu(L=>{N.list=[],Te.value=!1,Mt(L)},300);return He([r,O],([L,S])=>{const{wordLimit:B}=L;B?S<B[0]&&B[0]!==0?(X.value=B[0],ze.value=!1):S>B[1]?(X.value=B[1],ze.value=!1):(X.value=B[1],ze.value=!0):(X.value=0,ze.value=!0)},{immediate:!0}),ai("click",We),ai("message",({data:L})=>{!L||L.type!=="profile"||(o.value={...o.value,...L.data},[localStorage,sessionStorage].filter(S=>S.getItem("WALINE_USER")).forEach(S=>S.setItem("WALINE_USER",JSON.stringify(o))))}),He(U,async L=>{var S;if(!L)return;const B=r.value.search;k.value&&(k.value.value=""),N.loading=!0,N.list=await(((S=B.default)==null?void 0:S.call(B))??B.search("")),N.loading=!1}),sn(()=>{var L;(L=n.edit)!=null&&L.objectId&&(l.value=n.edit.orig),He(()=>l.value,S=>{const{highlighter:B,texRenderer:he}=r.value;G.value=S,H.value=wf(S,{emojiMap:E.value.map,highlighter:B,texRenderer:he}),O.value=xf(S),S?uo(c.value):uo.destroy(c.value)},{immediate:!0}),He(()=>r.value.emoji,S=>Su(S).then(B=>{E.value=B}),{immediate:!0})}),(L,S)=>{var B,he;return A(),M("div",ah,[K(r).login!=="disable"&&re.value&&!((B=L.edit)!=null&&B.objectId)?(A(),M("div",ch,[P("div",uh,[P("button",{type:"submit",class:"wl-logout-btn",title:z.value.logout,onClick:_r},[le(K(no),{size:14})],8,fh),P("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:z.value.profile,onClick:ki},[P("img",{src:K(o).avatar,alt:"avatar"},null,8,dh)],8,hh)]),P("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:z.value.profile,onClick:ki,textContent:ee(K(o).display_name)},null,8,ph)])):Y("v-if",!0),P("div",gh,[K(r).login!=="force"&&K(r).meta.length&&!re.value?(A(),M("div",{key:0,class:ye(["wl-header",`item${K(r).meta.length}`])},[(A(!0),M(ue,null,Ne(K(r).meta,u=>(A(),M("div",{key:u,class:"wl-header-item"},[P("label",{for:`wl-${u}`,textContent:ee(z.value[u]+(K(r).requiredMeta.includes(u)||!K(r).requiredMeta.length?"":`(${z.value.optional})`))},null,8,mh),Kn(P("input",{id:`wl-${u}`,ref_for:!0,ref:h=>{h&&(a.value[u]=h)},"onUpdate:modelValue":h=>K(s)[u]=h,class:ye(["wl-input",`wl-${u}`]),name:u,type:u==="mail"?"email":"text"},null,10,vh),[[eu,K(s)[u]]])]))),128))],2)):Y("v-if",!0),Kn(P("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":S[0]||(S[0]=u=>Re(l)?l.value=u:null),class:"wl-editor",placeholder:L.replyUser?`@${L.replyUser}`:z.value.placeholder,onKeydown:we,onDrop:Le,onPaste:yt},null,40,yh),[[fr,K(l)]]),Kn(P("div",wh,[bh,P("h4",null,ee(z.value.preview)+":",1),P("div",{class:"wl-content",innerHTML:H.value},null,8,kh)],512),[[hs,D.value]]),P("div",xh,[P("div",_h,[P("a",Ch,[le(K(Sf))]),Kn(P("button",{ref_key:"emojiButtonRef",ref:d,type:"button",class:ye(["wl-action",{active:$.value}]),title:z.value.emoji,onClick:S[1]||(S[1]=u=>$.value=!$.value)},[le(K($f))],10,$h),[[hs,E.value.tabs.length]]),K(r).search?(A(),M("button",{key:0,ref_key:"gifButtonRef",ref:m,type:"button",class:ye(["wl-action",{active:U.value}]),title:z.value.gif,onClick:S[2]||(S[2]=u=>U.value=!U.value)},[le(K(Mf))],10,Eh)):Y("v-if",!0),P("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:f,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Lt},null,544),ae.value?(A(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:z.value.uploadImage},[le(K(Ef))],8,Th)):Y("v-if",!0),P("button",{type:"button",class:ye(["wl-action",{active:D.value}]),title:z.value.preview,onClick:S[3]||(S[3]=u=>D.value=!D.value)},[le(K(Rf))],10,Rh)]),P("div",Sh,[Ah,P("div",Ih,[it(ee(O.value)+" ",1),K(r).wordLimit?(A(),M("span",Lh,[it("  /  "),P("span",{class:ye({illegal:!ze.value}),textContent:ee(X.value)},null,10,Mh)])):Y("v-if",!0),it("  "+ee(z.value.word),1)]),K(r).login!=="disable"&&!re.value?(A(),M("button",{key:0,type:"button",class:"wl-btn",onClick:bi,textContent:ee(z.value.login)},null,8,Oh)):Y("v-if",!0),K(r).login!=="force"||re.value?(A(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:oe.value,onClick:Fe},[oe.value?(A(),nt(K(bn),{key:0,size:16})):(A(),M(ue,{key:1},[it(ee(z.value.submit),1)],64))],8,zh)):Y("v-if",!0)]),P("div",{ref_key:"gifPopupRef",ref:I,class:ye(["wl-gif-popup",{display:U.value}])},[P("input",{ref_key:"gifSearchInputRef",ref:k,type:"text",placeholder:z.value.gifSearchPlaceholder,onInput:S[4]||(S[4]=(...u)=>K(Bt)&&K(Bt)(...u))},null,40,jh),N.list.length?(A(),nt(oh,{key:0,items:N.list,"column-width":200,gap:6,onInsert:S[5]||(S[5]=u=>Ce(u)),onScroll:Mt},null,8,["items"])):Y("v-if",!0),N.loading?(A(),M("div",Ph,[le(K(bn),{size:30})])):Y("v-if",!0)],2),P("div",{ref_key:"emojiPopupRef",ref:p,class:ye(["wl-emoji-popup",{display:$.value}])},[(A(!0),M(ue,null,Ne(E.value.tabs,(u,h)=>(A(),M(ue,{key:u.name},[h===w.value?(A(),M("div",Fh,[(A(!0),M(ue,null,Ne(u.items,g=>(A(),M("button",{key:g,type:"button",title:g,onClick:v=>Ce(`:${g}:`)},[$.value?(A(),M("img",{key:0,class:"wl-emoji",src:E.value.map[g],alt:g,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Hh)):Y("v-if",!0)],8,Uh))),128))])):Y("v-if",!0)],64))),128)),E.value.tabs.length>1?(A(),M("div",Nh,[(A(!0),M(ue,null,Ne(E.value.tabs,(u,h)=>(A(),M("button",{key:u.name,type:"button",class:ye(["wl-tab",{active:w.value===h}]),onClick:g=>w.value=h},[P("img",{class:"wl-emoji",src:u.icon,alt:u.name,title:u.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Vh)],10,Dh))),128))])):Y("v-if",!0)],2)])]),L.replyId||(he=L.edit)!=null&&he.objectId?(A(),M("button",{key:1,type:"button",class:"wl-close",title:z.value.cancelReply,onClick:S[6]||(S[6]=u=>L.replyId?i("cancelReply"):i("cancelEdit"))},[le(K(no),{size:24})],8,Bh)):Y("v-if",!0)])}}}),fo=xn(Wh,[["__file","CommentBox.vue"]]);const qh=["id"],Kh={class:"wl-user","aria-hidden":"true"},Zh=["src"],Gh={class:"wl-card"},Qh={class:"wl-head"},Jh=["href"],Yh={key:1,class:"wl-nick"},Xh=["textContent"],ed=["textContent"],td=["textContent"],nd=["textContent"],id=["textContent"],rd={class:"wl-comment-actions"},ld=["title"],sd=["title"],od={class:"wl-meta","aria-hidden":"true"},ad=["data-value","textContent"],cd={key:0,class:"wl-content"},ud={key:0},fd=["href"],hd=P("span",null,": ",-1),dd=["innerHTML"],pd={key:1,class:"wl-admin-actions"},gd={class:"wl-comment-status"},md=["disabled","onClick","textContent"],vd={key:3,class:"wl-quote"};var yd=ln({__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=Qn("config"),s=ro(),o=_u(),a=yi(),c=_e(()=>l.value.locale),f=_e(()=>{const{link:w}=n.comment;return w?Zr(w)?w:`https://${w}`:""}),d=_e(()=>s.value.includes(n.comment.objectId)),p=_e(()=>Uo(new Date(n.comment.time),o.value,c.value)),m=_e(()=>a.value.type==="administrator"),I=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),k=_e(()=>{var w;return n.comment.objectId===((w=n.reply)==null?void 0:w.objectId)}),E=_e(()=>{var w;return n.comment.objectId===((w=n.edit)==null?void 0:w.objectId)});return(w,$)=>{var U;const D=Ua("CommentCard",!0);return A(),M("div",{id:w.comment.objectId,class:"wl-card-item"},[P("div",Kh,[w.comment.avatar?(A(),M("img",{key:0,class:"wl-user-avatar",src:w.comment.avatar},null,8,Zh)):Y("v-if",!0),w.comment.type?(A(),nt(K(Lf),{key:1})):Y("v-if",!0)]),P("div",Gh,[P("div",Qh,[f.value?(A(),M("a",{key:0,class:"wl-nick",href:f.value,target:"_blank",rel:"nofollow noopener noreferrer"},ee(w.comment.nick),9,Jh)):(A(),M("span",Yh,ee(w.comment.nick),1)),w.comment.type==="administrator"?(A(),M("span",{key:2,class:"wl-badge",textContent:ee(c.value.admin)},null,8,Xh)):Y("v-if",!0),w.comment.label?(A(),M("span",{key:3,class:"wl-badge",textContent:ee(w.comment.label)},null,8,ed)):Y("v-if",!0),w.comment.sticky?(A(),M("span",{key:4,class:"wl-badge",textContent:ee(c.value.sticky)},null,8,td)):Y("v-if",!0),typeof w.comment.level=="number"?(A(),M("span",{key:5,class:ye(`wl-badge level${w.comment.level}`),textContent:ee(c.value[`level${w.comment.level}`]||`Level ${w.comment.level}`)},null,10,nd)):Y("v-if",!0),P("span",{class:"wl-time",textContent:ee(p.value)},null,8,id),P("div",rd,[m.value||I.value?(A(),M(ue,{key:0},[P("button",{type:"button",class:"wl-edit",onClick:$[0]||($[0]=H=>i("edit",w.comment))},[le(K(If))]),P("button",{type:"button",class:"wl-delete",onClick:$[1]||($[1]=H=>i("delete",w.comment))},[le(K(Cf))])],64)):Y("v-if",!0),P("button",{type:"button",class:"wl-like",title:d.value?c.value.cancelLike:c.value.like,onClick:$[2]||($[2]=H=>i("like",w.comment))},[le(K(Tf),{active:d.value},null,8,["active"]),it(" "+ee("like"in w.comment?w.comment.like:""),1)],8,ld),P("button",{type:"button",class:ye(["wl-reply",{active:k.value}]),title:k.value?c.value.cancelReply:c.value.reply,onClick:$[3]||($[3]=H=>i("reply",k.value?null:w.comment))},[le(K(Af))],10,sd)])]),P("div",od,[(A(),M(ue,null,Ne(["addr","browser","os"],H=>(A(),M(ue,null,[w.comment[H]?(A(),M("span",{key:H,class:ye(`wl-${H}`),"data-value":w.comment[H],textContent:ee(w.comment[H])},null,10,ad)):Y("v-if",!0)],64))),64))]),E.value?Y("v-if",!0):(A(),M("div",cd,[w.comment.reply_user?(A(),M("p",ud,[P("a",{href:"#"+w.comment.pid},"@"+ee(w.comment.reply_user.nick),9,fd),hd])):Y("v-if",!0),P("div",{innerHTML:w.comment.comment},null,8,dd)])),m.value&&!E.value?(A(),M("div",pd,[P("span",gd,[(A(),M(ue,null,Ne(r,H=>P("button",{key:H,type:"submit",class:ye(`wl-btn wl-${H}`),disabled:w.comment.status===H,onClick:O=>i("status",{status:H,comment:w.comment}),textContent:ee(c.value[H])},null,10,md)),64))]),m.value&&!("rid"in w.comment)?(A(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:$[4]||($[4]=H=>i("sticky",w.comment))},ee(w.comment.sticky?c.value.unsticky:c.value.sticky),1)):Y("v-if",!0)])):Y("v-if",!0),k.value||E.value?(A(),M("div",{key:2,class:ye({"wl-reply-wrapper":k.value,"wl-edit-wrapper":E.value})},[le(fo,{edit:w.edit,"reply-id":(U=w.reply)==null?void 0:U.objectId,"reply-user":w.comment.nick,"root-id":w.rootId,onLog:$[5]||($[5]=H=>i("log")),onCancelReply:$[6]||($[6]=H=>i("reply",null)),onCancelEdit:$[7]||($[7]=H=>i("edit",null)),onSubmit:$[8]||($[8]=H=>i("submit",H))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Y("v-if",!0),"children"in w.comment?(A(),M("div",vd,[(A(!0),M(ue,null,Ne(w.comment.children,H=>(A(),nt(D,{key:H.objectId,comment:H,reply:w.reply,edit:w.edit,"root-id":w.rootId,onLog:$[9]||($[9]=O=>i("log")),onDelete:$[10]||($[10]=O=>i("delete",O)),onEdit:$[11]||($[11]=O=>i("edit",O)),onLike:$[12]||($[12]=O=>i("like",O)),onReply:$[13]||($[13]=O=>i("reply",O)),onStatus:$[14]||($[14]=O=>i("status",O)),onSticky:$[15]||($[15]=O=>i("sticky",O)),onSubmit:$[16]||($[16]=O=>i("submit",O))},null,8,["comment","reply","edit","root-id"]))),128))])):Y("v-if",!0)])],8,qh)}}}),wd=xn(yd,[["__file","CommentCard.vue"]]);const ho="3.2.0",bd={"data-waline":""},kd={class:"wl-meta-head"},xd={class:"wl-count"},_d=["textContent"],Cd={class:"wl-sort"},$d=["onClick"],Ed={class:"wl-cards"},Td={key:1,class:"wl-operation"},Rd=["textContent"],Sd={key:2,class:"wl-loading"},Ad=["textContent"],Id={key:4,class:"wl-operation"},Ld=["textContent"],Md={key:5,class:"wl-power"},Od=P("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var zd=ln({__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=yi(),l=ro(),s=q("loading"),o=q(0),a=q(1),c=q(0),f=_e(()=>jo(t)),d=q(f.value.commentSorting),p=q([]),m=q(null),I=q(null),k=_e(()=>Po(f.value.dark)),E=_e(()=>f.value.locale);Eu(k,{id:"waline-darkmode"});let w;const $=z=>{var re;const{serverURL:ae,path:Ce,pageSize:we}=f.value,be=new AbortController;s.value="loading",w==null||w(),Er({serverURL:ae,lang:f.value.lang,path:Ce,pageSize:we,sortBy:n[d.value],page:z,signal:be.signal,token:(re=r.value)==null?void 0:re.token}).then(Le=>{s.value="success",o.value=Le.count,p.value.push(...Le.data),a.value=z,c.value=Le.totalPages}).catch(Le=>{Le.name!=="AbortError"&&(console.error(Le.message),s.value="error")}),w=be.abort.bind(be)},U=()=>$(a.value+1),D=()=>{o.value=0,p.value=[],$(1)},H=z=>{d.value!==z&&(d.value=z,D())},O=z=>{m.value=z},N=z=>{I.value=z},X=z=>{if(I.value)I.value.comment=z.comment,I.value.orig=z.orig;else if("rid"in z){const re=p.value.find(({objectId:ae})=>ae===z.rid);if(!re)return;Array.isArray(re.children)||(re.children=[]),re.children.push(z)}else p.value.unshift(z),o.value+=1},ze=async({comment:z,status:re})=>{var ae;if(z.status===re)return;const{serverURL:Ce,lang:we}=f.value;await qt({serverURL:Ce,lang:we,token:(ae=r.value)==null?void 0:ae.token,objectId:z.objectId,comment:{status:re}}),z.status=re},G=async z=>{var re;if("rid"in z)return;const{serverURL:ae,lang:Ce}=f.value;await qt({serverURL:ae,lang:Ce,token:(re=r.value)==null?void 0:re.token,objectId:z.objectId,comment:{sticky:z.sticky?0:1}}),z.sticky=!z.sticky},oe=async({objectId:z})=>{var re;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:ae,lang:Ce}=f.value;await Rr({serverURL:ae,lang:Ce,token:(re=r.value)==null?void 0:re.token,objectId:z}),p.value.some((we,be)=>we.objectId===z?(p.value=p.value.filter((Le,yt)=>yt!==be),!0):we.children.some((Le,yt)=>Le.objectId===z?(p.value[be].children=we.children.filter((Lt,Fe)=>Fe!==yt),!0):!1))},Te=async z=>{var re;const{serverURL:ae,lang:Ce}=f.value,{objectId:we}=z,be=l.value.includes(we);await qt({serverURL:ae,lang:Ce,objectId:we,token:(re=r.value)==null?void 0:re.token,comment:{like:!be}}),be?l.value=l.value.filter(Le=>Le!==we):(l.value=[...l.value,we],l.value.length>50&&(l.value=l.value.slice(-50))),z.like=(z.like||0)+(be?-1:1)};return nc("config",f),sn(()=>{He(()=>[t.serverURL,t.path],()=>D(),{immediate:!0})}),Ji(()=>w==null?void 0:w()),(z,re)=>(A(),M("div",bd,[le(th),m.value?Y("v-if",!0):(A(),nt(fo,{key:0,onLog:D,onSubmit:X})),P("div",kd,[P("div",xd,[o.value?(A(),M("span",{key:0,class:"wl-num",textContent:ee(o.value)},null,8,_d)):Y("v-if",!0),it(" "+ee(E.value.comment),1)]),P("ul",Cd,[(A(!0),M(ue,null,Ne(K(i),ae=>(A(),M("li",{key:ae,class:ye([ae===d.value?"active":""]),onClick:Ce=>H(ae)},ee(E.value[ae]),11,$d))),128))])]),P("div",Ed,[(A(!0),M(ue,null,Ne(p.value,ae=>(A(),nt(wd,{key:ae.objectId,"root-id":ae.objectId,comment:ae,reply:m.value,edit:I.value,onLog:D,onReply:O,onEdit:N,onSubmit:X,onStatus:ze,onDelete:oe,onSticky:G,onLike:Te},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(A(),M("div",Td,[P("button",{type:"button",class:"wl-btn",onClick:D,textContent:ee(E.value.refresh)},null,8,Rd)])):s.value==="loading"?(A(),M("div",Sd,[le(K(bn),{size:30})])):p.value.length?a.value<c.value?(A(),M("div",Id,[P("button",{type:"button",class:"wl-btn",onClick:U,textContent:ee(E.value.more)},null,8,Ld)])):Y("v-if",!0):(A(),M("div",{key:3,class:"wl-empty",textContent:ee(E.value.sofa)},null,8,Ad)),f.value.copyright?(A(),M("div",Md,[it(" Powered by "),Od,it(" v"+ee(K(ho)),1)])):Y("v-if",!0)]))}}),jd=xn(zd,[["__file","WalineComment.vue"]]);const po=(e,t)=>{t.forEach((n,i)=>{const r=e[i].time;typeof r=="number"&&(n.innerText=r.toString())})},go=({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=c=>{const f=xr(c);return f!==null&&t!==f},a=c=>Ir({serverURL:Sn(e),paths:c.map(f=>xr(f)??t),lang:r,signal:l.signal}).then(f=>po(f,c)).catch(As);if(i){const c=s.filter(d=>!o(d)),f=s.filter(o);Lr({serverURL:Sn(e),path:t,lang:r}).then(d=>po(d,c)),f.length&&a(f)}else a(s);return l.abort.bind(l)},Pd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:i=!1,...r})=>{const l=e?dr(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=Qt({...r}),o=Qt({comment:n,pageview:i,path:t}),a=()=>{o.comment&&to({serverURL:s.serverURL,path:o.path,...Ot(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&go({serverURL:s.serverURL,path:o.path,...Ot(o.pageview)?{selector:o.pageview}:{}})},f=l?ru(()=>ne(jd,{path:o.path,...s})):null;f&&f.mount(l);const d=jl(a),p=jl(c);return{el:l,update:({comment:m,pageview:I,path:k=window.location.pathname,...E}={})=>{Object.entries(E).forEach(([w,$])=>{s[w]=$}),o.path=k,m!==void 0&&(o.comment=m),I!==void 0&&(o.pageview=I)},destroy:()=>{f==null||f.unmount(),d(),p()}}},Fd=({el:e,serverURL:t,count:n,lang:i=navigator.language})=>{var r;const l=yi(),s=dr(e),o=new AbortController;return Mr({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(c=>`<li class="wl-recent-item"><a href="${c.url}">${c.nick}</a>:${c.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),s.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Ud=({el:e,serverURL:t,count:n,locale:i,lang:r=navigator.language,mode:l="list"})=>{const s=dr(e),o=new AbortController;return Or({serverURL:t,pageSize:n,lang:r,signal:o.signal}).then(a=>!s||!a.length?{users:a,destroy:()=>o.abort()}:(i={...Wr(r),...typeof i=="object"?i:{}},s.innerHTML=`<ul class="wl-user-${l}">${a.map((c,f)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${f+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${i?i[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(d=>d).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),s.innerHTML=""}}))};Z.RecentComments=Fd,Z.UserList=Ud,Z.addComment=Tr,Z.commentCount=to,Z.defaultLocales=Rn,Z.deleteComment=Rr,Z.fetchCommentCount=Sr,Z.getArticleCounter=_i,Z.getComment=Er,Z.getPageview=Ir,Z.getRecentComment=Mr,Z.getUserList=Or,Z.init=Pd,Z.login=Ar,Z.pageviewCount=go,Z.updateArticleCounter=Tn,Z.updateComment=qt,Z.updatePageview=Lr,Z.version=ho});
68
+ `}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=js(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=js(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 kr{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 ot{options;renderer;textRenderer;constructor(t){this.options=t||It,this.options.renderer=this.options.renderer||new mi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new kr}static parse(t,n){return new ot(n).parse(t)}static parseInline(t,n){return new ot(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,zu(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 c="";for(let f=0;f<s.rows.length;f++){const d=s.rows[f];a="";for(let p=0;p<d.length;p++)a+=this.renderer.tablecell(this.parseInline(d[p].tokens),{header:!1,align:s.align[p]});c+=this.renderer.tablerow(a)}i+=this.renderer.table(o,c);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,c=s.loose;let f="";for(let d=0;d<s.items.length;d++){const p=s.items[d],m=p.checked,I=p.task;let k="";if(p.task){const E=this.renderer.checkbox(!!m);c?p.tokens.length>0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=E+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=E+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:E+" "}):k+=E+" "}k+=this.parse(p.tokens,c),f+=this.renderer.listitem(k,I,!!m)}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+=`
69
+ `+(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 wn{options;constructor(t){this.options=t||It}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}Ve(wn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Ks{constructor(...t){Cr(this,$n);Cr(this,wi);Ve(this,"defaults",pr());Ve(this,"options",this.setOptions);Ve(this,"parse",xi(this,$n,$r).call(this,st.lex,ot.parse));Ve(this,"parseInline",xi(this,$n,$r).call(this,st.lexInline,ot.parseInline));Ve(this,"Parser",ot);Ve(this,"Renderer",mi);Ve(this,"TextRenderer",kr);Ve(this,"Lexer",st);Ve(this,"Tokenizer",hi);Ve(this,"Hooks",wn);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 c of a)i=i.concat(this.walkTokens(c.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=>{const c=o[a].flat(1/0);i=i.concat(this.walkTokens(c,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 mi(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],c=l[o];l[o]=(...f)=>{let d=a.apply(l,f);return d===!1&&(d=c.apply(l,f)),d||""}}r.renderer=l}if(i.tokenizer){const l=this.defaults.tokenizer||new hi(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],c=l[o];l[o]=(...f)=>{let d=a.apply(l,f);return d===!1&&(d=c.apply(l,f)),d}}r.tokenizer=l}if(i.hooks){const l=this.defaults.hooks||new wn;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],c=l[o];wn.passThroughHooks.has(s)?l[o]=f=>{if(this.defaults.async)return Promise.resolve(a.call(l,f)).then(p=>c.call(l,p));const d=a.call(l,f);return c.call(l,d)}:l[o]=(...f)=>{let d=a.apply(l,f);return d===!1&&(d=c.apply(l,f)),d}}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 st.lex(t,n??this.defaults)}parser(t,n){return ot.parse(t,n??this.defaults)}}$n=new WeakSet,$r=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=xi(this,wi,wo).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 c=n(a,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(a){return o(a)}}},wi=new WeakSet,wo=function(t,n){return i=>{if(i.message+=`
70
+ Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+Pe(i.message+"",!0)+"</pre>";return n?Promise.resolve(r):r}if(n)return Promise.reject(i);throw i}};const Lt=new Ks;function me(e,t){return Lt.parse(e,t)}me.options=me.setOptions=function(e){return Lt.setOptions(e),me.defaults=Lt.defaults,Ls(me.defaults),me},me.getDefaults=pr,me.defaults=It,me.use=function(...e){return Lt.use(...e),me.defaults=Lt.defaults,Ls(me.defaults),me},me.walkTokens=function(e,t){return Lt.walkTokens(e,t)},me.parseInline=Lt.parseInline,me.Parser=ot,me.parser=ot.parse,me.Renderer=mi,me.TextRenderer=kr,me.Lexer=st,me.lexer=st.lex,me.Tokenizer=hi,me.Hooks=wn,me.parse=me;function ff(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=Zs(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Gs(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.");Gs(t)(i)},renderer:{code(t,n,i){const r=Zs(n),l=r?` class="${e.langPrefix}${Xs(r)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${i?t:Xs(t,!0)}
71
+ </code></pre>`}}}}function Zs(e){return(e||"").match(/\S*/)[0]}function Gs(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Qs=/[&<>"']/,hf=new RegExp(Qs.source,"g"),Js=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,df=new RegExp(Js.source,"g"),pf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ys=e=>pf[e];function Xs(e,t){if(t){if(Qs.test(e))return e.replace(hf,Ys)}else if(Js.test(e))return e.replace(df,Ys);return e}const gf=/\$.*?\$/,mf=/^\$(.*?)\$/,vf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,yf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=vf.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(gf);return n!==-1?n:t.length},tokenizer(t){const n=mf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],eo=(e="",t={})=>e.replace(/:(.+?):/g,(n,i)=>t[i]?`<img class="wl-emoji" src="${t[i]}" alt="${i}">`:n),wf=(e,{emojiMap:t,highlighter:n,texRenderer:i})=>{const r=new Ks;if(r.setOptions({breaks:!0}),n&&r.use(ff({highlight:n})),i){const l=yf(i);r.use({extensions:l})}return r.parse(eo(e,t))},xr=e=>e.dataset.path??null,bf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),kf=e=>e.match(/[\u4E00-\u9FD5]/gu),xf=e=>{var t,n;return(((t=bf(e))==null?void 0:t.reduce((i,r)=>i+(["",",","."].includes(r.trim())?0:r.trim().split(/\s+/u).length),0))??0)+(((n=kf(e))==null?void 0:n.length)??0)},_f=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},to=({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&&Sr({serverURL:Sn(e),paths:Array.from(l).map(s=>qr(xr(s)??t)),lang:i,signal:r.signal}).then(s=>{l.forEach((o,a)=>{o.innerText=s[a].toString()})}).catch(As),r.abort.bind(r)},no=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("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"}),ne("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"})]),Cf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),$f=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),Ef=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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"}),ne("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"})]),Tf=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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"})]),Rf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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"}),ne("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"})]),Sf=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("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"})),Af=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),If=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),Lf=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("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"})),bn=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Mf=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("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"}),ne("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"})]),Of=()=>Vt("WALINE_USER_META",{nick:"",mail:"",link:""}),zf=()=>Vt("WALINE_COMMENT_BOX_EDITOR",""),jf="WALINE_LIKE";let io=null;const ro=()=>io??(io=Vt(jf,[])),Pf="WALINE_REACTION";let lo=null;const Ff=()=>lo??(lo=Vt(Pf,{}));var vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},so={},Bt={},kn={},Uf=vi&&vi.__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{c(i.next(f))}catch(d){s(d)}}function a(f){try{c(i.throw(f))}catch(d){s(d)}}function c(f){f.done?l(f.value):r(f.value).then(o,a)}c((i=i.apply(e,t||[])).next())})},Hf=vi&&vi.__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(c){return function(f){return a([c,f])}}function a(c){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,r&&(l=c[0]&2?r.return:c[0]?r.throw||((l=r.return)&&l.call(r),0):r.next)&&!(l=l.call(r,c[1])).done)return l;switch(r=0,l&&(c=[c[0]&2,l.value]),c[0]){case 0:case 1:l=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,r=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!l||c[1]>l[0]&&c[1]<l[3])){n.label=c[1];break}if(c[0]===6&&n.label<l[1]){n.label=l[1],l=c;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(c);break}l[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],r=0}finally{i=l=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(kn,"__esModule",{value:!0}),kn.ReCaptchaInstance=void 0;var Nf=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 Uf(this,void 0,void 0,function(){return Hf(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}();kn.ReCaptchaInstance=Nf,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.getInstance=Bt.load=void 0;var Df=kn,vt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(vt||(vt={}));var oo=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()===vt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===vt.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(vt.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(vt.LOADED);var s=i.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new Df.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?vt.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 c=this.buildQueryString(r);return o.src=a+"?render=explicit"+c,new Promise(function(f,d){o.addEventListener("load",s.waitForScriptToLoad(function(){f(o)},i),!1),o.onerror=function(p){e.setLoadingState(vt.NOT_LOADED),d(p)},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}();Bt.load=oo.load,Bt.getInstance=oo.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Bt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=kn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(so);const ao={},Vf=e=>{const t=ao[e]??(ao[e]=so.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(i=>i.execute(n))}},Bf=e=>({execute:async t=>{const{load:n}=Cu("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})})})}}),Wf="WALINE_USER";let co=null;const yi=()=>co??(co=Vt(Wf,{})),qf={key:0,class:"wl-reaction"},Kf=["textContent"],Zf={class:"wl-reaction-list"},Gf=["onClick"],Qf={class:"wl-reaction-img"},Jf=["src","alt"],Yf=["textContent"],Xf=["textContent"];var eh=ln({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Ff(),i=Qn("config"),r=q(-1),l=q([]),s=_e(()=>i.value.locale),o=_e(()=>i.value.reaction.length>0),a=_e(()=>{const{reaction:p,path:m}=i.value;return p.map((I,k)=>({icon:I,desc:s.value[`reaction${k}`],active:n.value[m]===k}))});let c;const f=async()=>{if(!o.value)return;const{serverURL:p,lang:m,path:I,reaction:k}=i.value,E=new AbortController;c=E.abort.bind(E);const w=await _i({serverURL:p,lang:m,paths:[I],type:k.map(($,U)=>`reaction${U}`),signal:E.signal});l.value=k.map(($,U)=>w[0][`reaction${U}`])},d=async p=>{if(r.value===-1){const{serverURL:m,lang:I,path:k}=i.value,E=n.value[k];r.value=p,E!==void 0&&(await Tn({serverURL:m,lang:I,path:k,type:`reaction${E}`,action:"desc"}),l.value[E]=Math.max(l.value[E]-1,0)),E!==p&&(await Tn({serverURL:m,lang:I,path:k,type:`reaction${p}`}),l.value[p]=(l.value[p]||0)+1),E===p?delete n.value[k]:n.value[k]=p,r.value=-1}};return sn(()=>{He(()=>[i.value.serverURL,i.value.path],()=>{f()},{immediate:!0})}),Ji(()=>c==null?void 0:c()),(p,m)=>a.value.length?(A(),M("div",qf,[P("div",{class:"wl-reaction-title",textContent:ee(s.value.reactionTitle)},null,8,Kf),P("ul",Zf,[(A(!0),M(ue,null,Ne(a.value,({active:I,icon:k,desc:E},w)=>(A(),M("li",{key:w,class:ye(["wl-reaction-item",{active:I}]),onClick:$=>d(w)},[P("div",Qf,[P("img",{src:k,alt:E},null,8,Jf),r.value===w?(A(),nt(K(bn),{key:0,class:"wl-reaction-loading"})):(A(),M("div",{key:1,class:"wl-reaction-votes",textContent:ee(l.value[w]||0)},null,8,Yf))]),P("div",{class:"wl-reaction-text",textContent:ee(E)},null,8,Xf)],10,Gf))),128))])])):Y("v-if",!0)}}),xn=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},th=xn(eh,[["__file","ArticleReaction.vue"]]),_n=new Map;function nh(e){var t=_n.get(e);t&&t.destroy()}function ih(e){var t=_n.get(e);t&&t.update()}var Cn=null;typeof window>"u"?((Cn=function(e){return e}).destroy=function(e){return e},Cn.update=function(e){return e}):((Cn=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"&&!_n.has(i)){var r,l=null,s=window.getComputedStyle(i),o=(r=i.value,function(){c({testForHeightReduction:r===""||!i.value.startsWith(r),restoreTextAlign:null}),r=i.value}),a=(function(d){i.removeEventListener("autosize:destroy",a),i.removeEventListener("autosize:update",f),i.removeEventListener("input",o),window.removeEventListener("resize",f),Object.keys(d).forEach(function(p){return i.style[p]=d[p]}),_n.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",_n.set(i,{destroy:a,update:f}),f()}function c(d){var p,m,I=d.restoreTextAlign,k=I===void 0?null:I,E=d.testForHeightReduction,w=E===void 0||E,$=s.overflowY;if(i.scrollHeight!==0&&(s.resize==="vertical"?i.style.resize="none":s.resize==="both"&&(i.style.resize="horizontal"),w&&(p=function(D){for(var H=[];D&&D.parentNode&&D.parentNode instanceof Element;)D.parentNode.scrollTop&&H.push([D.parentNode,D.parentNode.scrollTop]),D=D.parentNode;return function(){return H.forEach(function(O){var N=O[0],X=O[1];N.style.scrollBehavior="auto",N.scrollTop=X,N.style.scrollBehavior=null})}}(i),i.style.height=""),m=s.boxSizing==="content-box"?i.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):i.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&m>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(i.style.overflow="scroll"),m=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(i.style.overflow="hidden"),i.style.height=m+"px",k&&(i.style.textAlign=k),p&&p(),l!==m&&(i.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),l=m),$!==s.overflow&&!k)){var U=s.textAlign;s.overflow==="hidden"&&(i.style.textAlign=U==="start"?"end":"start"),c({restoreTextAlign:U,testForHeightReduction:!0})}}function f(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],nh),e},Cn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ih),e});var uo=Cn;const rh=["data-index"],lh=["src","title","onClick"];var sh=ln({__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=q(null),l=q({}),s=q([]),o=()=>{const p=Math.floor((r.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return p>0?p:1},a=p=>new Array(p).fill(null).map(()=>[]),c=async p=>{var m;if(p>=n.items.length)return;await Et();const I=Array.from(((m=r.value)==null?void 0:m.children)??[]).reduce((k,E)=>E.getBoundingClientRect().height<k.getBoundingClientRect().height?E:k);s.value[Number(I.dataset.index)].push(p),await c(p+1)},f=async(p=!1)=>{if(s.value.length===o()&&!p)return;s.value=a(o());const m=window.scrollY;await c(0),window.scrollTo({top:m})},d=p=>{l.value[p.target.src]=!0};return sn(()=>{f(!0),i=new ResizeObserver(()=>{f()}),i.observe(r.value),He(()=>[n.items],()=>{l.value={},f(!0)}),He(()=>[n.columnWidth,n.gap],()=>{f()})}),Za(()=>i.unobserve(r.value)),(p,m)=>(A(),M("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:Qt({gap:`${p.gap}px`})},[(A(!0),M(ue,null,Ne(s.value,(I,k)=>(A(),M("div",{key:k,class:"wl-gallery-column","data-index":k,style:Qt({gap:`${p.gap}px`})},[(A(!0),M(ue,null,Ne(I,E=>(A(),M(ue,{key:E},[l.value[p.items[E].src]?Y("v-if",!0):(A(),nt(K(bn),{key:0,size:36,style:{margin:"20px auto"}})),P("img",{class:"wl-gallery-item",src:p.items[E].src,title:p.items[E].title,loading:"lazy",onLoad:d,onClick:w=>p.$emit("insert",`![](${p.items[E].src})`)},null,40,lh)],64))),128))],12,rh))),128))],4))}}),oh=xn(sh,[["__file","ImageWall.vue"]]);const ah={class:"wl-comment"},ch={key:0,class:"wl-login-info"},uh={class:"wl-avatar"},fh=["title"],hh=["title"],dh=["src"],ph=["title","textContent"],gh={class:"wl-panel"},mh=["for","textContent"],vh=["id","onUpdate:modelValue","name","type"],yh=["placeholder"],wh={class:"wl-preview"},bh=P("hr",null,null,-1),kh=["innerHTML"],xh={class:"wl-footer"},_h={class:"wl-actions"},Ch={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},$h=["title"],Eh=["title"],Th=["title"],Rh=["title"],Sh={class:"wl-info"},Ah=P("div",{class:"wl-captcha-container"},null,-1),Ih={class:"wl-text-number"},Lh={key:0},Mh=["textContent"],Oh=["textContent"],zh=["disabled"],jh=["placeholder"],Ph={key:1,class:"wl-loading"},Fh={key:0,class:"wl-tab-wrapper"},Uh=["title","onClick"],Hh=["src","alt"],Nh={key:0,class:"wl-tabs"},Dh=["onClick"],Vh=["src","alt","title"],Bh=["title"];var Wh=ln({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,i=t,r=Qn("config"),l=zf(),s=Of(),o=yi(),a=q({}),c=q(null),f=q(null),d=q(null),p=q(null),m=q(null),I=q(null),k=q(null),E=q({tabs:[],map:{}}),w=q(0),$=q(!1),U=q(!1),D=q(!1),H=q(""),O=q(0),N=Jt({loading:!0,list:[]}),X=q(0),ze=q(!1),G=q(""),oe=q(!1),Te=q(!1),z=_e(()=>r.value.locale),re=_e(()=>{var L;return!!((L=o.value)!=null&&L.token)}),ae=_e(()=>r.value.imageUploader!==!1),Ce=L=>{const S=c.value,B=S.selectionStart,he=S.selectionEnd||0,u=S.scrollTop;l.value=S.value.substring(0,B)+L+S.value.substring(he,S.value.length),S.focus(),S.selectionStart=B+L.length,S.selectionEnd=B+L.length,S.scrollTop=u},we=L=>{const S=L.key;(L.ctrlKey||L.metaKey)&&S==="Enter"&&Fe()},be=L=>{const S=`![${r.value.locale.uploading} ${L.name}]()`;return Ce(S),oe.value=!0,Promise.resolve().then(()=>r.value.imageUploader(L)).then(B=>{l.value=l.value.replace(S,`\r
72
+ ![${L.name}](${B})`)}).catch(B=>{alert(B.message),l.value=l.value.replace(S,"")}).then(()=>{oe.value=!1})},Le=L=>{var S;if((S=L.dataTransfer)!=null&&S.items){const B=Is(L.dataTransfer.items);B&&ae.value&&(be(B),L.preventDefault())}},yt=L=>{if(L.clipboardData){const S=Is(L.clipboardData.items);S&&ae.value&&be(S)}},Mt=()=>{const L=f.value;L.files&&ae.value&&be(L.files[0]).then(()=>{L.value=""})},Fe=async()=>{var L,S,B,he,u,h;const{serverURL:g,lang:v,login:y,wordLimit:_,requiredMeta:R,recaptchaV3Key:x,turnstileKey:T}=r.value,b=await _f(),C={comment:G.value,nick:s.value.nick,mail:s.value.mail,link:s.value.link,url:r.value.path,ua:b};if((L=o.value)!=null&&L.token&&!n.edit)C.nick=o.value.display_name,C.mail=o.value.email,C.link=o.value.url;else{if(y==="force")return;if(R.indexOf("nick")>-1&&!C.nick)return(S=a.value.nick)==null||S.focus(),alert(z.value.nickError);if(R.indexOf("mail")>-1&&!C.mail||C.mail&&!No(C.mail))return(B=a.value.mail)==null||B.focus(),alert(z.value.mailError);C.nick||(C.nick=z.value.anonymous)}if(!C.comment){(he=c.value)==null||he.focus();return}if(!ze.value)return alert(z.value.wordHint.replace("$0",_[0].toString()).replace("$1",_[1].toString()).replace("$2",O.value.toString()));C.comment=eo(C.comment,E.value.map),n.replyId&&n.rootId&&(C.pid=n.replyId,C.rid=n.rootId,C.at=n.replyUser),oe.value=!0;try{x&&(C.recaptchaV3=await Vf(x).execute("social")),T&&(C.turnstile=await Bf(T).execute("social"));const F={serverURL:g,lang:v,token:(u=o.value)==null?void 0:u.token,comment:C},j=await(n.edit?Kt({objectId:n.edit.objectId,...F}):Tr(F));if(oe.value=!1,j.errmsg)return alert(j.errmsg);i("submit",j.data),l.value="",H.value="",await Et(),n.replyId&&i("cancelReply"),(h=n.edit)!=null&&h.objectId&&i("cancelEdit")}catch(F){oe.value=!1,alert(F.message)}},bi=L=>{L.preventDefault();const{lang:S,serverURL:B}=r.value;Ar({serverURL:B,lang:S}).then(he=>{o.value=he,(he.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(he)),i("log")})},_r=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),i("log")},ki=L=>{L.preventDefault();const{lang:S,serverURL:B}=r.value,he=800,u=800,h=(window.innerWidth-he)/2,g=(window.innerHeight-u)/2,v=new URLSearchParams({lng:S,token:o.value.token}),y=window.open(`${B}/ui/profile?${v.toString()}`,"_blank",`width=${he},height=${u},left=${h},top=${g},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);y==null||y.postMessage({type:"TOKEN",data:o.value.token},"*")},We=L=>{var S,B,he,u;!((S=d.value)!=null&&S.contains(L.target))&&!((B=p.value)!=null&&B.contains(L.target))&&($.value=!1),!((he=m.value)!=null&&he.contains(L.target))&&!((u=I.value)!=null&&u.contains(L.target))&&(U.value=!1)},Ot=async L=>{var S;const{scrollTop:B,clientHeight:he,scrollHeight:u}=L.target,h=(he+B)/u,g=r.value.search,v=((S=k.value)==null?void 0:S.value)??"";h<.9||N.loading||Te.value||(N.loading=!0,(g.more&&N.list.length?await g.more(v,N.list.length):await g.search(v)).length?N.list=[...N.list,...g.more&&N.list.length?await g.more(v,N.list.length):await g.search(v)]:Te.value=!0,N.loading=!1,setTimeout(()=>{L.target.scrollTop=B},50))},Wt=fu(L=>{N.list=[],Te.value=!1,Ot(L)},300);return He([r,O],([L,S])=>{const{wordLimit:B}=L;B?S<B[0]&&B[0]!==0?(X.value=B[0],ze.value=!1):S>B[1]?(X.value=B[1],ze.value=!1):(X.value=B[1],ze.value=!0):(X.value=0,ze.value=!0)},{immediate:!0}),ai("click",We),ai("message",async({data:L})=>{!L||L.type!=="profile"||(o.value={...o.value,...L.data},[localStorage,sessionStorage].filter(S=>S.getItem("WALINE_USER")).forEach(S=>S.setItem("WALINE_USER",JSON.stringify(o))),await Et())}),He(U,async L=>{var S;if(!L)return;const B=r.value.search;k.value&&(k.value.value=""),N.loading=!0,N.list=await(((S=B.default)==null?void 0:S.call(B))??B.search("")),N.loading=!1}),sn(()=>{var L;(L=n.edit)!=null&&L.objectId&&(l.value=n.edit.orig),He(()=>l.value,S=>{const{highlighter:B,texRenderer:he}=r.value;G.value=S,H.value=wf(S,{emojiMap:E.value.map,highlighter:B,texRenderer:he}),O.value=xf(S),S?uo(c.value):uo.destroy(c.value)},{immediate:!0}),He(()=>r.value.emoji,S=>Su(S).then(B=>{E.value=B}),{immediate:!0})}),(L,S)=>{var B,he;return A(),M("div",ah,[K(r).login!=="disable"&&re.value&&!((B=L.edit)!=null&&B.objectId)?(A(),M("div",ch,[P("div",uh,[P("button",{type:"submit",class:"wl-logout-btn",title:z.value.logout,onClick:_r},[le(K(no),{size:14})],8,fh),P("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:z.value.profile,onClick:ki},[P("img",{src:K(o).avatar,alt:"avatar"},null,8,dh)],8,hh)]),P("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:z.value.profile,onClick:ki,textContent:ee(K(o).display_name)},null,8,ph)])):Y("v-if",!0),P("div",gh,[K(r).login!=="force"&&K(r).meta.length&&!re.value?(A(),M("div",{key:0,class:ye(["wl-header",`item${K(r).meta.length}`])},[(A(!0),M(ue,null,Ne(K(r).meta,u=>(A(),M("div",{key:u,class:"wl-header-item"},[P("label",{for:`wl-${u}`,textContent:ee(z.value[u]+(K(r).requiredMeta.includes(u)||!K(r).requiredMeta.length?"":`(${z.value.optional})`))},null,8,mh),Kn(P("input",{id:`wl-${u}`,ref_for:!0,ref:h=>{h&&(a.value[u]=h)},"onUpdate:modelValue":h=>K(s)[u]=h,class:ye(["wl-input",`wl-${u}`]),name:u,type:u==="mail"?"email":"text"},null,10,vh),[[eu,K(s)[u]]])]))),128))],2)):Y("v-if",!0),Kn(P("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":S[0]||(S[0]=u=>Re(l)?l.value=u:null),class:"wl-editor",placeholder:L.replyUser?`@${L.replyUser}`:z.value.placeholder,onKeydown:we,onDrop:Le,onPaste:yt},null,40,yh),[[fr,K(l)]]),Kn(P("div",wh,[bh,P("h4",null,ee(z.value.preview)+":",1),P("div",{class:"wl-content",innerHTML:H.value},null,8,kh)],512),[[hs,D.value]]),P("div",xh,[P("div",_h,[P("a",Ch,[le(K(Sf))]),Kn(P("button",{ref_key:"emojiButtonRef",ref:d,type:"button",class:ye(["wl-action",{active:$.value}]),title:z.value.emoji,onClick:S[1]||(S[1]=u=>$.value=!$.value)},[le(K($f))],10,$h),[[hs,E.value.tabs.length]]),K(r).search?(A(),M("button",{key:0,ref_key:"gifButtonRef",ref:m,type:"button",class:ye(["wl-action",{active:U.value}]),title:z.value.gif,onClick:S[2]||(S[2]=u=>U.value=!U.value)},[le(K(Mf))],10,Eh)):Y("v-if",!0),P("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:f,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Mt},null,544),ae.value?(A(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:z.value.uploadImage},[le(K(Ef))],8,Th)):Y("v-if",!0),P("button",{type:"button",class:ye(["wl-action",{active:D.value}]),title:z.value.preview,onClick:S[3]||(S[3]=u=>D.value=!D.value)},[le(K(Rf))],10,Rh)]),P("div",Sh,[Ah,P("div",Ih,[it(ee(O.value)+" ",1),K(r).wordLimit?(A(),M("span",Lh,[it("  /  "),P("span",{class:ye({illegal:!ze.value}),textContent:ee(X.value)},null,10,Mh)])):Y("v-if",!0),it("  "+ee(z.value.word),1)]),K(r).login!=="disable"&&!re.value?(A(),M("button",{key:0,type:"button",class:"wl-btn",onClick:bi,textContent:ee(z.value.login)},null,8,Oh)):Y("v-if",!0),K(r).login!=="force"||re.value?(A(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:oe.value,onClick:Fe},[oe.value?(A(),nt(K(bn),{key:0,size:16})):(A(),M(ue,{key:1},[it(ee(z.value.submit),1)],64))],8,zh)):Y("v-if",!0)]),P("div",{ref_key:"gifPopupRef",ref:I,class:ye(["wl-gif-popup",{display:U.value}])},[P("input",{ref_key:"gifSearchInputRef",ref:k,type:"text",placeholder:z.value.gifSearchPlaceholder,onInput:S[4]||(S[4]=(...u)=>K(Wt)&&K(Wt)(...u))},null,40,jh),N.list.length?(A(),nt(oh,{key:0,items:N.list,"column-width":200,gap:6,onInsert:S[5]||(S[5]=u=>Ce(u)),onScroll:Ot},null,8,["items"])):Y("v-if",!0),N.loading?(A(),M("div",Ph,[le(K(bn),{size:30})])):Y("v-if",!0)],2),P("div",{ref_key:"emojiPopupRef",ref:p,class:ye(["wl-emoji-popup",{display:$.value}])},[(A(!0),M(ue,null,Ne(E.value.tabs,(u,h)=>(A(),M(ue,{key:u.name},[h===w.value?(A(),M("div",Fh,[(A(!0),M(ue,null,Ne(u.items,g=>(A(),M("button",{key:g,type:"button",title:g,onClick:v=>Ce(`:${g}:`)},[$.value?(A(),M("img",{key:0,class:"wl-emoji",src:E.value.map[g],alt:g,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Hh)):Y("v-if",!0)],8,Uh))),128))])):Y("v-if",!0)],64))),128)),E.value.tabs.length>1?(A(),M("div",Nh,[(A(!0),M(ue,null,Ne(E.value.tabs,(u,h)=>(A(),M("button",{key:u.name,type:"button",class:ye(["wl-tab",{active:w.value===h}]),onClick:g=>w.value=h},[P("img",{class:"wl-emoji",src:u.icon,alt:u.name,title:u.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Vh)],10,Dh))),128))])):Y("v-if",!0)],2)])]),L.replyId||(he=L.edit)!=null&&he.objectId?(A(),M("button",{key:1,type:"button",class:"wl-close",title:z.value.cancelReply,onClick:S[6]||(S[6]=u=>L.replyId?i("cancelReply"):i("cancelEdit"))},[le(K(no),{size:24})],8,Bh)):Y("v-if",!0)])}}}),fo=xn(Wh,[["__file","CommentBox.vue"]]);const qh=["id"],Kh={class:"wl-user","aria-hidden":"true"},Zh=["src"],Gh={class:"wl-card"},Qh={class:"wl-head"},Jh=["href"],Yh={key:1,class:"wl-nick"},Xh=["textContent"],ed=["textContent"],td=["textContent"],nd=["textContent"],id=["textContent"],rd={class:"wl-comment-actions"},ld=["title"],sd=["title"],od={class:"wl-meta","aria-hidden":"true"},ad=["data-value","textContent"],cd={key:0,class:"wl-content"},ud={key:0},fd=["href"],hd=P("span",null,": ",-1),dd=["innerHTML"],pd={key:1,class:"wl-admin-actions"},gd={class:"wl-comment-status"},md=["disabled","onClick","textContent"],vd={key:3,class:"wl-quote"};var yd=ln({__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=Qn("config"),s=ro(),o=_u(),a=yi(),c=_e(()=>l.value.locale),f=_e(()=>{const{link:w}=n.comment;return w?Zr(w)?w:`https://${w}`:""}),d=_e(()=>s.value.includes(n.comment.objectId)),p=_e(()=>Uo(new Date(n.comment.time),o.value,c.value)),m=_e(()=>a.value.type==="administrator"),I=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),k=_e(()=>{var w;return n.comment.objectId===((w=n.reply)==null?void 0:w.objectId)}),E=_e(()=>{var w;return n.comment.objectId===((w=n.edit)==null?void 0:w.objectId)});return(w,$)=>{var U;const D=Ua("CommentCard",!0);return A(),M("div",{id:w.comment.objectId,class:"wl-card-item"},[P("div",Kh,[w.comment.avatar?(A(),M("img",{key:0,class:"wl-user-avatar",src:w.comment.avatar},null,8,Zh)):Y("v-if",!0),w.comment.type?(A(),nt(K(Lf),{key:1})):Y("v-if",!0)]),P("div",Gh,[P("div",Qh,[f.value?(A(),M("a",{key:0,class:"wl-nick",href:f.value,target:"_blank",rel:"nofollow noopener noreferrer"},ee(w.comment.nick),9,Jh)):(A(),M("span",Yh,ee(w.comment.nick),1)),w.comment.type==="administrator"?(A(),M("span",{key:2,class:"wl-badge",textContent:ee(c.value.admin)},null,8,Xh)):Y("v-if",!0),w.comment.label?(A(),M("span",{key:3,class:"wl-badge",textContent:ee(w.comment.label)},null,8,ed)):Y("v-if",!0),w.comment.sticky?(A(),M("span",{key:4,class:"wl-badge",textContent:ee(c.value.sticky)},null,8,td)):Y("v-if",!0),typeof w.comment.level=="number"?(A(),M("span",{key:5,class:ye(`wl-badge level${w.comment.level}`),textContent:ee(c.value[`level${w.comment.level}`]||`Level ${w.comment.level}`)},null,10,nd)):Y("v-if",!0),P("span",{class:"wl-time",textContent:ee(p.value)},null,8,id),P("div",rd,[m.value||I.value?(A(),M(ue,{key:0},[P("button",{type:"button",class:"wl-edit",onClick:$[0]||($[0]=H=>i("edit",w.comment))},[le(K(If))]),P("button",{type:"button",class:"wl-delete",onClick:$[1]||($[1]=H=>i("delete",w.comment))},[le(K(Cf))])],64)):Y("v-if",!0),P("button",{type:"button",class:"wl-like",title:d.value?c.value.cancelLike:c.value.like,onClick:$[2]||($[2]=H=>i("like",w.comment))},[le(K(Tf),{active:d.value},null,8,["active"]),it(" "+ee("like"in w.comment?w.comment.like:""),1)],8,ld),P("button",{type:"button",class:ye(["wl-reply",{active:k.value}]),title:k.value?c.value.cancelReply:c.value.reply,onClick:$[3]||($[3]=H=>i("reply",k.value?null:w.comment))},[le(K(Af))],10,sd)])]),P("div",od,[(A(),M(ue,null,Ne(["addr","browser","os"],H=>(A(),M(ue,null,[w.comment[H]?(A(),M("span",{key:H,class:ye(`wl-${H}`),"data-value":w.comment[H],textContent:ee(w.comment[H])},null,10,ad)):Y("v-if",!0)],64))),64))]),E.value?Y("v-if",!0):(A(),M("div",cd,[w.comment.reply_user?(A(),M("p",ud,[P("a",{href:"#"+w.comment.pid},"@"+ee(w.comment.reply_user.nick),9,fd),hd])):Y("v-if",!0),P("div",{innerHTML:w.comment.comment},null,8,dd)])),m.value&&!E.value?(A(),M("div",pd,[P("span",gd,[(A(),M(ue,null,Ne(r,H=>P("button",{key:H,type:"submit",class:ye(`wl-btn wl-${H}`),disabled:w.comment.status===H,onClick:O=>i("status",{status:H,comment:w.comment}),textContent:ee(c.value[H])},null,10,md)),64))]),m.value&&!("rid"in w.comment)?(A(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:$[4]||($[4]=H=>i("sticky",w.comment))},ee(w.comment.sticky?c.value.unsticky:c.value.sticky),1)):Y("v-if",!0)])):Y("v-if",!0),k.value||E.value?(A(),M("div",{key:2,class:ye({"wl-reply-wrapper":k.value,"wl-edit-wrapper":E.value})},[le(fo,{edit:w.edit,"reply-id":(U=w.reply)==null?void 0:U.objectId,"reply-user":w.comment.nick,"root-id":w.rootId,onLog:$[5]||($[5]=H=>i("log")),onCancelReply:$[6]||($[6]=H=>i("reply",null)),onCancelEdit:$[7]||($[7]=H=>i("edit",null)),onSubmit:$[8]||($[8]=H=>i("submit",H))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Y("v-if",!0),"children"in w.comment?(A(),M("div",vd,[(A(!0),M(ue,null,Ne(w.comment.children,H=>(A(),nt(D,{key:H.objectId,comment:H,reply:w.reply,edit:w.edit,"root-id":w.rootId,onLog:$[9]||($[9]=O=>i("log")),onDelete:$[10]||($[10]=O=>i("delete",O)),onEdit:$[11]||($[11]=O=>i("edit",O)),onLike:$[12]||($[12]=O=>i("like",O)),onReply:$[13]||($[13]=O=>i("reply",O)),onStatus:$[14]||($[14]=O=>i("status",O)),onSticky:$[15]||($[15]=O=>i("sticky",O)),onSubmit:$[16]||($[16]=O=>i("submit",O))},null,8,["comment","reply","edit","root-id"]))),128))])):Y("v-if",!0)])],8,qh)}}}),wd=xn(yd,[["__file","CommentCard.vue"]]);const ho="3.2.1",bd={"data-waline":""},kd={class:"wl-meta-head"},xd={class:"wl-count"},_d=["textContent"],Cd={class:"wl-sort"},$d=["onClick"],Ed={class:"wl-cards"},Td={key:1,class:"wl-operation"},Rd=["textContent"],Sd={key:2,class:"wl-loading"},Ad=["textContent"],Id={key:4,class:"wl-operation"},Ld=["textContent"],Md={key:5,class:"wl-power"},Od=P("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var zd=ln({__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=yi(),l=ro(),s=q("loading"),o=q(0),a=q(1),c=q(0),f=_e(()=>jo(t)),d=q(f.value.commentSorting),p=q([]),m=q(null),I=q(null),k=_e(()=>Po(f.value.dark)),E=_e(()=>f.value.locale);Eu(k,{id:"waline-darkmode"});let w;const $=z=>{var re;const{serverURL:ae,path:Ce,pageSize:we}=f.value,be=new AbortController;s.value="loading",w==null||w(),Er({serverURL:ae,lang:f.value.lang,path:Ce,pageSize:we,sortBy:n[d.value],page:z,signal:be.signal,token:(re=r.value)==null?void 0:re.token}).then(Le=>{s.value="success",o.value=Le.count,p.value.push(...Le.data),a.value=z,c.value=Le.totalPages}).catch(Le=>{Le.name!=="AbortError"&&(console.error(Le.message),s.value="error")}),w=be.abort.bind(be)},U=()=>$(a.value+1),D=()=>{o.value=0,p.value=[],$(1)},H=z=>{d.value!==z&&(d.value=z,D())},O=z=>{m.value=z},N=z=>{I.value=z},X=z=>{if(I.value)I.value.comment=z.comment,I.value.orig=z.orig;else if("rid"in z){const re=p.value.find(({objectId:ae})=>ae===z.rid);if(!re)return;Array.isArray(re.children)||(re.children=[]),re.children.push(z)}else p.value.unshift(z),o.value+=1},ze=async({comment:z,status:re})=>{var ae;if(z.status===re)return;const{serverURL:Ce,lang:we}=f.value;await Kt({serverURL:Ce,lang:we,token:(ae=r.value)==null?void 0:ae.token,objectId:z.objectId,comment:{status:re}}),z.status=re},G=async z=>{var re;if("rid"in z)return;const{serverURL:ae,lang:Ce}=f.value;await Kt({serverURL:ae,lang:Ce,token:(re=r.value)==null?void 0:re.token,objectId:z.objectId,comment:{sticky:z.sticky?0:1}}),z.sticky=!z.sticky},oe=async({objectId:z})=>{var re;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:ae,lang:Ce}=f.value;await Rr({serverURL:ae,lang:Ce,token:(re=r.value)==null?void 0:re.token,objectId:z}),p.value.some((we,be)=>we.objectId===z?(p.value=p.value.filter((Le,yt)=>yt!==be),!0):we.children.some((Le,yt)=>Le.objectId===z?(p.value[be].children=we.children.filter((Mt,Fe)=>Fe!==yt),!0):!1))},Te=async z=>{var re;const{serverURL:ae,lang:Ce}=f.value,{objectId:we}=z,be=l.value.includes(we);await Kt({serverURL:ae,lang:Ce,objectId:we,token:(re=r.value)==null?void 0:re.token,comment:{like:!be}}),be?l.value=l.value.filter(Le=>Le!==we):(l.value=[...l.value,we],l.value.length>50&&(l.value=l.value.slice(-50))),z.like=(z.like||0)+(be?-1:1)};return nc("config",f),sn(()=>{He(()=>[t.serverURL,t.path],()=>D(),{immediate:!0})}),Ji(()=>w==null?void 0:w()),(z,re)=>(A(),M("div",bd,[le(th),m.value?Y("v-if",!0):(A(),nt(fo,{key:0,onLog:D,onSubmit:X})),P("div",kd,[P("div",xd,[o.value?(A(),M("span",{key:0,class:"wl-num",textContent:ee(o.value)},null,8,_d)):Y("v-if",!0),it(" "+ee(E.value.comment),1)]),P("ul",Cd,[(A(!0),M(ue,null,Ne(K(i),ae=>(A(),M("li",{key:ae,class:ye([ae===d.value?"active":""]),onClick:Ce=>H(ae)},ee(E.value[ae]),11,$d))),128))])]),P("div",Ed,[(A(!0),M(ue,null,Ne(p.value,ae=>(A(),nt(wd,{key:ae.objectId,"root-id":ae.objectId,comment:ae,reply:m.value,edit:I.value,onLog:D,onReply:O,onEdit:N,onSubmit:X,onStatus:ze,onDelete:oe,onSticky:G,onLike:Te},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(A(),M("div",Td,[P("button",{type:"button",class:"wl-btn",onClick:D,textContent:ee(E.value.refresh)},null,8,Rd)])):s.value==="loading"?(A(),M("div",Sd,[le(K(bn),{size:30})])):p.value.length?a.value<c.value?(A(),M("div",Id,[P("button",{type:"button",class:"wl-btn",onClick:U,textContent:ee(E.value.more)},null,8,Ld)])):Y("v-if",!0):(A(),M("div",{key:3,class:"wl-empty",textContent:ee(E.value.sofa)},null,8,Ad)),f.value.copyright?(A(),M("div",Md,[it(" Powered by "),Od,it(" v"+ee(K(ho)),1)])):Y("v-if",!0)]))}}),jd=xn(zd,[["__file","WalineComment.vue"]]);const po=(e,t)=>{t.forEach((n,i)=>{const r=e[i].time;typeof r=="number"&&(n.innerText=r.toString())})},go=({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=c=>{const f=xr(c);return f!==null&&t!==f},a=c=>Ir({serverURL:Sn(e),paths:c.map(f=>xr(f)??t),lang:r,signal:l.signal}).then(f=>po(f,c)).catch(As);if(i){const c=s.filter(d=>!o(d)),f=s.filter(o);Lr({serverURL:Sn(e),path:t,lang:r}).then(d=>po(d,c)),f.length&&a(f)}else a(s);return l.abort.bind(l)},Pd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:i=!1,...r})=>{const l=e?dr(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=Jt({...r}),o=Jt({comment:n,pageview:i,path:t}),a=()=>{o.comment&&to({serverURL:s.serverURL,path:o.path,...zt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&go({serverURL:s.serverURL,path:o.path,...zt(o.pageview)?{selector:o.pageview}:{}})},f=l?ru(()=>ne(jd,{path:o.path,...s})):null;f&&f.mount(l);const d=jl(a),p=jl(c);return{el:l,update:({comment:m,pageview:I,path:k=window.location.pathname,...E}={})=>{Object.entries(E).forEach(([w,$])=>{s[w]=$}),o.path=k,m!==void 0&&(o.comment=m),I!==void 0&&(o.pageview=I)},destroy:()=>{f==null||f.unmount(),d(),p()}}},Fd=({el:e,serverURL:t,count:n,lang:i=navigator.language})=>{var r;const l=yi(),s=dr(e),o=new AbortController;return Mr({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(c=>`<li class="wl-recent-item"><a href="${c.url}">${c.nick}</a>:${c.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),s.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Ud=({el:e,serverURL:t,count:n,locale:i,lang:r=navigator.language,mode:l="list"})=>{const s=dr(e),o=new AbortController;return Or({serverURL:t,pageSize:n,lang:r,signal:o.signal}).then(a=>!s||!a.length?{users:a,destroy:()=>o.abort()}:(i={...Wr(r),...typeof i=="object"?i:{}},s.innerHTML=`<ul class="wl-user-${l}">${a.map((c,f)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${f+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${i?i[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(d=>d).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),s.innerHTML=""}}))};Z.RecentComments=Fd,Z.UserList=Ud,Z.addComment=Tr,Z.commentCount=to,Z.defaultLocales=Rn,Z.deleteComment=Rr,Z.fetchCommentCount=Sr,Z.getArticleCounter=_i,Z.getComment=Er,Z.getPageview=Ir,Z.getRecentComment=Mr,Z.getUserList=Or,Z.init=Pd,Z.login=Ar,Z.pageviewCount=go,Z.updateArticleCounter=Tn,Z.updateComment=Kt,Z.updatePageview=Lr,Z.version=ho});
73
73
  //# sourceMappingURL=waline.umd.js.map