@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.
- package/dist/comment.js +1 -1
- package/dist/component.js +8 -8
- package/dist/component.js.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/slim.js +8 -8
- package/dist/slim.js.map +1 -1
- package/dist/waline-meta.css.map +1 -1
- package/dist/waline.css.map +1 -1
- package/dist/waline.js +14 -14
- package/dist/waline.js.map +1 -1
- package/dist/waline.umd.js +14 -14
- package/dist/waline.umd.js.map +1 -1
- package/package.json +4 -5
package/dist/waline.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var wo=Object.defineProperty;var bo=(e,t,n)=>t in e?wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pe=(e,t,n)=>(bo(e,typeof t!="symbol"?t+"":t,n),n),ko=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var xi=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)};var Tn=(e,t,n)=>(ko(e,t,"access private method"),n);var Cn,_r,bi,yo;const Tr={"Content-Type":"application/json"},Qe=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(`${Qe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(i.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>wt(s,"Get counter").data),Rn=({serverURL:e,lang:t,path:n,type:i,action:r})=>fetch(`${Qe(e)}article?lang=${t}`,{method:"POST",headers:Tr,body:JSON.stringify({path:n,type:i,action:r})}).then(s=>s.json()).then(s=>wt(s,"Update counter").data),Rr=({serverURL:e,lang:t,path:n,page:i,pageSize:r,sortBy:s,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Qe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${r}&page=${i}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>wt(c,"Get comment data").data)},Sr=({serverURL:e,lang:t,token:n,comment:i})=>{const r={"Content-Type":"application/json"};return n&&(r.Authorization=`Bearer ${n}`),fetch(`${Qe(e)}comment?lang=${t}`,{method:"POST",headers:r,body:JSON.stringify(i)}).then(s=>s.json())},Ar=({serverURL:e,lang:t,token:n,objectId:i})=>fetch(`${Qe(e)}comment/${i}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(r=>r.json()).then(r=>wt(r,"Delete comment")),
|
|
1
|
+
var wo=Object.defineProperty;var bo=(e,t,n)=>t in e?wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pe=(e,t,n)=>(bo(e,typeof t!="symbol"?t+"":t,n),n),ko=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var xi=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)};var Tn=(e,t,n)=>(ko(e,t,"access private method"),n);var Cn,_r,bi,yo;const Tr={"Content-Type":"application/json"},Qe=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(`${Qe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(i.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>wt(s,"Get counter").data),Rn=({serverURL:e,lang:t,path:n,type:i,action:r})=>fetch(`${Qe(e)}article?lang=${t}`,{method:"POST",headers:Tr,body:JSON.stringify({path:n,type:i,action:r})}).then(s=>s.json()).then(s=>wt(s,"Update counter").data),Rr=({serverURL:e,lang:t,path:n,page:i,pageSize:r,sortBy:s,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Qe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${r}&page=${i}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>wt(c,"Get comment data").data)},Sr=({serverURL:e,lang:t,token:n,comment:i})=>{const r={"Content-Type":"application/json"};return n&&(r.Authorization=`Bearer ${n}`),fetch(`${Qe(e)}comment?lang=${t}`,{method:"POST",headers:r,body:JSON.stringify(i)}).then(s=>s.json())},Ar=({serverURL:e,lang:t,token:n,objectId:i})=>fetch(`${Qe(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(`${Qe(e)}comment/${i}?lang=${t}`,{method:"PUT",headers:{...Tr,Authorization:`Bearer ${n}`},body:JSON.stringify(r)}).then(s=>s.json()).then(s=>wt(s,"Update comment")),Ir=({serverURL:e,lang:t,paths:n,signal:i})=>fetch(`${Qe(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:i}).then(r=>r.json()).then(r=>wt(r,"Get comment count").data),Lr=({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(s=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(r==null||r.close(),window.removeEventListener("message",l),s(o.data))};window.addEventListener("message",l)})},Mr=({serverURL:e,lang:t,paths:n,signal:i})=>_i({serverURL:e,lang:t,paths:n,type:["time"],signal:i}),Or=e=>Rn({...e,type:"time",action:"inc"}),zr=({serverURL:e,lang:t,count:n,signal:i,token:r})=>{const s={};return r&&(s.Authorization=`Bearer ${r}`),fetch(`${Qe(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:i,headers:s}).then(l=>l.json())},jr=({serverURL:e,signal:t,pageSize:n,lang:i})=>fetch(`${Qe(e)}user?pageSize=${n}&lang=${i}`,{signal:t}).then(r=>r.json()).then(r=>wt(r,"user list")).then(r=>r.data),xo=["nick","mail","link"],Pr=e=>e.filter(t=>xo.includes(t)),Fr=["//unpkg.com/@waline/emojis@1.1.0/weibo"],_o=["//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"],Co=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>',Eo=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(s=>({title:s.title,src:s.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()})}},To=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Ro=/</,So=/(?:^|\s)\/\/(.+?)$/gm,Ao=/\/\*([\S\s]*?)\*\//gm,Io=new RegExp(`(${To.source}|${Ro.source})|((?:${So.source})|(?:${Ao.source}))`,"gmi"),Ur=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Ci={},Lo=e=>{let t=0;return e.replace(Io,(n,i,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if(i==="<")return"<";let s;Ci[i]?s=Ci[i]:(s=Ur[t],Ci[i]=s);const l=`<span style="color: #${s}">${i}</span>`;return t=++t%Ur.length,l})},Mo=["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"],ot=e=>Object.fromEntries(e.map((t,n)=>[Mo[n],t]));var Hr=ot(["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?"]),Nr=ot(["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 ?"]),Dr=ot(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
|
4
4
|
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Oo=ot(["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 wo=Object.defineProperty;var bo=(e,t,n)=>t in e?wo(e,t,{enumerable:!0,config
|
|
|
6
6
|
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Br=ot(["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?"]),Wr=ot(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
|
8
8
|
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),zo=ot(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
|
9
|
-
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const qr="en-US",Sn={zh:Wr,"zh-cn":Wr,"zh-tw":zo,en:Hr,"en-us":Hr,fr:Nr,"fr-fr":Nr,jp:Dr,"jp-jp":Dr,"pt-br":Oo,ru:Vr,"ru-ru":Vr,vi:Br,"vi-vn":Br},Kr=e=>Sn[e.toLowerCase()]||Sn[qr],jo=e=>Object.keys(Sn).includes(e.toLowerCase())?e:qr,Zr=e=>{try{e=decodeURI(e)}catch{}return e},Gr=(e="")=>e.replace(/\/$/u,""),Qr=e=>/^(https?:)?\/\//.test(e),An=e=>{const t=Gr(e);return Qr(t)?t:`https://${t}`},Po=e=>Array.isArray(e)?e:e?[0,e]:!1,$i=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Fo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:i,emoji:r=Fr,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:f,highlighter:d,texRenderer:p,copyright:m=!0,login:A="enable",search:k,reaction:E,recaptchaV3Key:w="",turnstileKey:$="",commentSorting:U="latest",...D})=>({serverURL:An(e),path:Zr(t),lang:jo(n),locale:{...Kr(n),...typeof i=="object"?i:{}},wordLimit:Po(c),meta:Pr(s),requiredMeta:Pr(l),imageUploader:$i(f,Co),highlighter:$i(d,Lo),texRenderer:$i(p,$o),dark:o,emoji:typeof r=="boolean"?r?Fr:[]:r,pageSize:a,login:A,copyright:m,search:k===!1?!1:typeof k=="object"?k:Eo(n),recaptchaV3Key:w,turnstileKey:$,reaction:Array.isArray(E)?E:E===!0?_o:[],commentSorting:U,...D}),
|
|
9
|
+
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const qr="en-US",Sn={zh:Wr,"zh-cn":Wr,"zh-tw":zo,en:Hr,"en-us":Hr,fr:Nr,"fr-fr":Nr,jp:Dr,"jp-jp":Dr,"pt-br":Oo,ru:Vr,"ru-ru":Vr,vi:Br,"vi-vn":Br},Kr=e=>Sn[e.toLowerCase()]||Sn[qr],jo=e=>Object.keys(Sn).includes(e.toLowerCase())?e:qr,Zr=e=>{try{e=decodeURI(e)}catch{}return e},Gr=(e="")=>e.replace(/\/$/u,""),Qr=e=>/^(https?:)?\/\//.test(e),An=e=>{const t=Gr(e);return Qr(t)?t:`https://${t}`},Po=e=>Array.isArray(e)?e:e?[0,e]:!1,$i=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Fo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:i,emoji:r=Fr,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:f,highlighter:d,texRenderer:p,copyright:m=!0,login:A="enable",search:k,reaction:E,recaptchaV3Key:w="",turnstileKey:$="",commentSorting:U="latest",...D})=>({serverURL:An(e),path:Zr(t),lang:jo(n),locale:{...Kr(n),...typeof i=="object"?i:{}},wordLimit:Po(c),meta:Pr(s),requiredMeta:Pr(l),imageUploader:$i(f,Co),highlighter:$i(d,Lo),texRenderer:$i(p,$o),dark:o,emoji:typeof r=="boolean"?r?Fr:[]:r,pageSize:a,login:A,copyright:m,search:k===!1?!1:typeof k=="object"?k:Eo(n),recaptchaV3Key:w,turnstileKey:$,reaction:Array.isArray(E)?E:E===!0?_o:[],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}",Uo=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},Ho=e=>{const t=Ti(e.getDate(),2),n=Ti(e.getMonth()+1,2);return`${Ti(e.getFullYear(),2)}-${n}-${t}`},No=(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(),s=Math.floor(r/(24*3600*1e3));if(s===0){const l=r%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%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 s<0?n.now:s<8?`${s} ${n.days}`:Ho(i)},Do=/^[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])?)*$/,Vo=e=>Do.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 ue={},
|
|
13
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Ri(e,t){const n=new Set(e.split(","));return i=>n.has(i)}const ue={},jt=[],Je=()=>{},Bo=()=>!1,In=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,Jr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Wo=Object.prototype.hasOwnProperty,J=(e,t)=>Wo.call(e,t),V=Array.isArray,Pt=e=>Kt(e)==="[object Map]",Ft=e=>Kt(e)==="[object Set]",Yr=e=>Kt(e)==="[object Date]",ie=e=>typeof e=="function",be=e=>typeof e=="string",Ye=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",Xr=e=>(de(e)||ie(e))&&ie(e.then)&&ie(e.catch),es=Object.prototype.toString,Kt=e=>es.call(e),qo=e=>Kt(e).slice(8,-1),ts=e=>Kt(e)==="[object Object]",Ai=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Zt=Ri(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ln=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ko=/-(\w)/g,We=Ln(e=>e.replace(Ko,(t,n)=>n?n.toUpperCase():"")),Zo=/\B([A-Z])/g,Ut=Ln(e=>e.replace(Zo,"-$1").toLowerCase()),Mn=Ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ii=Ln(e=>e?`on${Mn(e)}`:""),at=(e,t)=>!Object.is(e,t),On=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ns=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},zn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let is;const Li=()=>is||(is=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=be(i)?Yo(i):Gt(i);if(r)for(const s in r)t[s]=r[s]}return t}else if(be(e)||de(e))return e}const Go=/;(?![^(]*\))/g,Qo=/:([^]+)/,Jo=/\/\*[^]*?\*\//g;function Yo(e){const t={};return e.replace(Jo,"").split(Go).forEach(n=>{if(n){const i=n.split(Qo);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function ge(e){let t="";if(be(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const i=ge(e[n]);i&&(t+=i+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Xo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ea=Ri(Xo);function rs(e){return!!e||e===""}function ta(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=Yr(e),i=Yr(t);if(n||i)return n&&i?e.getTime()===t.getTime():!1;if(n=Ye(e),i=Ye(t),n||i)return e===t;if(n=V(e),i=V(t),n||i)return n&&i?ta(e,t):!1;if(n=de(e),i=de(t),n||i){if(!n||!i)return!1;const r=Object.keys(e).length,s=Object.keys(t).length;if(r!==s)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!bt(e[l],t[l]))return!1}}return String(e)===String(t)}function Mi(e,t){return e.findIndex(n=>bt(n,t))}const X=e=>be(e)?e:e==null?"":V(e)||de(e)&&(e.toString===es||!ie(e.toString))?JSON.stringify(e,ss,2):String(e),ss=(e,t)=>t&&t.__v_isRef?ss(e,t.value):Pt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,r],s)=>(n[Oi(i,s)+" =>"]=r,n),{})}:Ft(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Oi(n))}:Ye(t)?Oi(t):de(t)&&!V(t)&&!ts(t)?String(t):t,Oi=(e,t="")=>{var n;return Ye(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 ze;class na{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){ze=this}off(){ze=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 ia(e,t=ze){t&&t.active&&t.effects.push(e)}function ls(){return ze}function ra(e){ze&&ze.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,ia(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=ct,n=kt;try{return ct=!0,kt=this,this._runnings++,os(this),this.fn()}finally{as(this),this._runnings--,kt=n,ct=t}}stop(){this.active&&(os(this),as(this),this.onStop&&this.onStop(),this.active=!1)}}function os(e){e._trackId++,e._depsLength=0}function as(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)cs(e.deps[t],e);e.deps.length=e._depsLength}}function cs(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let ct=!0,ji=0;const us=[];function xt(){us.push(ct),ct=!1}function _t(){const e=us.pop();ct=e===void 0?!0:e}function Pi(){ji++}function Fi(){for(ji--;!ji&&Ui.length;)Ui.shift()()}function fs(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&cs(i,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ui=[];function hs(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 ds=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Hi=new WeakMap,Ct=Symbol(""),Ni=Symbol("");function Ie(e,t,n){if(ct&&kt){let i=Hi.get(e);i||Hi.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=ds(()=>i.delete(n))),fs(kt,r)}}function Xe(e,t,n,i,r,s){const l=Hi.get(e);if(!l)return;let o=[];if(t==="clear")o=[...l.values()];else if(n==="length"&&V(e)){const a=Number(i);l.forEach((c,f)=>{(f==="length"||!Ye(f)&&f>=a)&&o.push(c)})}else switch(n!==void 0&&o.push(l.get(n)),t){case"add":V(e)?Ai(n)&&o.push(l.get("length")):(o.push(l.get(Ct)),jt(e)&&o.push(l.get(Ni)));break;case"delete":V(e)||(o.push(l.get(Ct)),jt(e)&&o.push(l.get(Ni)));break;case"set":jt(e)&&o.push(l.get(Ct));break}Pi();for(const a of o)a&&hs(a,4);Fi()}const sa=Ri("__proto__,__v_isRef,__isVue"),ps=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye)),gs=la();function la(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=ee(this);for(let s=0,l=this.length;s<l;s++)Ie(i,"get",s+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(ee)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){xt(),Pi();const i=ee(this)[t].apply(this,n);return Fi(),_t(),i}}),e}function oa(e){Ye(e)||(e=String(e));const t=ee(this);return Ie(t,"has",e),t.hasOwnProperty(e)}class ms{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return i===(r?s?ba:Cs:s?_s:xs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const l=V(t);if(!r){if(l&&J(gs,n))return Reflect.get(gs,n,i);if(n==="hasOwnProperty")return oa}const o=Reflect.get(t,n,i);return(Ye(n)?ps.has(n):sa(n))||(r||Ie(t,"get",n),s)?o:Ee(o)?l&&Ai(n)?o:o.value:de(o)?r?Qt(o):Gt(o):o}}class vs extends ms{constructor(t=!1){super(!1,t)}set(t,n,i,r){let s=t[n];if(!this._isShallow){const a=Yt(s);if(!Dn(i)&&!Yt(i)&&(s=ee(s),i=ee(i)),!V(t)&&Ee(s)&&!Ee(i))return a?!1:(s.value=i,!0)}const l=V(t)&&Ai(n)?Number(n)<t.length:J(t,n),o=Reflect.set(t,n,i,r);return t===ee(r)&&(l?at(i,s)&&Xe(t,"set",n,i):Xe(t,"add",n,i)),o}deleteProperty(t,n){const i=J(t,n),r=Reflect.deleteProperty(t,n);return r&&i&&Xe(t,"delete",n,void 0),r}has(t,n){const i=Reflect.has(t,n);return(!Ye(n)||!ps.has(n))&&Ie(t,"has",n),i}ownKeys(t){return Ie(t,"iterate",V(t)?"length":Ct),Reflect.ownKeys(t)}}class aa extends ms{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ca=new vs,ua=new aa,fa=new vs(!0),Di=e=>e,jn=e=>Reflect.getPrototypeOf(e);function Pn(e,t,n=!1,i=!1){e=e.__v_raw;const r=ee(e),s=ee(t);n||(at(t,s)&&Ie(r,"get",t),Ie(r,"get",s));const{has:l}=jn(r),o=i?Di:n?Wi:Xt;if(l.call(r,t))return o(e.get(t));if(l.call(r,s))return o(e.get(s));e!==r&&e.get(t)}function Fn(e,t=!1){const n=this.__v_raw,i=ee(n),r=ee(e);return t||(at(e,r)&&Ie(i,"has",e),Ie(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Un(e,t=!1){return e=e.__v_raw,!t&&Ie(ee(e),"iterate",Ct),Reflect.get(e,"size",e)}function ys(e){e=ee(e);const t=ee(this);return jn(t).has.call(t,e)||(t.add(e),Xe(t,"add",e,e)),this}function ws(e,t){t=ee(t);const n=ee(this),{has:i,get:r}=jn(n);let s=i.call(n,e);s||(e=ee(e),s=i.call(n,e));const l=r.call(n,e);return n.set(e,t),s?at(t,l)&&Xe(n,"set",e,t):Xe(n,"add",e,t),this}function bs(e){const t=ee(this),{has:n,get:i}=jn(t);let r=n.call(t,e);r||(e=ee(e),r=n.call(t,e)),i&&i.call(t,e);const s=t.delete(e);return r&&Xe(t,"delete",e,void 0),s}function ks(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&Xe(e,"clear",void 0,void 0),n}function Hn(e,t){return function(i,r){const s=this,l=s.__v_raw,o=ee(l),a=t?Di:e?Wi:Xt;return!e&&Ie(o,"iterate",Ct),l.forEach((c,f)=>i.call(r,a(c),a(f),s))}}function Nn(e,t,n){return function(...i){const r=this.__v_raw,s=ee(r),l=jt(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=r[e](...i),f=n?Di:t?Wi:Xt;return!t&&Ie(s,"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 ut(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ha(){const e={get(s){return Pn(this,s)},get size(){return Un(this)},has:Fn,add:ys,set:ws,delete:bs,clear:ks,forEach:Hn(!1,!1)},t={get(s){return Pn(this,s,!1,!0)},get size(){return Un(this)},has:Fn,add:ys,set:ws,delete:bs,clear:ks,forEach:Hn(!1,!0)},n={get(s){return Pn(this,s,!0)},get size(){return Un(this,!0)},has(s){return Fn.call(this,s,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:Hn(!0,!1)},i={get(s){return Pn(this,s,!0,!0)},get size(){return Un(this,!0)},has(s){return Fn.call(this,s,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Nn(s,!1,!1),n[s]=Nn(s,!0,!1),t[s]=Nn(s,!1,!0),i[s]=Nn(s,!0,!0)}),[e,n,t,i]}const[da,pa,ga,ma]=ha();function Vi(e,t){const n=t?e?ma:ga:e?pa:da;return(i,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(J(n,r)&&r in i?n:i,r,s)}const va={get:Vi(!1,!1)},ya={get:Vi(!1,!0)},wa={get:Vi(!0,!1)},xs=new WeakMap,_s=new WeakMap,Cs=new WeakMap,ba=new WeakMap;function ka(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xa(e){return e.__v_skip||!Object.isExtensible(e)?0:ka(qo(e))}function Gt(e){return Yt(e)?e:Bi(e,!1,ca,va,xs)}function _a(e){return Bi(e,!1,fa,ya,_s)}function Qt(e){return Bi(e,!0,ua,wa,Cs)}function Bi(e,t,n,i,r){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const l=xa(e);if(l===0)return e;const o=new Proxy(e,l===2?i:n);return r.set(e,o),o}function Jt(e){return Yt(e)?Jt(e.__v_raw):!!(e&&e.__v_isReactive)}function Yt(e){return!!(e&&e.__v_isReadonly)}function Dn(e){return!!(e&&e.__v_isShallow)}function $s(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function Ca(e){return Object.isExtensible(e)&&ns(e,"__v_skip",!0),e}const Xt=e=>de(e)?Gt(e):e,Wi=e=>de(e)?Qt(e):e;class Es{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),()=>Vn(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=ee(this);return(!t._cacheable||t.effect.dirty)&&at(t._value,t._value=t.effect.run())&&Vn(t,4),Ts(t),t.effect._dirtyLevel>=2&&Vn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function $a(e,t,n=!1){let i,r;const s=ie(e);return s?(i=e,r=Je):(i=e.get,r=e.set),new Es(i,r,s||!r,n)}function Ts(e){var t;ct&&kt&&(e=ee(e),fs(kt,(t=e.dep)!=null?t:e.dep=ds(()=>e.dep=void 0,e instanceof Es?e:void 0)))}function Vn(e,t=4,n){e=ee(e);const i=e.dep;i&&hs(i,t)}function Ee(e){return!!(e&&e.__v_isRef===!0)}function q(e){return Rs(e,!1)}function Ea(e){return Rs(e,!0)}function Rs(e,t){return Ee(e)?e:new Ta(e,t)}class Ta{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:Xt(t)}get value(){return Ts(this),this._value}set value(t){const n=this.__v_isShallow||Dn(t)||Yt(t);t=n?t:ee(t),at(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Xt(t),Vn(this,4))}}function K(e){return Ee(e)?e.value:e}const Ra={get:(e,t,n)=>K(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Ee(r)&&!Ee(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Ss(e){return Jt(e)?e:new Proxy(e,Ra)}/**
|
|
17
|
+
**/let ze;class na{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){ze=this}off(){ze=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 ia(e,t=ze){t&&t.active&&t.effects.push(e)}function ls(){return ze}function ra(e){ze&&ze.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,ia(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=ct,n=kt;try{return ct=!0,kt=this,this._runnings++,os(this),this.fn()}finally{as(this),this._runnings--,kt=n,ct=t}}stop(){this.active&&(os(this),as(this),this.onStop&&this.onStop(),this.active=!1)}}function os(e){e._trackId++,e._depsLength=0}function as(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)cs(e.deps[t],e);e.deps.length=e._depsLength}}function cs(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let ct=!0,ji=0;const us=[];function xt(){us.push(ct),ct=!1}function _t(){const e=us.pop();ct=e===void 0?!0:e}function Pi(){ji++}function Fi(){for(ji--;!ji&&Ui.length;)Ui.shift()()}function fs(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const i=e.deps[e._depsLength];i!==t?(i&&cs(i,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ui=[];function hs(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 ds=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Hi=new WeakMap,Ct=Symbol(""),Ni=Symbol("");function Ie(e,t,n){if(ct&&kt){let i=Hi.get(e);i||Hi.set(e,i=new Map);let r=i.get(n);r||i.set(n,r=ds(()=>i.delete(n))),fs(kt,r)}}function Xe(e,t,n,i,r,s){const l=Hi.get(e);if(!l)return;let o=[];if(t==="clear")o=[...l.values()];else if(n==="length"&&V(e)){const a=Number(i);l.forEach((c,f)=>{(f==="length"||!Ye(f)&&f>=a)&&o.push(c)})}else switch(n!==void 0&&o.push(l.get(n)),t){case"add":V(e)?Ai(n)&&o.push(l.get("length")):(o.push(l.get(Ct)),Pt(e)&&o.push(l.get(Ni)));break;case"delete":V(e)||(o.push(l.get(Ct)),Pt(e)&&o.push(l.get(Ni)));break;case"set":Pt(e)&&o.push(l.get(Ct));break}Pi();for(const a of o)a&&hs(a,4);Fi()}const sa=Ri("__proto__,__v_isRef,__isVue"),ps=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye)),gs=la();function la(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=ee(this);for(let s=0,l=this.length;s<l;s++)Ie(i,"get",s+"");const r=i[t](...n);return r===-1||r===!1?i[t](...n.map(ee)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){xt(),Pi();const i=ee(this)[t].apply(this,n);return Fi(),_t(),i}}),e}function oa(e){Ye(e)||(e=String(e));const t=ee(this);return Ie(t,"has",e),t.hasOwnProperty(e)}class ms{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,i){const r=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return s;if(n==="__v_raw")return i===(r?s?ba:Cs:s?_s:xs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const l=V(t);if(!r){if(l&&J(gs,n))return Reflect.get(gs,n,i);if(n==="hasOwnProperty")return oa}const o=Reflect.get(t,n,i);return(Ye(n)?ps.has(n):sa(n))||(r||Ie(t,"get",n),s)?o:Ee(o)?l&&Ai(n)?o:o.value:de(o)?r?Jt(o):Qt(o):o}}class vs extends ms{constructor(t=!1){super(!1,t)}set(t,n,i,r){let s=t[n];if(!this._isShallow){const a=Xt(s);if(!Dn(i)&&!Xt(i)&&(s=ee(s),i=ee(i)),!V(t)&&Ee(s)&&!Ee(i))return a?!1:(s.value=i,!0)}const l=V(t)&&Ai(n)?Number(n)<t.length:J(t,n),o=Reflect.set(t,n,i,r);return t===ee(r)&&(l?at(i,s)&&Xe(t,"set",n,i):Xe(t,"add",n,i)),o}deleteProperty(t,n){const i=J(t,n),r=Reflect.deleteProperty(t,n);return r&&i&&Xe(t,"delete",n,void 0),r}has(t,n){const i=Reflect.has(t,n);return(!Ye(n)||!ps.has(n))&&Ie(t,"has",n),i}ownKeys(t){return Ie(t,"iterate",V(t)?"length":Ct),Reflect.ownKeys(t)}}class aa extends ms{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ca=new vs,ua=new aa,fa=new vs(!0),Di=e=>e,jn=e=>Reflect.getPrototypeOf(e);function Pn(e,t,n=!1,i=!1){e=e.__v_raw;const r=ee(e),s=ee(t);n||(at(t,s)&&Ie(r,"get",t),Ie(r,"get",s));const{has:l}=jn(r),o=i?Di:n?Wi:en;if(l.call(r,t))return o(e.get(t));if(l.call(r,s))return o(e.get(s));e!==r&&e.get(t)}function Fn(e,t=!1){const n=this.__v_raw,i=ee(n),r=ee(e);return t||(at(e,r)&&Ie(i,"has",e),Ie(i,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Un(e,t=!1){return e=e.__v_raw,!t&&Ie(ee(e),"iterate",Ct),Reflect.get(e,"size",e)}function ys(e){e=ee(e);const t=ee(this);return jn(t).has.call(t,e)||(t.add(e),Xe(t,"add",e,e)),this}function ws(e,t){t=ee(t);const n=ee(this),{has:i,get:r}=jn(n);let s=i.call(n,e);s||(e=ee(e),s=i.call(n,e));const l=r.call(n,e);return n.set(e,t),s?at(t,l)&&Xe(n,"set",e,t):Xe(n,"add",e,t),this}function bs(e){const t=ee(this),{has:n,get:i}=jn(t);let r=n.call(t,e);r||(e=ee(e),r=n.call(t,e)),i&&i.call(t,e);const s=t.delete(e);return r&&Xe(t,"delete",e,void 0),s}function ks(){const e=ee(this),t=e.size!==0,n=e.clear();return t&&Xe(e,"clear",void 0,void 0),n}function Hn(e,t){return function(i,r){const s=this,l=s.__v_raw,o=ee(l),a=t?Di:e?Wi:en;return!e&&Ie(o,"iterate",Ct),l.forEach((c,f)=>i.call(r,a(c),a(f),s))}}function Nn(e,t,n){return function(...i){const r=this.__v_raw,s=ee(r),l=Pt(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=r[e](...i),f=n?Di:t?Wi:en;return!t&&Ie(s,"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 ut(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ha(){const e={get(s){return Pn(this,s)},get size(){return Un(this)},has:Fn,add:ys,set:ws,delete:bs,clear:ks,forEach:Hn(!1,!1)},t={get(s){return Pn(this,s,!1,!0)},get size(){return Un(this)},has:Fn,add:ys,set:ws,delete:bs,clear:ks,forEach:Hn(!1,!0)},n={get(s){return Pn(this,s,!0)},get size(){return Un(this,!0)},has(s){return Fn.call(this,s,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:Hn(!0,!1)},i={get(s){return Pn(this,s,!0,!0)},get size(){return Un(this,!0)},has(s){return Fn.call(this,s,!0)},add:ut("add"),set:ut("set"),delete:ut("delete"),clear:ut("clear"),forEach:Hn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Nn(s,!1,!1),n[s]=Nn(s,!0,!1),t[s]=Nn(s,!1,!0),i[s]=Nn(s,!0,!0)}),[e,n,t,i]}const[da,pa,ga,ma]=ha();function Vi(e,t){const n=t?e?ma:ga:e?pa:da;return(i,r,s)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?i:Reflect.get(J(n,r)&&r in i?n:i,r,s)}const va={get:Vi(!1,!1)},ya={get:Vi(!1,!0)},wa={get:Vi(!0,!1)},xs=new WeakMap,_s=new WeakMap,Cs=new WeakMap,ba=new WeakMap;function ka(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xa(e){return e.__v_skip||!Object.isExtensible(e)?0:ka(qo(e))}function Qt(e){return Xt(e)?e:Bi(e,!1,ca,va,xs)}function _a(e){return Bi(e,!1,fa,ya,_s)}function Jt(e){return Bi(e,!0,ua,wa,Cs)}function Bi(e,t,n,i,r){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const l=xa(e);if(l===0)return e;const o=new Proxy(e,l===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 Dn(e){return!!(e&&e.__v_isShallow)}function $s(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function Ca(e){return Object.isExtensible(e)&&ns(e,"__v_skip",!0),e}const en=e=>de(e)?Qt(e):e,Wi=e=>de(e)?Jt(e):e;class Es{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),()=>Vn(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=ee(this);return(!t._cacheable||t.effect.dirty)&&at(t._value,t._value=t.effect.run())&&Vn(t,4),Ts(t),t.effect._dirtyLevel>=2&&Vn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function $a(e,t,n=!1){let i,r;const s=ie(e);return s?(i=e,r=Je):(i=e.get,r=e.set),new Es(i,r,s||!r,n)}function Ts(e){var t;ct&&kt&&(e=ee(e),fs(kt,(t=e.dep)!=null?t:e.dep=ds(()=>e.dep=void 0,e instanceof Es?e:void 0)))}function Vn(e,t=4,n){e=ee(e);const i=e.dep;i&&hs(i,t)}function Ee(e){return!!(e&&e.__v_isRef===!0)}function q(e){return Rs(e,!1)}function Ea(e){return Rs(e,!0)}function Rs(e,t){return Ee(e)?e:new Ta(e,t)}class Ta{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ee(t),this._value=n?t:en(t)}get value(){return Ts(this),this._value}set value(t){const n=this.__v_isShallow||Dn(t)||Xt(t);t=n?t:ee(t),at(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:en(t),Vn(this,4))}}function K(e){return Ee(e)?e.value:e}const Ra={get:(e,t,n)=>K(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const r=e[t];return Ee(r)&&!Ee(n)?(r.value=n,!0):Reflect.set(e,t,n,i)}};function Ss(e){return Yt(e)?e:new Proxy(e,Ra)}/**
|
|
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 ft(e,t,n,i){try{return i?e(...i):e()}catch(r){Bn(r,t,n)}}function qe(e,t,n,i){if(ie(e)){const r=ft(e,t,n,i);return r&&Xr(r)&&r.catch(s=>{Bn(s,t,n)}),r}if(V(e)){const r=[];for(let s=0;s<e.length;s++)r.push(qe(e[s],t,n,i));return r}}function Bn(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const l=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,o)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){xt(),ft(a,null,10,[e,l,o]),_t();return}}Sa(e,n,r,i)}function Sa(e,t,n,i=!0){console.error(e)}let en=!1,qi=!1;const Ce=[];let Ke=0;const Ut=[];let ht=null,$t=0;const As=Promise.resolve();let Ki=null;function tn(e){const t=Ki||As;return e?t.then(this?e.bind(this):e):t}function Aa(e){let t=Ke+1,n=Ce.length;for(;t<n;){const i=t+n>>>1,r=Ce[i],s=nn(r);s<e||s===e&&r.pre?t=i+1:n=i}return t}function Zi(e){(!Ce.length||!Ce.includes(e,en&&e.allowRecurse?Ke+1:Ke))&&(e.id==null?Ce.push(e):Ce.splice(Aa(e.id),0,e),Is())}function Is(){!en&&!qi&&(qi=!0,Ki=As.then(Os))}function Ia(e){const t=Ce.indexOf(e);t>Ke&&Ce.splice(t,1)}function La(e){V(e)?Ut.push(...e):(!ht||!ht.includes(e,e.allowRecurse?$t+1:$t))&&Ut.push(e),Is()}function Ls(e,t,n=en?Ke+1:0){for(;n<Ce.length;n++){const i=Ce[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;Ce.splice(n,1),n--,i()}}}function Ms(e){if(Ut.length){const t=[...new Set(Ut)].sort((n,i)=>nn(n)-nn(i));if(Ut.length=0,ht){ht.push(...t);return}for(ht=t,$t=0;$t<ht.length;$t++)ht[$t]();ht=null,$t=0}}const nn=e=>e.id==null?1/0:e.id,Ma=(e,t)=>{const n=nn(e)-nn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Os(e){qi=!1,en=!0,Ce.sort(Ma);try{for(Ke=0;Ke<Ce.length;Ke++){const t=Ce[Ke];t&&t.active!==!1&&ft(t,null,14)}}finally{Ke=0,Ce.length=0,Ms(),en=!1,Ki=null,(Ce.length||Ut.length)&&Os()}}function Oa(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||ue;let r=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in i){const f=`${l==="modelValue"?"model":l}Modifiers`,{number:d,trim:p}=i[f]||ue;p&&(r=n.map(m=>be(m)?m.trim():m)),d&&(r=n.map(zn))}let o,a=i[o=Ii(t)]||i[o=Ii(We(t))];!a&&s&&(a=i[o=Ii(Ft(t))]),a&&qe(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,qe(c,e,6,r)}}function za(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const s=e.emits;let l={};return!s&&!!1?(de(e)&&i.set(e,null),null):(V(s)?s.forEach(a=>l[a]=null):_e(l,s),de(e)&&i.set(e,l),l)}function Wn(e,t){return!e||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,Ft(t))||J(e,t))}let Te=null,zs=null;function qn(e){const t=Te;return Te=e,zs=e&&e.type.__scopeId||null,t}function ja(e,t=Te,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&rl(-1);const s=qn(t);let l;try{l=e(...r)}finally{qn(s),i._d&&rl(1)}return l};return i._n=!0,i._c=!0,i._d=!0,i}function Gi(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[s],slots:l,attrs:o,emit:a,render:c,renderCache:f,props:d,data:p,setupState:m,ctx:A,inheritAttrs:k}=e,E=qn(e);let w,$;try{if(n.shapeFlag&4){const D=r||i,H=D;w=Ze(c.call(H,D,f,d,m,p,A)),$=o}else{const D=t;w=Ze(D.length>1?D(d,{attrs:o,slots:l,emit:a}):D(d,null)),$=t.props?o:Pa(o)}}catch(D){cn.length=0,Bn(D,e,1),w=oe(St)}let U=w;if($&&k!==!1){const D=Object.keys($),{shapeFlag:H}=U;D.length&&H&7&&(s&&D.some(Si)&&($=Fa($,s)),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,qn(E),w}const Pa=e=>{let t;for(const n in e)(n==="class"||n==="style"||In(n))&&((t||(t={}))[n]=e[n]);return t},Fa=(e,t)=>{const n={};for(const i in e)(!Si(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Ua(e,t,n){const{props:i,children:r,component:s}=e,{props:l,children:o,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?js(i,l,c):!!l;if(a&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const p=f[d];if(l[p]!==i[p]&&!Wn(c,p))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===l?!1:i?l?js(i,l,c):!0:!!l;return!1}function js(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 s=i[r];if(t[s]!==e[s]&&!Wn(n,s))return!0}return!1}function Ha({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 Na="components";function Da(e,t){return Ba(Na,e,!0,t)||e}const Va=Symbol.for("v-ndc");function Ba(e,t,n=!0,i=!1){const r=Te||Se;if(r){const s=r.type;{const o=Ac(s,!1);if(o&&(o===t||o===We(t)||o===Mn(We(t))))return s}const l=Ps(r[e]||s[e],t)||Ps(r.appContext[e],t);return!l&&i?s:l}}function Ps(e,t){return e&&(e[t]||e[We(t)]||e[Mn(We(t))])}const Wa=e=>e.__isSuspense;function qa(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):La(e)}const Ka=Symbol.for("v-scx"),Za=()=>Jn(Ka);function Fs(e,t){return Us(e,null,t)}const Kn={};function Fe(e,t,n){return Us(e,t,n)}function Us(e,t,{immediate:n,deep:i,flush:r,once:s,onTrack:l,onTrigger:o}=ue){if(t&&s){const O=t;t=(...N)=>{O(...N),H()}}const a=Se,c=O=>i===!0?O:Et(O,i===!1?1:void 0);let f,d=!1,p=!1;if(Ee(e)?(f=()=>e.value,d=Dn(e)):Jt(e)?(f=()=>c(e),d=!0):V(e)?(p=!0,d=e.some(O=>Jt(O)||Dn(O)),f=()=>e.map(O=>{if(Ee(O))return O.value;if(Jt(O))return c(O);if(ie(O))return ft(O,a,2)})):ie(e)?t?f=()=>ft(e,a,2):f=()=>(m&&m(),qe(e,a,3,[A])):f=Je,t&&i){const O=f;f=()=>Et(O())}let m,A=O=>{m=U.onStop=()=>{ft(O,a,4),m=U.onStop=void 0}},k;if(ti)if(A=Je,t?n&&qe(t,a,3,[f(),p?[]:void 0,A]):f(),r==="sync"){const O=Za();k=O.__watcherHandles||(O.__watcherHandles=[])}else return Je;let E=p?new Array(e.length).fill(Kn):Kn;const w=()=>{if(!(!U.active||!U.dirty))if(t){const O=U.run();(i||d||(p?O.some((N,Q)=>at(N,E[Q])):at(O,E)))&&(m&&m(),qe(t,a,3,[O,E===Kn?void 0:p&&E[0]===Kn?[]:E,A]),E=O)}else U.run()};w.allowRecurse=!!t;let $;r==="sync"?$=w:r==="post"?$=()=>Le(w,a&&a.suspense):(w.pre=!0,a&&(w.id=a.uid),$=()=>Zi(w));const U=new zi(f,Je,$),D=ls(),H=()=>{U.stop(),D&&Jr(D.effects,U)};return t?n?w():E=U.run():r==="post"?Le(U.run.bind(U),a&&a.suspense):U.run(),k&&k.push(H),H}function Et(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ee(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(ts(e))for(const i in e)Et(e[i],t,n);return e}function Zn(e,t){if(Te===null)return e;const n=ni(Te)||Te.proxy,i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,l,o,a=ue]=t[r];s&&(ie(s)&&(s={mounted:s,updated:s}),s.deep&&Et(l),i.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Tt(e,t,n,i){const r=e.dirs,s=t&&t.dirs;for(let l=0;l<r.length;l++){const o=r[l];s&&(o.oldValue=s[l].value);let a=o.dir[i];a&&(xt(),qe(a,n,8,[e.el,o,e,t]),_t())}}/*! #__NO_SIDE_EFFECTS__ */function rn(e,t){return ie(e)?_e({name:e.name},t,{setup:e}):e}const Gn=e=>!!e.type.__asyncLoader,Ga=e=>e.type.__isKeepAlive;function Qa(e,t,n=Se,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;xt();const o=ar(n),a=qe(t,n,e,l);return o(),_t(),a});return i?r.unshift(s):r.push(s),s}}const Qi=e=>(t,n=Se)=>(!ti||e==="sp")&&Qa(e,(...i)=>t(...i),n),sn=Qi("m"),Ja=Qi("bum"),Ji=Qi("um");function Ue(e,t,n,i){let r;const s=n;if(V(e)||be(e)){r=new Array(e.length);for(let l=0,o=e.length;l<o;l++)r[l]=t(e[l],l,void 0,s)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,s)}else if(de(e))if(e[Symbol.iterator])r=Array.from(e,(l,o)=>t(l,o,void 0,s));else{const l=Object.keys(e);r=new Array(l.length);for(let o=0,a=l.length;o<a;o++){const c=l[o];r[o]=t(e[c],c,o,s)}}else r=[];return r}const Yi=e=>e?al(e)?ni(e)||e.proxy:Yi(e.parent):null,ln=_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=tn.bind(e.proxy)),$watch:e=>Je}),Xi=(e,t)=>e!==ue&&!e.__isScriptSetup&&J(e,t),Ya={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:s,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const m=l[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 s[t]}else{if(Xi(i,t))return l[t]=1,i[t];if(r!==ue&&J(r,t))return l[t]=2,r[t];if((c=e.propsOptions[0])&&J(c,t))return l[t]=3,s[t];if(n!==ue&&J(n,t))return l[t]=4,n[t];l[t]=0}}const f=ln[t];let d,p;if(f)return t==="$attrs"&&Ie(e.attrs,"get",""),f(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(n!==ue&&J(n,t))return l[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:s}=e;return Xi(r,t)?(r[t]=n,!0):i!==ue&&J(i,t)?(i[t]=n,!0):J(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:s}},l){let o;return!!n[l]||e!==ue&&J(e,l)||Xi(t,l)||(o=s[0])&&J(o,l)||J(i,l)||J(ln,l)||J(r.config.globalProperties,l)},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 Hs(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Xa(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,o=s.get(t);let a;return o?a=o:!r.length&&!n&&!i?a=t:(a={},r.length&&r.forEach(c=>Qn(a,c,l,!0)),Qn(a,t,l)),de(t)&&s.set(t,a),a}function Qn(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&Qn(e,s,n,!0),r&&r.forEach(l=>Qn(e,l,n,!0));for(const l in t)if(!(i&&l==="expose")){const o=ec[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const ec={data:Ns,props:Vs,emits:Vs,methods:on,computed:on,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:on,directives:on,watch:nc,provide:Ns,inject:tc};function Ns(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 tc(e,t){return on(Ds(e),Ds(t))}function Ds(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Re(e,t){return e?[...new Set([].concat(e,t))]:t}function on(e,t){return e?_e(Object.create(null),e,t):t}function Vs(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:_e(Object.create(null),Hs(e),Hs(t??{})):t}function nc(e,t){if(!e)return t;if(!t)return e;const n=_e(Object.create(null),e);for(const i in t)n[i]=Re(e[i],t[i]);return n}function Bs(){return{app:null,config:{isNativeTag:Bo,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 ic=0;function rc(e,t){return function(i,r=null){ie(i)||(i=_e({},i)),r!=null&&!de(r)&&(r=null);const s=Bs(),l=new WeakSet;let o=!1;const a=s.app={_uid:ic++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:Lc,get config(){return s.config},set config(c){},use(c,...f){return l.has(c)||(c&&ie(c.install)?(l.add(c),c.install(a,...f)):ie(c)&&(l.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(s.components[c]=f,a):s.components[c]},directive(c,f){return f?(s.directives[c]=f,a):s.directives[c]},mount(c,f,d){if(!o){const p=oe(i,r);return p.appContext=s,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,ni(p.component)||p.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return s.provides[c]=f,a},runWithContext(c){const f=an;an=a;try{return c()}finally{an=f}}};return a}}let an=null;function sc(e,t){if(Se){let n=Se.provides;const i=Se.parent&&Se.parent.provides;i===n&&(n=Se.provides=Object.create(i)),n[e]=t}}function Jn(e,t,n=!1){const i=Se||Te;if(i||an){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:an._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 Ws={},qs=()=>Object.create(Ws),Ks=e=>Object.getPrototypeOf(e)===Ws;function lc(e,t,n,i=!1){const r={},s=qs();e.propsDefaults=Object.create(null),Zs(e,t,r,s);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=i?r:_a(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function oc(e,t,n,i){const{props:r,attrs:s,vnode:{patchFlag:l}}=e,o=ee(r),[a]=e.propsOptions;let c=!1;if((i||l>0)&&!(l&16)){if(l&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let p=f[d];if(Wn(e.emitsOptions,p))continue;const m=t[p];if(a)if(J(s,p))m!==s[p]&&(s[p]=m,c=!0);else{const A=We(p);r[A]=er(a,o,A,m,e,!1)}else m!==s[p]&&(s[p]=m,c=!0)}}}else{Zs(e,t,r,s)&&(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(s!==o)for(const d in s)(!t||!J(t,d))&&(delete s[d],c=!0)}c&&Xe(e.attrs,"set","")}function Zs(e,t,n,i){const[r,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(Kt(a))continue;const c=t[a];let f;r&&J(r,f=We(a))?!s||!s.includes(f)?n[f]=c:(o||(o={}))[f]=c:Wn(e.emitsOptions,a)||(!(a in i)||c!==i[a])&&(i[a]=c,l=!0)}if(s){const a=ee(n),c=o||ue;for(let f=0;f<s.length;f++){const d=s[f];n[d]=er(r,a,d,c[d],e,!J(c,d))}}return l}function er(e,t,n,i,r,s){const l=e[n];if(l!=null){const o=J(l,"default");if(o&&i===void 0){const a=l.default;if(l.type!==Function&&!l.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}l[0]&&(s&&!o?i=!1:l[1]&&(i===""||i===Ft(n))&&(i=!0))}return i}function ac(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const s=e.props,l={},o=[];if(!s&&!!1)return de(e)&&i.set(e,zt),zt;if(V(s))for(let f=0;f<s.length;f++){const d=We(s[f]);Gs(d)&&(l[d]=ue)}else if(s)for(const f in s){const d=We(f);if(Gs(d)){const p=s[f],m=l[d]=V(p)||ie(p)?{type:p}:_e({},p);if(m){const A=Ys(Boolean,m.type),k=Ys(String,m.type);m[0]=A>-1,m[1]=k<0||A<k,(A>-1||J(m,"default"))&&o.push(d)}}}const c=[l,o];return de(e)&&i.set(e,c),c}function Gs(e){return e[0]!=="$"&&!Kt(e)}function Qs(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Js(e,t){return Qs(e)===Qs(t)}function Ys(e,t){return V(t)?t.findIndex(n=>Js(n,e)):ie(t)&&Js(t,e)?0:-1}const Xs=e=>e[0]==="_"||e==="$stable",tr=e=>V(e)?e.map(Ze):[Ze(e)],cc=(e,t,n)=>{if(t._n)return t;const i=ja((...r)=>tr(t(...r)),n);return i._c=!1,i},el=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Xs(r))continue;const s=e[r];if(ie(s))t[r]=cc(r,s,i);else if(s!=null){const l=tr(s);t[r]=()=>l}}},tl=(e,t)=>{const n=tr(t);e.slots.default=()=>n},uc=(e,t)=>{const n=e.slots=qs();if(e.vnode.shapeFlag&32){const i=t._;i?(_e(n,t),ns(n,"_",i,!0)):el(t,n)}else t&&tl(e,t)},fc=(e,t,n)=>{const{vnode:i,slots:r}=e;let s=!0,l=ue;if(i.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:(_e(r,t),!n&&o===1&&delete r._):(s=!t.$stable,el(t,r)),l=t}else t&&(tl(e,t),l={default:1});if(s)for(const o in r)!Xs(o)&&l[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(Gn(i)&&!r)return;const s=i.shapeFlag&4?ni(i.component)||i.component.proxy:i.el,l=r?null:s,{i:o,r:a}=e,c=t&&t.r,f=o.refs===ue?o.refs={}:o.refs,d=o.setupState;if(c!=null&&c!==a&&(be(c)?(f[c]=null,J(d,c)&&(d[c]=null)):Ee(c)&&(c.value=null)),ie(a))ft(a,o,12,[l,f]);else{const p=be(a),m=Ee(a);if(p||m){const A=()=>{if(e.f){const k=p?J(d,a)?d[a]:f[a]:a.value;r?V(k)&&Jr(k,s):V(k)?k.includes(s)||k.push(s):p?(f[a]=[s],J(d,a)&&(d[a]=f[a])):(a.value=[s],e.k&&(f[e.k]=a.value))}else p?(f[a]=l,J(d,a)&&(d[a]=l)):m&&(a.value=l,e.k&&(f[e.k]=l))};l?(A.id=-1,Le(A,n)):A()}}}function hc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Li().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Le=qa;function dc(e){return pc(e)}function pc(e,t){hc();const n=Li();n.__VUE__=!0;const{insert:i,remove:r,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:m=Je,insertStaticContent:A}=e,k=(u,h,g,v=null,y=null,_=null,R=void 0,x=null,T=!!h.dynamicChildren)=>{if(u===h)return;u&&!fn(u,h)&&(v=yt(u),Me(u,y,_,!0),u=null),h.patchFlag===-2&&(T=!1,h.dynamicChildren=null);const{type:b,ref:C,shapeFlag:F}=h;switch(b){case Yn:E(u,h,g,v);break;case St:w(u,h,g,v);break;case rr:u==null&&$(h,g,v,R);break;case ce:xe(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]=A(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):Ae(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=l(u.type,_,C&&C.is,C),F&8?f(T,u.children):F&16&&Q(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 le in C)le!=="value"&&!Kt(le)&&s(T,le,null,C[le],_,u.children,v,y,Ne);"value"in C&&s(T,"value",null,C.value,_),(b=C.onVnodeBeforeMount)&&Ge(b,v,u)}W&&Tt(u,null,v,"beforeMount");const G=gc(y,j);G&&j.beforeEnter(T),i(T,h,g),((b=C&&C.onVnodeMounted)||G||W)&&Le(()=>{b&&Ge(b,v,u),G&&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)}}},Q=(u,h,g,v,y,_,R,x,T=0)=>{for(let b=T;b<u.length;b++){const C=u[b]=x?dt(u[b]):Ze(u[b]);k(null,C,h,g,v,y,_,R,x)}},Ae=(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||ue,j=h.props||ue;let W;if(g&&Rt(g,!1),(W=j.onVnodeBeforeUpdate)&&Ge(W,g,h,u),C&&Tt(h,u,g,"beforeUpdate"),g&&Rt(g,!0),b?Z(u.dynamicChildren,b,x,g,v,ir(h,y),_):R||ve(u,h,x,null,g,v,ir(h,y),_,!1),T>0){if(T&16)re(x,h,F,j,g,v,y);else if(T&2&&F.class!==j.class&&s(x,"class",null,j.class,y),T&4&&s(x,"style",F.style,j.style,y),T&8){const G=h.dynamicProps;for(let le=0;le<G.length;le++){const he=G[le],ye=F[he],De=j[he];(De!==ye||he==="value")&&s(x,he,ye,De,y,u.children,g,v,Ne)}}T&1&&u.children!==h.children&&f(x,h.children)}else!R&&b==null&&re(x,h,F,j,g,v,y);((W=j.onVnodeUpdated)||C)&&Le(()=>{W&&Ge(W,g,h,u),C&&Tt(h,u,g,"updated")},v)},Z=(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===ce||!fn(T,b)||T.shapeFlag&70)?d(T.el):g;k(T,b,C,null,v,y,_,R,!0)}},re=(u,h,g,v,y,_,R)=>{if(g!==v){if(g!==ue)for(const x in g)!Kt(x)&&!(x in v)&&s(u,x,g[x],null,R,h.children,y,_,Ne);for(const x in v){if(Kt(x))continue;const T=v[x],b=g[x];T!==b&&x!=="value"&&s(u,x,b,T,R,h.children,y,_,Ne)}"value"in v&&s(u,"value",g.value,v.value,R)}},xe=(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),Q(h.children||[],g,C,y,_,R,x,T)):F>0&&F&64&&j&&u.dynamicChildren?(Z(u.dynamicChildren,j,g,y,_,R,x),(h.key!=null||y&&h===y.subTree)&&nl(u,h,!0)):ve(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):ne(h,g,v,y,_,R,T):se(u,h,T)},ne=(u,h,g,v,y,_,R)=>{const x=u.component=Cc(u,v,y);if(Ga(u)&&(x.ctx.renderer=S),Ec(x),x.asyncDep){if(y&&y.registerDep(x,we),!u.el){const T=x.subTree=oe(St);w(null,T,h,g)}}else we(x,u,h,g,y,_,R)},se=(u,h,g)=>{const v=h.component=u.component;if(Ua(u,h,g))if(v.asyncDep&&!v.asyncResolved){me(v,h,g);return}else v.next=h,Ia(v.update),v.effect.dirty=!0,v.update();else h.el=u.el,v.vnode=h},we=(u,h,g,v,y,_,R)=>{const x=()=>{if(u.isMounted){let{next:C,bu:F,u:j,parent:W,vnode:G}=u;{const Mt=il(u);if(Mt){C&&(C.el=G.el,me(u,C,R)),Mt.asyncDep.then(()=>{u.isUnmounted||x()});return}}let le=C,he;Rt(u,!1),C?(C.el=G.el,me(u,C,R)):C=G,F&&On(F),(he=C.props&&C.props.onVnodeBeforeUpdate)&&Ge(he,W,C,G),Rt(u,!0);const ye=Gi(u),De=u.subTree;u.subTree=ye,k(De,ye,d(De.el),yt(De),u,y,_),C.el=ye.el,le===null&&Ha(u,ye.el),j&&Le(j,y),(he=C.props&&C.props.onVnodeUpdated)&&Le(()=>Ge(he,W,C,G),y)}else{let C;const{el:F,props:j}=h,{bm:W,m:G,parent:le}=u,he=Gn(h);if(Rt(u,!1),W&&On(W),!he&&(C=j&&j.onVnodeBeforeMount)&&Ge(C,le,h),Rt(u,!0),F&&fe){const ye=()=>{u.subTree=Gi(u),fe(F,u.subTree,u,y,null)};he?h.type.__asyncLoader().then(()=>!u.isUnmounted&&ye()):ye()}else{const ye=u.subTree=Gi(u);k(null,ye,g,v,u,y,_),h.el=ye.el}if(G&&Le(G,y),!he&&(C=j&&j.onVnodeMounted)){const ye=h;Le(()=>Ge(C,le,ye),y)}(h.shapeFlag&256||le&&Gn(le.vnode)&&le.vnode.shapeFlag&256)&&u.a&&Le(u.a,y),u.isMounted=!0,h=g=v=null}},T=u.effect=new zi(x,Je,()=>Zi(b),u.scope),b=u.update=()=>{T.dirty&&T.run()};b.id=u.uid,Rt(u,!0),b()},me=(u,h,g)=>{h.component=u;const v=u.vnode.props;u.vnode=h,u.next=null,oc(u,h.props,v,g),fc(u,h.children,g),xt(),Ls(u),_t()},ve=(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){lt(b,F,g,v,y,_,R,x,T);return}else if(j&256){$e(b,F,g,v,y,_,R,x,T);return}}W&8?(C&16&&Ne(b,y,_),F!==b&&f(g,F)):C&16?W&16?lt(b,F,g,v,y,_,R,x,T):Ne(b,y,_,!0):(C&8&&f(g,""),W&16&&Q(F,g,v,y,_,R,x,T))},$e=(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?dt(h[j]):Ze(h[j]);k(u[j],W,g,null,y,_,R,x,T)}b>C?Ne(u,y,_,!0,!1,F):Q(h,g,v,y,_,R,x,T,F)},lt=(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],G=h[b]=T?dt(h[b]):Ze(h[b]);if(fn(W,G))k(W,G,g,null,y,_,R,x,T);else break;b++}for(;b<=F&&b<=j;){const W=u[F],G=h[j]=T?dt(h[j]):Ze(h[j]);if(fn(W,G))k(W,G,g,null,y,_,R,x,T);else break;F--,j--}if(b>F){if(b<=j){const W=j+1,G=W<C?h[W].el:v;for(;b<=j;)k(null,h[b]=T?dt(h[b]):Ze(h[b]),g,G,y,_,R,x,T),b++}}else if(b>j)for(;b<=F;)Me(u[b],y,_,!0),b++;else{const W=b,G=b,le=new Map;for(b=G;b<=j;b++){const Oe=h[b]=T?dt(h[b]):Ze(h[b]);Oe.key!=null&&le.set(Oe.key,b)}let he,ye=0;const De=j-G+1;let Mt=!1,Cr=0;const Bt=new Array(De);for(b=0;b<De;b++)Bt[b]=0;for(b=W;b<=F;b++){const Oe=u[b];if(ye>=De){Me(Oe,y,_,!0);continue}let Be;if(Oe.key!=null)Be=le.get(Oe.key);else for(he=G;he<=j;he++)if(Bt[he-G]===0&&fn(Oe,h[he])){Be=he;break}Be===void 0?Me(Oe,y,_,!0):(Bt[Be-G]=b+1,Be>=Cr?Cr=Be:Mt=!0,k(Oe,h[Be],g,null,y,_,R,x,T),ye++)}const $r=Mt?mc(Bt):zt;for(he=$r.length-1,b=De-1;b>=0;b--){const Oe=G+b,Be=h[Oe],Er=Oe+1<C?h[Oe+1].el:v;Bt[b]===0?k(null,Be,g,Er,y,_,R,x,T):Mt&&(he<0||b!==$r[he]?vt(Be,g,Er,2):he--)}}},vt=(u,h,g,v,y=null)=>{const{el:_,type:R,transition:x,children:T,shapeFlag:b}=u;if(b&6){vt(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===ce){i(_,h,g);for(let F=0;F<T.length;F++)vt(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),Le(()=>x.enter(_),y);else{const{leave:F,delayLeave:j,afterLeave:W}=x,G=()=>i(_,h,g),le=()=>{F(_,()=>{G(),W&&W()})};j?j(_,G,le):le()}else i(_,h,g)},Me=(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,G=!Gn(u);let le;if(G&&(le=R&&R.onVnodeBeforeUnmount)&&Ge(le,h,u),C&6)En(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&&(_!==ce||F>0&&F&64)?Ne(b,h,g,!1,!0):(_===ce&&F&384||!y&&C&16)&&Ne(T,h,g),v&&$n(u)}(G&&(le=R&&R.onVnodeUnmounted)||W)&&Le(()=>{le&&Ge(le,h,u),W&&Tt(u,null,h,"unmounted")},g)},$n=u=>{const{type:h,el:g,anchor:v,transition:y}=u;if(h===ce){ki(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 _()},ki=(u,h)=>{let g;for(;u!==h;)g=p(u),r(u),u=g;r(h)},En=(u,h,g)=>{const{bum:v,scope:y,update:_,subTree:R,um:x}=u;v&&On(v),y.stop(),_&&(_.active=!1,Me(R,u,h,g)),x&&Le(x,h),Le(()=>{u.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ne=(u,h,g,v=!1,y=!1,_=0)=>{for(let R=_;R<u.length;R++)Me(u[R],h,g,v,y)},yt=u=>u.shapeFlag&6?yt(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el);let Lt=!1;const L=(u,h,g)=>{u==null?h._vnode&&Me(h._vnode,null,null,!0):k(h._vnode||null,u,h,null,null,null,g),Lt||(Lt=!0,Ls(),Ms(),Lt=!1),h._vnode=u},S={p:k,um:Me,m:vt,r:$n,mt:ne,mc:Q,pc:ve,pbc:Z,n:yt,o:e};let B,fe;return{render:L,hydrate:B,createApp:rc(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 gc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function nl(e,t,n=!1){const i=e.children,r=t.children;if(V(i)&&V(r))for(let s=0;s<i.length;s++){const l=i[s];let o=r[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[s]=dt(r[s]),o.el=l.el),n||nl(l,o)),o.type===Yn&&(o.el=l.el)}}function mc(e){const t=e.slice(),n=[0];let i,r,s,l,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(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<c?s=o+1:l=o;c<e[n[s]]&&(s>0&&(t[i]=n[s-1]),n[s]=i)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function il(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:il(t)}const vc=e=>e.__isTeleport,ce=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),St=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),cn=[];let Ve=null;function I(e=!1){cn.push(Ve=e?null:[])}function yc(){cn.pop(),Ve=cn[cn.length-1]||null}let un=1;function rl(e){un+=e}function sl(e){return e.dynamicChildren=un>0?Ve||zt:null,yc(),un>0&&Ve&&Ve.push(e),e}function M(e,t,n,i,r,s){return sl(P(e,t,n,i,r,s,!0))}function et(e,t,n,i,r){return sl(oe(e,t,n,i,r,!0))}function sr(e){return e?e.__v_isVNode===!0:!1}function fn(e,t){return e.type===t.type&&e.key===t.key}const ll=({key:e})=>e??null,Xn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||Ee(e)||ie(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,i=0,r=null,s=e===ce?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ll(t),ref:t&&Xn(t),scopeId:zs,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:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return o?(lr(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),un>0&&!l&&Ve&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Ve.push(a),a}const oe=wc;function wc(e,t=null,n=null,i=0,r=null,s=!1){if((!e||e===Va)&&(e=St),sr(e)){const o=Ht(e,t,!0);return n&&lr(o,n),un>0&&!s&&Ve&&(o.shapeFlag&6?Ve[Ve.indexOf(e)]=o:Ve.push(o)),o.patchFlag|=-2,o}if(Ic(e)&&(e=e.__vccOpts),t){t=bc(t);let{class:o,style:a}=t;o&&!be(o)&&(t.class=ge(o)),de(a)&&($s(a)&&!V(a)&&(a=_e({},a)),t.style=Zt(a))}const l=be(e)?1:Wa(e)?128:vc(e)?64:de(e)?4:ie(e)?2:0;return P(e,t,n,i,r,l,s,!0)}function bc(e){return e?$s(e)||Ks(e)?_e({},e):e:null}function Ht(e,t,n=!1,i=!1){const{props:r,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?kc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ll(c),ref:t&&t.ref?n&&s?V(s)?s.concat(Xn(t)):[s,Xn(t)]:Xn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ce?l===-1?16:l|16:l,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 tt(e=" ",t=0){return oe(Yn,null,e,t)}function Y(e="",t=!1){return t?(I(),et(St,null,e)):oe(St,null,e)}function Ze(e){return e==null||typeof e=="boolean"?oe(St):V(e)?oe(ce,null,e.slice()):typeof e=="object"?dt(e):oe(Yn,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ht(e)}function lr(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),lr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ks(t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ie(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),i&64?(n=16,t=[tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function kc(...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=ge([t.class,i.class]));else if(r==="style")t.style=Zt([t.style,i.style]);else if(In(r)){const s=t[r],l=i[r];l&&s!==l&&!(V(s)&&s.includes(l))&&(t[r]=s?[].concat(s,l):l)}else r!==""&&(t[r]=i[r])}return t}function Ge(e,t,n,i=null){qe(e,t,7,[n,i])}const xc=Bs();let _c=0;function Cc(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||xc,s={uid:_c++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new na(!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:ac(i,r),emitsOptions:za(i,r),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:i.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Oa.bind(null,s),e.ce&&e.ce(s),s}let Se=null;const $c=()=>Se||Te;let ei,or;{const e=Li(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),s=>{r.length>1?r.forEach(l=>l(s)):r[0](s)}};ei=t("__VUE_INSTANCE_SETTERS__",n=>Se=n),or=t("__VUE_SSR_SETTERS__",n=>ti=n)}const ar=e=>{const t=Se;return ei(e),e.scope.on(),()=>{e.scope.off(),ei(t)}},ol=()=>{Se&&Se.scope.off(),ei(null)};function al(e){return e.vnode.shapeFlag&4}let ti=!1;function Ec(e,t=!1){t&&or(t);const{props:n,children:i}=e.vnode,r=al(e);lc(e,n,r,t),uc(e,i);const s=r?Tc(e,t):void 0;return t&&or(!1),s}function Tc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ya);const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?Sc(e):null,s=ar(e);xt();const l=ft(i,e,0,[e.props,r]);if(_t(),s(),Xr(l)){if(l.then(ol,ol),t)return l.then(o=>{cl(e,o,t)}).catch(o=>{Bn(o,e,0)});e.asyncDep=l}else cl(e,l,t)}else fl(e,t)}function cl(e,t,n){ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Ss(t)),fl(e,n)}let ul;function fl(e,t,n){const i=e.type;if(!e.render){if(!t&&ul&&!i.render){const r=i.template||Xa(e).template;if(r){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=i,c=_e(_e({isCustomElement:s,delimiters:o},l),a);i.render=ul(r,c)}}e.render=i.render||Je}}const Rc={get(e,t){return Ie(e,"get",""),e[t]}};function Sc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Rc),slots:e.slots,emit:e.emit,expose:t}}function ni(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ss(Ca(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ln)return ln[n](e)},has(t,n){return n in t||n in ln}}))}function Ac(e,t=!0){return ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Ic(e){return ie(e)&&"__vccOpts"in e}const ke=(e,t)=>$a(e,t,ti);function te(e,t,n){const i=arguments.length;return i===2?de(t)&&!V(t)?sr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&sr(n)&&(n=[n]),oe(e,t,n))}const Lc="3.4.27";/**
|
|
21
|
+
**/function ft(e,t,n,i){try{return i?e(...i):e()}catch(r){Bn(r,t,n)}}function qe(e,t,n,i){if(ie(e)){const r=ft(e,t,n,i);return r&&Xr(r)&&r.catch(s=>{Bn(s,t,n)}),r}if(V(e)){const r=[];for(let s=0;s<e.length;s++)r.push(qe(e[s],t,n,i));return r}}function Bn(e,t,n,i=!0){const r=t?t.vnode:null;if(t){let s=t.parent;const l=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,o)===!1)return}s=s.parent}const a=t.appContext.config.errorHandler;if(a){xt(),ft(a,null,10,[e,l,o]),_t();return}}Sa(e,n,r,i)}function Sa(e,t,n,i=!0){console.error(e)}let tn=!1,qi=!1;const Ce=[];let Ke=0;const Ht=[];let ht=null,$t=0;const As=Promise.resolve();let Ki=null;function Et(e){const t=Ki||As;return e?t.then(this?e.bind(this):e):t}function Aa(e){let t=Ke+1,n=Ce.length;for(;t<n;){const i=t+n>>>1,r=Ce[i],s=nn(r);s<e||s===e&&r.pre?t=i+1:n=i}return t}function Zi(e){(!Ce.length||!Ce.includes(e,tn&&e.allowRecurse?Ke+1:Ke))&&(e.id==null?Ce.push(e):Ce.splice(Aa(e.id),0,e),Is())}function Is(){!tn&&!qi&&(qi=!0,Ki=As.then(Os))}function Ia(e){const t=Ce.indexOf(e);t>Ke&&Ce.splice(t,1)}function La(e){V(e)?Ht.push(...e):(!ht||!ht.includes(e,e.allowRecurse?$t+1:$t))&&Ht.push(e),Is()}function Ls(e,t,n=tn?Ke+1:0){for(;n<Ce.length;n++){const i=Ce[n];if(i&&i.pre){if(e&&i.id!==e.uid)continue;Ce.splice(n,1),n--,i()}}}function Ms(e){if(Ht.length){const t=[...new Set(Ht)].sort((n,i)=>nn(n)-nn(i));if(Ht.length=0,ht){ht.push(...t);return}for(ht=t,$t=0;$t<ht.length;$t++)ht[$t]();ht=null,$t=0}}const nn=e=>e.id==null?1/0:e.id,Ma=(e,t)=>{const n=nn(e)-nn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Os(e){qi=!1,tn=!0,Ce.sort(Ma);try{for(Ke=0;Ke<Ce.length;Ke++){const t=Ce[Ke];t&&t.active!==!1&&ft(t,null,14)}}finally{Ke=0,Ce.length=0,Ms(),tn=!1,Ki=null,(Ce.length||Ht.length)&&Os()}}function Oa(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||ue;let r=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in i){const f=`${l==="modelValue"?"model":l}Modifiers`,{number:d,trim:p}=i[f]||ue;p&&(r=n.map(m=>be(m)?m.trim():m)),d&&(r=n.map(zn))}let o,a=i[o=Ii(t)]||i[o=Ii(We(t))];!a&&s&&(a=i[o=Ii(Ut(t))]),a&&qe(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,qe(c,e,6,r)}}function za(e,t,n=!1){const i=t.emitsCache,r=i.get(e);if(r!==void 0)return r;const s=e.emits;let l={};return!s&&!!1?(de(e)&&i.set(e,null),null):(V(s)?s.forEach(a=>l[a]=null):_e(l,s),de(e)&&i.set(e,l),l)}function Wn(e,t){return!e||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,Ut(t))||J(e,t))}let Te=null,zs=null;function qn(e){const t=Te;return Te=e,zs=e&&e.type.__scopeId||null,t}function ja(e,t=Te,n){if(!t||e._n)return e;const i=(...r)=>{i._d&&rl(-1);const s=qn(t);let l;try{l=e(...r)}finally{qn(s),i._d&&rl(1)}return l};return i._n=!0,i._c=!0,i._d=!0,i}function Gi(e){const{type:t,vnode:n,proxy:i,withProxy:r,propsOptions:[s],slots:l,attrs:o,emit:a,render:c,renderCache:f,props:d,data:p,setupState:m,ctx:A,inheritAttrs:k}=e,E=qn(e);let w,$;try{if(n.shapeFlag&4){const D=r||i,H=D;w=Ze(c.call(H,D,f,d,m,p,A)),$=o}else{const D=t;w=Ze(D.length>1?D(d,{attrs:o,slots:l,emit:a}):D(d,null)),$=t.props?o:Pa(o)}}catch(D){cn.length=0,Bn(D,e,1),w=oe(At)}let U=w;if($&&k!==!1){const D=Object.keys($),{shapeFlag:H}=U;D.length&&H&7&&(s&&D.some(Si)&&($=Fa($,s)),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,qn(E),w}const Pa=e=>{let t;for(const n in e)(n==="class"||n==="style"||In(n))&&((t||(t={}))[n]=e[n]);return t},Fa=(e,t)=>{const n={};for(const i in e)(!Si(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Ua(e,t,n){const{props:i,children:r,component:s}=e,{props:l,children:o,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return i?js(i,l,c):!!l;if(a&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const p=f[d];if(l[p]!==i[p]&&!Wn(c,p))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===l?!1:i?l?js(i,l,c):!0:!!l;return!1}function js(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 s=i[r];if(t[s]!==e[s]&&!Wn(n,s))return!0}return!1}function Ha({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 Na="components";function Da(e,t){return Ba(Na,e,!0,t)||e}const Va=Symbol.for("v-ndc");function Ba(e,t,n=!0,i=!1){const r=Te||Se;if(r){const s=r.type;{const o=Ac(s,!1);if(o&&(o===t||o===We(t)||o===Mn(We(t))))return s}const l=Ps(r[e]||s[e],t)||Ps(r.appContext[e],t);return!l&&i?s:l}}function Ps(e,t){return e&&(e[t]||e[We(t)]||e[Mn(We(t))])}const Wa=e=>e.__isSuspense;function qa(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):La(e)}const Ka=Symbol.for("v-scx"),Za=()=>Jn(Ka);function Fs(e,t){return Us(e,null,t)}const Kn={};function Fe(e,t,n){return Us(e,t,n)}function Us(e,t,{immediate:n,deep:i,flush:r,once:s,onTrack:l,onTrigger:o}=ue){if(t&&s){const O=t;t=(...N)=>{O(...N),H()}}const a=Se,c=O=>i===!0?O:Tt(O,i===!1?1:void 0);let f,d=!1,p=!1;if(Ee(e)?(f=()=>e.value,d=Dn(e)):Yt(e)?(f=()=>c(e),d=!0):V(e)?(p=!0,d=e.some(O=>Yt(O)||Dn(O)),f=()=>e.map(O=>{if(Ee(O))return O.value;if(Yt(O))return c(O);if(ie(O))return ft(O,a,2)})):ie(e)?t?f=()=>ft(e,a,2):f=()=>(m&&m(),qe(e,a,3,[A])):f=Je,t&&i){const O=f;f=()=>Tt(O())}let m,A=O=>{m=U.onStop=()=>{ft(O,a,4),m=U.onStop=void 0}},k;if(ti)if(A=Je,t?n&&qe(t,a,3,[f(),p?[]:void 0,A]):f(),r==="sync"){const O=Za();k=O.__watcherHandles||(O.__watcherHandles=[])}else return Je;let E=p?new Array(e.length).fill(Kn):Kn;const w=()=>{if(!(!U.active||!U.dirty))if(t){const O=U.run();(i||d||(p?O.some((N,Q)=>at(N,E[Q])):at(O,E)))&&(m&&m(),qe(t,a,3,[O,E===Kn?void 0:p&&E[0]===Kn?[]:E,A]),E=O)}else U.run()};w.allowRecurse=!!t;let $;r==="sync"?$=w:r==="post"?$=()=>Le(w,a&&a.suspense):(w.pre=!0,a&&(w.id=a.uid),$=()=>Zi(w));const U=new zi(f,Je,$),D=ls(),H=()=>{U.stop(),D&&Jr(D.effects,U)};return t?n?w():E=U.run():r==="post"?Le(U.run.bind(U),a&&a.suspense):U.run(),k&&k.push(H),H}function Tt(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Ee(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(ts(e))for(const i in e)Tt(e[i],t,n);return e}function Zn(e,t){if(Te===null)return e;const n=ni(Te)||Te.proxy,i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,l,o,a=ue]=t[r];s&&(ie(s)&&(s={mounted:s,updated:s}),s.deep&&Tt(l),i.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Rt(e,t,n,i){const r=e.dirs,s=t&&t.dirs;for(let l=0;l<r.length;l++){const o=r[l];s&&(o.oldValue=s[l].value);let a=o.dir[i];a&&(xt(),qe(a,n,8,[e.el,o,e,t]),_t())}}/*! #__NO_SIDE_EFFECTS__ */function rn(e,t){return ie(e)?_e({name:e.name},t,{setup:e}):e}const Gn=e=>!!e.type.__asyncLoader,Ga=e=>e.type.__isKeepAlive;function Qa(e,t,n=Se,i=!1){if(n){const r=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;xt();const o=ar(n),a=qe(t,n,e,l);return o(),_t(),a});return i?r.unshift(s):r.push(s),s}}const Qi=e=>(t,n=Se)=>(!ti||e==="sp")&&Qa(e,(...i)=>t(...i),n),sn=Qi("m"),Ja=Qi("bum"),Ji=Qi("um");function Ue(e,t,n,i){let r;const s=n;if(V(e)||be(e)){r=new Array(e.length);for(let l=0,o=e.length;l<o;l++)r[l]=t(e[l],l,void 0,s)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,s)}else if(de(e))if(e[Symbol.iterator])r=Array.from(e,(l,o)=>t(l,o,void 0,s));else{const l=Object.keys(e);r=new Array(l.length);for(let o=0,a=l.length;o<a;o++){const c=l[o];r[o]=t(e[c],c,o,s)}}else r=[];return r}const Yi=e=>e?al(e)?ni(e)||e.proxy:Yi(e.parent):null,ln=_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=>Je}),Xi=(e,t)=>e!==ue&&!e.__isScriptSetup&&J(e,t),Ya={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:s,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const m=l[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 s[t]}else{if(Xi(i,t))return l[t]=1,i[t];if(r!==ue&&J(r,t))return l[t]=2,r[t];if((c=e.propsOptions[0])&&J(c,t))return l[t]=3,s[t];if(n!==ue&&J(n,t))return l[t]=4,n[t];l[t]=0}}const f=ln[t];let d,p;if(f)return t==="$attrs"&&Ie(e.attrs,"get",""),f(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(n!==ue&&J(n,t))return l[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:s}=e;return Xi(r,t)?(r[t]=n,!0):i!==ue&&J(i,t)?(i[t]=n,!0):J(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:s}},l){let o;return!!n[l]||e!==ue&&J(e,l)||Xi(t,l)||(o=s[0])&&J(o,l)||J(i,l)||J(ln,l)||J(r.config.globalProperties,l)},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 Hs(e){return V(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Xa(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,o=s.get(t);let a;return o?a=o:!r.length&&!n&&!i?a=t:(a={},r.length&&r.forEach(c=>Qn(a,c,l,!0)),Qn(a,t,l)),de(t)&&s.set(t,a),a}function Qn(e,t,n,i=!1){const{mixins:r,extends:s}=t;s&&Qn(e,s,n,!0),r&&r.forEach(l=>Qn(e,l,n,!0));for(const l in t)if(!(i&&l==="expose")){const o=ec[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const ec={data:Ns,props:Vs,emits:Vs,methods:on,computed:on,beforeCreate:Re,created:Re,beforeMount:Re,mounted:Re,beforeUpdate:Re,updated:Re,beforeDestroy:Re,beforeUnmount:Re,destroyed:Re,unmounted:Re,activated:Re,deactivated:Re,errorCaptured:Re,serverPrefetch:Re,components:on,directives:on,watch:nc,provide:Ns,inject:tc};function Ns(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 tc(e,t){return on(Ds(e),Ds(t))}function Ds(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Re(e,t){return e?[...new Set([].concat(e,t))]:t}function on(e,t){return e?_e(Object.create(null),e,t):t}function Vs(e,t){return e?V(e)&&V(t)?[...new Set([...e,...t])]:_e(Object.create(null),Hs(e),Hs(t??{})):t}function nc(e,t){if(!e)return t;if(!t)return e;const n=_e(Object.create(null),e);for(const i in t)n[i]=Re(e[i],t[i]);return n}function Bs(){return{app:null,config:{isNativeTag:Bo,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 ic=0;function rc(e,t){return function(i,r=null){ie(i)||(i=_e({},i)),r!=null&&!de(r)&&(r=null);const s=Bs(),l=new WeakSet;let o=!1;const a=s.app={_uid:ic++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:Lc,get config(){return s.config},set config(c){},use(c,...f){return l.has(c)||(c&&ie(c.install)?(l.add(c),c.install(a,...f)):ie(c)&&(l.add(c),c(a,...f))),a},mixin(c){return a},component(c,f){return f?(s.components[c]=f,a):s.components[c]},directive(c,f){return f?(s.directives[c]=f,a):s.directives[c]},mount(c,f,d){if(!o){const p=oe(i,r);return p.appContext=s,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,ni(p.component)||p.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return s.provides[c]=f,a},runWithContext(c){const f=an;an=a;try{return c()}finally{an=f}}};return a}}let an=null;function sc(e,t){if(Se){let n=Se.provides;const i=Se.parent&&Se.parent.provides;i===n&&(n=Se.provides=Object.create(i)),n[e]=t}}function Jn(e,t,n=!1){const i=Se||Te;if(i||an){const r=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:an._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 Ws={},qs=()=>Object.create(Ws),Ks=e=>Object.getPrototypeOf(e)===Ws;function lc(e,t,n,i=!1){const r={},s=qs();e.propsDefaults=Object.create(null),Zs(e,t,r,s);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=i?r:_a(r):e.type.props?e.props=r:e.props=s,e.attrs=s}function oc(e,t,n,i){const{props:r,attrs:s,vnode:{patchFlag:l}}=e,o=ee(r),[a]=e.propsOptions;let c=!1;if((i||l>0)&&!(l&16)){if(l&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let p=f[d];if(Wn(e.emitsOptions,p))continue;const m=t[p];if(a)if(J(s,p))m!==s[p]&&(s[p]=m,c=!0);else{const A=We(p);r[A]=er(a,o,A,m,e,!1)}else m!==s[p]&&(s[p]=m,c=!0)}}}else{Zs(e,t,r,s)&&(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(s!==o)for(const d in s)(!t||!J(t,d))&&(delete s[d],c=!0)}c&&Xe(e.attrs,"set","")}function Zs(e,t,n,i){const[r,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(Zt(a))continue;const c=t[a];let f;r&&J(r,f=We(a))?!s||!s.includes(f)?n[f]=c:(o||(o={}))[f]=c:Wn(e.emitsOptions,a)||(!(a in i)||c!==i[a])&&(i[a]=c,l=!0)}if(s){const a=ee(n),c=o||ue;for(let f=0;f<s.length;f++){const d=s[f];n[d]=er(r,a,d,c[d],e,!J(c,d))}}return l}function er(e,t,n,i,r,s){const l=e[n];if(l!=null){const o=J(l,"default");if(o&&i===void 0){const a=l.default;if(l.type!==Function&&!l.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}l[0]&&(s&&!o?i=!1:l[1]&&(i===""||i===Ut(n))&&(i=!0))}return i}function ac(e,t,n=!1){const i=t.propsCache,r=i.get(e);if(r)return r;const s=e.props,l={},o=[];if(!s&&!!1)return de(e)&&i.set(e,jt),jt;if(V(s))for(let f=0;f<s.length;f++){const d=We(s[f]);Gs(d)&&(l[d]=ue)}else if(s)for(const f in s){const d=We(f);if(Gs(d)){const p=s[f],m=l[d]=V(p)||ie(p)?{type:p}:_e({},p);if(m){const A=Ys(Boolean,m.type),k=Ys(String,m.type);m[0]=A>-1,m[1]=k<0||A<k,(A>-1||J(m,"default"))&&o.push(d)}}}const c=[l,o];return de(e)&&i.set(e,c),c}function Gs(e){return e[0]!=="$"&&!Zt(e)}function Qs(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Js(e,t){return Qs(e)===Qs(t)}function Ys(e,t){return V(t)?t.findIndex(n=>Js(n,e)):ie(t)&&Js(t,e)?0:-1}const Xs=e=>e[0]==="_"||e==="$stable",tr=e=>V(e)?e.map(Ze):[Ze(e)],cc=(e,t,n)=>{if(t._n)return t;const i=ja((...r)=>tr(t(...r)),n);return i._c=!1,i},el=(e,t,n)=>{const i=e._ctx;for(const r in e){if(Xs(r))continue;const s=e[r];if(ie(s))t[r]=cc(r,s,i);else if(s!=null){const l=tr(s);t[r]=()=>l}}},tl=(e,t)=>{const n=tr(t);e.slots.default=()=>n},uc=(e,t)=>{const n=e.slots=qs();if(e.vnode.shapeFlag&32){const i=t._;i?(_e(n,t),ns(n,"_",i,!0)):el(t,n)}else t&&tl(e,t)},fc=(e,t,n)=>{const{vnode:i,slots:r}=e;let s=!0,l=ue;if(i.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:(_e(r,t),!n&&o===1&&delete r._):(s=!t.$stable,el(t,r)),l=t}else t&&(tl(e,t),l={default:1});if(s)for(const o in r)!Xs(o)&&l[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(Gn(i)&&!r)return;const s=i.shapeFlag&4?ni(i.component)||i.component.proxy:i.el,l=r?null:s,{i:o,r:a}=e,c=t&&t.r,f=o.refs===ue?o.refs={}:o.refs,d=o.setupState;if(c!=null&&c!==a&&(be(c)?(f[c]=null,J(d,c)&&(d[c]=null)):Ee(c)&&(c.value=null)),ie(a))ft(a,o,12,[l,f]);else{const p=be(a),m=Ee(a);if(p||m){const A=()=>{if(e.f){const k=p?J(d,a)?d[a]:f[a]:a.value;r?V(k)&&Jr(k,s):V(k)?k.includes(s)||k.push(s):p?(f[a]=[s],J(d,a)&&(d[a]=f[a])):(a.value=[s],e.k&&(f[e.k]=a.value))}else p?(f[a]=l,J(d,a)&&(d[a]=l)):m&&(a.value=l,e.k&&(f[e.k]=l))};l?(A.id=-1,Le(A,n)):A()}}}function hc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Li().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Le=qa;function dc(e){return pc(e)}function pc(e,t){hc();const n=Li();n.__VUE__=!0;const{insert:i,remove:r,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:f,parentNode:d,nextSibling:p,setScopeId:m=Je,insertStaticContent:A}=e,k=(u,h,g,v=null,y=null,_=null,R=void 0,x=null,T=!!h.dynamicChildren)=>{if(u===h)return;u&&!fn(u,h)&&(v=yt(u),Me(u,y,_,!0),u=null),h.patchFlag===-2&&(T=!1,h.dynamicChildren=null);const{type:b,ref:C,shapeFlag:F}=h;switch(b){case Yn:E(u,h,g,v);break;case At:w(u,h,g,v);break;case rr:u==null&&$(h,g,v,R);break;case ce:xe(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]=A(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):Ae(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=l(u.type,_,C&&C.is,C),F&8?f(T,u.children):F&16&&Q(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 le in C)le!=="value"&&!Zt(le)&&s(T,le,null,C[le],_,u.children,v,y,Ne);"value"in C&&s(T,"value",null,C.value,_),(b=C.onVnodeBeforeMount)&&Ge(b,v,u)}W&&Rt(u,null,v,"beforeMount");const G=gc(y,j);G&&j.beforeEnter(T),i(T,h,g),((b=C&&C.onVnodeMounted)||G||W)&&Le(()=>{b&&Ge(b,v,u),G&&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)}}},Q=(u,h,g,v,y,_,R,x,T=0)=>{for(let b=T;b<u.length;b++){const C=u[b]=x?dt(u[b]):Ze(u[b]);k(null,C,h,g,v,y,_,R,x)}},Ae=(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||ue,j=h.props||ue;let W;if(g&&St(g,!1),(W=j.onVnodeBeforeUpdate)&&Ge(W,g,h,u),C&&Rt(h,u,g,"beforeUpdate"),g&&St(g,!0),b?Z(u.dynamicChildren,b,x,g,v,ir(h,y),_):R||ve(u,h,x,null,g,v,ir(h,y),_,!1),T>0){if(T&16)re(x,h,F,j,g,v,y);else if(T&2&&F.class!==j.class&&s(x,"class",null,j.class,y),T&4&&s(x,"style",F.style,j.style,y),T&8){const G=h.dynamicProps;for(let le=0;le<G.length;le++){const he=G[le],ye=F[he],De=j[he];(De!==ye||he==="value")&&s(x,he,ye,De,y,u.children,g,v,Ne)}}T&1&&u.children!==h.children&&f(x,h.children)}else!R&&b==null&&re(x,h,F,j,g,v,y);((W=j.onVnodeUpdated)||C)&&Le(()=>{W&&Ge(W,g,h,u),C&&Rt(h,u,g,"updated")},v)},Z=(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===ce||!fn(T,b)||T.shapeFlag&70)?d(T.el):g;k(T,b,C,null,v,y,_,R,!0)}},re=(u,h,g,v,y,_,R)=>{if(g!==v){if(g!==ue)for(const x in g)!Zt(x)&&!(x in v)&&s(u,x,g[x],null,R,h.children,y,_,Ne);for(const x in v){if(Zt(x))continue;const T=v[x],b=g[x];T!==b&&x!=="value"&&s(u,x,b,T,R,h.children,y,_,Ne)}"value"in v&&s(u,"value",g.value,v.value,R)}},xe=(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),Q(h.children||[],g,C,y,_,R,x,T)):F>0&&F&64&&j&&u.dynamicChildren?(Z(u.dynamicChildren,j,g,y,_,R,x),(h.key!=null||y&&h===y.subTree)&&nl(u,h,!0)):ve(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):ne(h,g,v,y,_,R,T):se(u,h,T)},ne=(u,h,g,v,y,_,R)=>{const x=u.component=Cc(u,v,y);if(Ga(u)&&(x.ctx.renderer=S),Ec(x),x.asyncDep){if(y&&y.registerDep(x,we),!u.el){const T=x.subTree=oe(At);w(null,T,h,g)}}else we(x,u,h,g,y,_,R)},se=(u,h,g)=>{const v=h.component=u.component;if(Ua(u,h,g))if(v.asyncDep&&!v.asyncResolved){me(v,h,g);return}else v.next=h,Ia(v.update),v.effect.dirty=!0,v.update();else h.el=u.el,v.vnode=h},we=(u,h,g,v,y,_,R)=>{const x=()=>{if(u.isMounted){let{next:C,bu:F,u:j,parent:W,vnode:G}=u;{const Ot=il(u);if(Ot){C&&(C.el=G.el,me(u,C,R)),Ot.asyncDep.then(()=>{u.isUnmounted||x()});return}}let le=C,he;St(u,!1),C?(C.el=G.el,me(u,C,R)):C=G,F&&On(F),(he=C.props&&C.props.onVnodeBeforeUpdate)&&Ge(he,W,C,G),St(u,!0);const ye=Gi(u),De=u.subTree;u.subTree=ye,k(De,ye,d(De.el),yt(De),u,y,_),C.el=ye.el,le===null&&Ha(u,ye.el),j&&Le(j,y),(he=C.props&&C.props.onVnodeUpdated)&&Le(()=>Ge(he,W,C,G),y)}else{let C;const{el:F,props:j}=h,{bm:W,m:G,parent:le}=u,he=Gn(h);if(St(u,!1),W&&On(W),!he&&(C=j&&j.onVnodeBeforeMount)&&Ge(C,le,h),St(u,!0),F&&fe){const ye=()=>{u.subTree=Gi(u),fe(F,u.subTree,u,y,null)};he?h.type.__asyncLoader().then(()=>!u.isUnmounted&&ye()):ye()}else{const ye=u.subTree=Gi(u);k(null,ye,g,v,u,y,_),h.el=ye.el}if(G&&Le(G,y),!he&&(C=j&&j.onVnodeMounted)){const ye=h;Le(()=>Ge(C,le,ye),y)}(h.shapeFlag&256||le&&Gn(le.vnode)&&le.vnode.shapeFlag&256)&&u.a&&Le(u.a,y),u.isMounted=!0,h=g=v=null}},T=u.effect=new zi(x,Je,()=>Zi(b),u.scope),b=u.update=()=>{T.dirty&&T.run()};b.id=u.uid,St(u,!0),b()},me=(u,h,g)=>{h.component=u;const v=u.vnode.props;u.vnode=h,u.next=null,oc(u,h.props,v,g),fc(u,h.children,g),xt(),Ls(u),_t()},ve=(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){lt(b,F,g,v,y,_,R,x,T);return}else if(j&256){$e(b,F,g,v,y,_,R,x,T);return}}W&8?(C&16&&Ne(b,y,_),F!==b&&f(g,F)):C&16?W&16?lt(b,F,g,v,y,_,R,x,T):Ne(b,y,_,!0):(C&8&&f(g,""),W&16&&Q(F,g,v,y,_,R,x,T))},$e=(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?dt(h[j]):Ze(h[j]);k(u[j],W,g,null,y,_,R,x,T)}b>C?Ne(u,y,_,!0,!1,F):Q(h,g,v,y,_,R,x,T,F)},lt=(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],G=h[b]=T?dt(h[b]):Ze(h[b]);if(fn(W,G))k(W,G,g,null,y,_,R,x,T);else break;b++}for(;b<=F&&b<=j;){const W=u[F],G=h[j]=T?dt(h[j]):Ze(h[j]);if(fn(W,G))k(W,G,g,null,y,_,R,x,T);else break;F--,j--}if(b>F){if(b<=j){const W=j+1,G=W<C?h[W].el:v;for(;b<=j;)k(null,h[b]=T?dt(h[b]):Ze(h[b]),g,G,y,_,R,x,T),b++}}else if(b>j)for(;b<=F;)Me(u[b],y,_,!0),b++;else{const W=b,G=b,le=new Map;for(b=G;b<=j;b++){const Oe=h[b]=T?dt(h[b]):Ze(h[b]);Oe.key!=null&&le.set(Oe.key,b)}let he,ye=0;const De=j-G+1;let Ot=!1,Cr=0;const Wt=new Array(De);for(b=0;b<De;b++)Wt[b]=0;for(b=W;b<=F;b++){const Oe=u[b];if(ye>=De){Me(Oe,y,_,!0);continue}let Be;if(Oe.key!=null)Be=le.get(Oe.key);else for(he=G;he<=j;he++)if(Wt[he-G]===0&&fn(Oe,h[he])){Be=he;break}Be===void 0?Me(Oe,y,_,!0):(Wt[Be-G]=b+1,Be>=Cr?Cr=Be:Ot=!0,k(Oe,h[Be],g,null,y,_,R,x,T),ye++)}const $r=Ot?mc(Wt):jt;for(he=$r.length-1,b=De-1;b>=0;b--){const Oe=G+b,Be=h[Oe],Er=Oe+1<C?h[Oe+1].el:v;Wt[b]===0?k(null,Be,g,Er,y,_,R,x,T):Ot&&(he<0||b!==$r[he]?vt(Be,g,Er,2):he--)}}},vt=(u,h,g,v,y=null)=>{const{el:_,type:R,transition:x,children:T,shapeFlag:b}=u;if(b&6){vt(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===ce){i(_,h,g);for(let F=0;F<T.length;F++)vt(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),Le(()=>x.enter(_),y);else{const{leave:F,delayLeave:j,afterLeave:W}=x,G=()=>i(_,h,g),le=()=>{F(_,()=>{G(),W&&W()})};j?j(_,G,le):le()}else i(_,h,g)},Me=(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,G=!Gn(u);let le;if(G&&(le=R&&R.onVnodeBeforeUnmount)&&Ge(le,h,u),C&6)En(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&&(_!==ce||F>0&&F&64)?Ne(b,h,g,!1,!0):(_===ce&&F&384||!y&&C&16)&&Ne(T,h,g),v&&$n(u)}(G&&(le=R&&R.onVnodeUnmounted)||W)&&Le(()=>{le&&Ge(le,h,u),W&&Rt(u,null,h,"unmounted")},g)},$n=u=>{const{type:h,el:g,anchor:v,transition:y}=u;if(h===ce){ki(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 _()},ki=(u,h)=>{let g;for(;u!==h;)g=p(u),r(u),u=g;r(h)},En=(u,h,g)=>{const{bum:v,scope:y,update:_,subTree:R,um:x}=u;v&&On(v),y.stop(),_&&(_.active=!1,Me(R,u,h,g)),x&&Le(x,h),Le(()=>{u.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&u.asyncDep&&!u.asyncResolved&&u.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Ne=(u,h,g,v=!1,y=!1,_=0)=>{for(let R=_;R<u.length;R++)Me(u[R],h,g,v,y)},yt=u=>u.shapeFlag&6?yt(u.component.subTree):u.shapeFlag&128?u.suspense.next():p(u.anchor||u.el);let Mt=!1;const L=(u,h,g)=>{u==null?h._vnode&&Me(h._vnode,null,null,!0):k(h._vnode||null,u,h,null,null,null,g),Mt||(Mt=!0,Ls(),Ms(),Mt=!1),h._vnode=u},S={p:k,um:Me,m:vt,r:$n,mt:ne,mc:Q,pc:ve,pbc:Z,n:yt,o:e};let B,fe;return{render:L,hydrate:B,createApp:rc(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 gc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function nl(e,t,n=!1){const i=e.children,r=t.children;if(V(i)&&V(r))for(let s=0;s<i.length;s++){const l=i[s];let o=r[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[s]=dt(r[s]),o.el=l.el),n||nl(l,o)),o.type===Yn&&(o.el=l.el)}}function mc(e){const t=e.slice(),n=[0];let i,r,s,l,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(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<c?s=o+1:l=o;c<e[n[s]]&&(s>0&&(t[i]=n[s-1]),n[s]=i)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function il(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:il(t)}const vc=e=>e.__isTeleport,ce=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),At=Symbol.for("v-cmt"),rr=Symbol.for("v-stc"),cn=[];let Ve=null;function I(e=!1){cn.push(Ve=e?null:[])}function yc(){cn.pop(),Ve=cn[cn.length-1]||null}let un=1;function rl(e){un+=e}function sl(e){return e.dynamicChildren=un>0?Ve||jt:null,yc(),un>0&&Ve&&Ve.push(e),e}function M(e,t,n,i,r,s){return sl(P(e,t,n,i,r,s,!0))}function et(e,t,n,i,r){return sl(oe(e,t,n,i,r,!0))}function sr(e){return e?e.__v_isVNode===!0:!1}function fn(e,t){return e.type===t.type&&e.key===t.key}const ll=({key:e})=>e??null,Xn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||Ee(e)||ie(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function P(e,t=null,n=null,i=0,r=null,s=e===ce?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ll(t),ref:t&&Xn(t),scopeId:zs,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:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Te};return o?(lr(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),un>0&&!l&&Ve&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Ve.push(a),a}const oe=wc;function wc(e,t=null,n=null,i=0,r=null,s=!1){if((!e||e===Va)&&(e=At),sr(e)){const o=Nt(e,t,!0);return n&&lr(o,n),un>0&&!s&&Ve&&(o.shapeFlag&6?Ve[Ve.indexOf(e)]=o:Ve.push(o)),o.patchFlag|=-2,o}if(Ic(e)&&(e=e.__vccOpts),t){t=bc(t);let{class:o,style:a}=t;o&&!be(o)&&(t.class=ge(o)),de(a)&&($s(a)&&!V(a)&&(a=_e({},a)),t.style=Gt(a))}const l=be(e)?1:Wa(e)?128:vc(e)?64:de(e)?4:ie(e)?2:0;return P(e,t,n,i,r,l,s,!0)}function bc(e){return e?$s(e)||Ks(e)?_e({},e):e:null}function Nt(e,t,n=!1,i=!1){const{props:r,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?kc(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ll(c),ref:t&&t.ref?n&&s?V(s)?s.concat(Xn(t)):[s,Xn(t)]:Xn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ce?l===-1?16:l|16:l,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 tt(e=" ",t=0){return oe(Yn,null,e,t)}function Y(e="",t=!1){return t?(I(),et(At,null,e)):oe(At,null,e)}function Ze(e){return e==null||typeof e=="boolean"?oe(At):V(e)?oe(ce,null,e.slice()):typeof e=="object"?dt(e):oe(Yn,null,String(e))}function dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Nt(e)}function lr(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),lr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ks(t)?t._ctx=Te:r===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ie(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),i&64?(n=16,t=[tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function kc(...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=ge([t.class,i.class]));else if(r==="style")t.style=Gt([t.style,i.style]);else if(In(r)){const s=t[r],l=i[r];l&&s!==l&&!(V(s)&&s.includes(l))&&(t[r]=s?[].concat(s,l):l)}else r!==""&&(t[r]=i[r])}return t}function Ge(e,t,n,i=null){qe(e,t,7,[n,i])}const xc=Bs();let _c=0;function Cc(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||xc,s={uid:_c++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new na(!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:ac(i,r),emitsOptions:za(i,r),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:i.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,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 s.ctx={_:s},s.root=t?t.root:s,s.emit=Oa.bind(null,s),e.ce&&e.ce(s),s}let Se=null;const $c=()=>Se||Te;let ei,or;{const e=Li(),t=(n,i)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(i),s=>{r.length>1?r.forEach(l=>l(s)):r[0](s)}};ei=t("__VUE_INSTANCE_SETTERS__",n=>Se=n),or=t("__VUE_SSR_SETTERS__",n=>ti=n)}const ar=e=>{const t=Se;return ei(e),e.scope.on(),()=>{e.scope.off(),ei(t)}},ol=()=>{Se&&Se.scope.off(),ei(null)};function al(e){return e.vnode.shapeFlag&4}let ti=!1;function Ec(e,t=!1){t&&or(t);const{props:n,children:i}=e.vnode,r=al(e);lc(e,n,r,t),uc(e,i);const s=r?Tc(e,t):void 0;return t&&or(!1),s}function Tc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ya);const{setup:i}=n;if(i){const r=e.setupContext=i.length>1?Sc(e):null,s=ar(e);xt();const l=ft(i,e,0,[e.props,r]);if(_t(),s(),Xr(l)){if(l.then(ol,ol),t)return l.then(o=>{cl(e,o,t)}).catch(o=>{Bn(o,e,0)});e.asyncDep=l}else cl(e,l,t)}else fl(e,t)}function cl(e,t,n){ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Ss(t)),fl(e,n)}let ul;function fl(e,t,n){const i=e.type;if(!e.render){if(!t&&ul&&!i.render){const r=i.template||Xa(e).template;if(r){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=i,c=_e(_e({isCustomElement:s,delimiters:o},l),a);i.render=ul(r,c)}}e.render=i.render||Je}}const Rc={get(e,t){return Ie(e,"get",""),e[t]}};function Sc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Rc),slots:e.slots,emit:e.emit,expose:t}}function ni(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ss(Ca(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ln)return ln[n](e)},has(t,n){return n in t||n in ln}}))}function Ac(e,t=!0){return ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Ic(e){return ie(e)&&"__vccOpts"in e}const ke=(e,t)=>$a(e,t,ti);function te(e,t,n){const i=arguments.length;return i===2?de(t)&&!V(t)?sr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&sr(n)&&(n=[n]),oe(e,t,n))}const Lc="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 Mc="http://www.w3.org/2000/svg",Oc="http://www.w3.org/1998/Math/MathML",pt=typeof document<"u"?document:null,hl=pt&&pt.createElement("template"),zc={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"?pt.createElementNS(Mc,e):t==="mathml"?pt.createElementNS(Oc,e):pt.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>pt.createTextNode(e),createComment:e=>pt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,s){const l=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{hl.innerHTML=i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e;const o=hl.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[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jc=Symbol("_vtc");function Pc(e,t,n){const i=e[jc];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ii=Symbol("_vod"),dl=Symbol("_vsh"),pl={beforeMount(e,{value:t},{transition:n}){e[ii]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hn(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),hn(e,!0),i.enter(e)):i.leave(e,()=>{hn(e,!1)}):hn(e,t))},beforeUnmount(e,{value:t}){hn(e,t)}};function hn(e,t){e.style.display=t?e[ii]:"none",e[dl]=!t}const Fc=Symbol(""),Uc=/(^|;)\s*display\s*:/;function Hc(e,t,n){const i=e.style,r=be(n);let s=!1;if(n&&!r){if(t)if(be(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&ri(i,o,"")}else for(const l in t)n[l]==null&&ri(i,l,"");for(const l in n)l==="display"&&(s=!0),ri(i,l,n[l])}else if(r){if(t!==n){const l=i[Fc];l&&(n+=";"+l),i.cssText=n,s=Uc.test(n)}}else t&&e.removeAttribute("style");ii in e&&(e[ii]=s?i.display:"",e[dl]&&(i.display="none"))}const gl=/\s*!important$/;function ri(e,t,n){if(V(n))n.forEach(i=>ri(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Nc(e,t);gl.test(n)?e.setProperty(Ft(i),n.replace(gl,""),"important"):e[i]=n}}const ml=["Webkit","Moz","ms"],cr={};function Nc(e,t){const n=cr[t];if(n)return n;let i=We(t);if(i!=="filter"&&i in e)return cr[t]=i;i=Mn(i);for(let r=0;r<ml.length;r++){const s=ml[r]+i;if(s in e)return cr[t]=s}return t}const vl="http://www.w3.org/1999/xlink";function Dc(e,t,n,i,r){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(vl,t.slice(6,t.length)):e.setAttributeNS(vl,t,n);else{const s=ea(t);n==null||s&&!rs(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Vc(e,t,n,i,r,s,l){if(t==="innerHTML"||t==="textContent"){i&&l(i,r,s),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=rs(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function nt(e,t,n,i){e.addEventListener(t,n,i)}function Bc(e,t,n,i){e.removeEventListener(t,n,i)}const yl=Symbol("_vei");function Wc(e,t,n,i,r=null){const s=e[yl]||(e[yl]={}),l=s[t];if(i&&l)l.value=i;else{const[o,a]=qc(t);if(i){const c=s[t]=Gc(i,r);nt(e,o,c,a)}else l&&(Bc(e,o,l,a),s[t]=void 0)}}const wl=/(?:Once|Passive|Capture)$/;function qc(e){let t;if(wl.test(e)){t={};let i;for(;i=e.match(wl);)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 Kc=Promise.resolve(),Zc=()=>ur||(Kc.then(()=>ur=0),ur=Date.now());function Gc(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;qe(Qc(i,n.value),t,5,[i])};return n.value=e,n.attached=Zc(),n}function Qc(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 bl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jc=(e,t,n,i,r,s,l,o,a)=>{const c=r==="svg";t==="class"?Pc(e,i,c):t==="style"?Hc(e,n,i):In(t)?Si(t)||Wc(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yc(e,t,i,c))?Vc(e,t,i,s,l,o,a):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Dc(e,t,i,c))};function Yc(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&bl(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 bl(t)&&be(n)?!1:t in e}const gt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>On(t,n):t};function Xc(e){e.target.composing=!0}function kl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const He=Symbol("_assign"),fr={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[He]=gt(r);const s=i||r.props&&r.props.type==="number";nt(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=zn(o)),e[He](o)}),n&&nt(e,"change",()=>{e.value=e.value.trim()}),t||(nt(e,"compositionstart",Xc),nt(e,"compositionend",kl),nt(e,"change",kl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:r}},s){if(e[He]=gt(s),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?zn(e.value):e.value,o=t??"";l!==o&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===o)||(e.value=o))}},eu={deep:!0,created(e,t,n){e[He]=gt(n),nt(e,"change",()=>{const i=e._modelValue,r=Nt(e),s=e.checked,l=e[He];if(V(i)){const o=Mi(i,r),a=o!==-1;if(s&&!a)l(i.concat(r));else if(!s&&a){const c=[...i];c.splice(o,1),l(c)}}else if(Pt(i)){const o=new Set(i);s?o.add(r):o.delete(r),l(o)}else l(Cl(e,s))})},mounted:xl,beforeUpdate(e,t,n){e[He]=gt(n),xl(e,t,n)}};function xl(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,Cl(e,!0)))}const tu={created(e,{value:t},n){e.checked=bt(t,n.props.value),e[He]=gt(n),nt(e,"change",()=>{e[He](Nt(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[He]=gt(i),t!==n&&(e.checked=bt(t,i.props.value))}},nu={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=Pt(t);nt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?zn(Nt(l)):Nt(l));e[He](e.multiple?r?new Set(s):s:s[0]),e._assigning=!0,tn(()=>{e._assigning=!1})}),e[He]=gt(i)},mounted(e,{value:t,modifiers:{number:n}}){_l(e,t)},beforeUpdate(e,t,n){e[He]=gt(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||_l(e,t)}};function _l(e,t,n){const i=e.multiple,r=V(t);if(!(i&&!r&&!Pt(t))){for(let s=0,l=e.options.length;s<l;s++){const o=e.options[s],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!==s&&(e.selectedIndex=s);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Nt(e){return"_value"in e?e._value:e.value}function Cl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const iu={created(e,t,n){si(e,t,n,null,"created")},mounted(e,t,n){si(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){si(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){si(e,t,n,i,"updated")}};function ru(e,t){switch(e){case"SELECT":return nu;case"TEXTAREA":return fr;default:switch(t){case"checkbox":return eu;case"radio":return tu;default:return fr}}}function si(e,t,n,i,r){const l=ru(e.tagName,n.props&&n.props.type)[r];l&&l(e,t,n,i)}const su=_e({patchProp:Jc},zc);let $l;function lu(){return $l||($l=dc(su))}const ou=(...e)=>{const t=lu().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=cu(i);if(!r)return;const s=t._component;!ie(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const l=n(r,!1,au(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function au(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cu(e){return be(e)?document.querySelector(e):e}function dn(e){return ls()?(ra(e),!0):!1}function it(e){return typeof e=="function"?e():K(e)}const li=typeof window<"u"&&typeof document<"u",uu=Object.prototype.toString,fu=e=>uu.call(e)==="[object Object]",oi=()=>{};function El(e,t){function n(...i){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(r).catch(s)})}return n}const Tl=e=>e();function hu(e,t={}){let n,i,r=oi;const s=o=>{clearTimeout(o),r(),r=oi};return o=>{const a=it(e),c=it(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(i&&(s(i),i=null),Promise.resolve(o())):new Promise((f,d)=>{r=t.rejectOnCancel?d:f,c&&!i&&(i=setTimeout(()=>{n&&s(n),i=null,f(o())},c)),n=setTimeout(()=>{i&&s(i),i=null,f(o())},a)})}}function du(e=Tl){const t=q(!0);function n(){t.value=!1}function i(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:Qt(t),pause:n,resume:i,eventFilter:r}}function Rl(e){return $c()}function pu(e,t=200,n={}){return El(hu(t,n),e)}function gu(e,t,n={}){const{eventFilter:i=Tl,...r}=n;return Fe(e,El(i,t),r)}function mu(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=du(i);return{stop:gu(e,t,{...r,eventFilter:s}),pause:l,resume:o,isActive:a}}function hr(e,t=!0,n){Rl()?sn(e,n):t?e():tn(e)}function vu(e,t){Rl()&&Ji(e,t)}function yu(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let s=null;const l=q(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function c(){const f=it(t);f<=0||(l.value=!0,r&&e(),o(),s=setInterval(e,f))}if(i&&li&&c(),Ee(t)||typeof t=="function"){const f=Fe(t,()=>{l.value&&li&&c()});dn(f)}return dn(a),{isActive:l,pause:a,resume:c}}function wu(e){var t;const n=it(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ai=li?window:void 0,Sl=li?window.document:void 0;function ci(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=ai):[t,n,i,r]=e,!t)return oi;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const s=[],l=()=>{s.forEach(f=>f()),s.length=0},o=(f,d,p,m)=>(f.addEventListener(d,p,m),()=>f.removeEventListener(d,p,m)),a=Fe(()=>[wu(t),it(r)],([f,d])=>{if(l(),!f)return;const p=fu(d)?{...d}:d;s.push(...n.flatMap(m=>i.map(A=>o(f,m,A,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return dn(c),c}function bu(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=ai}=t,s=q(!1),l=i?1e3/i:null;let o=0,a=null;function c(p){if(!s.value||!r)return;o||(o=p);const m=p-o;if(l&&m<l){a=r.requestAnimationFrame(c);return}o=p,e({delta:m,timestamp:p}),a=r.requestAnimationFrame(c)}function f(){!s.value&&r&&(s.value=!0,o=0,a=r.requestAnimationFrame(c))}function d(){s.value=!1,a!=null&&r&&(r.cancelAnimationFrame(a),a=null)}return n&&f(),dn(d),{isActive:Qt(s),pause:d,resume:f}}const ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fi="__vueuse_ssr_handlers__",ku=xu();function xu(){return fi in ui||(ui[fi]=ui[fi]||{}),ui[fi]}function _u(e,t){return ku[e]||t}function Cu(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 $u={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()}},Al="vueuse-storage";function Dt(e,t,n,i={}){var r;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:d=ai,eventFilter:p,onError:m=Z=>{console.error(Z)},initOnMounted:A}=i,k=(f?Ea:q)(typeof t=="function"?t():t);if(!n)try{n=_u("getDefaultStorage",()=>{var Z;return(Z=ai)==null?void 0:Z.localStorage})()}catch(Z){m(Z)}if(!n)return k;const E=it(t),w=Cu(E),$=(r=i.serializer)!=null?r:$u[w],{pause:U,resume:D}=mu(k,()=>O(k.value),{flush:s,deep:l,eventFilter:p});d&&o&&hr(()=>{ci(d,"storage",Q),ci(d,Al,Ae),A&&Q()}),A||Q();function H(Z,re){d&&d.dispatchEvent(new CustomEvent(Al,{detail:{key:e,oldValue:Z,newValue:re,storageArea:n}}))}function O(Z){try{const re=n.getItem(e);if(Z==null)H(re,null),n.removeItem(e);else{const xe=$.write(Z);re!==xe&&(n.setItem(e,xe),H(re,xe))}}catch(re){m(re)}}function N(Z){const re=Z?Z.newValue:n.getItem(e);if(re==null)return a&&E!=null&&n.setItem(e,$.write(E)),E;if(!Z&&c){const xe=$.read(re);return typeof c=="function"?c(xe,E):w==="object"&&!Array.isArray(xe)?{...E,...xe}:xe}else return typeof re!="string"?re:$.read(re)}function Q(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){k.value=E;return}if(!(Z&&Z.key!==e)){U();try{(Z==null?void 0:Z.newValue)!==$.write(k.value)&&(k.value=N(Z))}catch(re){m(re)}finally{Z?tn(D):D()}}}}function Ae(Z){Q(Z.detail)}return k}function Eu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=q(new Date),r=()=>i.value=new Date,s=n==="requestAnimationFrame"?bu(r,{immediate:!0}):yu(r,n,{immediate:!0});return t?{now:i,...s}:i}function Tu(e,t=oi,n={}){const{immediate:i=!0,manual:r=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:f,document:d=Sl,attrs:p={}}=n,m=q(null);let A=null;const k=$=>new Promise((U,D)=>{const H=Q=>(m.value=Q,U(Q),Q);if(!d){U(!1);return}let O=!1,N=d.querySelector(`script[src="${it(e)}"]`);N?N.hasAttribute("data-loaded")&&H(N):(N=d.createElement("script"),N.type=s,N.async=l,N.src=it(e),f&&(N.defer=f),o&&(N.crossOrigin=o),c&&(N.noModule=c),a&&(N.referrerPolicy=a),Object.entries(p).forEach(([Q,Ae])=>N==null?void 0:N.setAttribute(Q,Ae)),O=!0),N.addEventListener("error",Q=>D(Q)),N.addEventListener("abort",Q=>D(Q)),N.addEventListener("load",()=>{N.setAttribute("data-loaded","true"),t(N),H(N)}),O&&(N=d.head.appendChild(N)),$||H(N)}),E=($=!0)=>(A||(A=k($)),A),w=()=>{if(!d)return;A=null,m.value&&(m.value=null);const $=d.querySelector(`script[src="${it(e)}"]`);$&&d.head.removeChild($)};return i&&!r&&hr(E),r||vu(w),{scriptTag:m,load:E,unload:w}}let Ru=0;function Su(e,t={}){const n=q(!1),{document:i=Sl,immediate:r=!0,manual:s=!1,id:l=`vueuse_styletag_${++Ru}`}=t,o=q(e);let a=()=>{};const c=()=>{if(!i)return;const d=i.getElementById(l)||i.createElement("style");d.isConnected||(d.id=l,t.media&&(d.media=t.media),i.head.appendChild(d)),!n.value&&(a=Fe(o,p=>{d.textContent=p},{immediate:!0}),n.value=!0)},f=()=>{!i||!n.value||(a(),i.head.removeChild(i.getElementById(l)),n.value=!1)};return r&&!s&&hr(c),s||dn(f),{id:l,css:o,unload:f,load:c,isLoaded:Qt(n)}}const Au=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Iu=e=>{const t=Dt("WALINE_EMOJI",{}),n=Au(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})},Il=(e,t="",n="",i="")=>`${t?`${t}/`:""}${n}${e}${i?`.${i}`:""}`,Lu=e=>Promise.all(e.map(t=>Ot(t)?Iu(Gr(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(i=>{const{name:r,folder:s,icon:l,prefix:o="",type:a,items:c}=i;n.tabs.push({name:r,icon:Il(l,s,o,a),items:c.map(f=>{const d=`${o}${f}`;return n.map[d]=Il(f,s,o,a),d})})}),n}),Ll=e=>{e.name!=="AbortError"&&console.error(e.message)},dr=e=>e instanceof HTMLElement?e:Ot(e)?document.querySelector(e):null,Mu=e=>e.type.includes("image"),Ml=e=>{const t=Array.from(e).find(Mu);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 Ol(e){At=e}const zl=/[&<>"']/,Ou=new RegExp(zl.source,"g"),jl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,zu=new RegExp(jl.source,"g"),ju={"&":"&","<":"<",">":">",'"':""","'":"'"},Pl=e=>ju[e];function je(e,t){if(t){if(zl.test(e))return e.replace(Ou,Pl)}else if(jl.test(e))return e.replace(zu,Pl);return e}const Pu=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Fu(e){return e.replace(Pu,(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 Uu=/(^|[^\[])\^/g;function ae(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const i={replace:(r,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Uu,"$1"),n=n.replace(r,l),i},getRegex:()=>new RegExp(n,t)};return i}function Fl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const pn={exec:()=>null};function Ul(e,t){const n=e.replace(/\|/g,(s,l,o)=>{let a=!1,c=l;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 hi(e,t,n){const i=e.length;if(i===0)return"";let r=0;for(;r<i;){const s=e.charAt(i-r-1);if(s===t&&!n)r++;else if(s!==t&&n)r++;else break}return e.slice(0,i-r)}function Hu(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 Hl(e,t,n,i){const r=t.href,s=t.title?je(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){i.state.inLink=!0;const o={type:"link",raw:n,href:r,title:s,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,o}return{type:"image",raw:n,href:r,title:s,text:je(l)}}function Nu(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const i=n[1];return t.split(`
|
|
25
|
+
**/const Mc="http://www.w3.org/2000/svg",Oc="http://www.w3.org/1998/Math/MathML",pt=typeof document<"u"?document:null,hl=pt&&pt.createElement("template"),zc={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"?pt.createElementNS(Mc,e):t==="mathml"?pt.createElementNS(Oc,e):pt.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:e=>pt.createTextNode(e),createComment:e=>pt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,r,s){const l=n?n.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===s||!(r=r.nextSibling)););else{hl.innerHTML=i==="svg"?`<svg>${e}</svg>`:i==="mathml"?`<math>${e}</math>`:e;const o=hl.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[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},jc=Symbol("_vtc");function Pc(e,t,n){const i=e[jc];i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ii=Symbol("_vod"),dl=Symbol("_vsh"),pl={beforeMount(e,{value:t},{transition:n}){e[ii]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hn(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),hn(e,!0),i.enter(e)):i.leave(e,()=>{hn(e,!1)}):hn(e,t))},beforeUnmount(e,{value:t}){hn(e,t)}};function hn(e,t){e.style.display=t?e[ii]:"none",e[dl]=!t}const Fc=Symbol(""),Uc=/(^|;)\s*display\s*:/;function Hc(e,t,n){const i=e.style,r=be(n);let s=!1;if(n&&!r){if(t)if(be(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&ri(i,o,"")}else for(const l in t)n[l]==null&&ri(i,l,"");for(const l in n)l==="display"&&(s=!0),ri(i,l,n[l])}else if(r){if(t!==n){const l=i[Fc];l&&(n+=";"+l),i.cssText=n,s=Uc.test(n)}}else t&&e.removeAttribute("style");ii in e&&(e[ii]=s?i.display:"",e[dl]&&(i.display="none"))}const gl=/\s*!important$/;function ri(e,t,n){if(V(n))n.forEach(i=>ri(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Nc(e,t);gl.test(n)?e.setProperty(Ut(i),n.replace(gl,""),"important"):e[i]=n}}const ml=["Webkit","Moz","ms"],cr={};function Nc(e,t){const n=cr[t];if(n)return n;let i=We(t);if(i!=="filter"&&i in e)return cr[t]=i;i=Mn(i);for(let r=0;r<ml.length;r++){const s=ml[r]+i;if(s in e)return cr[t]=s}return t}const vl="http://www.w3.org/1999/xlink";function Dc(e,t,n,i,r){if(i&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(vl,t.slice(6,t.length)):e.setAttributeNS(vl,t,n);else{const s=ea(t);n==null||s&&!rs(n)?e.removeAttribute(t):e.setAttribute(t,s?"":n)}}function Vc(e,t,n,i,r,s,l){if(t==="innerHTML"||t==="textContent"){i&&l(i,r,s),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=rs(n):n==null&&c==="string"?(n="",a=!0):c==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function nt(e,t,n,i){e.addEventListener(t,n,i)}function Bc(e,t,n,i){e.removeEventListener(t,n,i)}const yl=Symbol("_vei");function Wc(e,t,n,i,r=null){const s=e[yl]||(e[yl]={}),l=s[t];if(i&&l)l.value=i;else{const[o,a]=qc(t);if(i){const c=s[t]=Gc(i,r);nt(e,o,c,a)}else l&&(Bc(e,o,l,a),s[t]=void 0)}}const wl=/(?:Once|Passive|Capture)$/;function qc(e){let t;if(wl.test(e)){t={};let i;for(;i=e.match(wl);)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 Kc=Promise.resolve(),Zc=()=>ur||(Kc.then(()=>ur=0),ur=Date.now());function Gc(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;qe(Qc(i,n.value),t,5,[i])};return n.value=e,n.attached=Zc(),n}function Qc(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 bl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Jc=(e,t,n,i,r,s,l,o,a)=>{const c=r==="svg";t==="class"?Pc(e,i,c):t==="style"?Hc(e,n,i):In(t)?Si(t)||Wc(e,t,n,i,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yc(e,t,i,c))?Vc(e,t,i,s,l,o,a):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Dc(e,t,i,c))};function Yc(e,t,n,i){if(i)return!!(t==="innerHTML"||t==="textContent"||t in e&&bl(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 bl(t)&&be(n)?!1:t in e}const gt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>On(t,n):t};function Xc(e){e.target.composing=!0}function kl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const He=Symbol("_assign"),fr={created(e,{modifiers:{lazy:t,trim:n,number:i}},r){e[He]=gt(r);const s=i||r.props&&r.props.type==="number";nt(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=zn(o)),e[He](o)}),n&&nt(e,"change",()=>{e.value=e.value.trim()}),t||(nt(e,"compositionstart",Xc),nt(e,"compositionend",kl),nt(e,"change",kl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:r}},s){if(e[He]=gt(s),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?zn(e.value):e.value,o=t??"";l!==o&&(document.activeElement===e&&e.type!=="range"&&(n||i&&e.value.trim()===o)||(e.value=o))}},eu={deep:!0,created(e,t,n){e[He]=gt(n),nt(e,"change",()=>{const i=e._modelValue,r=Dt(e),s=e.checked,l=e[He];if(V(i)){const o=Mi(i,r),a=o!==-1;if(s&&!a)l(i.concat(r));else if(!s&&a){const c=[...i];c.splice(o,1),l(c)}}else if(Ft(i)){const o=new Set(i);s?o.add(r):o.delete(r),l(o)}else l(Cl(e,s))})},mounted:xl,beforeUpdate(e,t,n){e[He]=gt(n),xl(e,t,n)}};function xl(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,Cl(e,!0)))}const tu={created(e,{value:t},n){e.checked=bt(t,n.props.value),e[He]=gt(n),nt(e,"change",()=>{e[He](Dt(e))})},beforeUpdate(e,{value:t,oldValue:n},i){e[He]=gt(i),t!==n&&(e.checked=bt(t,i.props.value))}},nu={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const r=Ft(t);nt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?zn(Dt(l)):Dt(l));e[He](e.multiple?r?new Set(s):s:s[0]),e._assigning=!0,Et(()=>{e._assigning=!1})}),e[He]=gt(i)},mounted(e,{value:t,modifiers:{number:n}}){_l(e,t)},beforeUpdate(e,t,n){e[He]=gt(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||_l(e,t)}};function _l(e,t,n){const i=e.multiple,r=V(t);if(!(i&&!r&&!Ft(t))){for(let s=0,l=e.options.length;s<l;s++){const o=e.options[s],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!==s&&(e.selectedIndex=s);return}}!i&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Dt(e){return"_value"in e?e._value:e.value}function Cl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const iu={created(e,t,n){si(e,t,n,null,"created")},mounted(e,t,n){si(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){si(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){si(e,t,n,i,"updated")}};function ru(e,t){switch(e){case"SELECT":return nu;case"TEXTAREA":return fr;default:switch(t){case"checkbox":return eu;case"radio":return tu;default:return fr}}}function si(e,t,n,i,r){const l=ru(e.tagName,n.props&&n.props.type)[r];l&&l(e,t,n,i)}const su=_e({patchProp:Jc},zc);let $l;function lu(){return $l||($l=dc(su))}const ou=(...e)=>{const t=lu().createApp(...e),{mount:n}=t;return t.mount=i=>{const r=cu(i);if(!r)return;const s=t._component;!ie(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const l=n(r,!1,au(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function au(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function cu(e){return be(e)?document.querySelector(e):e}function dn(e){return ls()?(ra(e),!0):!1}function it(e){return typeof e=="function"?e():K(e)}const li=typeof window<"u"&&typeof document<"u",uu=Object.prototype.toString,fu=e=>uu.call(e)==="[object Object]",oi=()=>{};function El(e,t){function n(...i){return new Promise((r,s)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(r).catch(s)})}return n}const Tl=e=>e();function hu(e,t={}){let n,i,r=oi;const s=o=>{clearTimeout(o),r(),r=oi};return o=>{const a=it(e),c=it(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(i&&(s(i),i=null),Promise.resolve(o())):new Promise((f,d)=>{r=t.rejectOnCancel?d:f,c&&!i&&(i=setTimeout(()=>{n&&s(n),i=null,f(o())},c)),n=setTimeout(()=>{i&&s(i),i=null,f(o())},a)})}}function du(e=Tl){const t=q(!0);function n(){t.value=!1}function i(){t.value=!0}const r=(...s)=>{t.value&&e(...s)};return{isActive:Jt(t),pause:n,resume:i,eventFilter:r}}function Rl(e){return $c()}function pu(e,t=200,n={}){return El(hu(t,n),e)}function gu(e,t,n={}){const{eventFilter:i=Tl,...r}=n;return Fe(e,El(i,t),r)}function mu(e,t,n={}){const{eventFilter:i,...r}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=du(i);return{stop:gu(e,t,{...r,eventFilter:s}),pause:l,resume:o,isActive:a}}function hr(e,t=!0,n){Rl()?sn(e,n):t?e():Et(e)}function vu(e,t){Rl()&&Ji(e,t)}function yu(e,t=1e3,n={}){const{immediate:i=!0,immediateCallback:r=!1}=n;let s=null;const l=q(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function c(){const f=it(t);f<=0||(l.value=!0,r&&e(),o(),s=setInterval(e,f))}if(i&&li&&c(),Ee(t)||typeof t=="function"){const f=Fe(t,()=>{l.value&&li&&c()});dn(f)}return dn(a),{isActive:l,pause:a,resume:c}}function wu(e){var t;const n=it(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ai=li?window:void 0,Sl=li?window.document:void 0;function ci(...e){let t,n,i,r;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,r]=e,t=ai):[t,n,i,r]=e,!t)return oi;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const s=[],l=()=>{s.forEach(f=>f()),s.length=0},o=(f,d,p,m)=>(f.addEventListener(d,p,m),()=>f.removeEventListener(d,p,m)),a=Fe(()=>[wu(t),it(r)],([f,d])=>{if(l(),!f)return;const p=fu(d)?{...d}:d;s.push(...n.flatMap(m=>i.map(A=>o(f,m,A,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return dn(c),c}function bu(e,t={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=ai}=t,s=q(!1),l=i?1e3/i:null;let o=0,a=null;function c(p){if(!s.value||!r)return;o||(o=p);const m=p-o;if(l&&m<l){a=r.requestAnimationFrame(c);return}o=p,e({delta:m,timestamp:p}),a=r.requestAnimationFrame(c)}function f(){!s.value&&r&&(s.value=!0,o=0,a=r.requestAnimationFrame(c))}function d(){s.value=!1,a!=null&&r&&(r.cancelAnimationFrame(a),a=null)}return n&&f(),dn(d),{isActive:Jt(s),pause:d,resume:f}}const ui=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fi="__vueuse_ssr_handlers__",ku=xu();function xu(){return fi in ui||(ui[fi]=ui[fi]||{}),ui[fi]}function _u(e,t){return ku[e]||t}function Cu(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 $u={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()}},Al="vueuse-storage";function Vt(e,t,n,i={}){var r;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:f,window:d=ai,eventFilter:p,onError:m=Z=>{console.error(Z)},initOnMounted:A}=i,k=(f?Ea:q)(typeof t=="function"?t():t);if(!n)try{n=_u("getDefaultStorage",()=>{var Z;return(Z=ai)==null?void 0:Z.localStorage})()}catch(Z){m(Z)}if(!n)return k;const E=it(t),w=Cu(E),$=(r=i.serializer)!=null?r:$u[w],{pause:U,resume:D}=mu(k,()=>O(k.value),{flush:s,deep:l,eventFilter:p});d&&o&&hr(()=>{ci(d,"storage",Q),ci(d,Al,Ae),A&&Q()}),A||Q();function H(Z,re){d&&d.dispatchEvent(new CustomEvent(Al,{detail:{key:e,oldValue:Z,newValue:re,storageArea:n}}))}function O(Z){try{const re=n.getItem(e);if(Z==null)H(re,null),n.removeItem(e);else{const xe=$.write(Z);re!==xe&&(n.setItem(e,xe),H(re,xe))}}catch(re){m(re)}}function N(Z){const re=Z?Z.newValue:n.getItem(e);if(re==null)return a&&E!=null&&n.setItem(e,$.write(E)),E;if(!Z&&c){const xe=$.read(re);return typeof c=="function"?c(xe,E):w==="object"&&!Array.isArray(xe)?{...E,...xe}:xe}else return typeof re!="string"?re:$.read(re)}function Q(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){k.value=E;return}if(!(Z&&Z.key!==e)){U();try{(Z==null?void 0:Z.newValue)!==$.write(k.value)&&(k.value=N(Z))}catch(re){m(re)}finally{Z?Et(D):D()}}}}function Ae(Z){Q(Z.detail)}return k}function Eu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,i=q(new Date),r=()=>i.value=new Date,s=n==="requestAnimationFrame"?bu(r,{immediate:!0}):yu(r,n,{immediate:!0});return t?{now:i,...s}:i}function Tu(e,t=oi,n={}){const{immediate:i=!0,manual:r=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:f,document:d=Sl,attrs:p={}}=n,m=q(null);let A=null;const k=$=>new Promise((U,D)=>{const H=Q=>(m.value=Q,U(Q),Q);if(!d){U(!1);return}let O=!1,N=d.querySelector(`script[src="${it(e)}"]`);N?N.hasAttribute("data-loaded")&&H(N):(N=d.createElement("script"),N.type=s,N.async=l,N.src=it(e),f&&(N.defer=f),o&&(N.crossOrigin=o),c&&(N.noModule=c),a&&(N.referrerPolicy=a),Object.entries(p).forEach(([Q,Ae])=>N==null?void 0:N.setAttribute(Q,Ae)),O=!0),N.addEventListener("error",Q=>D(Q)),N.addEventListener("abort",Q=>D(Q)),N.addEventListener("load",()=>{N.setAttribute("data-loaded","true"),t(N),H(N)}),O&&(N=d.head.appendChild(N)),$||H(N)}),E=($=!0)=>(A||(A=k($)),A),w=()=>{if(!d)return;A=null,m.value&&(m.value=null);const $=d.querySelector(`script[src="${it(e)}"]`);$&&d.head.removeChild($)};return i&&!r&&hr(E),r||vu(w),{scriptTag:m,load:E,unload:w}}let Ru=0;function Su(e,t={}){const n=q(!1),{document:i=Sl,immediate:r=!0,manual:s=!1,id:l=`vueuse_styletag_${++Ru}`}=t,o=q(e);let a=()=>{};const c=()=>{if(!i)return;const d=i.getElementById(l)||i.createElement("style");d.isConnected||(d.id=l,t.media&&(d.media=t.media),i.head.appendChild(d)),!n.value&&(a=Fe(o,p=>{d.textContent=p},{immediate:!0}),n.value=!0)},f=()=>{!i||!n.value||(a(),i.head.removeChild(i.getElementById(l)),n.value=!1)};return r&&!s&&hr(c),s||dn(f),{id:l,css:o,unload:f,load:c,isLoaded:Jt(n)}}const Au=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Iu=e=>{const t=Vt("WALINE_EMOJI",{}),n=Au(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})},Il=(e,t="",n="",i="")=>`${t?`${t}/`:""}${n}${e}${i?`.${i}`:""}`,Lu=e=>Promise.all(e.map(t=>zt(t)?Iu(Gr(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(i=>{const{name:r,folder:s,icon:l,prefix:o="",type:a,items:c}=i;n.tabs.push({name:r,icon:Il(l,s,o,a),items:c.map(f=>{const d=`${o}${f}`;return n.map[d]=Il(f,s,o,a),d})})}),n}),Ll=e=>{e.name!=="AbortError"&&console.error(e.message)},dr=e=>e instanceof HTMLElement?e:zt(e)?document.querySelector(e):null,Mu=e=>e.type.includes("image"),Ml=e=>{const t=Array.from(e).find(Mu);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 Ol(e){It=e}const zl=/[&<>"']/,Ou=new RegExp(zl.source,"g"),jl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,zu=new RegExp(jl.source,"g"),ju={"&":"&","<":"<",">":">",'"':""","'":"'"},Pl=e=>ju[e];function je(e,t){if(t){if(zl.test(e))return e.replace(Ou,Pl)}else if(jl.test(e))return e.replace(zu,Pl);return e}const Pu=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Fu(e){return e.replace(Pu,(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 Uu=/(^|[^\[])\^/g;function ae(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const i={replace:(r,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Uu,"$1"),n=n.replace(r,l),i},getRegex:()=>new RegExp(n,t)};return i}function Fl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const pn={exec:()=>null};function Ul(e,t){const n=e.replace(/\|/g,(s,l,o)=>{let a=!1,c=l;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 hi(e,t,n){const i=e.length;if(i===0)return"";let r=0;for(;r<i;){const s=e.charAt(i-r-1);if(s===t&&!n)r++;else if(s!==t&&n)r++;else break}return e.slice(0,i-r)}function Hu(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 Hl(e,t,n,i){const r=t.href,s=t.title?je(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){i.state.inLink=!0;const o={type:"link",raw:n,href:r,title:s,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,o}return{type:"image",raw:n,href:r,title:s,text:je(l)}}function Nu(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const i=n[1];return t.split(`
|
|
26
26
|
`).map(r=>{const s=r.match(/^\s+/);if(s===null)return r;const[l]=s;return l.length>=i.length?r.slice(i.length):r}).join(`
|
|
27
|
-
`)}class di{options;rules;lexer;constructor(t){this.options=t||
|
|
27
|
+
`)}class di{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:hi(i,`
|
|
28
28
|
`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const i=n[0],r=Nu(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=hi(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=hi(i.replace(/^ *>[ \t]?/gm,""),`
|
|
30
30
|
`);const r=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(i);return this.lexer.state.top=r,{type:"blockquote",raw:n[0],tokens:s,text:i}}}list(t){let n=this.rules.block.list.exec(t);if(n){let i=n[1].trim();const r=i.length>1,s={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 l=new RegExp(`^( {0,3}${i})((?:[ ][^\\n]*)?(?:\\n|$))`);let o="",a="",c=!1;for(;t;){let f=!1;if(!(n=l.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 wo=Object.defineProperty;var bo=(e,t,n)=>t in e?wo(e,t,{enumerable:!0,config
|
|
|
37
37
|
`,t=t.substring(H.length+1),d=p.slice(m)}}s.loose||(c?s.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]\] +/,""))),s.items.push({type:"list_item",raw:o,task:!!k,checked:E,loose:!1,text:a,tokens:[]}),s.raw+=o}s.items[s.items.length-1].raw=o.trimEnd(),s.items[s.items.length-1].text=a.trimEnd(),s.raw=s.raw.trimEnd();for(let f=0;f<s.items.length;f++)if(this.lexer.state.top=!1,s.items[f].tokens=this.lexer.blockTokens(s.items[f].text,[]),!s.loose){const d=s.items[f].tokens.filter(m=>m.type==="space"),p=d.length>0&&d.some(m=>/\n.*\n/.test(m.raw));s.loose=p}if(s.loose)for(let f=0;f<s.items.length;f++)s.items[f].loose=!0;return s}}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"):"",s=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:s}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const i=Ul(n[1]),r=n[2].replace(/^\||\| *$/g,"").split("|"),s=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
|
|
38
38
|
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(i.length===r.length){for(const o of r)/^ *-+: *$/.test(o)?l.align.push("right"):/^ *:-+: *$/.test(o)?l.align.push("center"):/^ *:-+ *$/.test(o)?l.align.push("left"):l.align.push(null);for(const o of i)l.header.push({text:o,tokens:this.lexer.inline(o)});for(const o of s)l.rows.push(Ul(o,l.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return l}}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:je(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 l=hi(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{const l=Hu(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let r=n[2],s="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r);l&&(r=l[1],s=l[3])}else s=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)),Hl(n,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.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," "),s=n[r.toLowerCase()];if(!s){const l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return Hl(i,s,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 l=[...r[0]].length-1;let o,a,c=l,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+l);(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])&&l%3&&!((l+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,l+r.index+p+a);if(Math.min(l,a)%2){const k=m.slice(1,-1);return{type:"em",raw:m,text:k,tokens:this.lexer.inlineTokens(k)}}const A=m.slice(2,-2);return{type:"strong",raw:m,text:A,tokens:this.lexer.inlineTokens(A)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let i=n[2].replace(/\n/g," ");const r=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return r&&s&&(i=i.substring(1,i.length-1)),i=je(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=je(n[1]),r="mailto:"+i):(i=je(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,s;if(n[2]==="@")r=je(n[0]),s="mailto:"+r;else{let l;do l=n[0],n[0]=((i=this.rules.inline._backpedal.exec(n[0]))==null?void 0:i[0])??"";while(l!==n[0]);r=je(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:r,href:s,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=je(n[0]),{type:"text",raw:n[0],text:i}}}}const Du=/^(?: *(?:\n|$))+/,Vu=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Bu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,gn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Wu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Nl=/(?:[*+-]|\d{1,9}[.)])/,Dl=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Nl).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]+)*)/,qu=/^[^\n]+/,mr=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ku=ae(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",mr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Zu=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Nl).getRegex(),pi="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]*?(?:-->|$))/,Gu=ae("^ {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",pi).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Vl=ae(gr).replace("hr",gn).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",pi).getRegex(),Qu=ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Vl).getRegex(),yr={blockquote:Qu,code:Vu,def:Ku,fences:Bu,heading:Wu,hr:gn,html:Gu,lheading:Dl,list:Zu,newline:Du,paragraph:Vl,table:pn,text:qu},Bl=ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gn).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",pi).getRegex(),Ju={...yr,table:Bl,paragraph:ae(gr).replace("hr",gn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bl).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",pi).getRegex()},Yu={...yr,html:ae(`^ *(?: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:pn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ae(gr).replace("hr",gn).replace("heading",` *#{1,6} *[^
|
|
40
|
-
]`).replace("lheading",Dl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Wl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Xu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ql=/^( {2,}|\\)\n(?!\s*$)/,ef=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,mn="\\p{P}\\p{S}",tf=ae(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,mn).getRegex(),nf=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,rf=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,mn).getRegex(),sf=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,mn).getRegex(),lf=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,mn).getRegex(),of=ae(/\\([punct])/,"gu").replace(/punct/g,mn).getRegex(),af=ae(/^<(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(),cf=ae(vr).replace("(?:-->|$)","-->").getRegex(),uf=ae("^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",cf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gi=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ff=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Kl=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",gi).replace("ref",mr).getRegex(),Zl=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",mr).getRegex(),hf=ae("reflink|nolink(?!\\()","g").replace("reflink",Kl).replace("nolink",Zl).getRegex(),wr={_backpedal:pn,anyPunctuation:of,autolink:af,blockSkip:nf,br:ql,code:Xu,del:pn,emStrongLDelim:rf,emStrongRDelimAst:sf,emStrongRDelimUnd:lf,escape:Wl,link:ff,nolink:Zl,punctuation:tf,reflink:Kl,reflinkSearch:hf,tag:uf,text:ef,url:pn},df={...wr,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",gi).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gi).getRegex()},br={...wr,escape:ae(Wl).replace("])","~|])").getRegex(),url:ae(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},pf={...br,br:ae(ql).replace("{2,}","*").getRegex(),text:ae(br.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mi={normal:yr,gfm:Ju,pedantic:Yu},vn={normal:wr,gfm:br,breaks:pf,pedantic:df};class rt{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||
|
|
40
|
+
]`).replace("lheading",Dl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Wl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Xu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ql=/^( {2,}|\\)\n(?!\s*$)/,ef=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,mn="\\p{P}\\p{S}",tf=ae(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,mn).getRegex(),nf=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,rf=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,mn).getRegex(),sf=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,mn).getRegex(),lf=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,mn).getRegex(),of=ae(/\\([punct])/,"gu").replace(/punct/g,mn).getRegex(),af=ae(/^<(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(),cf=ae(vr).replace("(?:-->|$)","-->").getRegex(),uf=ae("^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",cf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gi=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ff=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gi).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Kl=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",gi).replace("ref",mr).getRegex(),Zl=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",mr).getRegex(),hf=ae("reflink|nolink(?!\\()","g").replace("reflink",Kl).replace("nolink",Zl).getRegex(),wr={_backpedal:pn,anyPunctuation:of,autolink:af,blockSkip:nf,br:ql,code:Xu,del:pn,emStrongLDelim:rf,emStrongRDelimAst:sf,emStrongRDelimUnd:lf,escape:Wl,link:ff,nolink:Zl,punctuation:tf,reflink:Kl,reflinkSearch:hf,tag:uf,text:ef,url:pn},df={...wr,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",gi).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gi).getRegex()},br={...wr,escape:ae(Wl).replace("])","~|])").getRegex(),url:ae(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},pf={...br,br:ae(ql).replace("{2,}","*").getRegex(),text:ae(br.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mi={normal:yr,gfm:Ju,pedantic:Yu},vn={normal:wr,gfm:br,breaks:pf,pedantic:df};class rt{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 di,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:mi.normal,inline:vn.normal};this.options.pedantic?(n.block=mi.pedantic,n.inline=vn.pedantic):this.options.gfm&&(n.block=mi.gfm,this.options.breaks?n.inline=vn.breaks:n.inline=vn.gfm),this.tokenizer.rules=n}static get rules(){return{block:mi,inline:vn}}static lex(t,n){return new rt(n).lex(t)}static lexInline(t,n){return new rt(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,s,l;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 wo=Object.defineProperty;var bo=(e,t,n)=>t in e?wo(e,t,{enumerable:!0,config
|
|
|
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),l=s.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,s,l=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(l))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,o.index)+"++"+l.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,l,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(s=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&&(s=t.substring(0,f+1))}if(i=this.tokenizer.inlineText(s)){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 vi{options;constructor(t){this.options=t||
|
|
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,s,l=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(l))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,o.index)+"++"+l.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,l,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(s=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&&(s=t.substring(0,f+1))}if(i=this.tokenizer.inlineText(s)){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 vi{options;constructor(t){this.options=t||It}code(t,n,i){var s;const r=(s=(n||"").match(/^\S*/))==null?void 0:s[0];return t=t.replace(/\n$/,"")+`
|
|
51
51
|
`,r?'<pre><code class="language-'+je(r)+'">'+(i?t:je(t,!0))+`</code></pre>
|
|
52
52
|
`:"<pre><code>"+(i?t:je(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=Fl(t);if(r===null)return i;t=r;let s='<a href="'+t+'"';return n&&(s+=' title="'+n+'"'),s+=">"+i+"</a>",s}image(t,n,i){const r=Fl(t);if(r===null)return i;t=r;let s=`<img src="${t}" alt="${i}"`;return n&&(s+=` title="${n}"`),s+=">",s}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 st{options;renderer;textRenderer;constructor(t){this.options=t||
|
|
69
|
-
`+(l.tokens?this.parseInline(l.tokens):l.text);i+=n?this.renderer.paragraph(o):o;continue}default:{const l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}parseInline(t,n){n=n||this.renderer;let i="";for(let r=0;r<t.length;r++){const s=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=l||"";continue}}switch(s.type){case"escape":{const l=s;i+=n.text(l.text);break}case"html":{const l=s;i+=n.html(l.text);break}case"link":{const l=s;i+=n.link(l.href,l.title,this.parseInline(l.tokens,n));break}case"image":{const l=s;i+=n.image(l.href,l.title,l.text);break}case"strong":{const l=s;i+=n.strong(this.parseInline(l.tokens,n));break}case"em":{const l=s;i+=n.em(this.parseInline(l.tokens,n));break}case"codespan":{const l=s;i+=n.codespan(l.text);break}case"br":{i+=n.br();break}case"del":{const l=s;i+=n.del(this.parseInline(l.tokens,n));break}case"text":{const l=s;i+=n.text(l.text);break}default:{const l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}}class yn{options;constructor(t){this.options=t||
|
|
70
|
-
Please report this to https://github.com/markedjs/marked.`,t){const r="<p>An error occurred:</p><pre>"+je(i.message+"",!0)+"</pre>";return n?Promise.resolve(r):r}if(n)return Promise.reject(i);throw i}};const
|
|
71
|
-
</code></pre>`}}}}function Ql(e){return(e||"").match(/\S*/)[0]}function Jl(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Yl=/[&<>"']/,mf=new RegExp(Yl.source,"g"),Xl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,vf=new RegExp(Xl.source,"g"),yf={"&":"&","<":"<",">":">",'"':""","'":"'"},eo=e=>yf[e];function to(e,t){if(t){if(Yl.test(e))return e.replace(mf,eo)}else if(Xl.test(e))return e.replace(vf,eo);return e}const wf=/\$.*?\$/,bf=/^\$(.*?)\$/,kf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,xf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=kf.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(wf);return n!==-1?n:t.length},tokenizer(t){const n=bf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],no=(e="",t={})=>e.replace(/:(.+?):/g,(n,i)=>t[i]?`<img class="wl-emoji" src="${t[i]}" alt="${i}">`:n),_f=(e,{emojiMap:t,highlighter:n,texRenderer:i})=>{const r=new Gl;if(r.setOptions({breaks:!0}),n&&r.use(gf({highlight:n})),i){const s=xf(i);r.use({extensions:s})}return r.parse(no(e,t))},xr=e=>e.dataset.path??null,Cf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),$f=e=>e.match(/[\u4E00-\u9FD5]/gu),Ef=e=>{var t,n;return(((t=Cf(e))==null?void 0:t.reduce((i,r)=>i+(["",",","."].includes(r.trim())?0:r.trim().split(/\s+/u).length),0))??0)+(((n=$f(e))==null?void 0:n.length)??0)},Tf=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},io=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:i=navigator.language})=>{const r=new AbortController,s=document.querySelectorAll(n);return s.length&&Ir({serverURL:An(e),paths:Array.from(s).map(l=>Zr(xr(l)??t)),lang:i,signal:r.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Ll),r.abort.bind(r)},ro=({size:e})=>te("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[te("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),te("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),Rf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),Sf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),Af=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),te("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),If=({active:e=!1})=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),Lf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),te("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),Mf=()=>te("svg",{width:"16",height:"16",ariaHidden:"true"},te("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),Of=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),zf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),jf=()=>te("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},te("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),wn=({size:e=100})=>te("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},te("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},te("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Pf=()=>te("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[te("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),te("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Ff=()=>Dt("WALINE_USER_META",{nick:"",mail:"",link:""}),Uf=()=>Dt("WALINE_COMMENT_BOX_EDITOR",""),Hf="WALINE_LIKE";let so=null;const lo=()=>so??(so=Dt(Hf,[])),Nf="WALINE_REACTION";let oo=null;const Df=()=>oo??(oo=Dt(Nf,{}));var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ao={},Vt={},bn={},Vf=yi&&yi.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function o(f){try{c(i.next(f))}catch(d){l(d)}}function a(f){try{c(i.throw(f))}catch(d){l(d)}}function c(f){f.done?s(f.value):r(f.value).then(o,a)}c((i=i.apply(e,t||[])).next())})},Bf=yi&&yi.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;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&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=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(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(bn,"__esModule",{value:!0}),bn.ReCaptchaInstance=void 0;var Wf=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 Vf(this,void 0,void 0,function(){return Bf(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}();bn.ReCaptchaInstance=Wf,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.getInstance=Vt.load=void 0;var qf=bn,mt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(mt||(mt={}));var co=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()===mt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===mt.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(r,s){e.successfulLoadingConsumers.push(function(l){return r(l)}),e.errorLoadingRunnable.push(function(l){return s(l)})});e.instanceSiteKey=t,e.setLoadingState(mt.LOADING);var i=new e;return new Promise(function(r,s){i.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(mt.LOADED);var l=i.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new qf.ReCaptchaInstance(t,l,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,r(o)}).catch(function(l){e.errorLoadingRunnable.forEach(function(o){return o(l)}),e.errorLoadingRunnable=[],s(l)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?mt.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,i,r,s){var l=this;n===void 0&&(n=!1),i===void 0&&(i=!1),r===void 0&&(r={}),s===void 0&&(s="");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"),s&&(a=s),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",l.waitForScriptToLoad(function(){f(o)},i),!1),o.onerror=function(p){e.setLoadingState(mt.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 s={sitekey:n,badge:i.badge,size:i.size,tabindex:i.tabindex};return i.container?r?t.enterprise.render(i.container,s):t.render(i.container,s):r?t.enterprise.render(s):t.render(s)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Vt.load=co.load,Vt.getInstance=co.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=bn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(ao);const uo={},Kf=e=>{const t=uo[e]??(uo[e]=ao.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(i=>i.execute(n))}},Zf=e=>({execute:async t=>{const{load:n}=Tu("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})})})}}),Gf="WALINE_USER";let fo=null;const wi=()=>fo??(fo=Dt(Gf,{})),Qf={key:0,class:"wl-reaction"},Jf=["textContent"],Yf={class:"wl-reaction-list"},Xf=["onClick"],eh={class:"wl-reaction-img"},th=["src","alt"],nh=["textContent"],ih=["textContent"];var rh=rn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Df(),i=Jn("config"),r=q(-1),s=q([]),l=ke(()=>i.value.locale),o=ke(()=>i.value.reaction.length>0),a=ke(()=>{const{reaction:p,path:m}=i.value;return p.map((A,k)=>({icon:A,desc:l.value[`reaction${k}`],active:n.value[m]===k}))});let c;const f=async()=>{if(!o.value)return;const{serverURL:p,lang:m,path:A,reaction:k}=i.value,E=new AbortController;c=E.abort.bind(E);const w=await _i({serverURL:p,lang:m,paths:[A],type:k.map(($,U)=>`reaction${U}`),signal:E.signal});s.value=k.map(($,U)=>w[0][`reaction${U}`])},d=async p=>{if(r.value===-1){const{serverURL:m,lang:A,path:k}=i.value,E=n.value[k];r.value=p,E!==void 0&&(await Rn({serverURL:m,lang:A,path:k,type:`reaction${E}`,action:"desc"}),s.value[E]=Math.max(s.value[E]-1,0)),E!==p&&(await Rn({serverURL:m,lang:A,path:k,type:`reaction${p}`}),s.value[p]=(s.value[p]||0)+1),E===p?delete n.value[k]:n.value[k]=p,r.value=-1}};return sn(()=>{Fe(()=>[i.value.serverURL,i.value.path],()=>{f()},{immediate:!0})}),Ji(()=>c==null?void 0:c()),(p,m)=>a.value.length?(I(),M("div",Qf,[P("div",{class:"wl-reaction-title",textContent:X(l.value.reactionTitle)},null,8,Jf),P("ul",Yf,[(I(!0),M(ce,null,Ue(a.value,({active:A,icon:k,desc:E},w)=>(I(),M("li",{key:w,class:ge(["wl-reaction-item",{active:A}]),onClick:$=>d(w)},[P("div",eh,[P("img",{src:k,alt:E},null,8,th),r.value===w?(I(),et(K(wn),{key:0,class:"wl-reaction-loading"})):(I(),M("div",{key:1,class:"wl-reaction-votes",textContent:X(s.value[w]||0)},null,8,nh))]),P("div",{class:"wl-reaction-text",textContent:X(E)},null,8,ih)],10,Xf))),128))])])):Y("v-if",!0)}}),kn=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},sh=kn(rh,[["__file","ArticleReaction.vue"]]),xn=new Map;function lh(e){var t=xn.get(e);t&&t.destroy()}function oh(e){var t=xn.get(e);t&&t.update()}var _n=null;typeof window>"u"?((_n=function(e){return e}).destroy=function(e){return e},_n.update=function(e){return e}):((_n=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"&&!xn.has(i)){var r,s=null,l=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]}),xn.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",xn.set(i,{destroy:a,update:f}),f()}function c(d){var p,m,A=d.restoreTextAlign,k=A===void 0?null:A,E=d.testForHeightReduction,w=E===void 0||E,$=l.overflowY;if(i.scrollHeight!==0&&(l.resize==="vertical"?i.style.resize="none":l.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],Q=O[1];N.style.scrollBehavior="auto",N.scrollTop=Q,N.style.scrollBehavior=null})}}(i),i.style.height=""),m=l.boxSizing==="content-box"?i.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):i.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(i.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(i.style.overflow="hidden"),i.style.height=m+"px",k&&(i.style.textAlign=k),p&&p(),s!==m&&(i.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=m),$!==l.overflow&&!k)){var U=l.textAlign;l.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],lh),e},_n.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],oh),e});var ho=_n;const ah=["data-index"],ch=["src","title","onClick"];var uh=rn({__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),s=q({}),l=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 tn();const A=Array.from(((m=r.value)==null?void 0:m.children)??[]).reduce((k,E)=>E.getBoundingClientRect().height<k.getBoundingClientRect().height?E:k);l.value[Number(A.dataset.index)].push(p),await c(p+1)},f=async(p=!1)=>{if(l.value.length===o()&&!p)return;l.value=a(o());const m=window.scrollY;await c(0),window.scrollTo({top:m})},d=p=>{s.value[p.target.src]=!0};return sn(()=>{f(!0),i=new ResizeObserver(()=>{f()}),i.observe(r.value),Fe(()=>[n.items],()=>{s.value={},f(!0)}),Fe(()=>[n.columnWidth,n.gap],()=>{f()})}),Ja(()=>i.unobserve(r.value)),(p,m)=>(I(),M("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:Zt({gap:`${p.gap}px`})},[(I(!0),M(ce,null,Ue(l.value,(A,k)=>(I(),M("div",{key:k,class:"wl-gallery-column","data-index":k,style:Zt({gap:`${p.gap}px`})},[(I(!0),M(ce,null,Ue(A,E=>(I(),M(ce,{key:E},[s.value[p.items[E].src]?Y("v-if",!0):(I(),et(K(wn),{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",``)},null,40,ch)],64))),128))],12,ah))),128))],4))}}),fh=kn(uh,[["__file","ImageWall.vue"]]);const hh={class:"wl-comment"},dh={key:0,class:"wl-login-info"},ph={class:"wl-avatar"},gh=["title"],mh=["title"],vh=["src"],yh=["title","textContent"],wh={class:"wl-panel"},bh=["for","textContent"],kh=["id","onUpdate:modelValue","name","type"],xh=["placeholder"],_h={class:"wl-preview"},Ch=P("hr",null,null,-1),$h=["innerHTML"],Eh={class:"wl-footer"},Th={class:"wl-actions"},Rh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Sh=["title"],Ah=["title"],Ih=["title"],Lh=["title"],Mh={class:"wl-info"},Oh=P("div",{class:"wl-captcha-container"},null,-1),zh={class:"wl-text-number"},jh={key:0},Ph=["textContent"],Fh=["textContent"],Uh=["disabled"],Hh=["placeholder"],Nh={key:1,class:"wl-loading"},Dh={key:0,class:"wl-tab-wrapper"},Vh=["title","onClick"],Bh=["src","alt"],Wh={key:0,class:"wl-tabs"},qh=["onClick"],Kh=["src","alt","title"],Zh=["title"];var Gh=rn({__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=Jn("config"),s=Uf(),l=Ff(),o=wi(),a=q({}),c=q(null),f=q(null),d=q(null),p=q(null),m=q(null),A=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=Gt({loading:!0,list:[]}),Q=q(0),Ae=q(!1),Z=q(""),re=q(!1),xe=q(!1),z=ke(()=>r.value.locale),ne=ke(()=>{var L;return!!((L=o.value)!=null&&L.token)}),se=ke(()=>r.value.imageUploader!==!1),we=L=>{const S=c.value,B=S.selectionStart,fe=S.selectionEnd||0,u=S.scrollTop;s.value=S.value.substring(0,B)+L+S.value.substring(fe,S.value.length),S.focus(),S.selectionStart=B+L.length,S.selectionEnd=B+L.length,S.scrollTop=u},me=L=>{const S=L.key;(L.ctrlKey||L.metaKey)&&S==="Enter"&&Me()},ve=L=>{const S=`![${r.value.locale.uploading} ${L.name}]()`;return we(S),re.value=!0,Promise.resolve().then(()=>r.value.imageUploader(L)).then(B=>{s.value=s.value.replace(S,`\r
|
|
72
|
-
`)}).catch(B=>{alert(B.message),s.value=s.value.replace(S,"")}).then(()=>{re.value=!1})},$e=L=>{var S;if((S=L.dataTransfer)!=null&&S.items){const B=Ml(L.dataTransfer.items);B&&se.value&&(ve(B),L.preventDefault())}},lt=L=>{if(L.clipboardData){const S=Ml(L.clipboardData.items);S&&se.value&&ve(S)}},vt=()=>{const L=f.value;L.files&&se.value&&ve(L.files[0]).then(()=>{L.value=""})},Me=async()=>{var L,S,B,fe,u,h;const{serverURL:g,lang:v,login:y,wordLimit:_,requiredMeta:R,recaptchaV3Key:x,turnstileKey:T}=r.value,b=await Tf(),C={comment:Z.value,nick:l.value.nick,mail:l.value.mail,link:l.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&&!Vo(C.mail))return(B=a.value.mail)==null||B.focus(),alert(z.value.mailError);C.nick||(C.nick=z.value.anonymous)}if(!C.comment){(fe=c.value)==null||fe.focus();return}if(!Ae.value)return alert(z.value.wordHint.replace("$0",_[0].toString()).replace("$1",_[1].toString()).replace("$2",O.value.toString()));C.comment=no(C.comment,E.value.map),n.replyId&&n.rootId&&(C.pid=n.replyId,C.rid=n.rootId,C.at=n.replyUser),re.value=!0;try{x&&(C.recaptchaV3=await Kf(x).execute("social")),T&&(C.turnstile=await Zf(T).execute("social"));const F={serverURL:g,lang:v,token:(u=o.value)==null?void 0:u.token,comment:C},j=await(n.edit?Wt({objectId:n.edit.objectId,...F}):Sr(F));if(re.value=!1,j.errmsg)return alert(j.errmsg);i("submit",j.data),s.value="",H.value="",n.replyId&&i("cancelReply"),(h=n.edit)!=null&&h.objectId&&i("cancelEdit")}catch(F){re.value=!1,alert(F.message)}},$n=L=>{L.preventDefault();const{lang:S,serverURL:B}=r.value;Lr({serverURL:B,lang:S}).then(fe=>{o.value=fe,(fe.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(fe)),i("log")})},ki=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),i("log")},En=L=>{L.preventDefault();const{lang:S,serverURL:B}=r.value,fe=800,u=800,h=(window.innerWidth-fe)/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=${fe},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},"*")},Ne=L=>{var S,B,fe,u;!((S=d.value)!=null&&S.contains(L.target))&&!((B=p.value)!=null&&B.contains(L.target))&&($.value=!1),!((fe=m.value)!=null&&fe.contains(L.target))&&!((u=A.value)!=null&&u.contains(L.target))&&(U.value=!1)},yt=async L=>{var S;const{scrollTop:B,clientHeight:fe,scrollHeight:u}=L.target,h=(fe+B)/u,g=r.value.search,v=((S=k.value)==null?void 0:S.value)??"";h<.9||N.loading||xe.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)]:xe.value=!0,N.loading=!1,setTimeout(()=>{L.target.scrollTop=B},50))},Lt=pu(L=>{N.list=[],xe.value=!1,yt(L)},300);return Fe([r,O],([L,S])=>{const{wordLimit:B}=L;B?S<B[0]&&B[0]!==0?(Q.value=B[0],Ae.value=!1):S>B[1]?(Q.value=B[1],Ae.value=!1):(Q.value=B[1],Ae.value=!0):(Q.value=0,Ae.value=!0)},{immediate:!0}),ci("click",Ne),ci("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))))}),Fe(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&&(s.value=n.edit.orig),Fe(()=>s.value,S=>{const{highlighter:B,texRenderer:fe}=r.value;Z.value=S,H.value=_f(S,{emojiMap:E.value.map,highlighter:B,texRenderer:fe}),O.value=Ef(S),S?ho(c.value):ho.destroy(c.value)},{immediate:!0}),Fe(()=>r.value.emoji,S=>Lu(S).then(B=>{E.value=B}),{immediate:!0})}),(L,S)=>{var B,fe;return I(),M("div",hh,[K(r).login!=="disable"&&ne.value&&!((B=L.edit)!=null&&B.objectId)?(I(),M("div",dh,[P("div",ph,[P("button",{type:"submit",class:"wl-logout-btn",title:z.value.logout,onClick:ki},[oe(K(ro),{size:14})],8,gh),P("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:z.value.profile,onClick:En},[P("img",{src:K(o).avatar,alt:"avatar"},null,8,vh)],8,mh)]),P("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:z.value.profile,onClick:En,textContent:X(K(o).display_name)},null,8,yh)])):Y("v-if",!0),P("div",wh,[K(r).login!=="force"&&K(r).meta.length&&!ne.value?(I(),M("div",{key:0,class:ge(["wl-header",`item${K(r).meta.length}`])},[(I(!0),M(ce,null,Ue(K(r).meta,u=>(I(),M("div",{key:u,class:"wl-header-item"},[P("label",{for:`wl-${u}`,textContent:X(z.value[u]+(K(r).requiredMeta.includes(u)||!K(r).requiredMeta.length?"":`(${z.value.optional})`))},null,8,bh),Zn(P("input",{id:`wl-${u}`,ref_for:!0,ref:h=>{h&&(a.value[u]=h)},"onUpdate:modelValue":h=>K(l)[u]=h,class:ge(["wl-input",`wl-${u}`]),name:u,type:u==="mail"?"email":"text"},null,10,kh),[[iu,K(l)[u]]])]))),128))],2)):Y("v-if",!0),Zn(P("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":S[0]||(S[0]=u=>Ee(s)?s.value=u:null),class:"wl-editor",placeholder:L.replyUser?`@${L.replyUser}`:z.value.placeholder,onKeydown:me,onDrop:$e,onPaste:lt},null,40,xh),[[fr,K(s)]]),Zn(P("div",_h,[Ch,P("h4",null,X(z.value.preview)+":",1),P("div",{class:"wl-content",innerHTML:H.value},null,8,$h)],512),[[pl,D.value]]),P("div",Eh,[P("div",Th,[P("a",Rh,[oe(K(Mf))]),Zn(P("button",{ref_key:"emojiButtonRef",ref:d,type:"button",class:ge(["wl-action",{active:$.value}]),title:z.value.emoji,onClick:S[1]||(S[1]=u=>$.value=!$.value)},[oe(K(Sf))],10,Sh),[[pl,E.value.tabs.length]]),K(r).search?(I(),M("button",{key:0,ref_key:"gifButtonRef",ref:m,type:"button",class:ge(["wl-action",{active:U.value}]),title:z.value.gif,onClick:S[2]||(S[2]=u=>U.value=!U.value)},[oe(K(Pf))],10,Ah)):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:vt},null,544),se.value?(I(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:z.value.uploadImage},[oe(K(Af))],8,Ih)):Y("v-if",!0),P("button",{type:"button",class:ge(["wl-action",{active:D.value}]),title:z.value.preview,onClick:S[3]||(S[3]=u=>D.value=!D.value)},[oe(K(Lf))],10,Lh)]),P("div",Mh,[Oh,P("div",zh,[tt(X(O.value)+" ",1),K(r).wordLimit?(I(),M("span",jh,[tt(" / "),P("span",{class:ge({illegal:!Ae.value}),textContent:X(Q.value)},null,10,Ph)])):Y("v-if",!0),tt(" "+X(z.value.word),1)]),K(r).login!=="disable"&&!ne.value?(I(),M("button",{key:0,type:"button",class:"wl-btn",onClick:$n,textContent:X(z.value.login)},null,8,Fh)):Y("v-if",!0),K(r).login!=="force"||ne.value?(I(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:re.value,onClick:Me},[re.value?(I(),et(K(wn),{key:0,size:16})):(I(),M(ce,{key:1},[tt(X(z.value.submit),1)],64))],8,Uh)):Y("v-if",!0)]),P("div",{ref_key:"gifPopupRef",ref:A,class:ge(["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(Lt)&&K(Lt)(...u))},null,40,Hh),N.list.length?(I(),et(fh,{key:0,items:N.list,"column-width":200,gap:6,onInsert:S[5]||(S[5]=u=>we(u)),onScroll:yt},null,8,["items"])):Y("v-if",!0),N.loading?(I(),M("div",Nh,[oe(K(wn),{size:30})])):Y("v-if",!0)],2),P("div",{ref_key:"emojiPopupRef",ref:p,class:ge(["wl-emoji-popup",{display:$.value}])},[(I(!0),M(ce,null,Ue(E.value.tabs,(u,h)=>(I(),M(ce,{key:u.name},[h===w.value?(I(),M("div",Dh,[(I(!0),M(ce,null,Ue(u.items,g=>(I(),M("button",{key:g,type:"button",title:g,onClick:v=>we(`:${g}:`)},[$.value?(I(),M("img",{key:0,class:"wl-emoji",src:E.value.map[g],alt:g,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Bh)):Y("v-if",!0)],8,Vh))),128))])):Y("v-if",!0)],64))),128)),E.value.tabs.length>1?(I(),M("div",Wh,[(I(!0),M(ce,null,Ue(E.value.tabs,(u,h)=>(I(),M("button",{key:u.name,type:"button",class:ge(["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,Kh)],10,qh))),128))])):Y("v-if",!0)],2)])]),L.replyId||(fe=L.edit)!=null&&fe.objectId?(I(),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"))},[oe(K(ro),{size:24})],8,Zh)):Y("v-if",!0)])}}}),po=kn(Gh,[["__file","CommentBox.vue"]]);const Qh=["id"],Jh={class:"wl-user","aria-hidden":"true"},Yh=["src"],Xh={class:"wl-card"},ed={class:"wl-head"},td=["href"],nd={key:1,class:"wl-nick"},id=["textContent"],rd=["textContent"],sd=["textContent"],ld=["textContent"],od=["textContent"],ad={class:"wl-comment-actions"},cd=["title"],ud=["title"],fd={class:"wl-meta","aria-hidden":"true"},hd=["data-value","textContent"],dd={key:0,class:"wl-content"},pd={key:0},gd=["href"],md=P("span",null,": ",-1),vd=["innerHTML"],yd={key:1,class:"wl-admin-actions"},wd={class:"wl-comment-status"},bd=["disabled","onClick","textContent"],kd={key:3,class:"wl-quote"};var xd=rn({__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"],s=Jn("config"),l=lo(),o=Eu(),a=wi(),c=ke(()=>s.value.locale),f=ke(()=>{const{link:w}=n.comment;return w?Qr(w)?w:`https://${w}`:""}),d=ke(()=>l.value.includes(n.comment.objectId)),p=ke(()=>No(new Date(n.comment.time),o.value,c.value)),m=ke(()=>a.value.type==="administrator"),A=ke(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),k=ke(()=>{var w;return n.comment.objectId===((w=n.reply)==null?void 0:w.objectId)}),E=ke(()=>{var w;return n.comment.objectId===((w=n.edit)==null?void 0:w.objectId)});return(w,$)=>{var U;const D=Da("CommentCard",!0);return I(),M("div",{id:w.comment.objectId,class:"wl-card-item"},[P("div",Jh,[w.comment.avatar?(I(),M("img",{key:0,class:"wl-user-avatar",src:w.comment.avatar},null,8,Yh)):Y("v-if",!0),w.comment.type?(I(),et(K(jf),{key:1})):Y("v-if",!0)]),P("div",Xh,[P("div",ed,[f.value?(I(),M("a",{key:0,class:"wl-nick",href:f.value,target:"_blank",rel:"nofollow noopener noreferrer"},X(w.comment.nick),9,td)):(I(),M("span",nd,X(w.comment.nick),1)),w.comment.type==="administrator"?(I(),M("span",{key:2,class:"wl-badge",textContent:X(c.value.admin)},null,8,id)):Y("v-if",!0),w.comment.label?(I(),M("span",{key:3,class:"wl-badge",textContent:X(w.comment.label)},null,8,rd)):Y("v-if",!0),w.comment.sticky?(I(),M("span",{key:4,class:"wl-badge",textContent:X(c.value.sticky)},null,8,sd)):Y("v-if",!0),typeof w.comment.level=="number"?(I(),M("span",{key:5,class:ge(`wl-badge level${w.comment.level}`),textContent:X(c.value[`level${w.comment.level}`]||`Level ${w.comment.level}`)},null,10,ld)):Y("v-if",!0),P("span",{class:"wl-time",textContent:X(p.value)},null,8,od),P("div",ad,[m.value||A.value?(I(),M(ce,{key:0},[P("button",{type:"button",class:"wl-edit",onClick:$[0]||($[0]=H=>i("edit",w.comment))},[oe(K(zf))]),P("button",{type:"button",class:"wl-delete",onClick:$[1]||($[1]=H=>i("delete",w.comment))},[oe(K(Rf))])],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))},[oe(K(If),{active:d.value},null,8,["active"]),tt(" "+X("like"in w.comment?w.comment.like:""),1)],8,cd),P("button",{type:"button",class:ge(["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))},[oe(K(Of))],10,ud)])]),P("div",fd,[(I(),M(ce,null,Ue(["addr","browser","os"],H=>(I(),M(ce,null,[w.comment[H]?(I(),M("span",{key:H,class:ge(`wl-${H}`),"data-value":w.comment[H],textContent:X(w.comment[H])},null,10,hd)):Y("v-if",!0)],64))),64))]),E.value?Y("v-if",!0):(I(),M("div",dd,[w.comment.reply_user?(I(),M("p",pd,[P("a",{href:"#"+w.comment.pid},"@"+X(w.comment.reply_user.nick),9,gd),md])):Y("v-if",!0),P("div",{innerHTML:w.comment.comment},null,8,vd)])),m.value&&!E.value?(I(),M("div",yd,[P("span",wd,[(I(),M(ce,null,Ue(r,H=>P("button",{key:H,type:"submit",class:ge(`wl-btn wl-${H}`),disabled:w.comment.status===H,onClick:O=>i("status",{status:H,comment:w.comment}),textContent:X(c.value[H])},null,10,bd)),64))]),m.value&&!("rid"in w.comment)?(I(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:$[4]||($[4]=H=>i("sticky",w.comment))},X(w.comment.sticky?c.value.unsticky:c.value.sticky),1)):Y("v-if",!0)])):Y("v-if",!0),k.value||E.value?(I(),M("div",{key:2,class:ge({"wl-reply-wrapper":k.value,"wl-edit-wrapper":E.value})},[oe(po,{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?(I(),M("div",kd,[(I(!0),M(ce,null,Ue(w.comment.children,H=>(I(),et(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)}}}),_d=kn(xd,[["__file","CommentCard.vue"]]);const go="3.2.0",Cd={"data-waline":""},$d={class:"wl-meta-head"},Ed={class:"wl-count"},Td=["textContent"],Rd={class:"wl-sort"},Sd=["onClick"],Ad={class:"wl-cards"},Id={key:1,class:"wl-operation"},Ld=["textContent"],Md={key:2,class:"wl-loading"},Od=["textContent"],zd={key:4,class:"wl-operation"},jd=["textContent"],Pd={key:5,class:"wl-power"},Fd=P("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var Ud=rn({__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=wi(),s=lo(),l=q("loading"),o=q(0),a=q(1),c=q(0),f=ke(()=>Fo(t)),d=q(f.value.commentSorting),p=q([]),m=q(null),A=q(null),k=ke(()=>Uo(f.value.dark)),E=ke(()=>f.value.locale);Su(k,{id:"waline-darkmode"});let w;const $=z=>{var ne;const{serverURL:se,path:we,pageSize:me}=f.value,ve=new AbortController;l.value="loading",w==null||w(),Rr({serverURL:se,lang:f.value.lang,path:we,pageSize:me,sortBy:n[d.value],page:z,signal:ve.signal,token:(ne=r.value)==null?void 0:ne.token}).then($e=>{l.value="success",o.value=$e.count,p.value.push(...$e.data),a.value=z,c.value=$e.totalPages}).catch($e=>{$e.name!=="AbortError"&&(console.error($e.message),l.value="error")}),w=ve.abort.bind(ve)},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=>{A.value=z},Q=z=>{if(A.value)A.value.comment=z.comment,A.value.orig=z.orig;else if("rid"in z){const ne=p.value.find(({objectId:se})=>se===z.rid);if(!ne)return;Array.isArray(ne.children)||(ne.children=[]),ne.children.push(z)}else p.value.unshift(z),o.value+=1},Ae=async({comment:z,status:ne})=>{var se;if(z.status===ne)return;const{serverURL:we,lang:me}=f.value;await Wt({serverURL:we,lang:me,token:(se=r.value)==null?void 0:se.token,objectId:z.objectId,comment:{status:ne}}),z.status=ne},Z=async z=>{var ne;if("rid"in z)return;const{serverURL:se,lang:we}=f.value;await Wt({serverURL:se,lang:we,token:(ne=r.value)==null?void 0:ne.token,objectId:z.objectId,comment:{sticky:z.sticky?0:1}}),z.sticky=!z.sticky},re=async({objectId:z})=>{var ne;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:se,lang:we}=f.value;await Ar({serverURL:se,lang:we,token:(ne=r.value)==null?void 0:ne.token,objectId:z}),p.value.some((me,ve)=>me.objectId===z?(p.value=p.value.filter(($e,lt)=>lt!==ve),!0):me.children.some(($e,lt)=>$e.objectId===z?(p.value[ve].children=me.children.filter((vt,Me)=>Me!==lt),!0):!1))},xe=async z=>{var ne;const{serverURL:se,lang:we}=f.value,{objectId:me}=z,ve=s.value.includes(me);await Wt({serverURL:se,lang:we,objectId:me,token:(ne=r.value)==null?void 0:ne.token,comment:{like:!ve}}),ve?s.value=s.value.filter($e=>$e!==me):(s.value=[...s.value,me],s.value.length>50&&(s.value=s.value.slice(-50))),z.like=(z.like||0)+(ve?-1:1)};return sc("config",f),sn(()=>{Fe(()=>[t.serverURL,t.path],()=>D(),{immediate:!0})}),Ji(()=>w==null?void 0:w()),(z,ne)=>(I(),M("div",Cd,[oe(sh),m.value?Y("v-if",!0):(I(),et(po,{key:0,onLog:D,onSubmit:Q})),P("div",$d,[P("div",Ed,[o.value?(I(),M("span",{key:0,class:"wl-num",textContent:X(o.value)},null,8,Td)):Y("v-if",!0),tt(" "+X(E.value.comment),1)]),P("ul",Rd,[(I(!0),M(ce,null,Ue(K(i),se=>(I(),M("li",{key:se,class:ge([se===d.value?"active":""]),onClick:we=>H(se)},X(E.value[se]),11,Sd))),128))])]),P("div",Ad,[(I(!0),M(ce,null,Ue(p.value,se=>(I(),et(_d,{key:se.objectId,"root-id":se.objectId,comment:se,reply:m.value,edit:A.value,onLog:D,onReply:O,onEdit:N,onSubmit:Q,onStatus:Ae,onDelete:re,onSticky:Z,onLike:xe},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(I(),M("div",Id,[P("button",{type:"button",class:"wl-btn",onClick:D,textContent:X(E.value.refresh)},null,8,Ld)])):l.value==="loading"?(I(),M("div",Md,[oe(K(wn),{size:30})])):p.value.length?a.value<c.value?(I(),M("div",zd,[P("button",{type:"button",class:"wl-btn",onClick:U,textContent:X(E.value.more)},null,8,jd)])):Y("v-if",!0):(I(),M("div",{key:3,class:"wl-empty",textContent:X(E.value.sofa)},null,8,Od)),f.value.copyright?(I(),M("div",Pd,[tt(" Powered by "),Fd,tt(" v"+X(K(go)),1)])):Y("v-if",!0)]))}}),Hd=kn(Ud,[["__file","WalineComment.vue"]]);const mo=(e,t)=>{t.forEach((n,i)=>{const r=e[i].time;typeof r=="number"&&(n.innerText=r.toString())})},vo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:i=!0,lang:r=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const f=xr(c);return f!==null&&t!==f},a=c=>Mr({serverURL:An(e),paths:c.map(f=>xr(f)??t),lang:r,signal:s.signal}).then(f=>mo(f,c)).catch(Ll);if(i){const c=l.filter(d=>!o(d)),f=l.filter(o);Or({serverURL:An(e),path:t,lang:r}).then(d=>mo(d,c)),f.length&&a(f)}else a(l);return s.abort.bind(s)},Nd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:i=!1,...r})=>{const s=e?dr(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!r.serverURL)throw new Error("Option 'serverURL' is missing!");const l=Gt({...r}),o=Gt({comment:n,pageview:i,path:t}),a=()=>{o.comment&&io({serverURL:l.serverURL,path:o.path,...Ot(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&vo({serverURL:l.serverURL,path:o.path,...Ot(o.pageview)?{selector:o.pageview}:{}})},f=s?ou(()=>te(Hd,{path:o.path,...l})):null;f&&f.mount(s);const d=Fs(a),p=Fs(c);return{el:s,update:({comment:m,pageview:A,path:k=window.location.pathname,...E}={})=>{Object.entries(E).forEach(([w,$])=>{l[w]=$}),o.path=k,m!==void 0&&(o.comment=m),A!==void 0&&(o.pageview=A)},destroy:()=>{f==null||f.unmount(),d(),p()}}},Dd=({el:e,serverURL:t,count:n,lang:i=navigator.language})=>{var r;const s=wi(),l=dr(e),o=new AbortController;return zr({serverURL:t,count:n,lang:i,signal:o.signal,token:(r=s.value)==null?void 0:r.token}).then(a=>l&&a.length?(l.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(),l.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Vd=({el:e,serverURL:t,count:n,locale:i,lang:r=navigator.language,mode:s="list"})=>{const l=dr(e),o=new AbortController;return jr({serverURL:t,pageSize:n,lang:r,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(i={...Kr(r),...typeof i=="object"?i:{}},l.innerHTML=`<ul class="wl-user-${s}">${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(),l.innerHTML=""}}))};export{Dd as RecentComments,Vd as UserList,Sr as addComment,io as commentCount,Sn as defaultLocales,Ar as deleteComment,Ir as fetchCommentCount,_i as getArticleCounter,Rr as getComment,Mr as getPageview,zr as getRecentComment,jr as getUserList,Nd as init,Lr as login,vo as pageviewCount,Rn as updateArticleCounter,Wt as updateComment,Or as updatePageview,go as version};
|
|
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=Fl(t);if(r===null)return i;t=r;let s='<a href="'+t+'"';return n&&(s+=' title="'+n+'"'),s+=">"+i+"</a>",s}image(t,n,i){const r=Fl(t);if(r===null)return i;t=r;let s=`<img src="${t}" alt="${i}"`;return n&&(s+=` title="${n}"`),s+=">",s}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 st{options;renderer;textRenderer;constructor(t){this.options=t||It,this.options.renderer=this.options.renderer||new vi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new kr}static parse(t,n){return new st(n).parse(t)}static parseInline(t,n){return new st(n).parseInline(t)}parse(t,n=!0){let i="";for(let r=0;r<t.length;r++){const s=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const l=s,o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(l.type)){i+=o||"";continue}}switch(s.type){case"space":continue;case"hr":{i+=this.renderer.hr();continue}case"heading":{const l=s;i+=this.renderer.heading(this.parseInline(l.tokens),l.depth,Fu(this.parseInline(l.tokens,this.textRenderer)));continue}case"code":{const l=s;i+=this.renderer.code(l.text,l.lang,!!l.escaped);continue}case"table":{const l=s;let o="",a="";for(let f=0;f<l.header.length;f++)a+=this.renderer.tablecell(this.parseInline(l.header[f].tokens),{header:!0,align:l.align[f]});o+=this.renderer.tablerow(a);let c="";for(let f=0;f<l.rows.length;f++){const d=l.rows[f];a="";for(let p=0;p<d.length;p++)a+=this.renderer.tablecell(this.parseInline(d[p].tokens),{header:!1,align:l.align[p]});c+=this.renderer.tablerow(a)}i+=this.renderer.table(o,c);continue}case"blockquote":{const l=s,o=this.parse(l.tokens);i+=this.renderer.blockquote(o);continue}case"list":{const l=s,o=l.ordered,a=l.start,c=l.loose;let f="";for(let d=0;d<l.items.length;d++){const p=l.items[d],m=p.checked,A=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,A,!!m)}i+=this.renderer.list(f,o,a);continue}case"html":{const l=s;i+=this.renderer.html(l.text,l.block);continue}case"paragraph":{const l=s;i+=this.renderer.paragraph(this.parseInline(l.tokens));continue}case"text":{let l=s,o=l.tokens?this.parseInline(l.tokens):l.text;for(;r+1<t.length&&t[r+1].type==="text";)l=t[++r],o+=`
|
|
69
|
+
`+(l.tokens?this.parseInline(l.tokens):l.text);i+=n?this.renderer.paragraph(o):o;continue}default:{const l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}parseInline(t,n){n=n||this.renderer;let i="";for(let r=0;r<t.length;r++){const s=t[r];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){i+=l||"";continue}}switch(s.type){case"escape":{const l=s;i+=n.text(l.text);break}case"html":{const l=s;i+=n.html(l.text);break}case"link":{const l=s;i+=n.link(l.href,l.title,this.parseInline(l.tokens,n));break}case"image":{const l=s;i+=n.image(l.href,l.title,l.text);break}case"strong":{const l=s;i+=n.strong(this.parseInline(l.tokens,n));break}case"em":{const l=s;i+=n.em(this.parseInline(l.tokens,n));break}case"codespan":{const l=s;i+=n.codespan(l.text);break}case"br":{i+=n.br();break}case"del":{const l=s;i+=n.del(this.parseInline(l.tokens,n));break}case"text":{const l=s;i+=n.text(l.text);break}default:{const l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return i}}class yn{options;constructor(t){this.options=t||It}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}}Pe(yn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Gl{constructor(...t){xi(this,Cn);xi(this,bi);Pe(this,"defaults",pr());Pe(this,"options",this.setOptions);Pe(this,"parse",Tn(this,Cn,_r).call(this,rt.lex,st.parse));Pe(this,"parseInline",Tn(this,Cn,_r).call(this,rt.lexInline,st.parseInline));Pe(this,"Parser",st);Pe(this,"Renderer",vi);Pe(this,"TextRenderer",kr);Pe(this,"Lexer",rt);Pe(this,"Tokenizer",di);Pe(this,"Hooks",yn);this.use(...t)}walkTokens(t,n){var r,s;let i=[];for(const l of t)switch(i=i.concat(n.call(this,l)),l.type){case"table":{const o=l;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=l;i=i.concat(this.walkTokens(o.items,n));break}default:{const o=l;(s=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&s[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(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const l=n.renderers[s.name];l?n.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[s.level];l?l.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),r.extensions=n),i.renderer){const s=this.defaults.renderer||new vi(this.defaults);for(const l in i.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(l==="options")continue;const o=l,a=i.renderer[o],c=s[o];s[o]=(...f)=>{let d=a.apply(s,f);return d===!1&&(d=c.apply(s,f)),d||""}}r.renderer=s}if(i.tokenizer){const s=this.defaults.tokenizer||new di(this.defaults);for(const l in i.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=i.tokenizer[o],c=s[o];s[o]=(...f)=>{let d=a.apply(s,f);return d===!1&&(d=c.apply(s,f)),d}}r.tokenizer=s}if(i.hooks){const s=this.defaults.hooks||new yn;for(const l in i.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(l==="options")continue;const o=l,a=i.hooks[o],c=s[o];yn.passThroughHooks.has(l)?s[o]=f=>{if(this.defaults.async)return Promise.resolve(a.call(s,f)).then(p=>c.call(s,p));const d=a.call(s,f);return c.call(s,d)}:s[o]=(...f)=>{let d=a.apply(s,f);return d===!1&&(d=c.apply(s,f)),d}}r.hooks=s}if(i.walkTokens){const s=this.defaults.walkTokens,l=i.walkTokens;r.walkTokens=function(o){let a=[];return a.push(l.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return rt.lex(t,n??this.defaults)}parser(t,n){return st.parse(t,n??this.defaults)}}Cn=new WeakSet,_r=function(t,n){return(i,r)=>{const s={...r},l={...this.defaults,...s};this.defaults.async===!0&&s.async===!1&&(l.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),l.async=!0);const o=Tn(this,bi,yo).call(this,!!l.silent,!!l.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(l.hooks&&(l.hooks.options=l),l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(i):i).then(a=>t(a,l)).then(a=>l.hooks?l.hooks.processAllTokens(a):a).then(a=>l.walkTokens?Promise.all(this.walkTokens(a,l.walkTokens)).then(()=>a):a).then(a=>n(a,l)).then(a=>l.hooks?l.hooks.postprocess(a):a).catch(o);try{l.hooks&&(i=l.hooks.preprocess(i));let a=t(i,l);l.hooks&&(a=l.hooks.processAllTokens(a)),l.walkTokens&&this.walkTokens(a,l.walkTokens);let c=n(a,l);return l.hooks&&(c=l.hooks.postprocess(c)),c}catch(a){return o(a)}}},bi=new WeakSet,yo=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>"+je(i.message+"",!0)+"</pre>";return n?Promise.resolve(r):r}if(n)return Promise.reject(i);throw i}};const Lt=new Gl;function pe(e,t){return Lt.parse(e,t)}pe.options=pe.setOptions=function(e){return Lt.setOptions(e),pe.defaults=Lt.defaults,Ol(pe.defaults),pe},pe.getDefaults=pr,pe.defaults=It,pe.use=function(...e){return Lt.use(...e),pe.defaults=Lt.defaults,Ol(pe.defaults),pe},pe.walkTokens=function(e,t){return Lt.walkTokens(e,t)},pe.parseInline=Lt.parseInline,pe.Parser=st,pe.parser=st.parse,pe.Renderer=vi,pe.TextRenderer=kr,pe.Lexer=rt,pe.lexer=rt.lex,pe.Tokenizer=di,pe.Hooks=yn,pe.parse=pe;function gf(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=Ql(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Jl(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.");Jl(t)(i)},renderer:{code(t,n,i){const r=Ql(n),s=r?` class="${e.langPrefix}${to(r)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${s}>${i?t:to(t,!0)}
|
|
71
|
+
</code></pre>`}}}}function Ql(e){return(e||"").match(/\S*/)[0]}function Jl(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Yl=/[&<>"']/,mf=new RegExp(Yl.source,"g"),Xl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,vf=new RegExp(Xl.source,"g"),yf={"&":"&","<":"<",">":">",'"':""","'":"'"},eo=e=>yf[e];function to(e,t){if(t){if(Yl.test(e))return e.replace(mf,eo)}else if(Xl.test(e))return e.replace(vf,eo);return e}const wf=/\$.*?\$/,bf=/^\$(.*?)\$/,kf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,xf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=kf.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(wf);return n!==-1?n:t.length},tokenizer(t){const n=bf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],no=(e="",t={})=>e.replace(/:(.+?):/g,(n,i)=>t[i]?`<img class="wl-emoji" src="${t[i]}" alt="${i}">`:n),_f=(e,{emojiMap:t,highlighter:n,texRenderer:i})=>{const r=new Gl;if(r.setOptions({breaks:!0}),n&&r.use(gf({highlight:n})),i){const s=xf(i);r.use({extensions:s})}return r.parse(no(e,t))},xr=e=>e.dataset.path??null,Cf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),$f=e=>e.match(/[\u4E00-\u9FD5]/gu),Ef=e=>{var t,n;return(((t=Cf(e))==null?void 0:t.reduce((i,r)=>i+(["",",","."].includes(r.trim())?0:r.trim().split(/\s+/u).length),0))??0)+(((n=$f(e))==null?void 0:n.length)??0)},Tf=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},io=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:i=navigator.language})=>{const r=new AbortController,s=document.querySelectorAll(n);return s.length&&Ir({serverURL:An(e),paths:Array.from(s).map(l=>Zr(xr(l)??t)),lang:i,signal:r.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Ll),r.abort.bind(r)},ro=({size:e})=>te("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[te("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),te("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),Rf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),Sf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),Af=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),te("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),If=({active:e=!1})=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),Lf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),te("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),Mf=()=>te("svg",{width:"16",height:"16",ariaHidden:"true"},te("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),Of=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),zf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),jf=()=>te("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},te("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),wn=({size:e=100})=>te("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},te("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},te("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Pf=()=>te("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[te("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),te("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Ff=()=>Vt("WALINE_USER_META",{nick:"",mail:"",link:""}),Uf=()=>Vt("WALINE_COMMENT_BOX_EDITOR",""),Hf="WALINE_LIKE";let so=null;const lo=()=>so??(so=Vt(Hf,[])),Nf="WALINE_REACTION";let oo=null;const Df=()=>oo??(oo=Vt(Nf,{}));var yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ao={},Bt={},bn={},Vf=yi&&yi.__awaiter||function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function o(f){try{c(i.next(f))}catch(d){l(d)}}function a(f){try{c(i.throw(f))}catch(d){l(d)}}function c(f){f.done?s(f.value):r(f.value).then(o,a)}c((i=i.apply(e,t||[])).next())})},Bf=yi&&yi.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;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&&(s=c[0]&2?r.return:c[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,c[1])).done)return s;switch(r=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=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(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]<s[3])){n.label=c[1];break}if(c[0]===6&&n.label<s[1]){n.label=s[1],s=c;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(c);break}s[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(f){c=[6,f],r=0}finally{i=s=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};Object.defineProperty(bn,"__esModule",{value:!0}),bn.ReCaptchaInstance=void 0;var Wf=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 Vf(this,void 0,void 0,function(){return Bf(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}();bn.ReCaptchaInstance=Wf,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.getInstance=Bt.load=void 0;var qf=bn,mt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(mt||(mt={}));var co=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()===mt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===mt.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(r,s){e.successfulLoadingConsumers.push(function(l){return r(l)}),e.errorLoadingRunnable.push(function(l){return s(l)})});e.instanceSiteKey=t,e.setLoadingState(mt.LOADING);var i=new e;return new Promise(function(r,s){i.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(mt.LOADED);var l=i.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new qf.ReCaptchaInstance(t,l,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,r(o)}).catch(function(l){e.errorLoadingRunnable.forEach(function(o){return o(l)}),e.errorLoadingRunnable=[],s(l)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?mt.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,i,r,s){var l=this;n===void 0&&(n=!1),i===void 0&&(i=!1),r===void 0&&(r={}),s===void 0&&(s="");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"),s&&(a=s),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",l.waitForScriptToLoad(function(){f(o)},i),!1),o.onerror=function(p){e.setLoadingState(mt.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 s={sitekey:n,badge:i.badge,size:i.size,tabindex:i.tabindex};return i.container?r?t.enterprise.render(i.container,s):t.render(i.container,s):r?t.enterprise.render(s):t.render(s)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Bt.load=co.load,Bt.getInstance=co.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=bn;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(ao);const uo={},Kf=e=>{const t=uo[e]??(uo[e]=ao.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(i=>i.execute(n))}},Zf=e=>({execute:async t=>{const{load:n}=Tu("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})})})}}),Gf="WALINE_USER";let fo=null;const wi=()=>fo??(fo=Vt(Gf,{})),Qf={key:0,class:"wl-reaction"},Jf=["textContent"],Yf={class:"wl-reaction-list"},Xf=["onClick"],eh={class:"wl-reaction-img"},th=["src","alt"],nh=["textContent"],ih=["textContent"];var rh=rn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Df(),i=Jn("config"),r=q(-1),s=q([]),l=ke(()=>i.value.locale),o=ke(()=>i.value.reaction.length>0),a=ke(()=>{const{reaction:p,path:m}=i.value;return p.map((A,k)=>({icon:A,desc:l.value[`reaction${k}`],active:n.value[m]===k}))});let c;const f=async()=>{if(!o.value)return;const{serverURL:p,lang:m,path:A,reaction:k}=i.value,E=new AbortController;c=E.abort.bind(E);const w=await _i({serverURL:p,lang:m,paths:[A],type:k.map(($,U)=>`reaction${U}`),signal:E.signal});s.value=k.map(($,U)=>w[0][`reaction${U}`])},d=async p=>{if(r.value===-1){const{serverURL:m,lang:A,path:k}=i.value,E=n.value[k];r.value=p,E!==void 0&&(await Rn({serverURL:m,lang:A,path:k,type:`reaction${E}`,action:"desc"}),s.value[E]=Math.max(s.value[E]-1,0)),E!==p&&(await Rn({serverURL:m,lang:A,path:k,type:`reaction${p}`}),s.value[p]=(s.value[p]||0)+1),E===p?delete n.value[k]:n.value[k]=p,r.value=-1}};return sn(()=>{Fe(()=>[i.value.serverURL,i.value.path],()=>{f()},{immediate:!0})}),Ji(()=>c==null?void 0:c()),(p,m)=>a.value.length?(I(),M("div",Qf,[P("div",{class:"wl-reaction-title",textContent:X(l.value.reactionTitle)},null,8,Jf),P("ul",Yf,[(I(!0),M(ce,null,Ue(a.value,({active:A,icon:k,desc:E},w)=>(I(),M("li",{key:w,class:ge(["wl-reaction-item",{active:A}]),onClick:$=>d(w)},[P("div",eh,[P("img",{src:k,alt:E},null,8,th),r.value===w?(I(),et(K(wn),{key:0,class:"wl-reaction-loading"})):(I(),M("div",{key:1,class:"wl-reaction-votes",textContent:X(s.value[w]||0)},null,8,nh))]),P("div",{class:"wl-reaction-text",textContent:X(E)},null,8,ih)],10,Xf))),128))])])):Y("v-if",!0)}}),kn=(e,t)=>{const n=e.__vccOpts||e;for(const[i,r]of t)n[i]=r;return n},sh=kn(rh,[["__file","ArticleReaction.vue"]]),xn=new Map;function lh(e){var t=xn.get(e);t&&t.destroy()}function oh(e){var t=xn.get(e);t&&t.update()}var _n=null;typeof window>"u"?((_n=function(e){return e}).destroy=function(e){return e},_n.update=function(e){return e}):((_n=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"&&!xn.has(i)){var r,s=null,l=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]}),xn.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",xn.set(i,{destroy:a,update:f}),f()}function c(d){var p,m,A=d.restoreTextAlign,k=A===void 0?null:A,E=d.testForHeightReduction,w=E===void 0||E,$=l.overflowY;if(i.scrollHeight!==0&&(l.resize==="vertical"?i.style.resize="none":l.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],Q=O[1];N.style.scrollBehavior="auto",N.scrollTop=Q,N.style.scrollBehavior=null})}}(i),i.style.height=""),m=l.boxSizing==="content-box"?i.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):i.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(i.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(i.style.overflow="hidden"),i.style.height=m+"px",k&&(i.style.textAlign=k),p&&p(),s!==m&&(i.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=m),$!==l.overflow&&!k)){var U=l.textAlign;l.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],lh),e},_n.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],oh),e});var ho=_n;const ah=["data-index"],ch=["src","title","onClick"];var uh=rn({__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),s=q({}),l=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 A=Array.from(((m=r.value)==null?void 0:m.children)??[]).reduce((k,E)=>E.getBoundingClientRect().height<k.getBoundingClientRect().height?E:k);l.value[Number(A.dataset.index)].push(p),await c(p+1)},f=async(p=!1)=>{if(l.value.length===o()&&!p)return;l.value=a(o());const m=window.scrollY;await c(0),window.scrollTo({top:m})},d=p=>{s.value[p.target.src]=!0};return sn(()=>{f(!0),i=new ResizeObserver(()=>{f()}),i.observe(r.value),Fe(()=>[n.items],()=>{s.value={},f(!0)}),Fe(()=>[n.columnWidth,n.gap],()=>{f()})}),Ja(()=>i.unobserve(r.value)),(p,m)=>(I(),M("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:Gt({gap:`${p.gap}px`})},[(I(!0),M(ce,null,Ue(l.value,(A,k)=>(I(),M("div",{key:k,class:"wl-gallery-column","data-index":k,style:Gt({gap:`${p.gap}px`})},[(I(!0),M(ce,null,Ue(A,E=>(I(),M(ce,{key:E},[s.value[p.items[E].src]?Y("v-if",!0):(I(),et(K(wn),{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",``)},null,40,ch)],64))),128))],12,ah))),128))],4))}}),fh=kn(uh,[["__file","ImageWall.vue"]]);const hh={class:"wl-comment"},dh={key:0,class:"wl-login-info"},ph={class:"wl-avatar"},gh=["title"],mh=["title"],vh=["src"],yh=["title","textContent"],wh={class:"wl-panel"},bh=["for","textContent"],kh=["id","onUpdate:modelValue","name","type"],xh=["placeholder"],_h={class:"wl-preview"},Ch=P("hr",null,null,-1),$h=["innerHTML"],Eh={class:"wl-footer"},Th={class:"wl-actions"},Rh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Sh=["title"],Ah=["title"],Ih=["title"],Lh=["title"],Mh={class:"wl-info"},Oh=P("div",{class:"wl-captcha-container"},null,-1),zh={class:"wl-text-number"},jh={key:0},Ph=["textContent"],Fh=["textContent"],Uh=["disabled"],Hh=["placeholder"],Nh={key:1,class:"wl-loading"},Dh={key:0,class:"wl-tab-wrapper"},Vh=["title","onClick"],Bh=["src","alt"],Wh={key:0,class:"wl-tabs"},qh=["onClick"],Kh=["src","alt","title"],Zh=["title"];var Gh=rn({__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=Jn("config"),s=Uf(),l=Ff(),o=wi(),a=q({}),c=q(null),f=q(null),d=q(null),p=q(null),m=q(null),A=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:[]}),Q=q(0),Ae=q(!1),Z=q(""),re=q(!1),xe=q(!1),z=ke(()=>r.value.locale),ne=ke(()=>{var L;return!!((L=o.value)!=null&&L.token)}),se=ke(()=>r.value.imageUploader!==!1),we=L=>{const S=c.value,B=S.selectionStart,fe=S.selectionEnd||0,u=S.scrollTop;s.value=S.value.substring(0,B)+L+S.value.substring(fe,S.value.length),S.focus(),S.selectionStart=B+L.length,S.selectionEnd=B+L.length,S.scrollTop=u},me=L=>{const S=L.key;(L.ctrlKey||L.metaKey)&&S==="Enter"&&Me()},ve=L=>{const S=`![${r.value.locale.uploading} ${L.name}]()`;return we(S),re.value=!0,Promise.resolve().then(()=>r.value.imageUploader(L)).then(B=>{s.value=s.value.replace(S,`\r
|
|
72
|
+
`)}).catch(B=>{alert(B.message),s.value=s.value.replace(S,"")}).then(()=>{re.value=!1})},$e=L=>{var S;if((S=L.dataTransfer)!=null&&S.items){const B=Ml(L.dataTransfer.items);B&&se.value&&(ve(B),L.preventDefault())}},lt=L=>{if(L.clipboardData){const S=Ml(L.clipboardData.items);S&&se.value&&ve(S)}},vt=()=>{const L=f.value;L.files&&se.value&&ve(L.files[0]).then(()=>{L.value=""})},Me=async()=>{var L,S,B,fe,u,h;const{serverURL:g,lang:v,login:y,wordLimit:_,requiredMeta:R,recaptchaV3Key:x,turnstileKey:T}=r.value,b=await Tf(),C={comment:Z.value,nick:l.value.nick,mail:l.value.mail,link:l.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&&!Vo(C.mail))return(B=a.value.mail)==null||B.focus(),alert(z.value.mailError);C.nick||(C.nick=z.value.anonymous)}if(!C.comment){(fe=c.value)==null||fe.focus();return}if(!Ae.value)return alert(z.value.wordHint.replace("$0",_[0].toString()).replace("$1",_[1].toString()).replace("$2",O.value.toString()));C.comment=no(C.comment,E.value.map),n.replyId&&n.rootId&&(C.pid=n.replyId,C.rid=n.rootId,C.at=n.replyUser),re.value=!0;try{x&&(C.recaptchaV3=await Kf(x).execute("social")),T&&(C.turnstile=await Zf(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}):Sr(F));if(re.value=!1,j.errmsg)return alert(j.errmsg);i("submit",j.data),s.value="",H.value="",await Et(),n.replyId&&i("cancelReply"),(h=n.edit)!=null&&h.objectId&&i("cancelEdit")}catch(F){re.value=!1,alert(F.message)}},$n=L=>{L.preventDefault();const{lang:S,serverURL:B}=r.value;Lr({serverURL:B,lang:S}).then(fe=>{o.value=fe,(fe.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(fe)),i("log")})},ki=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),i("log")},En=L=>{L.preventDefault();const{lang:S,serverURL:B}=r.value,fe=800,u=800,h=(window.innerWidth-fe)/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=${fe},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},"*")},Ne=L=>{var S,B,fe,u;!((S=d.value)!=null&&S.contains(L.target))&&!((B=p.value)!=null&&B.contains(L.target))&&($.value=!1),!((fe=m.value)!=null&&fe.contains(L.target))&&!((u=A.value)!=null&&u.contains(L.target))&&(U.value=!1)},yt=async L=>{var S;const{scrollTop:B,clientHeight:fe,scrollHeight:u}=L.target,h=(fe+B)/u,g=r.value.search,v=((S=k.value)==null?void 0:S.value)??"";h<.9||N.loading||xe.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)]:xe.value=!0,N.loading=!1,setTimeout(()=>{L.target.scrollTop=B},50))},Mt=pu(L=>{N.list=[],xe.value=!1,yt(L)},300);return Fe([r,O],([L,S])=>{const{wordLimit:B}=L;B?S<B[0]&&B[0]!==0?(Q.value=B[0],Ae.value=!1):S>B[1]?(Q.value=B[1],Ae.value=!1):(Q.value=B[1],Ae.value=!0):(Q.value=0,Ae.value=!0)},{immediate:!0}),ci("click",Ne),ci("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())}),Fe(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&&(s.value=n.edit.orig),Fe(()=>s.value,S=>{const{highlighter:B,texRenderer:fe}=r.value;Z.value=S,H.value=_f(S,{emojiMap:E.value.map,highlighter:B,texRenderer:fe}),O.value=Ef(S),S?ho(c.value):ho.destroy(c.value)},{immediate:!0}),Fe(()=>r.value.emoji,S=>Lu(S).then(B=>{E.value=B}),{immediate:!0})}),(L,S)=>{var B,fe;return I(),M("div",hh,[K(r).login!=="disable"&&ne.value&&!((B=L.edit)!=null&&B.objectId)?(I(),M("div",dh,[P("div",ph,[P("button",{type:"submit",class:"wl-logout-btn",title:z.value.logout,onClick:ki},[oe(K(ro),{size:14})],8,gh),P("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:z.value.profile,onClick:En},[P("img",{src:K(o).avatar,alt:"avatar"},null,8,vh)],8,mh)]),P("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:z.value.profile,onClick:En,textContent:X(K(o).display_name)},null,8,yh)])):Y("v-if",!0),P("div",wh,[K(r).login!=="force"&&K(r).meta.length&&!ne.value?(I(),M("div",{key:0,class:ge(["wl-header",`item${K(r).meta.length}`])},[(I(!0),M(ce,null,Ue(K(r).meta,u=>(I(),M("div",{key:u,class:"wl-header-item"},[P("label",{for:`wl-${u}`,textContent:X(z.value[u]+(K(r).requiredMeta.includes(u)||!K(r).requiredMeta.length?"":`(${z.value.optional})`))},null,8,bh),Zn(P("input",{id:`wl-${u}`,ref_for:!0,ref:h=>{h&&(a.value[u]=h)},"onUpdate:modelValue":h=>K(l)[u]=h,class:ge(["wl-input",`wl-${u}`]),name:u,type:u==="mail"?"email":"text"},null,10,kh),[[iu,K(l)[u]]])]))),128))],2)):Y("v-if",!0),Zn(P("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":S[0]||(S[0]=u=>Ee(s)?s.value=u:null),class:"wl-editor",placeholder:L.replyUser?`@${L.replyUser}`:z.value.placeholder,onKeydown:me,onDrop:$e,onPaste:lt},null,40,xh),[[fr,K(s)]]),Zn(P("div",_h,[Ch,P("h4",null,X(z.value.preview)+":",1),P("div",{class:"wl-content",innerHTML:H.value},null,8,$h)],512),[[pl,D.value]]),P("div",Eh,[P("div",Th,[P("a",Rh,[oe(K(Mf))]),Zn(P("button",{ref_key:"emojiButtonRef",ref:d,type:"button",class:ge(["wl-action",{active:$.value}]),title:z.value.emoji,onClick:S[1]||(S[1]=u=>$.value=!$.value)},[oe(K(Sf))],10,Sh),[[pl,E.value.tabs.length]]),K(r).search?(I(),M("button",{key:0,ref_key:"gifButtonRef",ref:m,type:"button",class:ge(["wl-action",{active:U.value}]),title:z.value.gif,onClick:S[2]||(S[2]=u=>U.value=!U.value)},[oe(K(Pf))],10,Ah)):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:vt},null,544),se.value?(I(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:z.value.uploadImage},[oe(K(Af))],8,Ih)):Y("v-if",!0),P("button",{type:"button",class:ge(["wl-action",{active:D.value}]),title:z.value.preview,onClick:S[3]||(S[3]=u=>D.value=!D.value)},[oe(K(Lf))],10,Lh)]),P("div",Mh,[Oh,P("div",zh,[tt(X(O.value)+" ",1),K(r).wordLimit?(I(),M("span",jh,[tt(" / "),P("span",{class:ge({illegal:!Ae.value}),textContent:X(Q.value)},null,10,Ph)])):Y("v-if",!0),tt(" "+X(z.value.word),1)]),K(r).login!=="disable"&&!ne.value?(I(),M("button",{key:0,type:"button",class:"wl-btn",onClick:$n,textContent:X(z.value.login)},null,8,Fh)):Y("v-if",!0),K(r).login!=="force"||ne.value?(I(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:re.value,onClick:Me},[re.value?(I(),et(K(wn),{key:0,size:16})):(I(),M(ce,{key:1},[tt(X(z.value.submit),1)],64))],8,Uh)):Y("v-if",!0)]),P("div",{ref_key:"gifPopupRef",ref:A,class:ge(["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(Mt)&&K(Mt)(...u))},null,40,Hh),N.list.length?(I(),et(fh,{key:0,items:N.list,"column-width":200,gap:6,onInsert:S[5]||(S[5]=u=>we(u)),onScroll:yt},null,8,["items"])):Y("v-if",!0),N.loading?(I(),M("div",Nh,[oe(K(wn),{size:30})])):Y("v-if",!0)],2),P("div",{ref_key:"emojiPopupRef",ref:p,class:ge(["wl-emoji-popup",{display:$.value}])},[(I(!0),M(ce,null,Ue(E.value.tabs,(u,h)=>(I(),M(ce,{key:u.name},[h===w.value?(I(),M("div",Dh,[(I(!0),M(ce,null,Ue(u.items,g=>(I(),M("button",{key:g,type:"button",title:g,onClick:v=>we(`:${g}:`)},[$.value?(I(),M("img",{key:0,class:"wl-emoji",src:E.value.map[g],alt:g,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Bh)):Y("v-if",!0)],8,Vh))),128))])):Y("v-if",!0)],64))),128)),E.value.tabs.length>1?(I(),M("div",Wh,[(I(!0),M(ce,null,Ue(E.value.tabs,(u,h)=>(I(),M("button",{key:u.name,type:"button",class:ge(["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,Kh)],10,qh))),128))])):Y("v-if",!0)],2)])]),L.replyId||(fe=L.edit)!=null&&fe.objectId?(I(),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"))},[oe(K(ro),{size:24})],8,Zh)):Y("v-if",!0)])}}}),po=kn(Gh,[["__file","CommentBox.vue"]]);const Qh=["id"],Jh={class:"wl-user","aria-hidden":"true"},Yh=["src"],Xh={class:"wl-card"},ed={class:"wl-head"},td=["href"],nd={key:1,class:"wl-nick"},id=["textContent"],rd=["textContent"],sd=["textContent"],ld=["textContent"],od=["textContent"],ad={class:"wl-comment-actions"},cd=["title"],ud=["title"],fd={class:"wl-meta","aria-hidden":"true"},hd=["data-value","textContent"],dd={key:0,class:"wl-content"},pd={key:0},gd=["href"],md=P("span",null,": ",-1),vd=["innerHTML"],yd={key:1,class:"wl-admin-actions"},wd={class:"wl-comment-status"},bd=["disabled","onClick","textContent"],kd={key:3,class:"wl-quote"};var xd=rn({__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"],s=Jn("config"),l=lo(),o=Eu(),a=wi(),c=ke(()=>s.value.locale),f=ke(()=>{const{link:w}=n.comment;return w?Qr(w)?w:`https://${w}`:""}),d=ke(()=>l.value.includes(n.comment.objectId)),p=ke(()=>No(new Date(n.comment.time),o.value,c.value)),m=ke(()=>a.value.type==="administrator"),A=ke(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),k=ke(()=>{var w;return n.comment.objectId===((w=n.reply)==null?void 0:w.objectId)}),E=ke(()=>{var w;return n.comment.objectId===((w=n.edit)==null?void 0:w.objectId)});return(w,$)=>{var U;const D=Da("CommentCard",!0);return I(),M("div",{id:w.comment.objectId,class:"wl-card-item"},[P("div",Jh,[w.comment.avatar?(I(),M("img",{key:0,class:"wl-user-avatar",src:w.comment.avatar},null,8,Yh)):Y("v-if",!0),w.comment.type?(I(),et(K(jf),{key:1})):Y("v-if",!0)]),P("div",Xh,[P("div",ed,[f.value?(I(),M("a",{key:0,class:"wl-nick",href:f.value,target:"_blank",rel:"nofollow noopener noreferrer"},X(w.comment.nick),9,td)):(I(),M("span",nd,X(w.comment.nick),1)),w.comment.type==="administrator"?(I(),M("span",{key:2,class:"wl-badge",textContent:X(c.value.admin)},null,8,id)):Y("v-if",!0),w.comment.label?(I(),M("span",{key:3,class:"wl-badge",textContent:X(w.comment.label)},null,8,rd)):Y("v-if",!0),w.comment.sticky?(I(),M("span",{key:4,class:"wl-badge",textContent:X(c.value.sticky)},null,8,sd)):Y("v-if",!0),typeof w.comment.level=="number"?(I(),M("span",{key:5,class:ge(`wl-badge level${w.comment.level}`),textContent:X(c.value[`level${w.comment.level}`]||`Level ${w.comment.level}`)},null,10,ld)):Y("v-if",!0),P("span",{class:"wl-time",textContent:X(p.value)},null,8,od),P("div",ad,[m.value||A.value?(I(),M(ce,{key:0},[P("button",{type:"button",class:"wl-edit",onClick:$[0]||($[0]=H=>i("edit",w.comment))},[oe(K(zf))]),P("button",{type:"button",class:"wl-delete",onClick:$[1]||($[1]=H=>i("delete",w.comment))},[oe(K(Rf))])],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))},[oe(K(If),{active:d.value},null,8,["active"]),tt(" "+X("like"in w.comment?w.comment.like:""),1)],8,cd),P("button",{type:"button",class:ge(["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))},[oe(K(Of))],10,ud)])]),P("div",fd,[(I(),M(ce,null,Ue(["addr","browser","os"],H=>(I(),M(ce,null,[w.comment[H]?(I(),M("span",{key:H,class:ge(`wl-${H}`),"data-value":w.comment[H],textContent:X(w.comment[H])},null,10,hd)):Y("v-if",!0)],64))),64))]),E.value?Y("v-if",!0):(I(),M("div",dd,[w.comment.reply_user?(I(),M("p",pd,[P("a",{href:"#"+w.comment.pid},"@"+X(w.comment.reply_user.nick),9,gd),md])):Y("v-if",!0),P("div",{innerHTML:w.comment.comment},null,8,vd)])),m.value&&!E.value?(I(),M("div",yd,[P("span",wd,[(I(),M(ce,null,Ue(r,H=>P("button",{key:H,type:"submit",class:ge(`wl-btn wl-${H}`),disabled:w.comment.status===H,onClick:O=>i("status",{status:H,comment:w.comment}),textContent:X(c.value[H])},null,10,bd)),64))]),m.value&&!("rid"in w.comment)?(I(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:$[4]||($[4]=H=>i("sticky",w.comment))},X(w.comment.sticky?c.value.unsticky:c.value.sticky),1)):Y("v-if",!0)])):Y("v-if",!0),k.value||E.value?(I(),M("div",{key:2,class:ge({"wl-reply-wrapper":k.value,"wl-edit-wrapper":E.value})},[oe(po,{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?(I(),M("div",kd,[(I(!0),M(ce,null,Ue(w.comment.children,H=>(I(),et(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)}}}),_d=kn(xd,[["__file","CommentCard.vue"]]);const go="3.2.1",Cd={"data-waline":""},$d={class:"wl-meta-head"},Ed={class:"wl-count"},Td=["textContent"],Rd={class:"wl-sort"},Sd=["onClick"],Ad={class:"wl-cards"},Id={key:1,class:"wl-operation"},Ld=["textContent"],Md={key:2,class:"wl-loading"},Od=["textContent"],zd={key:4,class:"wl-operation"},jd=["textContent"],Pd={key:5,class:"wl-power"},Fd=P("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var Ud=rn({__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=wi(),s=lo(),l=q("loading"),o=q(0),a=q(1),c=q(0),f=ke(()=>Fo(t)),d=q(f.value.commentSorting),p=q([]),m=q(null),A=q(null),k=ke(()=>Uo(f.value.dark)),E=ke(()=>f.value.locale);Su(k,{id:"waline-darkmode"});let w;const $=z=>{var ne;const{serverURL:se,path:we,pageSize:me}=f.value,ve=new AbortController;l.value="loading",w==null||w(),Rr({serverURL:se,lang:f.value.lang,path:we,pageSize:me,sortBy:n[d.value],page:z,signal:ve.signal,token:(ne=r.value)==null?void 0:ne.token}).then($e=>{l.value="success",o.value=$e.count,p.value.push(...$e.data),a.value=z,c.value=$e.totalPages}).catch($e=>{$e.name!=="AbortError"&&(console.error($e.message),l.value="error")}),w=ve.abort.bind(ve)},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=>{A.value=z},Q=z=>{if(A.value)A.value.comment=z.comment,A.value.orig=z.orig;else if("rid"in z){const ne=p.value.find(({objectId:se})=>se===z.rid);if(!ne)return;Array.isArray(ne.children)||(ne.children=[]),ne.children.push(z)}else p.value.unshift(z),o.value+=1},Ae=async({comment:z,status:ne})=>{var se;if(z.status===ne)return;const{serverURL:we,lang:me}=f.value;await qt({serverURL:we,lang:me,token:(se=r.value)==null?void 0:se.token,objectId:z.objectId,comment:{status:ne}}),z.status=ne},Z=async z=>{var ne;if("rid"in z)return;const{serverURL:se,lang:we}=f.value;await qt({serverURL:se,lang:we,token:(ne=r.value)==null?void 0:ne.token,objectId:z.objectId,comment:{sticky:z.sticky?0:1}}),z.sticky=!z.sticky},re=async({objectId:z})=>{var ne;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:se,lang:we}=f.value;await Ar({serverURL:se,lang:we,token:(ne=r.value)==null?void 0:ne.token,objectId:z}),p.value.some((me,ve)=>me.objectId===z?(p.value=p.value.filter(($e,lt)=>lt!==ve),!0):me.children.some(($e,lt)=>$e.objectId===z?(p.value[ve].children=me.children.filter((vt,Me)=>Me!==lt),!0):!1))},xe=async z=>{var ne;const{serverURL:se,lang:we}=f.value,{objectId:me}=z,ve=s.value.includes(me);await qt({serverURL:se,lang:we,objectId:me,token:(ne=r.value)==null?void 0:ne.token,comment:{like:!ve}}),ve?s.value=s.value.filter($e=>$e!==me):(s.value=[...s.value,me],s.value.length>50&&(s.value=s.value.slice(-50))),z.like=(z.like||0)+(ve?-1:1)};return sc("config",f),sn(()=>{Fe(()=>[t.serverURL,t.path],()=>D(),{immediate:!0})}),Ji(()=>w==null?void 0:w()),(z,ne)=>(I(),M("div",Cd,[oe(sh),m.value?Y("v-if",!0):(I(),et(po,{key:0,onLog:D,onSubmit:Q})),P("div",$d,[P("div",Ed,[o.value?(I(),M("span",{key:0,class:"wl-num",textContent:X(o.value)},null,8,Td)):Y("v-if",!0),tt(" "+X(E.value.comment),1)]),P("ul",Rd,[(I(!0),M(ce,null,Ue(K(i),se=>(I(),M("li",{key:se,class:ge([se===d.value?"active":""]),onClick:we=>H(se)},X(E.value[se]),11,Sd))),128))])]),P("div",Ad,[(I(!0),M(ce,null,Ue(p.value,se=>(I(),et(_d,{key:se.objectId,"root-id":se.objectId,comment:se,reply:m.value,edit:A.value,onLog:D,onReply:O,onEdit:N,onSubmit:Q,onStatus:Ae,onDelete:re,onSticky:Z,onLike:xe},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(I(),M("div",Id,[P("button",{type:"button",class:"wl-btn",onClick:D,textContent:X(E.value.refresh)},null,8,Ld)])):l.value==="loading"?(I(),M("div",Md,[oe(K(wn),{size:30})])):p.value.length?a.value<c.value?(I(),M("div",zd,[P("button",{type:"button",class:"wl-btn",onClick:U,textContent:X(E.value.more)},null,8,jd)])):Y("v-if",!0):(I(),M("div",{key:3,class:"wl-empty",textContent:X(E.value.sofa)},null,8,Od)),f.value.copyright?(I(),M("div",Pd,[tt(" Powered by "),Fd,tt(" v"+X(K(go)),1)])):Y("v-if",!0)]))}}),Hd=kn(Ud,[["__file","WalineComment.vue"]]);const mo=(e,t)=>{t.forEach((n,i)=>{const r=e[i].time;typeof r=="number"&&(n.innerText=r.toString())})},vo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:i=!0,lang:r=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const f=xr(c);return f!==null&&t!==f},a=c=>Mr({serverURL:An(e),paths:c.map(f=>xr(f)??t),lang:r,signal:s.signal}).then(f=>mo(f,c)).catch(Ll);if(i){const c=l.filter(d=>!o(d)),f=l.filter(o);Or({serverURL:An(e),path:t,lang:r}).then(d=>mo(d,c)),f.length&&a(f)}else a(l);return s.abort.bind(s)},Nd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:i=!1,...r})=>{const s=e?dr(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!r.serverURL)throw new Error("Option 'serverURL' is missing!");const l=Qt({...r}),o=Qt({comment:n,pageview:i,path:t}),a=()=>{o.comment&&io({serverURL:l.serverURL,path:o.path,...zt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&vo({serverURL:l.serverURL,path:o.path,...zt(o.pageview)?{selector:o.pageview}:{}})},f=s?ou(()=>te(Hd,{path:o.path,...l})):null;f&&f.mount(s);const d=Fs(a),p=Fs(c);return{el:s,update:({comment:m,pageview:A,path:k=window.location.pathname,...E}={})=>{Object.entries(E).forEach(([w,$])=>{l[w]=$}),o.path=k,m!==void 0&&(o.comment=m),A!==void 0&&(o.pageview=A)},destroy:()=>{f==null||f.unmount(),d(),p()}}},Dd=({el:e,serverURL:t,count:n,lang:i=navigator.language})=>{var r;const s=wi(),l=dr(e),o=new AbortController;return zr({serverURL:t,count:n,lang:i,signal:o.signal,token:(r=s.value)==null?void 0:r.token}).then(a=>l&&a.length?(l.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(),l.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Vd=({el:e,serverURL:t,count:n,locale:i,lang:r=navigator.language,mode:s="list"})=>{const l=dr(e),o=new AbortController;return jr({serverURL:t,pageSize:n,lang:r,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(i={...Kr(r),...typeof i=="object"?i:{}},l.innerHTML=`<ul class="wl-user-${s}">${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(),l.innerHTML=""}}))};export{Dd as RecentComments,Vd as UserList,Sr as addComment,io as commentCount,Sn as defaultLocales,Ar as deleteComment,Ir as fetchCommentCount,_i as getArticleCounter,Rr as getComment,Mr as getPageview,zr as getRecentComment,jr as getUserList,Nd as init,Lr as login,vo as pageviewCount,Rn as updateArticleCounter,qt as updateComment,Or as updatePageview,go as version};
|
|
73
73
|
//# sourceMappingURL=waline.js.map
|