@waline/client 3.11.0 → 3.12.0
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.d.ts +4 -0
- package/dist/component.js +13 -12
- package/dist/component.js.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/slim.d.ts +3 -0
- package/dist/slim.js +13 -12
- package/dist/slim.js.map +1 -1
- package/dist/waline.css +1 -1
- package/dist/waline.css.map +1 -1
- package/dist/waline.d.ts +3 -0
- package/dist/waline.js +32 -31
- package/dist/waline.js.map +1 -1
- package/dist/waline.umd.js +29 -28
- package/dist/waline.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/waline.umd.js
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
var
|
|
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?","Your comment is under review and is currently only visible to you. It will be publicly visible after approval."]),
|
|
3
|
-
El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?","Tu comentario está en revisión y actualmente solo es visible para ti. Será visible públicamente después de la aprobación."]),Xs=
|
|
4
|
-
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 ?","Votre commentaire est en cours de révision et n'est actuellement visible que par vous. Il sera visible publiquement après approbation."]),ei=
|
|
5
|
-
Numero attuale di parole: $2`,"Anonimo","Nano","Hobbit","Ent","Mago","Elfo","Maiar","GIF","Cerca GIF","Profilo","Approvato","In attesa","Spam","Rimuovi evidenza","Più vecchi","Più recenti","Più popolari","Cosa ne pensi?","Il tuo commento è in fase di revisione ed è attualmente visibile solo a te. Sarà visibile pubblicamente dopo l'approvazione."]),ti=
|
|
6
|
-
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?","あなたのコメントは審査中で、現在はあなただけに表示されています。承認後に公開されます。"]),
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
var Nd=Object.defineProperty;var Bd=(te,Se,Re)=>Se in te?Nd(te,Se,{enumerable:!0,configurable:!0,writable:!0,value:Re}):te[Se]=Re;var js=(te,Se,Re)=>Bd(te,typeof Se!="symbol"?Se+"":Se,Re);(function(te,Se){typeof exports=="object"&&typeof module<"u"?Se(exports):typeof define=="function"&&define.amd?define(["exports"],Se):(te=typeof globalThis<"u"?globalThis:te||self,Se(te.Waline={}))})(this,(function(te){"use strict";var zr;const Se={"Content-Type":"application/json"},Re=e=>`${e.replace(/\/?$/,"/")}api/`,$t=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Un=({serverURL:e,lang:t,paths:n,type:r,signal:s})=>fetch(`${Re(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>$t(i,"Get counter").data),Wt=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${Re(e)}article?lang=${t}`,{method:"POST",headers:Se,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>$t(i,"Update counter").data),Ds=({serverURL:e,lang:t,path:n,page:r,pageSize:s,sortBy:i,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Re(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>$t(c,"Get comment data").data)},Us=({serverURL:e,lang:t,token:n,comment:r})=>{const s={"Content-Type":"application/json"};return n&&(s.Authorization=`Bearer ${n}`),fetch(`${Re(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},Hs=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Re(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>$t(s,"Delete comment")),cn=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${Re(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Se,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>$t(i,"Update comment")),Ns=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Re(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>$t(s,"Get comment count").data),Bs=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,s=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return s==null||s.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(s==null||s.close(),window.removeEventListener("message",l),i(o.data))};window.addEventListener("message",l)})},Vs=({serverURL:e,lang:t,paths:n,signal:r})=>Un({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Ws=e=>Wt({...e,type:"time",action:"inc"}),qs=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${Re(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(l=>l.json())},Ks=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Re(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>$t(s,"user list")).then(s=>s.data),Jo=new Set(["nick","mail","link"]),Gs=e=>e.filter(t=>Jo.has(t)),Zs=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Qo=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Xo=e=>new Promise((t,n)=>{if(e.size>128*1e3){n(new Error("File too large! File size limit 128KB"));return}const r=new FileReader;r.readAsDataURL(e),r.addEventListener("load",()=>{t(r.result)}),r.addEventListener("error",n)}),ea=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',ta=e=>{const t=(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(s=>s.json()).then(({data:s})=>s.map(i=>({title:i.title,src:i.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},na=/[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|\w+/,ra=/</,sa=/(?:^|\s)\/\/(.+?)$/gm,ia=/\/\*([\S\s]*?)\*\//gm,la=new RegExp(`(${na.source}|${ra.source})|((?:${sa.source})|(?:${ia.source}))`,"gmi"),Ys=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Or={},oa=e=>{let t=0;return e.replace(la,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"<";let i;Or[r]?i=Or[r]:(i=Ys[t],Or[r]=i);const l=`<span style="color: #${i}">${r}</span>`;return t=++t%Ys.length,l})},aa=["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","commentUnderReview","subPostComment","subSiteComment","subscribeToReplies"],Oe=e=>Object.fromEntries(e.map((t,n)=>[aa[n],t]));var ca=Oe(["Benutzername","Der Benutzername darf nicht weniger als 3 Bytes umfassen.","E-Mail","Bitte bestätigen Sie Ihre E-Mail-Adresse.","Webseite","Optional","Kommentieren Sie hier...","Noch keine Kommentare.","Senden","Gefällt mir","Gefällt mir nicht mehr","Antworten","Antwort abbrechen","Kommentare","Aktualisieren","Mehr laden...","Vorschau","Emoji","Ein Bild hochladen","Vor einigen Sekunden","Vor einigen Minuten","Vor einigen Stunden","Vor einigen Tagen","Gerade eben","Hochladen läuft","Anmelden","Abmelden","Admin","Angeheftet","Wörter","Bitte geben Sie Kommentare zwischen $0 und $1 Wörtern ein! Aktuelle Anzahl der Wörter: $2","Anonym","Zwerge","Hobbits","Ents","Magier","Elfen","Maïar","GIF","Nach einem GIF suchen","Profil","Genehmigt","Ausstehend","Spam","Lösen","Älteste","Neueste","Am beliebtesten","Was denken Sie?","Ihr Kommentar wird überprüft und ist derzeit nur für Sie sichtbar. Nach der Genehmigung wird er öffentlich angezeigt.","Abonnieren Sie die Kommentare zu diesem Beitrag","Abonnieren Sie die Kommentare auf dieser Seite","Abonnieren Sie die Antworten auf Ihre Kommentare"]),Js=Oe(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
|
|
2
|
+
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?","Your comment is under review and is currently only visible to you. It will be publicly visible after approval.","Subscribe to comments of this post","Subscribe to comments of this site","Subscribe to replies of your comments"]),Qs=Oe(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras!
|
|
3
|
+
El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?","Tu comentario está en revisión y actualmente solo es visible para ti. Será visible públicamente después de la aprobación.","Suscribirse a los comentarios de esta publicación","Suscribirse a los comentarios de este sitio","Suscribirse a las respuestas de tus comentarios"]),Xs=Oe(["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 !
|
|
4
|
+
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 ?","Votre commentaire est en cours de révision et n'est actuellement visible que par vous. Il sera visible publiquement après approbation.","S’abonner aux commentaires de ce post","S’abonner aux commentaires de ce site","S’abonner aux réponses de vos commentaires"]),ei=Oe(["Nickname","Il nickname non può avere meno di 3 caratteri.","E-mail","Per favore conferma il tuo indirizzo e-mail.","Sito web","Facoltativo","Scrivi un commento...","Ancora nessun commento.","Invia","Mi piace","Annulla mi piace","Rispondi","Annulla risposta","Commenti","Aggiorna","Carica altri...","Anteprima","Emoji","Carica immagine","secondi fa","minuti fa","ore fa","giorni fa","adesso","Caricamento in corso...","Accedi","Esci","Admin","In evidenza","Parole",`Inserisci un commento tra $0 e $1 parole!
|
|
5
|
+
Numero attuale di parole: $2`,"Anonimo","Nano","Hobbit","Ent","Mago","Elfo","Maiar","GIF","Cerca GIF","Profilo","Approvato","In attesa","Spam","Rimuovi evidenza","Più vecchi","Più recenti","Più popolari","Cosa ne pensi?","Il tuo commento è in fase di revisione ed è attualmente visibile solo a te. Sarà visibile pubblicamente dopo l'approvazione.","Iscriviti ai commenti di questo post","Iscriviti ai commenti di questo sito","Iscriviti alle risposte dei tuoi commenti"]),ti=Oe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
|
6
|
+
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?","あなたのコメントは審査中で、現在はあなただけに表示されています。承認後に公開されます。","この投稿のコメントを購読する","このサイトのコメントを購読する","あなたのコメントの返信を購読する"]),ni=Oe(["닉네임","닉네임은 3바이트 이상이어야 합니다.","이메일","이메일 주소를 확인해 주세요.","웹사이트","선택사항","여기에 댓글을 입력하세요...","아직 댓글이 없습니다.","제출","좋아요","좋아요 취소","답글","답글 취소","댓글","새로고침","더 보기...","미리보기","이모지","이미지 업로드","초 전","분 전","시간 전","일 전","방금 전","업로드 중","로그인","로그아웃","관리자","고정","글자 수",`댓글은 $0자에서 $1자 사이여야 합니다!
|
|
7
|
+
현재 글자 수: $2`,"익명","난쟁이","호빗","엔트","마법사","엘프","마이아","GIF","GIF 검색","프로필","승인됨","대기 중","스팸","고정 해제","오래된 순","최신 순","인기순","어떻게 생각하시나요?","댓글이 검토 중이며 현재 본인만 볼 수 있습니다. 승인 후 공개됩니다.","이 게시물의 댓글 구독","이 사이트의 댓글 구독","댓글에 대한 답글 구독"]),ua=Oe(["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!
|
|
8
|
+
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?","Seu comentário está em revisão e atualmente está visível apenas para você. Ele será visível publicamente após a aprovação.","Assinar os comentários deste post","Assinar os comentários deste site","Assinar as respostas dos seus comentários"]),ri=Oe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
|
9
|
+
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?","Ваш комментарий находится на рассмотрении и в настоящее время виден только вам. После одобрения он станет общедоступным.","Подписаться на комментарии к этому посту","Подписаться на комментарии этого сайта","Подписаться на ответы ваших комментариев"]),si=Oe(["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ừ!
|
|
10
|
+
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?","Bình luận của bạn đang được xem xét và hiện chỉ hiển thị với bạn. Nó sẽ được công khai sau khi được phê duyệt.","Đăng ký nhận xét của bài viết này","Đăng ký nhận xét của trang web này","Đăng ký nhận xét của bạn"]),ii=Oe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
|
11
|
+
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?","评论正在审核中,当前仅自己可见,审核通过后公开可见。","订阅本文评论","订阅本站评论","订阅你的评论回复"]),fa=Oe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
|
12
|
+
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?","您的評論正在審核中,目前僅您可見。審核通過後將公開顯示。","訂閱此文章的評論","訂閱本站的評論","訂閱您的評論回覆"]);const li="en-US",Hn={zh:ii,"zh-cn":ii,"zh-tw":fa,en:Js,"en-us":Js,fr:Xs,"fr-fr":Xs,it:ei,"it-it":ei,jp:ti,"jp-jp":ti,ko:ni,"ko-kr":ni,"pt-br":ua,ru:ri,"ru-ru":ri,vi:si,"vi-vn":si,de:ca,es:Qs,"es-mx":Qs},oi=e=>Hn[e.toLowerCase()]??Hn[li.toLowerCase()],ai=e=>Object.keys(Hn).includes(e.toLowerCase())?e:li,ci={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},ha=Object.keys(ci),Nn=Symbol("waline-config"),ui=e=>{try{return decodeURI(e)}catch{return e}},fi=(e="")=>e.replace(/\/$/u,""),hi=e=>/^(https?:)?\/\//.test(e),Bn=e=>{const t=fi(e);return hi(t)?t:`https://${t}`},pa=e=>Array.isArray(e)?e:typeof e=="number"?[0,e]:!1,un=(e,t)=>e==null||e===!0?t:e===!1?null:e,da=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:s=["nick","mail","link"],requiredMeta:i=[],dark:l=!1,pageSize:o=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:p="",commentSorting:m="latest",emoji:x=Zs,imageUploader:y,highlighter:A,texRenderer:_,search:L,reaction:z,...S})=>({serverURL:Bn(e),path:ui(t),lang:ai(n),locale:{...oi(ai(n)),...typeof r=="object"?r:{}},wordLimit:pa(a),meta:Gs(s),requiredMeta:Gs(i),dark:l,pageSize:o,commentSorting:m,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:p,...S,reaction:z===!0?Qo:z||null,imageUploader:un(y,Xo),highlighter:un(A,oa),texRenderer:un(_,ea),emoji:un(x,Zs),search:un(L,ta(n))}),qt=e=>typeof e=="string",Fr="{--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}",ga=e=>qt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Fr}}`:`${e}${Fr}`:e===!0?`:root${Fr}`:"",Dr=(e,t)=>{let n=e.toString();for(;n.length<t;)n=`0${n}`;return n},ma=e=>{const t=Dr(e.getDate(),2),n=Dr(e.getMonth()+1,2);return`${Dr(e.getFullYear(),2)}-${n}-${t}`},va=(e,t,n)=>{if(!e)return"";const r=qt(e)?new Date(e.includes(" ")?e.replaceAll("-","/"):e):e,s=t.getTime()-r.getTime(),i=Math.floor(s/(24*3600*1e3));if(i===0){const l=s%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:ma(r)},ba=/^[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])?)*$/,ya=e=>ba.test(e);/**
|
|
12
13
|
* @vue/shared v3.5.28
|
|
13
14
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
15
|
* @license MIT
|
|
15
|
-
**/function Ur(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},Kt=[],St=()=>{},
|
|
16
|
+
**/function Ur(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const he={},Kt=[],St=()=>{},pi=()=>!1,Vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hr=e=>e.startsWith("onUpdate:"),Le=Object.assign,di=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},wa=Object.prototype.hasOwnProperty,le=(e,t)=>wa.call(e,t),V=Array.isArray,Gt=e=>fn(e)==="[object Map]",Zt=e=>fn(e)==="[object Set]",gi=e=>fn(e)==="[object Date]",ne=e=>typeof e=="function",ye=e=>typeof e=="string",We=e=>typeof e=="symbol",ce=e=>e!==null&&typeof e=="object",mi=e=>(ce(e)||ne(e))&&ne(e.then)&&ne(e.catch),vi=Object.prototype.toString,fn=e=>vi.call(e),ka=e=>fn(e).slice(8,-1),bi=e=>fn(e)==="[object Object]",Wn=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,hn=Ur(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),qn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},xa=/-\w/g,Fe=qn(e=>e.replace(xa,t=>t.slice(1).toUpperCase())),_a=/\B([A-Z])/g,Rt=qn(e=>e.replace(_a,"-$1").toLowerCase()),Kn=qn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Nr=qn(e=>e?`on${Kn(e)}`:""),ht=(e,t)=>!Object.is(e,t),Gn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},yi=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Zn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let wi;const pn=()=>wi||(wi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function At(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ye(r)?Ra(r):At(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(ye(e)||ce(e))return e}const Ca=/;(?![^(]*\))/g,$a=/:([^]+)/,Sa=/\/\*[^]*?\*\//g;function Ra(e){const t={};return e.replace(Sa,"").split(Ca).forEach(n=>{if(n){const r=n.split($a);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Aa=Ur("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ki(e){return!!e||e===""}function Ea(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=pt(e[r],t[r]);return n}function pt(e,t){if(e===t)return!0;let n=gi(e),r=gi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=We(e),r=We(t),n||r)return e===t;if(n=V(e),r=V(t),n||r)return n&&r?Ea(e,t):!1;if(n=ce(e),r=ce(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!pt(e[l],t[l]))return!1}}return String(e)===String(t)}function Br(e,t){return e.findIndex(n=>pt(n,t))}const xi=e=>!!(e&&e.__v_isRef===!0),Z=e=>ye(e)?e:e==null?"":V(e)||ce(e)&&(e.toString===vi||!ne(e.toString))?xi(e)?Z(e.value):JSON.stringify(e,_i,2):String(e),_i=(e,t)=>xi(t)?_i(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Vr(r,i)+" =>"]=s,n),{})}:Zt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Vr(n))}:We(t)?Vr(t):ce(t)&&!V(t)&&!bi(t)?String(t):t,Vr=(e,t="")=>{var n;return We(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
16
17
|
* @vue/reactivity v3.5.28
|
|
17
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
19
|
* @license MIT
|
|
19
|
-
**/let we;class Aa{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=we;try{return we=this,t()}finally{we=n}}}on(){++this._on===1&&(this.prevScope=we,we=this)}off(){this._on>0&&--this._on===0&&(we=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function _i(){return we}function Ea(e,t=!1){we&&we.cleanups.push(e)}let ue;const Wr=new WeakSet;class Ci{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,we&&we.active&&we.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Wr.has(this)&&(Wr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Si(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Li(this),Ri(this);const t=ue,n=Ne;ue=this,Ne=!0;try{return this.fn()}finally{Ai(this),ue=t,Ne=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zr(t);this.deps=this.depsTail=void 0,Li(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Wr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gr(this)&&this.run()}get dirty(){return Gr(this)}}let $i=0,dn,gn;function Si(e,t=!1){if(e.flags|=8,t){e.next=gn,gn=e;return}e.next=dn,dn=e}function qr(){$i++}function Kr(){if(--$i>0)return;if(gn){let t=gn;for(gn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;dn;){let t=dn;for(dn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ri(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ai(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Zr(r),Ta(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Gr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ei(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ei(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===mn)||(e.globalVersion=mn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gr(e))))return;e.flags|=2;const t=e.dep,n=ue,r=Ne;ue=e,Ne=!0;try{Ri(e);const s=e.fn(e._value);(t.version===0||ht(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ue=n,Ne=r,Ai(e),e.flags&=-3}}function Zr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Zr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ta(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ne=!0;const Ti=[];function dt(){Ti.push(Ne),Ne=!1}function gt(){const e=Ti.pop();Ne=e===void 0?!0:e}function Li(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let mn=0;class La{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Yn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ue||!Ne||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new La(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,Ii(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ue.depsTail,n.nextDep=void 0,ue.depsTail.nextDep=n,ue.depsTail=n,ue.deps===n&&(ue.deps=r)}return n}trigger(t){this.version++,mn++,this.notify(t)}notify(t){qr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Kr()}}}function Ii(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ii(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Qn=new WeakMap,Et=Symbol(""),Yr=Symbol(""),vn=Symbol("");function ke(e,t,n){if(Ne&&ue){let r=Qn.get(e);r||Qn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Yn),s.map=r,s.key=n),s.track()}}function et(e,t,n,r,s,i){const l=Qn.get(e);if(!l){mn++;return}const o=a=>{a&&a.trigger()};if(qr(),t==="clear")l.forEach(o);else{const a=V(e),c=a&&Wn(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,p)=>{(p==="length"||p===vn||!We(p)&&p>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(vn)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Et)),Gt(e)&&o(l.get(Yr)));break;case"delete":a||(o(l.get(Et)),Gt(e)&&o(l.get(Yr)));break;case"set":Gt(e)&&o(l.get(Et));break}}Kr()}function Ia(e,t){const n=Qn.get(e);return n&&n.get(t)}function Yt(e){const t=X(e);return t===e?t:(ke(t,"iterate",vn),Ie(e)?t:t.map(Be))}function Jn(e){return ke(e=X(e),"iterate",vn),e}function mt(e,t){return nt(e)?Qt(Lt(e)?Be(t):t):Be(t)}const Ma={__proto__:null,[Symbol.iterator](){return Qr(this,Symbol.iterator,e=>mt(this,e))},concat(...e){return Yt(this).concat(...e.map(t=>V(t)?Yt(t):t))},entries(){return Qr(this,"entries",e=>(e[1]=mt(this,e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(r=>mt(this,r)),arguments)},find(e,t){return tt(this,"find",e,t,n=>mt(this,n),arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,n=>mt(this,n),arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Jr(this,"includes",e)},indexOf(...e){return Jr(this,"indexOf",e)},join(e){return Yt(this).join(e)},lastIndexOf(...e){return Jr(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return bn(this,"pop")},push(...e){return bn(this,"push",e)},reduce(e,...t){return Mi(this,"reduce",e,t)},reduceRight(e,...t){return Mi(this,"reduceRight",e,t)},shift(){return bn(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return bn(this,"splice",e)},toReversed(){return Yt(this).toReversed()},toSorted(e){return Yt(this).toSorted(e)},toSpliced(...e){return Yt(this).toSpliced(...e)},unshift(...e){return bn(this,"unshift",e)},values(){return Qr(this,"values",e=>mt(this,e))}};function Qr(e,t,n){const r=Jn(e),s=r[t]();return r!==e&&!Ie(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Pa=Array.prototype;function tt(e,t,n,r,s,i){const l=Jn(e),o=l!==e&&!Ie(e),a=l[t];if(a!==Pa[t]){const f=a.apply(e,i);return o?Be(f):f}let c=n;l!==e&&(o?c=function(f,p){return n.call(this,mt(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=a.call(l,c,r);return o&&s?s(u):u}function Mi(e,t,n,r){const s=Jn(e);let i=n;return s!==e&&(Ie(e)?n.length>3&&(i=function(l,o,a){return n.call(this,l,o,a,e)}):i=function(l,o,a){return n.call(this,l,mt(e,o),a,e)}),s[t](i,...r)}function Jr(e,t,n){const r=X(e);ke(r,"iterate",vn);const s=r[t](...n);return(s===-1||s===!1)&&rr(n[0])?(n[0]=X(n[0]),r[t](...n)):s}function bn(e,t,n=[]){dt(),qr();const r=X(e)[t].apply(e,n);return Kr(),gt(),r}const Oa=Ur("__proto__,__v_isRef,__isVue"),Pi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We));function ja(e){We(e)||(e=String(e));const t=X(this);return ke(t,"has",e),t.hasOwnProperty(e)}class Oi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Hi:Ui:i?Di:Fi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=V(t);if(!s){let a;if(l&&(a=Ma[n]))return a;if(n==="hasOwnProperty")return ja}const o=Reflect.get(t,n,be(t)?t:r);if((We(n)?Pi.has(n):Oa(n))||(s||ke(t,"get",n),i))return o;if(be(o)){const a=l&&Wn(n)?o:o.value;return s&&ce(a)?Tt(a):a}return ce(o)?s?Tt(o):yn(o):o}}class ji extends Oi{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const l=V(t)&&Wn(n);if(!this._isShallow){const c=nt(i);if(!Ie(r)&&!nt(r)&&(i=X(i),r=X(r)),!l&&be(i)&&!be(r))return c||(i.value=r),!0}const o=l?Number(n)<t.length:le(t,n),a=Reflect.set(t,n,r,be(t)?t:s);return t===X(s)&&(o?ht(r,i)&&et(t,"set",n,r):et(t,"add",n,r)),a}deleteProperty(t,n){const r=le(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&et(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!We(n)||!Pi.has(n))&&ke(t,"has",n),r}ownKeys(t){return ke(t,"iterate",V(t)?"length":Et),Reflect.ownKeys(t)}}class zi extends Oi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const za=new ji,Fa=new zi,Da=new ji(!0),Ua=new zi(!0),Xr=e=>e,Xn=e=>Reflect.getPrototypeOf(e);function Ha(e,t,n){return function(...r){const s=this.__v_raw,i=X(s),l=Gt(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Xr:t?Qt:Be;return!t&&ke(i,"iterate",a?Yr:Et),Le(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:o?[u(f[0]),u(f[1])]:u(f),done:p}}})}}function er(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Na(e,t){const n={get(s){const i=this.__v_raw,l=X(i),o=X(s);e||(ht(s,o)&&ke(l,"get",s),ke(l,"get",o));const{has:a}=Xn(l),c=t?Xr:e?Qt:Be;if(a.call(l,s))return c(i.get(s));if(a.call(l,o))return c(i.get(o));i!==l&&i.get(s)},get size(){const s=this.__v_raw;return!e&&ke(X(s),"iterate",Et),s.size},has(s){const i=this.__v_raw,l=X(i),o=X(s);return e||(ht(s,o)&&ke(l,"has",s),ke(l,"has",o)),s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const l=this,o=l.__v_raw,a=X(o),c=t?Xr:e?Qt:Be;return!e&&ke(a,"iterate",Et),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return Le(n,e?{add:er("add"),set:er("set"),delete:er("delete"),clear:er("clear")}:{add(s){!t&&!Ie(s)&&!nt(s)&&(s=X(s));const i=X(this);return Xn(i).has.call(i,s)||(i.add(s),et(i,"add",s,s)),this},set(s,i){!t&&!Ie(i)&&!nt(i)&&(i=X(i));const l=X(this),{has:o,get:a}=Xn(l);let c=o.call(l,s);c||(s=X(s),c=o.call(l,s));const u=a.call(l,s);return l.set(s,i),c?ht(i,u)&&et(l,"set",s,i):et(l,"add",s,i),this},delete(s){const i=X(this),{has:l,get:o}=Xn(i);let a=l.call(i,s);a||(s=X(s),a=l.call(i,s)),o&&o.call(i,s);const c=i.delete(s);return a&&et(i,"delete",s,void 0),c},clear(){const s=X(this),i=s.size!==0,l=s.clear();return i&&et(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Ha(s,e,t)}),n}function tr(e,t){const n=Na(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(le(n,s)&&s in r?n:r,s,i)}const Ba={get:tr(!1,!1)},Va={get:tr(!1,!0)},Wa={get:tr(!0,!1)},qa={get:tr(!0,!0)},Fi=new WeakMap,Di=new WeakMap,Ui=new WeakMap,Hi=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 Ga(e){return e.__v_skip||!Object.isExtensible(e)?0:Ka(ya(e))}function yn(e){return nt(e)?e:nr(e,!1,za,Ba,Fi)}function Za(e){return nr(e,!1,Da,Va,Di)}function Tt(e){return nr(e,!0,Fa,Wa,Ui)}function Ya(e){return nr(e,!0,Ua,qa,Hi)}function nr(e,t,n,r,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Ga(e);if(i===0)return e;const l=s.get(e);if(l)return l;const o=new Proxy(e,i===2?r:n);return s.set(e,o),o}function Lt(e){return nt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function nt(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function rr(e){return e?!!e.__v_raw:!1}function X(e){const t=e&&e.__v_raw;return t?X(t):e}function Qa(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&bi(e,"__v_skip",!0),e}const Be=e=>ce(e)?yn(e):e,Qt=e=>ce(e)?Tt(e):e;function be(e){return e?e.__v_isRef===!0:!1}function W(e){return Ni(e,!1)}function It(e){return Ni(e,!0)}function Ni(e,t){return be(e)?e:new Ja(e,t)}class Ja{constructor(t,n){this.dep=new Yn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:X(t),this._value=n?t:Be(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ie(t)||nt(t);t=r?t:X(t),ht(t,n)&&(this._rawValue=t,this._value=r?t:Be(t),this.dep.trigger())}}function N(e){return be(e)?e.value:e}function Me(e){return te(e)?e():N(e)}const Xa={get:(e,t,n)=>t==="__v_raw"?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return be(s)&&!be(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Bi(e){return Lt(e)?e:new Proxy(e,Xa)}class ec{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Yn,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function tc(e){return new ec(e)}class nc{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=X(t);let s=!0,i=t;if(!V(t)||!Wn(String(n)))do s=!rr(i)||Ie(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=N(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&be(this._raw[this._key])){const n=this._object[this._key];if(be(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Ia(this._raw,this._key)}}class rc{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function sc(e,t,n){return be(e)?e:te(e)?new rc(e):ce(e)&&arguments.length>1?ic(e,t,n):W(e)}function ic(e,t,n){return new nc(e,t,n)}class lc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Yn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=mn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ue!==this)return Si(this,!0),!0}get value(){const t=this.dep.track();return Ei(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function oc(e,t,n=!1){let r,s;return te(e)?r=e:(r=e.get,s=e.set),new lc(r,s,n)}const sr={},ir=new WeakMap;let Mt;function ac(e,t=!1,n=Mt){if(n){let r=ir.get(n);r||ir.set(n,r=[]),r.push(e)}}function cc(e,t,n=he){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=S=>s?S:Ie(S)||s===!1||s===0?rt(S,1):rt(S);let u,f,p,m,x=!1,y=!1;if(be(e)?(f=()=>e.value,x=Ie(e)):Lt(e)?(f=()=>c(e),x=!0):V(e)?(y=!0,x=e.some(S=>Lt(S)||Ie(S)),f=()=>e.map(S=>{if(be(S))return S.value;if(Lt(S))return c(S);if(te(S))return a?a(S,2):S()})):te(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){dt();try{p()}finally{gt()}}const S=Mt;Mt=u;try{return a?a(e,3,[m]):e(m)}finally{Mt=S}}:f=St,t&&s){const S=f,z=s===!0?1/0:s;f=()=>rt(S(),z)}const A=_i(),_=()=>{u.stop(),A&&A.active&&pi(A.effects,u)};if(i&&t){const S=t;t=(...z)=>{S(...z),_()}}let L=y?new Array(e.length).fill(sr):sr;const O=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(t){const z=u.run();if(s||x||(y?z.some((pe,oe)=>ht(pe,L[oe])):ht(z,L))){p&&p();const pe=Mt;Mt=u;try{const oe=[z,L===sr?void 0:y&&L[0]===sr?[]:L,m];L=z,a?a(t,3,oe):t(...oe)}finally{Mt=pe}}}else u.run()};return o&&o(O),u=new Ci(f),u.scheduler=l?()=>l(O,!1):O,m=S=>ac(S,!1,u),p=u.onStop=()=>{const S=ir.get(u);if(S){if(a)a(S,4);else for(const z of S)z();ir.delete(u)}},t?r?O(!0):L=u.run():l?l(O.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function rt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,be(e))rt(e.value,t,n);else if(V(e))for(let r=0;r<e.length;r++)rt(e[r],t,n);else if(Zt(e)||Gt(e))e.forEach(r=>{rt(r,t,n)});else if(vi(e)){for(const r in e)rt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rt(e[r],t,n)}return e}/**
|
|
20
|
+
**/let we;class Ta{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=we;try{return we=this,t()}finally{we=n}}}on(){++this._on===1&&(this.prevScope=we,we=this)}off(){this._on>0&&--this._on===0&&(we=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Ci(){return we}function La(e,t=!1){we&&we.cleanups.push(e)}let ue;const Wr=new WeakSet;class $i{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,we&&we.active&&we.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Wr.has(this)&&(Wr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ri(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ii(this),Ai(this);const t=ue,n=Ne;ue=this,Ne=!0;try{return this.fn()}finally{Ei(this),ue=t,Ne=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zr(t);this.deps=this.depsTail=void 0,Ii(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Wr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gr(this)&&this.run()}get dirty(){return Gr(this)}}let Si=0,dn,gn;function Ri(e,t=!1){if(e.flags|=8,t){e.next=gn,gn=e;return}e.next=dn,dn=e}function qr(){Si++}function Kr(){if(--Si>0)return;if(gn){let t=gn;for(gn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;dn;){let t=dn;for(dn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Ai(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ei(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Zr(r),Ia(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Gr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ti(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ti(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===mn)||(e.globalVersion=mn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gr(e))))return;e.flags|=2;const t=e.dep,n=ue,r=Ne;ue=e,Ne=!0;try{Ai(e);const s=e.fn(e._value);(t.version===0||ht(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ue=n,Ne=r,Ei(e),e.flags&=-3}}function Zr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Zr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ia(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ne=!0;const Li=[];function dt(){Li.push(Ne),Ne=!1}function gt(){const e=Li.pop();Ne=e===void 0?!0:e}function Ii(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let mn=0;class Ma{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Yn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ue||!Ne||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new Ma(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,Mi(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ue.depsTail,n.nextDep=void 0,ue.depsTail.nextDep=n,ue.depsTail=n,ue.deps===n&&(ue.deps=r)}return n}trigger(t){this.version++,mn++,this.notify(t)}notify(t){qr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Kr()}}}function Mi(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Mi(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Jn=new WeakMap,Et=Symbol(""),Yr=Symbol(""),vn=Symbol("");function ke(e,t,n){if(Ne&&ue){let r=Jn.get(e);r||Jn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Yn),s.map=r,s.key=n),s.track()}}function et(e,t,n,r,s,i){const l=Jn.get(e);if(!l){mn++;return}const o=a=>{a&&a.trigger()};if(qr(),t==="clear")l.forEach(o);else{const a=V(e),c=a&&Wn(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,p)=>{(p==="length"||p===vn||!We(p)&&p>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(vn)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Et)),Gt(e)&&o(l.get(Yr)));break;case"delete":a||(o(l.get(Et)),Gt(e)&&o(l.get(Yr)));break;case"set":Gt(e)&&o(l.get(Et));break}}Kr()}function Pa(e,t){const n=Jn.get(e);return n&&n.get(t)}function Yt(e){const t=ee(e);return t===e?t:(ke(t,"iterate",vn),Ie(e)?t:t.map(Be))}function Qn(e){return ke(e=ee(e),"iterate",vn),e}function mt(e,t){return nt(e)?Jt(Lt(e)?Be(t):t):Be(t)}const za={__proto__:null,[Symbol.iterator](){return Jr(this,Symbol.iterator,e=>mt(this,e))},concat(...e){return Yt(this).concat(...e.map(t=>V(t)?Yt(t):t))},entries(){return Jr(this,"entries",e=>(e[1]=mt(this,e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(r=>mt(this,r)),arguments)},find(e,t){return tt(this,"find",e,t,n=>mt(this,n),arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,n=>mt(this,n),arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Qr(this,"includes",e)},indexOf(...e){return Qr(this,"indexOf",e)},join(e){return Yt(this).join(e)},lastIndexOf(...e){return Qr(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return bn(this,"pop")},push(...e){return bn(this,"push",e)},reduce(e,...t){return Pi(this,"reduce",e,t)},reduceRight(e,...t){return Pi(this,"reduceRight",e,t)},shift(){return bn(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return bn(this,"splice",e)},toReversed(){return Yt(this).toReversed()},toSorted(e){return Yt(this).toSorted(e)},toSpliced(...e){return Yt(this).toSpliced(...e)},unshift(...e){return bn(this,"unshift",e)},values(){return Jr(this,"values",e=>mt(this,e))}};function Jr(e,t,n){const r=Qn(e),s=r[t]();return r!==e&&!Ie(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const ja=Array.prototype;function tt(e,t,n,r,s,i){const l=Qn(e),o=l!==e&&!Ie(e),a=l[t];if(a!==ja[t]){const f=a.apply(e,i);return o?Be(f):f}let c=n;l!==e&&(o?c=function(f,p){return n.call(this,mt(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=a.call(l,c,r);return o&&s?s(u):u}function Pi(e,t,n,r){const s=Qn(e);let i=n;return s!==e&&(Ie(e)?n.length>3&&(i=function(l,o,a){return n.call(this,l,o,a,e)}):i=function(l,o,a){return n.call(this,l,mt(e,o),a,e)}),s[t](i,...r)}function Qr(e,t,n){const r=ee(e);ke(r,"iterate",vn);const s=r[t](...n);return(s===-1||s===!1)&&rr(n[0])?(n[0]=ee(n[0]),r[t](...n)):s}function bn(e,t,n=[]){dt(),qr();const r=ee(e)[t].apply(e,n);return Kr(),gt(),r}const Oa=Ur("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We));function Fa(e){We(e)||(e=String(e));const t=ee(this);return ke(t,"has",e),t.hasOwnProperty(e)}class ji{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Ni:Hi:i?Ui:Di).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=V(t);if(!s){let a;if(l&&(a=za[n]))return a;if(n==="hasOwnProperty")return Fa}const o=Reflect.get(t,n,be(t)?t:r);if((We(n)?zi.has(n):Oa(n))||(s||ke(t,"get",n),i))return o;if(be(o)){const a=l&&Wn(n)?o:o.value;return s&&ce(a)?Tt(a):a}return ce(o)?s?Tt(o):yn(o):o}}class Oi extends ji{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const l=V(t)&&Wn(n);if(!this._isShallow){const c=nt(i);if(!Ie(r)&&!nt(r)&&(i=ee(i),r=ee(r)),!l&&be(i)&&!be(r))return c||(i.value=r),!0}const o=l?Number(n)<t.length:le(t,n),a=Reflect.set(t,n,r,be(t)?t:s);return t===ee(s)&&(o?ht(r,i)&&et(t,"set",n,r):et(t,"add",n,r)),a}deleteProperty(t,n){const r=le(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&et(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!We(n)||!zi.has(n))&&ke(t,"has",n),r}ownKeys(t){return ke(t,"iterate",V(t)?"length":Et),Reflect.ownKeys(t)}}class Fi extends ji{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Da=new Oi,Ua=new Fi,Ha=new Oi(!0),Na=new Fi(!0),Xr=e=>e,Xn=e=>Reflect.getPrototypeOf(e);function Ba(e,t,n){return function(...r){const s=this.__v_raw,i=ee(s),l=Gt(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Xr:t?Jt:Be;return!t&&ke(i,"iterate",a?Yr:Et),Le(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:o?[u(f[0]),u(f[1])]:u(f),done:p}}})}}function er(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Va(e,t){const n={get(s){const i=this.__v_raw,l=ee(i),o=ee(s);e||(ht(s,o)&&ke(l,"get",s),ke(l,"get",o));const{has:a}=Xn(l),c=t?Xr:e?Jt:Be;if(a.call(l,s))return c(i.get(s));if(a.call(l,o))return c(i.get(o));i!==l&&i.get(s)},get size(){const s=this.__v_raw;return!e&&ke(ee(s),"iterate",Et),s.size},has(s){const i=this.__v_raw,l=ee(i),o=ee(s);return e||(ht(s,o)&&ke(l,"has",s),ke(l,"has",o)),s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const l=this,o=l.__v_raw,a=ee(o),c=t?Xr:e?Jt:Be;return!e&&ke(a,"iterate",Et),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return Le(n,e?{add:er("add"),set:er("set"),delete:er("delete"),clear:er("clear")}:{add(s){!t&&!Ie(s)&&!nt(s)&&(s=ee(s));const i=ee(this);return Xn(i).has.call(i,s)||(i.add(s),et(i,"add",s,s)),this},set(s,i){!t&&!Ie(i)&&!nt(i)&&(i=ee(i));const l=ee(this),{has:o,get:a}=Xn(l);let c=o.call(l,s);c||(s=ee(s),c=o.call(l,s));const u=a.call(l,s);return l.set(s,i),c?ht(i,u)&&et(l,"set",s,i):et(l,"add",s,i),this},delete(s){const i=ee(this),{has:l,get:o}=Xn(i);let a=l.call(i,s);a||(s=ee(s),a=l.call(i,s)),o&&o.call(i,s);const c=i.delete(s);return a&&et(i,"delete",s,void 0),c},clear(){const s=ee(this),i=s.size!==0,l=s.clear();return i&&et(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Ba(s,e,t)}),n}function tr(e,t){const n=Va(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(le(n,s)&&s in r?n:r,s,i)}const Wa={get:tr(!1,!1)},qa={get:tr(!1,!0)},Ka={get:tr(!0,!1)},Ga={get:tr(!0,!0)},Di=new WeakMap,Ui=new WeakMap,Hi=new WeakMap,Ni=new WeakMap;function Za(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ya(e){return e.__v_skip||!Object.isExtensible(e)?0:Za(ka(e))}function yn(e){return nt(e)?e:nr(e,!1,Da,Wa,Di)}function Ja(e){return nr(e,!1,Ha,qa,Ui)}function Tt(e){return nr(e,!0,Ua,Ka,Hi)}function Qa(e){return nr(e,!0,Na,Ga,Ni)}function nr(e,t,n,r,s){if(!ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Ya(e);if(i===0)return e;const l=s.get(e);if(l)return l;const o=new Proxy(e,i===2?r:n);return s.set(e,o),o}function Lt(e){return nt(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function nt(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function rr(e){return e?!!e.__v_raw:!1}function ee(e){const t=e&&e.__v_raw;return t?ee(t):e}function Xa(e){return!le(e,"__v_skip")&&Object.isExtensible(e)&&yi(e,"__v_skip",!0),e}const Be=e=>ce(e)?yn(e):e,Jt=e=>ce(e)?Tt(e):e;function be(e){return e?e.__v_isRef===!0:!1}function K(e){return Bi(e,!1)}function It(e){return Bi(e,!0)}function Bi(e,t){return be(e)?e:new ec(e,t)}class ec{constructor(t,n){this.dep=new Yn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ee(t),this._value=n?t:Be(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ie(t)||nt(t);t=r?t:ee(t),ht(t,n)&&(this._rawValue=t,this._value=r?t:Be(t),this.dep.trigger())}}function U(e){return be(e)?e.value:e}function Me(e){return ne(e)?e():U(e)}const tc={get:(e,t,n)=>t==="__v_raw"?e:U(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return be(s)&&!be(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Vi(e){return Lt(e)?e:new Proxy(e,tc)}class nc{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Yn,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function rc(e){return new nc(e)}class sc{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ee(t);let s=!0,i=t;if(!V(t)||!Wn(String(n)))do s=!rr(i)||Ie(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=U(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&be(this._raw[this._key])){const n=this._object[this._key];if(be(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Pa(this._raw,this._key)}}class ic{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function lc(e,t,n){return be(e)?e:ne(e)?new ic(e):ce(e)&&arguments.length>1?oc(e,t,n):K(e)}function oc(e,t,n){return new sc(e,t,n)}class ac{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Yn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=mn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ue!==this)return Ri(this,!0),!0}get value(){const t=this.dep.track();return Ti(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cc(e,t,n=!1){let r,s;return ne(e)?r=e:(r=e.get,s=e.set),new ac(r,s,n)}const sr={},ir=new WeakMap;let Mt;function uc(e,t=!1,n=Mt){if(n){let r=ir.get(n);r||ir.set(n,r=[]),r.push(e)}}function fc(e,t,n=he){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=S=>s?S:Ie(S)||s===!1||s===0?rt(S,1):rt(S);let u,f,p,m,x=!1,y=!1;if(be(e)?(f=()=>e.value,x=Ie(e)):Lt(e)?(f=()=>c(e),x=!0):V(e)?(y=!0,x=e.some(S=>Lt(S)||Ie(S)),f=()=>e.map(S=>{if(be(S))return S.value;if(Lt(S))return c(S);if(ne(S))return a?a(S,2):S()})):ne(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){dt();try{p()}finally{gt()}}const S=Mt;Mt=u;try{return a?a(e,3,[m]):e(m)}finally{Mt=S}}:f=St,t&&s){const S=f,O=s===!0?1/0:s;f=()=>rt(S(),O)}const A=Ci(),_=()=>{u.stop(),A&&A.active&&di(A.effects,u)};if(i&&t){const S=t;t=(...O)=>{S(...O),_()}}let L=y?new Array(e.length).fill(sr):sr;const z=S=>{if(!(!(u.flags&1)||!u.dirty&&!S))if(t){const O=u.run();if(s||x||(y?O.some((pe,oe)=>ht(pe,L[oe])):ht(O,L))){p&&p();const pe=Mt;Mt=u;try{const oe=[O,L===sr?void 0:y&&L[0]===sr?[]:L,m];L=O,a?a(t,3,oe):t(...oe)}finally{Mt=pe}}}else u.run()};return o&&o(z),u=new $i(f),u.scheduler=l?()=>l(z,!1):z,m=S=>uc(S,!1,u),p=u.onStop=()=>{const S=ir.get(u);if(S){if(a)a(S,4);else for(const O of S)O();ir.delete(u)}},t?r?z(!0):L=u.run():l?l(z.bind(null,!0),!0):u.run(),_.pause=u.pause.bind(u),_.resume=u.resume.bind(u),_.stop=_,_}function rt(e,t=1/0,n){if(t<=0||!ce(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,be(e))rt(e.value,t,n);else if(V(e))for(let r=0;r<e.length;r++)rt(e[r],t,n);else if(Zt(e)||Gt(e))e.forEach(r=>{rt(r,t,n)});else if(bi(e)){for(const r in e)rt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rt(e[r],t,n)}return e}/**
|
|
20
21
|
* @vue/runtime-core v3.5.28
|
|
21
22
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
22
23
|
* @license MIT
|
|
23
|
-
**/function wn(e,t,n,r){try{return r?e(...r):e()}catch(s){lr(s,t,n)}}function st(e,t,n,r){if(te(e)){const s=wn(e,t,n,r);return s&&gi(s)&&s.catch(i=>{lr(i,t,n)}),s}if(V(e)){const s=[];for(let i=0;i<e.length;i++)s.push(st(e[i],t,n,r));return s}}function lr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||he;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}o=o.parent}if(i){dt(),wn(i,null,10,[e,a,c]),gt();return}}uc(e,n,s,r,l)}function uc(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const xe=[];let qe=-1;const Jt=[];let vt=null,Xt=0;const Vi=Promise.resolve();let or=null;function en(e){const t=or||Vi;return e?t.then(this?e.bind(this):e):t}function fc(e){let t=qe+1,n=xe.length;for(;t<n;){const r=t+n>>>1,s=xe[r],i=kn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function es(e){if(!(e.flags&1)){const t=kn(e),n=xe[xe.length-1];!n||!(e.flags&2)&&t>=kn(n)?xe.push(e):xe.splice(fc(t),0,e),e.flags|=1,Wi()}}function Wi(){or||(or=Vi.then(Gi))}function hc(e){V(e)?Jt.push(...e):vt&&e.id===-1?vt.splice(Xt+1,0,e):e.flags&1||(Jt.push(e),e.flags|=1),Wi()}function qi(e,t,n=qe+1){for(;n<xe.length;n++){const r=xe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;xe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ki(e){if(Jt.length){const t=[...new Set(Jt)].sort((n,r)=>kn(n)-kn(r));if(Jt.length=0,vt){vt.push(...t);return}for(vt=t,Xt=0;Xt<vt.length;Xt++){const n=vt[Xt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vt=null,Xt=0}}const kn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Gi(e){try{for(qe=0;qe<xe.length;qe++){const t=xe[qe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),wn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;qe<xe.length;qe++){const t=xe[qe];t&&(t.flags&=-2)}qe=-1,xe.length=0,Ki(),or=null,(xe.length||Jt.length)&&Gi()}}let Pe=null,Zi=null;function ar(e){const t=Pe;return Pe=e,Zi=e&&e.type.__scopeId||null,t}function pc(e,t=Pe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&dr(-1);const i=ar(t);let l;try{l=e(...s)}finally{ar(i),r._d&&dr(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function cr(e,t){if(Pe===null)return e;const n=br(Pe),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,o,a=he]=t[s];i&&(te(i)&&(i={mounted:i,updated:i}),i.deep&&rt(l),r.push({dir:i,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Pt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let l=0;l<s.length;l++){const o=s[l];i&&(o.oldValue=i[l].value);let a=o.dir[r];a&&(dt(),st(a,n,8,[e.el,o,e,t]),gt())}}function dc(e,t){if(Te){let n=Te.provides;const r=Te.parent&&Te.parent.provides;r===n&&(n=Te.provides=Object.create(r)),n[e]=t}}function ur(e,t,n=!1){const r=hs();if(r||nn){let s=nn?nn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&te(t)?t.call(r&&r.proxy):t}}const gc=Symbol.for("v-scx"),mc=()=>ur(gc);function Yi(e,t){return Qi(e,null,t)}function bt(e,t,n){return Qi(e,t,n)}function Qi(e,t,n=he){const{immediate:r,flush:s}=n,i=Le({},n),l=t&&r||!t&&s!=="post";let o;if(An){if(s==="sync"){const f=mc();o=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=St,f.resume=St,f.pause=St,f}}const a=Te;i.call=(f,p,m)=>st(f,a,p,m);let c=!1;s==="post"?i.scheduler=f=>{Ee(f,a&&a.suspense)}:s!=="sync"&&(c=!0,i.scheduler=(f,p)=>{p?f():es(f)}),i.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,a&&(f.id=a.uid,f.i=a))};const u=cc(e,t,i);return An&&(o?o.push(u):l&&u()),u}const vc=Symbol("_vte"),bc=e=>e.__isTeleport,yc=Symbol("_leaveCb");function ts(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ts(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ot(e,t){return te(e)?Le({name:e.name},t,{setup:e}):e}function wc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function yt(e){const t=hs(),n=It(null);if(t){const s=t.refs===he?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function Ji(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const fr=new WeakMap;function xn(e,t,n,r,s=!1){if(V(e)){e.forEach((y,A)=>xn(y,t&&(V(t)?t[A]:t),n,r,s));return}if(_n(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&xn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?br(r.component):r.el,l=s?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===he?o.refs={}:o.refs,f=o.setupState,p=X(f),m=f===he?hi:y=>Ji(u,y)?!1:le(p,y),x=(y,A)=>!(A&&Ji(u,A));if(c!=null&&c!==a){if(Xi(t),ye(c))u[c]=null,m(c)&&(f[c]=null);else if(be(c)){const y=t;x(c,y.k)&&(c.value=null),y.k&&(u[y.k]=null)}}if(te(a))wn(a,o,12,[l,u]);else{const y=ye(a),A=be(a);if(y||A){const _=()=>{if(e.f){const L=y?m(a)?f[a]:u[a]:x()||!e.k?a.value:u[e.k];if(s)V(L)&&pi(L,i);else if(V(L))L.includes(i)||L.push(i);else if(y)u[a]=[i],m(a)&&(f[a]=u[a]);else{const O=[i];x(a,e.k)&&(a.value=O),e.k&&(u[e.k]=O)}}else y?(u[a]=l,m(a)&&(f[a]=l)):A&&(x(a,e.k)&&(a.value=l),e.k&&(u[e.k]=l))};if(l){const L=()=>{_(),fr.delete(e)};L.id=-1,fr.set(e,L),Ee(L,n)}else Xi(e),_()}}}function Xi(e){const t=fr.get(e);t&&(t.flags|=8,fr.delete(e))}pn().requestIdleCallback,pn().cancelIdleCallback;const _n=e=>!!e.type.__asyncLoader,kc=e=>e.type.__isKeepAlive;function xc(e,t,n=Te,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{dt();const o=ds(n),a=st(t,n,e,l);return o(),gt(),a});return r?s.unshift(i):s.push(i),i}}const ns=e=>(t,n=Te)=>{(!An||e==="sp")&&xc(e,(...r)=>t(...r),n)},tn=ns("m"),_c=ns("bum"),rs=ns("um"),Cc="components";function el(e,t){return Sc(Cc,e,!0,t)||e}const $c=Symbol.for("v-ndc");function Sc(e,t,n=!0,r=!1){const s=Pe||Te;if(s){const i=s.type;{const o=lu(i,!1);if(o&&(o===t||o===ze(t)||o===Kn(ze(t))))return i}const l=tl(s[e]||i[e],t)||tl(s.appContext[e],t);return!l&&r?i:l}}function tl(e,t){return e&&(e[t]||e[ze(t)]||e[Kn(ze(t))])}function Ae(e,t,n,r){let s;const i=n,l=V(e);if(l||ye(e)){const o=l&&Lt(e);let a=!1,c=!1;o&&(a=!Ie(e),c=nt(e),e=Jn(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?Qt(Be(e[u])):Be(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let o=0;o<e;o++)s[o]=t(o+1,o,void 0,i)}else if(ce(e))if(e[Symbol.iterator])s=Array.from(e,(o,a)=>t(o,a,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];s[a]=t(e[u],u,a,i)}}else s=[];return s}const ss=e=>e?xl(e)?br(e):ss(e.parent):null,Cn=Le(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=>ss(e.parent),$root:e=>ss(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{es(e.update)}),$nextTick:e=>e.n||(e.n=en.bind(e.proxy)),$watch:e=>St}),is=(e,t)=>e!==he&&!e.__isScriptSetup&&le(e,t),Rc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:o,appContext:a}=e;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(is(r,t))return l[t]=1,r[t];if(le(i,t))return l[t]=3,i[t];if(n!==he&&le(n,t))return l[t]=4,n[t];l[t]=0}}const c=Cn[t];let u,f;if(c)return t==="$attrs"&&ke(e.attrs,"get",""),c(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(n!==he&&le(n,t))return l[t]=4,n[t];if(f=a.config.globalProperties,le(f,t))return f[t]},set({_:e},t,n){const{setupState:r,ctx:s}=e;return is(r,t)?(r[t]=n,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:l}},o){let a;return!!(n[o]||is(t,o)||le(i,o)||le(r,o)||le(Cn,o)||le(s.config.globalProperties,o)||(a=l.__cssModules)&&a[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function nl(){return{app:null,config:{isNativeTag:hi,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 Ac=0;function Ec(e,t){return function(r,s=null){te(r)||(r=Le({},r)),s!=null&&!ce(s)&&(s=null);const i=nl(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:Ac++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:au,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&te(u.install)?(l.add(u),u.install(c,...f)):te(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,p){if(!a){const m=c._ceVNode||ne(r,s);return m.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(m,u,p),a=!0,c._container=u,u.__vue_app__=c,br(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(st(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=nn;nn=c;try{return u()}finally{nn=f}}};return c}}let nn=null;const Tc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${Rt(t)}Modifiers`];function Lc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const i=t.startsWith("update:"),l=i&&Tc(r,t.slice(7));l&&(l.trim&&(s=n.map(u=>ye(u)?u.trim():u)),l.number&&(s=n.map(Zn)));let o,a=r[o=Nr(t)]||r[o=Nr(ze(t))];!a&&i&&(a=r[o=Nr(Rt(t))]),a&&st(a,e,6,s);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,st(c,e,6,s)}}function Ic(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let l={};return i?(V(i)?i.forEach(o=>l[o]=null):Le(l,i),ce(e)&&r.set(e,l),l):(ce(e)&&r.set(e,null),null)}function hr(e,t){return!e||!Vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,Rt(t))||le(e,t))}function rl(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:f,data:p,setupState:m,ctx:x,inheritAttrs:y}=e,A=ar(e);let _,L;try{if(n.shapeFlag&4){const S=s||r,z=S;_=Ge(c.call(z,S,u,f,m,p,x)),L=o}else{const S=t;_=Ge(S.length>1?S(f,{attrs:o,slots:l,emit:a}):S(f,null)),L=t.props?o:Mc(o)}}catch(S){$n.length=0,lr(S,e,1),_=ne(wt)}let O=_;if(L&&y!==!1){const S=Object.keys(L),{shapeFlag:z}=O;S.length&&z&7&&(i&&S.some(Hr)&&(L=Pc(L,i)),O=rn(O,L,!1,!0))}return n.dirs&&(O=rn(O,null,!1,!0),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&ts(O,n.transition),_=O,ar(A),_}const Mc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vn(n))&&((t||(t={}))[n]=e[n]);return t},Pc=(e,t)=>{const n={};for(const r in e)(!Hr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Oc(e,t,n){const{props:r,children:s,component:i}=e,{props:l,children:o,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?sl(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(il(l,r,p)&&!hr(c,p))return!0}}}else return(s||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?sl(r,l,c):!0:!!l;return!1}function sl(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(il(t,e,i)&&!hr(n,i))return!0}return!1}function il(e,t,n){const r=e[n],s=t[n];return n==="style"&&ce(r)&&ce(s)?!pt(r,s):r!==s}function jc({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const ll={},ol=()=>Object.create(ll),al=e=>Object.getPrototypeOf(e)===ll;function zc(e,t,n,r=!1){const s={},i=ol();e.propsDefaults=Object.create(null),cl(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Za(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Fc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,o=X(s),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(hr(e.emitsOptions,p))continue;const m=t[p];if(a)if(le(i,p))m!==i[p]&&(i[p]=m,c=!0);else{const x=ze(p);s[x]=ls(a,o,x,m,e,!1)}else m!==i[p]&&(i[p]=m,c=!0)}}}else{cl(e,t,s,i)&&(c=!0);let u;for(const f in o)(!t||!le(t,f)&&((u=Rt(f))===f||!le(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=ls(a,o,f,void 0,e,!0)):delete s[f]);if(i!==o)for(const f in i)(!t||!le(t,f))&&(delete i[f],c=!0)}c&&et(e.attrs,"set","")}function cl(e,t,n,r){const[s,i]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(hn(a))continue;const c=t[a];let u;s&&le(s,u=ze(a))?!i||!i.includes(u)?n[u]=c:(o||(o={}))[u]=c:hr(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(i){const a=X(n),c=o||he;for(let u=0;u<i.length;u++){const f=i[u];n[f]=ls(s,a,f,c[f],e,!le(c,f))}}return l}function ls(e,t,n,r,s,i){const l=e[n];if(l!=null){const o=le(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&te(a)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=ds(s);r=c[n]=a.call(null,t),u()}}else r=a;s.ce&&s.ce._setProp(n,r)}l[0]&&(i&&!o?r=!1:l[1]&&(r===""||r===Rt(n))&&(r=!0))}return r}function Dc(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,l={},o=[];if(!i)return ce(e)&&r.set(e,Kt),Kt;if(V(i))for(let c=0;c<i.length;c++){const u=ze(i[c]);ul(u)&&(l[u]=he)}else if(i)for(const c in i){const u=ze(c);if(ul(u)){const f=i[c],p=l[u]=V(f)||te(f)?{type:f}:Le({},f),m=p.type;let x=!1,y=!0;if(V(m))for(let A=0;A<m.length;++A){const _=m[A],L=te(_)&&_.name;if(L==="Boolean"){x=!0;break}else L==="String"&&(y=!1)}else x=te(m)&&m.name==="Boolean";p[0]=x,p[1]=y,(x||le(p,"default"))&&o.push(u)}}const a=[l,o];return ce(e)&&r.set(e,a),a}function ul(e){return e[0]!=="$"&&!hn(e)}const os=e=>e==="_"||e==="_ctx"||e==="$stable",as=e=>V(e)?e.map(Ge):[Ge(e)],Uc=(e,t,n)=>{if(t._n)return t;const r=pc((...s)=>as(t(...s)),n);return r._c=!1,r},fl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(os(s))continue;const i=e[s];if(te(i))t[s]=Uc(s,i,r);else if(i!=null){const l=as(i);t[s]=()=>l}}},hl=(e,t)=>{const n=as(t);e.slots.default=()=>n},pl=(e,t,n)=>{for(const r in t)(n||!os(r))&&(e[r]=t[r])},Hc=(e,t,n)=>{const r=e.slots=ol();if(e.vnode.shapeFlag&32){const s=t._;s?(pl(r,t,n),n&&bi(r,"_",s,!0)):fl(t,r)}else t&&hl(e,t)},Nc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=he;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:pl(s,t,n):(i=!t.$stable,fl(t,s)),l=t}else t&&(hl(e,t),l={default:1});if(i)for(const o in s)!os(o)&&l[o]==null&&delete s[o]};function Bc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(pn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ee=Gc;function Vc(e){return Wc(e)}function Wc(e,t){Bc();const n=pn();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:m=St,insertStaticContent:x}=e,y=(h,d,g,v=null,b=null,w=null,k=void 0,R=null,$=!!d.dynamicChildren)=>{if(h===d)return;h&&!Rn(h,d)&&(v=Vt(h),Je(h,b,w,!0),h=null),d.patchFlag===-2&&($=!1,d.dynamicChildren=null);const{type:C,ref:I,shapeFlag:T}=d;switch(C){case pr:A(h,d,g,v);break;case wt:_(h,d,g,v);break;case us:h==null&&L(d,g,v,k);break;case ie:H(h,d,g,v,b,w,k,R,$);break;default:T&1?z(h,d,g,v,b,w,k,R,$):T&6?re(h,d,g,v,b,w,k,R,$):(T&64||T&128)&&C.process(h,d,g,v,b,w,k,R,$,Ct)}I!=null&&b?xn(I,h&&h.ref,w,d||h,!d):I==null&&h&&h.ref!=null&&xn(h.ref,null,w,h,!0)},A=(h,d,g,v)=>{if(h==null)r(d.el=o(d.children),g,v);else{const b=d.el=h.el;d.children!==h.children&&c(b,d.children)}},_=(h,d,g,v)=>{h==null?r(d.el=a(d.children||""),g,v):d.el=h.el},L=(h,d,g,v)=>{[h.el,h.anchor]=x(h.children,d,g,v,h.el,h.anchor)},O=({el:h,anchor:d},g,v)=>{let b;for(;h&&h!==d;)b=p(h),r(h,g,v),h=b;r(d,g,v)},S=({el:h,anchor:d})=>{let g;for(;h&&h!==d;)g=p(h),s(h),h=g;s(d)},z=(h,d,g,v,b,w,k,R,$)=>{if(d.type==="svg"?k="svg":d.type==="math"&&(k="mathml"),h==null)pe(d,g,v,b,w,k,R,$);else{const C=h.el&&h.el._isVueCE?h.el:null;try{C&&C._beginPatch(),Ce(h,d,b,w,k,R,$)}finally{C&&C._endPatch()}}},pe=(h,d,g,v,b,w,k,R)=>{let $,C;const{props:I,shapeFlag:T,transition:j,dirs:B}=h;if($=h.el=l(h.type,w,I&&I.is,I),T&8?u($,h.children):T&16&&D(h.children,$,null,v,b,cs(h,w),k,R),B&&Pt(h,null,v,"created"),oe($,h,h.scopeId,k,v),I){for(const se in I)se!=="value"&&!hn(se)&&i($,se,null,I[se],w,v);"value"in I&&i($,"value",null,I.value,w),(C=I.onVnodeBeforeMount)&&Ze(C,v,h)}B&&Pt(h,null,v,"beforeMount");const Z=qc(b,j);Z&&j.beforeEnter($),r($,d,g),((C=I&&I.onVnodeMounted)||Z||B)&&Ee(()=>{C&&Ze(C,v,h),Z&&j.enter($),B&&Pt(h,null,v,"mounted")},b)},oe=(h,d,g,v,b)=>{if(g&&m(h,g),v)for(let w=0;w<v.length;w++)m(h,v[w]);if(b){let w=b.subTree;if(d===w||bl(w.type)&&(w.ssContent===d||w.ssFallback===d)){const k=b.vnode;oe(h,k,k.scopeId,k.slotScopeIds,b.parent)}}},D=(h,d,g,v,b,w,k,R,$=0)=>{for(let C=$;C<h.length;C++){const I=h[C]=R?lt(h[C]):Ge(h[C]);y(null,I,d,g,v,b,w,k,R)}},Ce=(h,d,g,v,b,w,k)=>{const R=d.el=h.el;let{patchFlag:$,dynamicChildren:C,dirs:I}=d;$|=h.patchFlag&16;const T=h.props||he,j=d.props||he;let B;if(g&&jt(g,!1),(B=j.onVnodeBeforeUpdate)&&Ze(B,g,d,h),I&&Pt(d,h,g,"beforeUpdate"),g&&jt(g,!0),(T.innerHTML&&j.innerHTML==null||T.textContent&&j.textContent==null)&&u(R,""),C?me(h.dynamicChildren,C,R,g,v,cs(d,b),w):k||fe(h,d,R,null,g,v,cs(d,b),w,!1),$>0){if($&16)U(R,T,j,g,b);else if($&2&&T.class!==j.class&&i(R,"class",null,j.class,b),$&4&&i(R,"style",T.style,j.style,b),$&8){const Z=d.dynamicProps;for(let se=0;se<Z.length;se++){const ae=Z[se],De=T[ae],$e=j[ae];($e!==De||ae==="value")&&i(R,ae,De,$e,b,g)}}$&1&&h.children!==d.children&&u(R,d.children)}else!k&&C==null&&U(R,T,j,g,b);((B=j.onVnodeUpdated)||I)&&Ee(()=>{B&&Ze(B,g,d,h),I&&Pt(d,h,g,"updated")},v)},me=(h,d,g,v,b,w,k)=>{for(let R=0;R<d.length;R++){const $=h[R],C=d[R],I=$.el&&($.type===ie||!Rn($,C)||$.shapeFlag&198)?f($.el):g;y($,C,I,null,v,b,w,k,!0)}},U=(h,d,g,v,b)=>{if(d!==g){if(d!==he)for(const w in d)!hn(w)&&!(w in g)&&i(h,w,d[w],null,b,v);for(const w in g){if(hn(w))continue;const k=g[w],R=d[w];k!==R&&w!=="value"&&i(h,w,R,k,b,v)}"value"in g&&i(h,"value",d.value,g.value,b)}},H=(h,d,g,v,b,w,k,R,$)=>{const C=d.el=h?h.el:o(""),I=d.anchor=h?h.anchor:o("");let{patchFlag:T,dynamicChildren:j,slotScopeIds:B}=d;B&&(R=R?R.concat(B):B),h==null?(r(C,g,v),r(I,g,v),D(d.children||[],g,I,b,w,k,R,$)):T>0&&T&64&&j&&h.dynamicChildren&&h.dynamicChildren.length===j.length?(me(h.dynamicChildren,j,g,b,w,k,R),(d.key!=null||b&&d===b.subTree)&&dl(h,d,!0)):fe(h,d,g,I,b,w,k,R,$)},re=(h,d,g,v,b,w,k,R,$)=>{d.slotScopeIds=R,h==null?d.shapeFlag&512?b.ctx.activate(d,g,v,k,$):F(d,g,v,b,w,k,$):Y(h,d,$)},F=(h,d,g,v,b,w,k)=>{const R=h.component=tu(h,v,b);if(kc(h)&&(R.ctx.renderer=Ct),nu(R,!1,k),R.asyncDep){if(b&&b.registerDep(R,K,k),!h.el){const $=R.subTree=ne(wt);_(null,$,d,g),h.placeholder=$.el}}else K(R,h,d,g,b,w,k)},Y=(h,d,g)=>{const v=d.component=h.component;if(Oc(h,d,g))if(v.asyncDep&&!v.asyncResolved){Ve(v,d,g);return}else v.next=d,v.update();else d.el=h.el,v.vnode=d},K=(h,d,g,v,b,w,k)=>{const R=()=>{if(h.isMounted){let{next:T,bu:j,u:B,parent:Z,vnode:se}=h;{const Fn=gl(h);if(Fn){T&&(T.el=se.el,Ve(h,T,k)),Fn.asyncDep.then(()=>{Ee(()=>{h.isUnmounted||C()},b)});return}}let ae=T,De;jt(h,!1),T?(T.el=se.el,Ve(h,T,k)):T=se,j&&Gn(j),(De=T.props&&T.props.onVnodeBeforeUpdate)&&Ze(De,Z,T,se),jt(h,!0);const $e=rl(h),Ue=h.subTree;h.subTree=$e,y(Ue,$e,f(Ue.el),Vt(Ue),h,b,w),T.el=$e.el,ae===null&&jc(h,$e.el),B&&Ee(B,b),(De=T.props&&T.props.onVnodeUpdated)&&Ee(()=>Ze(De,Z,T,se),b)}else{let T;const{props:j}=d,{bm:B,m:Z,parent:se,root:ae,type:De}=h,$e=_n(d);jt(h,!1),B&&Gn(B),!$e&&(T=j&&j.onVnodeBeforeMount)&&Ze(T,se,d),jt(h,!0);{ae.ce&&ae.ce._hasShadowRoot()&&ae.ce._injectChildStyle(De);const Ue=h.subTree=rl(h);y(null,Ue,g,v,h,b,w),d.el=Ue.el}if(Z&&Ee(Z,b),!$e&&(T=j&&j.onVnodeMounted)){const Ue=d;Ee(()=>Ze(T,se,Ue),b)}(d.shapeFlag&256||se&&_n(se.vnode)&&se.vnode.shapeFlag&256)&&h.a&&Ee(h.a,b),h.isMounted=!0,d=g=v=null}};h.scope.on();const $=h.effect=new Ci(R);h.scope.off();const C=h.update=$.run.bind($),I=h.job=$.runIfDirty.bind($);I.i=h,I.id=h.uid,$.scheduler=()=>es(I),jt(h,!0),C()},Ve=(h,d,g)=>{d.component=h;const v=h.vnode.props;h.vnode=d,h.next=null,Fc(h,d.props,v,g),Nc(h,d.children,g),dt(),qi(h),gt()},fe=(h,d,g,v,b,w,k,R,$=!1)=>{const C=h&&h.children,I=h?h.shapeFlag:0,T=d.children,{patchFlag:j,shapeFlag:B}=d;if(j>0){if(j&128){Nt(C,T,g,v,b,w,k,R,$);return}else if(j&256){xt(C,T,g,v,b,w,k,R,$);return}}B&8?(I&16&&Bt(C,b,w),T!==C&&u(g,T)):I&16?B&16?Nt(C,T,g,v,b,w,k,R,$):Bt(C,b,w,!0):(I&8&&u(g,""),B&16&&D(T,g,v,b,w,k,R,$))},xt=(h,d,g,v,b,w,k,R,$)=>{h=h||Kt,d=d||Kt;const C=h.length,I=d.length,T=Math.min(C,I);let j;for(j=0;j<T;j++){const B=d[j]=$?lt(d[j]):Ge(d[j]);y(h[j],B,g,null,b,w,k,R,$)}C>I?Bt(h,b,w,!0,!1,T):D(d,g,v,b,w,k,R,$,T)},Nt=(h,d,g,v,b,w,k,R,$)=>{let C=0;const I=d.length;let T=h.length-1,j=I-1;for(;C<=T&&C<=j;){const B=h[C],Z=d[C]=$?lt(d[C]):Ge(d[C]);if(Rn(B,Z))y(B,Z,g,null,b,w,k,R,$);else break;C++}for(;C<=T&&C<=j;){const B=h[T],Z=d[j]=$?lt(d[j]):Ge(d[j]);if(Rn(B,Z))y(B,Z,g,null,b,w,k,R,$);else break;T--,j--}if(C>T){if(C<=j){const B=j+1,Z=B<I?d[B].el:v;for(;C<=j;)y(null,d[C]=$?lt(d[C]):Ge(d[C]),g,Z,b,w,k,R,$),C++}}else if(C>j)for(;C<=T;)Je(h[C],b,w,!0),C++;else{const B=C,Z=C,se=new Map;for(C=Z;C<=j;C++){const je=d[C]=$?lt(d[C]):Ge(d[C]);je.key!=null&&se.set(je.key,C)}let ae,De=0;const $e=j-Z+1;let Ue=!1,Fn=0;const Dn=new Array($e);for(C=0;C<$e;C++)Dn[C]=0;for(C=B;C<=T;C++){const je=h[C];if(De>=$e){Je(je,b,w,!0);continue}let Xe;if(je.key!=null)Xe=se.get(je.key);else for(ae=Z;ae<=j;ae++)if(Dn[ae-Z]===0&&Rn(je,d[ae])){Xe=ae;break}Xe===void 0?Je(je,b,w,!0):(Dn[Xe-Z]=C+1,Xe>=Fn?Fn=Xe:Ue=!0,y(je,d[Xe],g,null,b,w,k,R,$),De++)}const qo=Ue?Kc(Dn):Kt;for(ae=qo.length-1,C=$e-1;C>=0;C--){const je=Z+C,Xe=d[je],Ko=d[je+1],Go=je+1<I?Ko.el||vl(Ko):v;Dn[C]===0?y(null,Xe,g,Go,b,w,k,R,$):Ue&&(ae<0||C!==qo[ae]?_t(Xe,g,Go,2):ae--)}}},_t=(h,d,g,v,b=null)=>{const{el:w,type:k,transition:R,children:$,shapeFlag:C}=h;if(C&6){_t(h.component.subTree,d,g,v);return}if(C&128){h.suspense.move(d,g,v);return}if(C&64){k.move(h,d,g,Ct);return}if(k===ie){r(w,d,g);for(let T=0;T<$.length;T++)_t($[T],d,g,v);r(h.anchor,d,g);return}if(k===us){O(h,d,g);return}if(v!==2&&C&1&&R)if(v===0)R.beforeEnter(w),r(w,d,g),Ee(()=>R.enter(w),b);else{const{leave:T,delayLeave:j,afterLeave:B}=R,Z=()=>{h.ctx.isUnmounted?s(w):r(w,d,g)},se=()=>{w._isLeaving&&w[yc](!0),T(w,()=>{Z(),B&&B()})};j?j(w,Z,se):se()}else r(w,d,g)},Je=(h,d,g,v=!1,b=!1)=>{const{type:w,props:k,ref:R,children:$,dynamicChildren:C,shapeFlag:I,patchFlag:T,dirs:j,cacheIndex:B}=h;if(T===-2&&(b=!1),R!=null&&(dt(),xn(R,null,g,h,!0),gt()),B!=null&&(d.renderCache[B]=void 0),I&256){d.ctx.deactivate(h);return}const Z=I&1&&j,se=!_n(h);let ae;if(se&&(ae=k&&k.onVnodeBeforeUnmount)&&Ze(ae,d,h),I&6)Os(h.component,g,v);else{if(I&128){h.suspense.unmount(g,v);return}Z&&Pt(h,null,d,"beforeUnmount"),I&64?h.type.remove(h,d,g,Ct,v):C&&!C.hasOnce&&(w!==ie||T>0&&T&64)?Bt(C,d,g,!1,!0):(w===ie&&T&384||!b&&I&16)&&Bt($,d,g),v&&an(h)}(se&&(ae=k&&k.onVnodeUnmounted)||Z)&&Ee(()=>{ae&&Ze(ae,d,h),Z&&Pt(h,null,d,"unmounted")},g)},an=h=>{const{type:d,el:g,anchor:v,transition:b}=h;if(d===ie){Ps(g,v);return}if(d===us){S(h);return}const w=()=>{s(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(h.shapeFlag&1&&b&&!b.persisted){const{leave:k,delayLeave:R}=b,$=()=>k(g,w);R?R(h.el,w,$):$()}else w()},Ps=(h,d)=>{let g;for(;h!==d;)g=p(h),s(h),h=g;s(d)},Os=(h,d,g)=>{const{bum:v,scope:b,job:w,subTree:k,um:R,m:$,a:C}=h;ml($),ml(C),v&&Gn(v),b.stop(),w&&(w.flags|=8,Je(k,h,d,g)),R&&Ee(R,d),Ee(()=>{h.isUnmounted=!0},d)},Bt=(h,d,g,v=!1,b=!1,w=0)=>{for(let k=w;k<h.length;k++)Je(h[k],d,g,v,b)},Vt=h=>{if(h.shapeFlag&6)return Vt(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const d=p(h.anchor||h.el),g=d&&d[vc];return g?p(g):d};let zn=!1;const jr=(h,d,g)=>{let v;h==null?d._vnode&&(Je(d._vnode,null,null,!0),v=d._vnode.component):y(d._vnode||null,h,d,null,null,null,g),d._vnode=h,zn||(zn=!0,qi(v),Ki(),zn=!1)},Ct={p:y,um:Je,m:_t,r:an,mt:F,mc:D,pc:fe,pbc:me,n:Vt,o:e};return{render:jr,hydrate:void 0,createApp:Ec(jr)}}function cs({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 jt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function qc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function dl(e,t,n=!1){const r=e.children,s=t.children;if(V(r)&&V(s))for(let i=0;i<r.length;i++){const l=r[i];let o=s[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=s[i]=lt(s[i]),o.el=l.el),!n&&o.patchFlag!==-2&&dl(l,o)),o.type===pr&&(o.patchFlag===-1&&(o=s[i]=lt(o)),o.el=l.el),o.type===wt&&!o.el&&(o.el=l.el)}}function Kc(e){const t=e.slice(),n=[0];let r,s,i,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(i=0,l=n.length-1;i<l;)o=i+l>>1,e[n[o]]<c?i=o+1:l=o;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}function gl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:gl(t)}function ml(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function vl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?vl(t.subTree):null}const bl=e=>e.__isSuspense;function Gc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):hc(e)}const ie=Symbol.for("v-fgt"),pr=Symbol.for("v-txt"),wt=Symbol.for("v-cmt"),us=Symbol.for("v-stc"),$n=[];let Oe=null;function E(e=!1){$n.push(Oe=e?null:[])}function Zc(){$n.pop(),Oe=$n[$n.length-1]||null}let Sn=1;function dr(e,t=!1){Sn+=e,e<0&&Oe&&t&&(Oe.hasOnce=!0)}function yl(e){return e.dynamicChildren=Sn>0?Oe||Kt:null,Zc(),Sn>0&&Oe&&Oe.push(e),e}function P(e,t,n,r,s,i){return yl(M(e,t,n,r,s,i,!0))}function Ke(e,t,n,r,s){return yl(ne(e,t,n,r,s,!0))}function gr(e){return e?e.__v_isVNode===!0:!1}function Rn(e,t){return e.type===t.type&&e.key===t.key}const wl=({key:e})=>e??null,mr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||be(e)||te(e)?{i:Pe,r:e,k:t,f:!!n}:e:null);function M(e,t=null,n=null,r=0,s=null,i=e===ie?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&wl(t),ref:t&&mr(t),scopeId:Zi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Pe};return o?(fs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),Sn>0&&!l&&Oe&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Oe.push(a),a}const ne=Yc;function Yc(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===$c)&&(e=wt),gr(e)){const o=rn(e,t,!0);return n&&fs(o,n),Sn>0&&!i&&Oe&&(o.shapeFlag&6?Oe[Oe.indexOf(e)]=o:Oe.push(o)),o.patchFlag=-2,o}if(ou(e)&&(e=e.__vccOpts),t){t=Qc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=ve(o)),ce(a)&&(rr(a)&&!V(a)&&(a=Le({},a)),t.style=At(a))}const l=ye(e)?1:bl(e)?128:bc(e)?64:ce(e)?4:te(e)?2:0;return M(e,t,n,r,s,l,i,!0)}function Qc(e){return e?rr(e)||al(e)?Le({},e):e:null}function rn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:l,children:o,transition:a}=e,c=t?Jc(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&wl(c),ref:t&&t.ref?n&&i?V(i)?i.concat(mr(t)):[i,mr(t)]:mr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?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&&rn(e.ssContent),ssFallback:e.ssFallback&&rn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&ts(u,a.clone(u)),u}function it(e=" ",t=0){return ne(pr,null,e,t)}function q(e="",t=!1){return t?(E(),Ke(wt,null,e)):ne(wt,null,e)}function Ge(e){return e==null||typeof e=="boolean"?ne(wt):V(e)?ne(ie,null,e.slice()):gr(e)?lt(e):ne(pr,null,String(e))}function lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:rn(e)}function fs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),fs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!al(t)?t._ctx=Pe:s===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),r&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(s==="style")t.style=At([t.style,r.style]);else if(Vn(s)){const i=t[s],l=r[s];l&&i!==l&&!(V(i)&&i.includes(l))&&(t[s]=i?[].concat(i,l):l)}else s!==""&&(t[s]=r[s])}return t}function Ze(e,t,n,r=null){st(e,t,7,[n,r])}const Xc=nl();let eu=0;function tu(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Xc,i={uid:eu++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Aa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Dc(r,s),emitsOptions:Ic(r,s),emit:null,emitted:null,propsDefaults:he,inheritAttrs:r.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Lc.bind(null,i),e.ce&&e.ce(i),i}let Te=null;const hs=()=>Te||Pe;let vr,ps;{const e=pn(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(l=>l(i)):s[0](i)}};vr=t("__VUE_INSTANCE_SETTERS__",n=>Te=n),ps=t("__VUE_SSR_SETTERS__",n=>An=n)}const ds=e=>{const t=Te;return vr(e),e.scope.on(),()=>{e.scope.off(),vr(t)}},kl=()=>{Te&&Te.scope.off(),vr(null)};function xl(e){return e.vnode.shapeFlag&4}let An=!1;function nu(e,t=!1,n=!1){t&&ps(t);const{props:r,children:s}=e.vnode,i=xl(e);zc(e,r,i,t),Hc(e,s,n||t);const l=i?ru(e,t):void 0;return t&&ps(!1),l}function ru(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Rc);const{setup:r}=n;if(r){dt();const s=e.setupContext=r.length>1?iu(e):null,i=ds(e),l=wn(r,e,0,[e.props,s]),o=gi(l);if(gt(),i(),(o||e.sp)&&!_n(e)&&wc(e),o){if(l.then(kl,kl),t)return l.then(a=>{_l(e,a,t)}).catch(a=>{lr(a,e,0)});e.asyncDep=l}else _l(e,l,t)}else $l(e,t)}function _l(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=Bi(t)),$l(e,n)}let Cl;function $l(e,t,n){const r=e.type;if(!e.render){if(!t&&Cl&&!r.render){const s=r.template||!1;if(s){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Le(Le({isCustomElement:i,delimiters:o},l),a);r.render=Cl(s,c)}}e.render=r.render||St}}const su={get(e,t){return ke(e,"get",""),e[t]}};function iu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,su),slots:e.slots,emit:e.emit,expose:t}}function br(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Bi(Qa(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Cn)return Cn[n](e)},has(t,n){return n in t||n in Cn}})):e.proxy}function lu(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function ou(e){return te(e)&&"__vccOpts"in e}const de=(e,t)=>oc(e,t,An);function J(e,t,n){try{dr(-1);const r=arguments.length;return r===2?ce(t)&&!V(t)?gr(t)?ne(e,null,[t]):ne(e,t):ne(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gr(n)&&(n=[n]),ne(e,t,n))}finally{dr(1)}}const au="3.5.28";/**
|
|
24
|
+
**/function wn(e,t,n,r){try{return r?e(...r):e()}catch(s){lr(s,t,n)}}function st(e,t,n,r){if(ne(e)){const s=wn(e,t,n,r);return s&&mi(s)&&s.catch(i=>{lr(i,t,n)}),s}if(V(e)){const s=[];for(let i=0;i<e.length;i++)s.push(st(e[i],t,n,r));return s}}function lr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||he;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}o=o.parent}if(i){dt(),wn(i,null,10,[e,a,c]),gt();return}}hc(e,n,s,r,l)}function hc(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const xe=[];let qe=-1;const Qt=[];let vt=null,Xt=0;const Wi=Promise.resolve();let or=null;function en(e){const t=or||Wi;return e?t.then(this?e.bind(this):e):t}function pc(e){let t=qe+1,n=xe.length;for(;t<n;){const r=t+n>>>1,s=xe[r],i=kn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function es(e){if(!(e.flags&1)){const t=kn(e),n=xe[xe.length-1];!n||!(e.flags&2)&&t>=kn(n)?xe.push(e):xe.splice(pc(t),0,e),e.flags|=1,qi()}}function qi(){or||(or=Wi.then(Zi))}function dc(e){V(e)?Qt.push(...e):vt&&e.id===-1?vt.splice(Xt+1,0,e):e.flags&1||(Qt.push(e),e.flags|=1),qi()}function Ki(e,t,n=qe+1){for(;n<xe.length;n++){const r=xe[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;xe.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Gi(e){if(Qt.length){const t=[...new Set(Qt)].sort((n,r)=>kn(n)-kn(r));if(Qt.length=0,vt){vt.push(...t);return}for(vt=t,Xt=0;Xt<vt.length;Xt++){const n=vt[Xt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vt=null,Xt=0}}const kn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Zi(e){try{for(qe=0;qe<xe.length;qe++){const t=xe[qe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),wn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;qe<xe.length;qe++){const t=xe[qe];t&&(t.flags&=-2)}qe=-1,xe.length=0,Gi(),or=null,(xe.length||Qt.length)&&Zi()}}let Pe=null,Yi=null;function ar(e){const t=Pe;return Pe=e,Yi=e&&e.type.__scopeId||null,t}function gc(e,t=Pe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&dr(-1);const i=ar(t);let l;try{l=e(...s)}finally{ar(i),r._d&&dr(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function cr(e,t){if(Pe===null)return e;const n=br(Pe),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,o,a=he]=t[s];i&&(ne(i)&&(i={mounted:i,updated:i}),i.deep&&rt(l),r.push({dir:i,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Pt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let l=0;l<s.length;l++){const o=s[l];i&&(o.oldValue=i[l].value);let a=o.dir[r];a&&(dt(),st(a,n,8,[e.el,o,e,t]),gt())}}function mc(e,t){if(Te){let n=Te.provides;const r=Te.parent&&Te.parent.provides;r===n&&(n=Te.provides=Object.create(r)),n[e]=t}}function ur(e,t,n=!1){const r=hs();if(r||nn){let s=nn?nn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ne(t)?t.call(r&&r.proxy):t}}const vc=Symbol.for("v-scx"),bc=()=>ur(vc);function Ji(e,t){return Qi(e,null,t)}function bt(e,t,n){return Qi(e,t,n)}function Qi(e,t,n=he){const{immediate:r,flush:s}=n,i=Le({},n),l=t&&r||!t&&s!=="post";let o;if(An){if(s==="sync"){const f=bc();o=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=St,f.resume=St,f.pause=St,f}}const a=Te;i.call=(f,p,m)=>st(f,a,p,m);let c=!1;s==="post"?i.scheduler=f=>{Ee(f,a&&a.suspense)}:s!=="sync"&&(c=!0,i.scheduler=(f,p)=>{p?f():es(f)}),i.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,a&&(f.id=a.uid,f.i=a))};const u=fc(e,t,i);return An&&(o?o.push(u):l&&u()),u}const yc=Symbol("_vte"),wc=e=>e.__isTeleport,kc=Symbol("_leaveCb");function ts(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ts(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zt(e,t){return ne(e)?Le({name:e.name},t,{setup:e}):e}function xc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function yt(e){const t=hs(),n=It(null);if(t){const s=t.refs===he?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function Xi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const fr=new WeakMap;function xn(e,t,n,r,s=!1){if(V(e)){e.forEach((y,A)=>xn(y,t&&(V(t)?t[A]:t),n,r,s));return}if(_n(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&xn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?br(r.component):r.el,l=s?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===he?o.refs={}:o.refs,f=o.setupState,p=ee(f),m=f===he?pi:y=>Xi(u,y)?!1:le(p,y),x=(y,A)=>!(A&&Xi(u,A));if(c!=null&&c!==a){if(el(t),ye(c))u[c]=null,m(c)&&(f[c]=null);else if(be(c)){const y=t;x(c,y.k)&&(c.value=null),y.k&&(u[y.k]=null)}}if(ne(a))wn(a,o,12,[l,u]);else{const y=ye(a),A=be(a);if(y||A){const _=()=>{if(e.f){const L=y?m(a)?f[a]:u[a]:x()||!e.k?a.value:u[e.k];if(s)V(L)&&di(L,i);else if(V(L))L.includes(i)||L.push(i);else if(y)u[a]=[i],m(a)&&(f[a]=u[a]);else{const z=[i];x(a,e.k)&&(a.value=z),e.k&&(u[e.k]=z)}}else y?(u[a]=l,m(a)&&(f[a]=l)):A&&(x(a,e.k)&&(a.value=l),e.k&&(u[e.k]=l))};if(l){const L=()=>{_(),fr.delete(e)};L.id=-1,fr.set(e,L),Ee(L,n)}else el(e),_()}}}function el(e){const t=fr.get(e);t&&(t.flags|=8,fr.delete(e))}pn().requestIdleCallback,pn().cancelIdleCallback;const _n=e=>!!e.type.__asyncLoader,_c=e=>e.type.__isKeepAlive;function Cc(e,t,n=Te,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{dt();const o=ds(n),a=st(t,n,e,l);return o(),gt(),a});return r?s.unshift(i):s.push(i),i}}const ns=e=>(t,n=Te)=>{(!An||e==="sp")&&Cc(e,(...r)=>t(...r),n)},tn=ns("m"),$c=ns("bum"),rs=ns("um"),Sc="components";function tl(e,t){return Ac(Sc,e,!0,t)||e}const Rc=Symbol.for("v-ndc");function Ac(e,t,n=!0,r=!1){const s=Pe||Te;if(s){const i=s.type;{const o=au(i,!1);if(o&&(o===t||o===Fe(t)||o===Kn(Fe(t))))return i}const l=nl(s[e]||i[e],t)||nl(s.appContext[e],t);return!l&&r?i:l}}function nl(e,t){return e&&(e[t]||e[Fe(t)]||e[Kn(Fe(t))])}function Ae(e,t,n,r){let s;const i=n,l=V(e);if(l||ye(e)){const o=l&&Lt(e);let a=!1,c=!1;o&&(a=!Ie(e),c=nt(e),e=Qn(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?Jt(Be(e[u])):Be(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let o=0;o<e;o++)s[o]=t(o+1,o,void 0,i)}else if(ce(e))if(e[Symbol.iterator])s=Array.from(e,(o,a)=>t(o,a,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];s[a]=t(e[u],u,a,i)}}else s=[];return s}const ss=e=>e?_l(e)?br(e):ss(e.parent):null,Cn=Le(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=>ss(e.parent),$root:e=>ss(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{es(e.update)}),$nextTick:e=>e.n||(e.n=en.bind(e.proxy)),$watch:e=>St}),is=(e,t)=>e!==he&&!e.__isScriptSetup&&le(e,t),Ec={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:o,appContext:a}=e;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(is(r,t))return l[t]=1,r[t];if(le(i,t))return l[t]=3,i[t];if(n!==he&&le(n,t))return l[t]=4,n[t];l[t]=0}}const c=Cn[t];let u,f;if(c)return t==="$attrs"&&ke(e.attrs,"get",""),c(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(n!==he&&le(n,t))return l[t]=4,n[t];if(f=a.config.globalProperties,le(f,t))return f[t]},set({_:e},t,n){const{setupState:r,ctx:s}=e;return is(r,t)?(r[t]=n,!0):le(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:i,type:l}},o){let a;return!!(n[o]||is(t,o)||le(i,o)||le(r,o)||le(Cn,o)||le(s.config.globalProperties,o)||(a=l.__cssModules)&&a[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function rl(){return{app:null,config:{isNativeTag:pi,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 Tc=0;function Lc(e,t){return function(r,s=null){ne(r)||(r=Le({},r)),s!=null&&!ce(s)&&(s=null);const i=rl(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:Tc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:uu,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&ne(u.install)?(l.add(u),u.install(c,...f)):ne(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,p){if(!a){const m=c._ceVNode||Q(r,s);return m.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(m,u,p),a=!0,c._container=u,u.__vue_app__=c,br(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(st(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=nn;nn=c;try{return u()}finally{nn=f}}};return c}}let nn=null;const Ic=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Fe(t)}Modifiers`]||e[`${Rt(t)}Modifiers`];function Mc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||he;let s=n;const i=t.startsWith("update:"),l=i&&Ic(r,t.slice(7));l&&(l.trim&&(s=n.map(u=>ye(u)?u.trim():u)),l.number&&(s=n.map(Zn)));let o,a=r[o=Nr(t)]||r[o=Nr(Fe(t))];!a&&i&&(a=r[o=Nr(Rt(t))]),a&&st(a,e,6,s);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,st(c,e,6,s)}}function Pc(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let l={};return i?(V(i)?i.forEach(o=>l[o]=null):Le(l,i),ce(e)&&r.set(e,l),l):(ce(e)&&r.set(e,null),null)}function hr(e,t){return!e||!Vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,Rt(t))||le(e,t))}function sl(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:f,data:p,setupState:m,ctx:x,inheritAttrs:y}=e,A=ar(e);let _,L;try{if(n.shapeFlag&4){const S=s||r,O=S;_=Ge(c.call(O,S,u,f,m,p,x)),L=o}else{const S=t;_=Ge(S.length>1?S(f,{attrs:o,slots:l,emit:a}):S(f,null)),L=t.props?o:zc(o)}}catch(S){$n.length=0,lr(S,e,1),_=Q(wt)}let z=_;if(L&&y!==!1){const S=Object.keys(L),{shapeFlag:O}=z;S.length&&O&7&&(i&&S.some(Hr)&&(L=jc(L,i)),z=rn(z,L,!1,!0))}return n.dirs&&(z=rn(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(n.dirs):n.dirs),n.transition&&ts(z,n.transition),_=z,ar(A),_}const zc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vn(n))&&((t||(t={}))[n]=e[n]);return t},jc=(e,t)=>{const n={};for(const r in e)(!Hr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Oc(e,t,n){const{props:r,children:s,component:i}=e,{props:l,children:o,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?il(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(ll(l,r,p)&&!hr(c,p))return!0}}}else return(s||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?il(r,l,c):!0:!!l;return!1}function il(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(ll(t,e,i)&&!hr(n,i))return!0}return!1}function ll(e,t,n){const r=e[n],s=t[n];return n==="style"&&ce(r)&&ce(s)?!pt(r,s):r!==s}function Fc({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const ol={},al=()=>Object.create(ol),cl=e=>Object.getPrototypeOf(e)===ol;function Dc(e,t,n,r=!1){const s={},i=al();e.propsDefaults=Object.create(null),ul(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Ja(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Uc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,o=ee(s),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(hr(e.emitsOptions,p))continue;const m=t[p];if(a)if(le(i,p))m!==i[p]&&(i[p]=m,c=!0);else{const x=Fe(p);s[x]=ls(a,o,x,m,e,!1)}else m!==i[p]&&(i[p]=m,c=!0)}}}else{ul(e,t,s,i)&&(c=!0);let u;for(const f in o)(!t||!le(t,f)&&((u=Rt(f))===f||!le(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=ls(a,o,f,void 0,e,!0)):delete s[f]);if(i!==o)for(const f in i)(!t||!le(t,f))&&(delete i[f],c=!0)}c&&et(e.attrs,"set","")}function ul(e,t,n,r){const[s,i]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(hn(a))continue;const c=t[a];let u;s&&le(s,u=Fe(a))?!i||!i.includes(u)?n[u]=c:(o||(o={}))[u]=c:hr(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(i){const a=ee(n),c=o||he;for(let u=0;u<i.length;u++){const f=i[u];n[f]=ls(s,a,f,c[f],e,!le(c,f))}}return l}function ls(e,t,n,r,s,i){const l=e[n];if(l!=null){const o=le(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ne(a)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=ds(s);r=c[n]=a.call(null,t),u()}}else r=a;s.ce&&s.ce._setProp(n,r)}l[0]&&(i&&!o?r=!1:l[1]&&(r===""||r===Rt(n))&&(r=!0))}return r}function Hc(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,l={},o=[];if(!i)return ce(e)&&r.set(e,Kt),Kt;if(V(i))for(let c=0;c<i.length;c++){const u=Fe(i[c]);fl(u)&&(l[u]=he)}else if(i)for(const c in i){const u=Fe(c);if(fl(u)){const f=i[c],p=l[u]=V(f)||ne(f)?{type:f}:Le({},f),m=p.type;let x=!1,y=!0;if(V(m))for(let A=0;A<m.length;++A){const _=m[A],L=ne(_)&&_.name;if(L==="Boolean"){x=!0;break}else L==="String"&&(y=!1)}else x=ne(m)&&m.name==="Boolean";p[0]=x,p[1]=y,(x||le(p,"default"))&&o.push(u)}}const a=[l,o];return ce(e)&&r.set(e,a),a}function fl(e){return e[0]!=="$"&&!hn(e)}const os=e=>e==="_"||e==="_ctx"||e==="$stable",as=e=>V(e)?e.map(Ge):[Ge(e)],Nc=(e,t,n)=>{if(t._n)return t;const r=gc((...s)=>as(t(...s)),n);return r._c=!1,r},hl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(os(s))continue;const i=e[s];if(ne(i))t[s]=Nc(s,i,r);else if(i!=null){const l=as(i);t[s]=()=>l}}},pl=(e,t)=>{const n=as(t);e.slots.default=()=>n},dl=(e,t,n)=>{for(const r in t)(n||!os(r))&&(e[r]=t[r])},Bc=(e,t,n)=>{const r=e.slots=al();if(e.vnode.shapeFlag&32){const s=t._;s?(dl(r,t,n),n&&yi(r,"_",s,!0)):hl(t,r)}else t&&pl(e,t)},Vc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=he;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:dl(s,t,n):(i=!t.$stable,hl(t,s)),l=t}else t&&(pl(e,t),l={default:1});if(i)for(const o in s)!os(o)&&l[o]==null&&delete s[o]};function Wc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(pn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ee=Yc;function qc(e){return Kc(e)}function Kc(e,t){Wc();const n=pn();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:m=St,insertStaticContent:x}=e,y=(h,d,g,v=null,b=null,w=null,k=void 0,R=null,$=!!d.dynamicChildren)=>{if(h===d)return;h&&!Rn(h,d)&&(v=Vt(h),Qe(h,b,w,!0),h=null),d.patchFlag===-2&&($=!1,d.dynamicChildren=null);const{type:C,ref:M,shapeFlag:T}=d;switch(C){case pr:A(h,d,g,v);break;case wt:_(h,d,g,v);break;case us:h==null&&L(d,g,v,k);break;case ie:N(h,d,g,v,b,w,k,R,$);break;default:T&1?O(h,d,g,v,b,w,k,R,$):T&6?re(h,d,g,v,b,w,k,R,$):(T&64||T&128)&&C.process(h,d,g,v,b,w,k,R,$,Ct)}M!=null&&b?xn(M,h&&h.ref,w,d||h,!d):M==null&&h&&h.ref!=null&&xn(h.ref,null,w,h,!0)},A=(h,d,g,v)=>{if(h==null)r(d.el=o(d.children),g,v);else{const b=d.el=h.el;d.children!==h.children&&c(b,d.children)}},_=(h,d,g,v)=>{h==null?r(d.el=a(d.children||""),g,v):d.el=h.el},L=(h,d,g,v)=>{[h.el,h.anchor]=x(h.children,d,g,v,h.el,h.anchor)},z=({el:h,anchor:d},g,v)=>{let b;for(;h&&h!==d;)b=p(h),r(h,g,v),h=b;r(d,g,v)},S=({el:h,anchor:d})=>{let g;for(;h&&h!==d;)g=p(h),s(h),h=g;s(d)},O=(h,d,g,v,b,w,k,R,$)=>{if(d.type==="svg"?k="svg":d.type==="math"&&(k="mathml"),h==null)pe(d,g,v,b,w,k,R,$);else{const C=h.el&&h.el._isVueCE?h.el:null;try{C&&C._beginPatch(),Ce(h,d,b,w,k,R,$)}finally{C&&C._endPatch()}}},pe=(h,d,g,v,b,w,k,R)=>{let $,C;const{props:M,shapeFlag:T,transition:j,dirs:B}=h;if($=h.el=l(h.type,w,M&&M.is,M),T&8?u($,h.children):T&16&&D(h.children,$,null,v,b,cs(h,w),k,R),B&&Pt(h,null,v,"created"),oe($,h,h.scopeId,k,v),M){for(const se in M)se!=="value"&&!hn(se)&&i($,se,null,M[se],w,v);"value"in M&&i($,"value",null,M.value,w),(C=M.onVnodeBeforeMount)&&Ze(C,v,h)}B&&Pt(h,null,v,"beforeMount");const J=Gc(b,j);J&&j.beforeEnter($),r($,d,g),((C=M&&M.onVnodeMounted)||J||B)&&Ee(()=>{C&&Ze(C,v,h),J&&j.enter($),B&&Pt(h,null,v,"mounted")},b)},oe=(h,d,g,v,b)=>{if(g&&m(h,g),v)for(let w=0;w<v.length;w++)m(h,v[w]);if(b){let w=b.subTree;if(d===w||yl(w.type)&&(w.ssContent===d||w.ssFallback===d)){const k=b.vnode;oe(h,k,k.scopeId,k.slotScopeIds,b.parent)}}},D=(h,d,g,v,b,w,k,R,$=0)=>{for(let C=$;C<h.length;C++){const M=h[C]=R?lt(h[C]):Ge(h[C]);y(null,M,d,g,v,b,w,k,R)}},Ce=(h,d,g,v,b,w,k)=>{const R=d.el=h.el;let{patchFlag:$,dynamicChildren:C,dirs:M}=d;$|=h.patchFlag&16;const T=h.props||he,j=d.props||he;let B;if(g&&jt(g,!1),(B=j.onVnodeBeforeUpdate)&&Ze(B,g,d,h),M&&Pt(d,h,g,"beforeUpdate"),g&&jt(g,!0),(T.innerHTML&&j.innerHTML==null||T.textContent&&j.textContent==null)&&u(R,""),C?me(h.dynamicChildren,C,R,g,v,cs(d,b),w):k||fe(h,d,R,null,g,v,cs(d,b),w,!1),$>0){if($&16)H(R,T,j,g,b);else if($&2&&T.class!==j.class&&i(R,"class",null,j.class,b),$&4&&i(R,"style",T.style,j.style,b),$&8){const J=d.dynamicProps;for(let se=0;se<J.length;se++){const ae=J[se],Ue=T[ae],$e=j[ae];($e!==Ue||ae==="value")&&i(R,ae,Ue,$e,b,g)}}$&1&&h.children!==d.children&&u(R,d.children)}else!k&&C==null&&H(R,T,j,g,b);((B=j.onVnodeUpdated)||M)&&Ee(()=>{B&&Ze(B,g,d,h),M&&Pt(d,h,g,"updated")},v)},me=(h,d,g,v,b,w,k)=>{for(let R=0;R<d.length;R++){const $=h[R],C=d[R],M=$.el&&($.type===ie||!Rn($,C)||$.shapeFlag&198)?f($.el):g;y($,C,M,null,v,b,w,k,!0)}},H=(h,d,g,v,b)=>{if(d!==g){if(d!==he)for(const w in d)!hn(w)&&!(w in g)&&i(h,w,d[w],null,b,v);for(const w in g){if(hn(w))continue;const k=g[w],R=d[w];k!==R&&w!=="value"&&i(h,w,R,k,b,v)}"value"in g&&i(h,"value",d.value,g.value,b)}},N=(h,d,g,v,b,w,k,R,$)=>{const C=d.el=h?h.el:o(""),M=d.anchor=h?h.anchor:o("");let{patchFlag:T,dynamicChildren:j,slotScopeIds:B}=d;B&&(R=R?R.concat(B):B),h==null?(r(C,g,v),r(M,g,v),D(d.children||[],g,M,b,w,k,R,$)):T>0&&T&64&&j&&h.dynamicChildren&&h.dynamicChildren.length===j.length?(me(h.dynamicChildren,j,g,b,w,k,R),(d.key!=null||b&&d===b.subTree)&&gl(h,d,!0)):fe(h,d,g,M,b,w,k,R,$)},re=(h,d,g,v,b,w,k,R,$)=>{d.slotScopeIds=R,h==null?d.shapeFlag&512?b.ctx.activate(d,g,v,k,$):F(d,g,v,b,w,k,$):X(h,d,$)},F=(h,d,g,v,b,w,k)=>{const R=h.component=ru(h,v,b);if(_c(h)&&(R.ctx.renderer=Ct),su(R,!1,k),R.asyncDep){if(b&&b.registerDep(R,G,k),!h.el){const $=R.subTree=Q(wt);_(null,$,d,g),h.placeholder=$.el}}else G(R,h,d,g,b,w,k)},X=(h,d,g)=>{const v=d.component=h.component;if(Oc(h,d,g))if(v.asyncDep&&!v.asyncResolved){Ve(v,d,g);return}else v.next=d,v.update();else d.el=h.el,v.vnode=d},G=(h,d,g,v,b,w,k)=>{const R=()=>{if(h.isMounted){let{next:T,bu:j,u:B,parent:J,vnode:se}=h;{const Fn=ml(h);if(Fn){T&&(T.el=se.el,Ve(h,T,k)),Fn.asyncDep.then(()=>{Ee(()=>{h.isUnmounted||C()},b)});return}}let ae=T,Ue;jt(h,!1),T?(T.el=se.el,Ve(h,T,k)):T=se,j&&Gn(j),(Ue=T.props&&T.props.onVnodeBeforeUpdate)&&Ze(Ue,J,T,se),jt(h,!0);const $e=sl(h),He=h.subTree;h.subTree=$e,y(He,$e,f(He.el),Vt(He),h,b,w),T.el=$e.el,ae===null&&Fc(h,$e.el),B&&Ee(B,b),(Ue=T.props&&T.props.onVnodeUpdated)&&Ee(()=>Ze(Ue,J,T,se),b)}else{let T;const{props:j}=d,{bm:B,m:J,parent:se,root:ae,type:Ue}=h,$e=_n(d);jt(h,!1),B&&Gn(B),!$e&&(T=j&&j.onVnodeBeforeMount)&&Ze(T,se,d),jt(h,!0);{ae.ce&&ae.ce._hasShadowRoot()&&ae.ce._injectChildStyle(Ue);const He=h.subTree=sl(h);y(null,He,g,v,h,b,w),d.el=He.el}if(J&&Ee(J,b),!$e&&(T=j&&j.onVnodeMounted)){const He=d;Ee(()=>Ze(T,se,He),b)}(d.shapeFlag&256||se&&_n(se.vnode)&&se.vnode.shapeFlag&256)&&h.a&&Ee(h.a,b),h.isMounted=!0,d=g=v=null}};h.scope.on();const $=h.effect=new $i(R);h.scope.off();const C=h.update=$.run.bind($),M=h.job=$.runIfDirty.bind($);M.i=h,M.id=h.uid,$.scheduler=()=>es(M),jt(h,!0),C()},Ve=(h,d,g)=>{d.component=h;const v=h.vnode.props;h.vnode=d,h.next=null,Uc(h,d.props,v,g),Vc(h,d.children,g),dt(),Ki(h),gt()},fe=(h,d,g,v,b,w,k,R,$=!1)=>{const C=h&&h.children,M=h?h.shapeFlag:0,T=d.children,{patchFlag:j,shapeFlag:B}=d;if(j>0){if(j&128){Nt(C,T,g,v,b,w,k,R,$);return}else if(j&256){xt(C,T,g,v,b,w,k,R,$);return}}B&8?(M&16&&Bt(C,b,w),T!==C&&u(g,T)):M&16?B&16?Nt(C,T,g,v,b,w,k,R,$):Bt(C,b,w,!0):(M&8&&u(g,""),B&16&&D(T,g,v,b,w,k,R,$))},xt=(h,d,g,v,b,w,k,R,$)=>{h=h||Kt,d=d||Kt;const C=h.length,M=d.length,T=Math.min(C,M);let j;for(j=0;j<T;j++){const B=d[j]=$?lt(d[j]):Ge(d[j]);y(h[j],B,g,null,b,w,k,R,$)}C>M?Bt(h,b,w,!0,!1,T):D(d,g,v,b,w,k,R,$,T)},Nt=(h,d,g,v,b,w,k,R,$)=>{let C=0;const M=d.length;let T=h.length-1,j=M-1;for(;C<=T&&C<=j;){const B=h[C],J=d[C]=$?lt(d[C]):Ge(d[C]);if(Rn(B,J))y(B,J,g,null,b,w,k,R,$);else break;C++}for(;C<=T&&C<=j;){const B=h[T],J=d[j]=$?lt(d[j]):Ge(d[j]);if(Rn(B,J))y(B,J,g,null,b,w,k,R,$);else break;T--,j--}if(C>T){if(C<=j){const B=j+1,J=B<M?d[B].el:v;for(;C<=j;)y(null,d[C]=$?lt(d[C]):Ge(d[C]),g,J,b,w,k,R,$),C++}}else if(C>j)for(;C<=T;)Qe(h[C],b,w,!0),C++;else{const B=C,J=C,se=new Map;for(C=J;C<=j;C++){const je=d[C]=$?lt(d[C]):Ge(d[C]);je.key!=null&&se.set(je.key,C)}let ae,Ue=0;const $e=j-J+1;let He=!1,Fn=0;const Dn=new Array($e);for(C=0;C<$e;C++)Dn[C]=0;for(C=B;C<=T;C++){const je=h[C];if(Ue>=$e){Qe(je,b,w,!0);continue}let Xe;if(je.key!=null)Xe=se.get(je.key);else for(ae=J;ae<=j;ae++)if(Dn[ae-J]===0&&Rn(je,d[ae])){Xe=ae;break}Xe===void 0?Qe(je,b,w,!0):(Dn[Xe-J]=C+1,Xe>=Fn?Fn=Xe:He=!0,y(je,d[Xe],g,null,b,w,k,R,$),Ue++)}const Go=He?Zc(Dn):Kt;for(ae=Go.length-1,C=$e-1;C>=0;C--){const je=J+C,Xe=d[je],Zo=d[je+1],Yo=je+1<M?Zo.el||bl(Zo):v;Dn[C]===0?y(null,Xe,g,Yo,b,w,k,R,$):He&&(ae<0||C!==Go[ae]?_t(Xe,g,Yo,2):ae--)}}},_t=(h,d,g,v,b=null)=>{const{el:w,type:k,transition:R,children:$,shapeFlag:C}=h;if(C&6){_t(h.component.subTree,d,g,v);return}if(C&128){h.suspense.move(d,g,v);return}if(C&64){k.move(h,d,g,Ct);return}if(k===ie){r(w,d,g);for(let T=0;T<$.length;T++)_t($[T],d,g,v);r(h.anchor,d,g);return}if(k===us){z(h,d,g);return}if(v!==2&&C&1&&R)if(v===0)R.beforeEnter(w),r(w,d,g),Ee(()=>R.enter(w),b);else{const{leave:T,delayLeave:j,afterLeave:B}=R,J=()=>{h.ctx.isUnmounted?s(w):r(w,d,g)},se=()=>{w._isLeaving&&w[kc](!0),T(w,()=>{J(),B&&B()})};j?j(w,J,se):se()}else r(w,d,g)},Qe=(h,d,g,v=!1,b=!1)=>{const{type:w,props:k,ref:R,children:$,dynamicChildren:C,shapeFlag:M,patchFlag:T,dirs:j,cacheIndex:B}=h;if(T===-2&&(b=!1),R!=null&&(dt(),xn(R,null,g,h,!0),gt()),B!=null&&(d.renderCache[B]=void 0),M&256){d.ctx.deactivate(h);return}const J=M&1&&j,se=!_n(h);let ae;if(se&&(ae=k&&k.onVnodeBeforeUnmount)&&Ze(ae,d,h),M&6)zs(h.component,g,v);else{if(M&128){h.suspense.unmount(g,v);return}J&&Pt(h,null,d,"beforeUnmount"),M&64?h.type.remove(h,d,g,Ct,v):C&&!C.hasOnce&&(w!==ie||T>0&&T&64)?Bt(C,d,g,!1,!0):(w===ie&&T&384||!b&&M&16)&&Bt($,d,g),v&&an(h)}(se&&(ae=k&&k.onVnodeUnmounted)||J)&&Ee(()=>{ae&&Ze(ae,d,h),J&&Pt(h,null,d,"unmounted")},g)},an=h=>{const{type:d,el:g,anchor:v,transition:b}=h;if(d===ie){Ps(g,v);return}if(d===us){S(h);return}const w=()=>{s(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(h.shapeFlag&1&&b&&!b.persisted){const{leave:k,delayLeave:R}=b,$=()=>k(g,w);R?R(h.el,w,$):$()}else w()},Ps=(h,d)=>{let g;for(;h!==d;)g=p(h),s(h),h=g;s(d)},zs=(h,d,g)=>{const{bum:v,scope:b,job:w,subTree:k,um:R,m:$,a:C}=h;vl($),vl(C),v&&Gn(v),b.stop(),w&&(w.flags|=8,Qe(k,h,d,g)),R&&Ee(R,d),Ee(()=>{h.isUnmounted=!0},d)},Bt=(h,d,g,v=!1,b=!1,w=0)=>{for(let k=w;k<h.length;k++)Qe(h[k],d,g,v,b)},Vt=h=>{if(h.shapeFlag&6)return Vt(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const d=p(h.anchor||h.el),g=d&&d[yc];return g?p(g):d};let On=!1;const jr=(h,d,g)=>{let v;h==null?d._vnode&&(Qe(d._vnode,null,null,!0),v=d._vnode.component):y(d._vnode||null,h,d,null,null,null,g),d._vnode=h,On||(On=!0,Ki(v),Gi(),On=!1)},Ct={p:y,um:Qe,m:_t,r:an,mt:F,mc:D,pc:fe,pbc:me,n:Vt,o:e};return{render:jr,hydrate:void 0,createApp:Lc(jr)}}function cs({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 jt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Gc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gl(e,t,n=!1){const r=e.children,s=t.children;if(V(r)&&V(s))for(let i=0;i<r.length;i++){const l=r[i];let o=s[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=s[i]=lt(s[i]),o.el=l.el),!n&&o.patchFlag!==-2&&gl(l,o)),o.type===pr&&(o.patchFlag===-1&&(o=s[i]=lt(o)),o.el=l.el),o.type===wt&&!o.el&&(o.el=l.el)}}function Zc(e){const t=e.slice(),n=[0];let r,s,i,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(i=0,l=n.length-1;i<l;)o=i+l>>1,e[n[o]]<c?i=o+1:l=o;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}function ml(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ml(t)}function vl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function bl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?bl(t.subTree):null}const yl=e=>e.__isSuspense;function Yc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):dc(e)}const ie=Symbol.for("v-fgt"),pr=Symbol.for("v-txt"),wt=Symbol.for("v-cmt"),us=Symbol.for("v-stc"),$n=[];let ze=null;function E(e=!1){$n.push(ze=e?null:[])}function Jc(){$n.pop(),ze=$n[$n.length-1]||null}let Sn=1;function dr(e,t=!1){Sn+=e,e<0&&ze&&t&&(ze.hasOnce=!0)}function wl(e){return e.dynamicChildren=Sn>0?ze||Kt:null,Jc(),Sn>0&&ze&&ze.push(e),e}function P(e,t,n,r,s,i){return wl(I(e,t,n,r,s,i,!0))}function Ke(e,t,n,r,s){return wl(Q(e,t,n,r,s,!0))}function gr(e){return e?e.__v_isVNode===!0:!1}function Rn(e,t){return e.type===t.type&&e.key===t.key}const kl=({key:e})=>e??null,mr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||be(e)||ne(e)?{i:Pe,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,s=null,i=e===ie?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&kl(t),ref:t&&mr(t),scopeId:Yi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Pe};return o?(fs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),Sn>0&&!l&&ze&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&ze.push(a),a}const Q=Qc;function Qc(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Rc)&&(e=wt),gr(e)){const o=rn(e,t,!0);return n&&fs(o,n),Sn>0&&!i&&ze&&(o.shapeFlag&6?ze[ze.indexOf(e)]=o:ze.push(o)),o.patchFlag=-2,o}if(cu(e)&&(e=e.__vccOpts),t){t=Xc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=ve(o)),ce(a)&&(rr(a)&&!V(a)&&(a=Le({},a)),t.style=At(a))}const l=ye(e)?1:yl(e)?128:wc(e)?64:ce(e)?4:ne(e)?2:0;return I(e,t,n,r,s,l,i,!0)}function Xc(e){return e?rr(e)||cl(e)?Le({},e):e:null}function rn(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:l,children:o,transition:a}=e,c=t?eu(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&kl(c),ref:t&&t.ref?n&&i?V(i)?i.concat(mr(t)):[i,mr(t)]:mr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ie?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&&rn(e.ssContent),ssFallback:e.ssFallback&&rn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&ts(u,a.clone(u)),u}function it(e=" ",t=0){return Q(pr,null,e,t)}function q(e="",t=!1){return t?(E(),Ke(wt,null,e)):Q(wt,null,e)}function Ge(e){return e==null||typeof e=="boolean"?Q(wt):V(e)?Q(ie,null,e.slice()):gr(e)?lt(e):Q(pr,null,String(e))}function lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:rn(e)}function fs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),fs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!cl(t)?t._ctx=Pe:s===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ne(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),r&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function eu(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(s==="style")t.style=At([t.style,r.style]);else if(Vn(s)){const i=t[s],l=r[s];l&&i!==l&&!(V(i)&&i.includes(l))&&(t[s]=i?[].concat(i,l):l)}else s!==""&&(t[s]=r[s])}return t}function Ze(e,t,n,r=null){st(e,t,7,[n,r])}const tu=rl();let nu=0;function ru(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||tu,i={uid:nu++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ta(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hc(r,s),emitsOptions:Pc(r,s),emit:null,emitted:null,propsDefaults:he,inheritAttrs:r.inheritAttrs,ctx:he,data:he,props:he,attrs:he,slots:he,refs:he,setupState:he,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Mc.bind(null,i),e.ce&&e.ce(i),i}let Te=null;const hs=()=>Te||Pe;let vr,ps;{const e=pn(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(l=>l(i)):s[0](i)}};vr=t("__VUE_INSTANCE_SETTERS__",n=>Te=n),ps=t("__VUE_SSR_SETTERS__",n=>An=n)}const ds=e=>{const t=Te;return vr(e),e.scope.on(),()=>{e.scope.off(),vr(t)}},xl=()=>{Te&&Te.scope.off(),vr(null)};function _l(e){return e.vnode.shapeFlag&4}let An=!1;function su(e,t=!1,n=!1){t&&ps(t);const{props:r,children:s}=e.vnode,i=_l(e);Dc(e,r,i,t),Bc(e,s,n||t);const l=i?iu(e,t):void 0;return t&&ps(!1),l}function iu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ec);const{setup:r}=n;if(r){dt();const s=e.setupContext=r.length>1?ou(e):null,i=ds(e),l=wn(r,e,0,[e.props,s]),o=mi(l);if(gt(),i(),(o||e.sp)&&!_n(e)&&xc(e),o){if(l.then(xl,xl),t)return l.then(a=>{Cl(e,a,t)}).catch(a=>{lr(a,e,0)});e.asyncDep=l}else Cl(e,l,t)}else Sl(e,t)}function Cl(e,t,n){ne(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ce(t)&&(e.setupState=Vi(t)),Sl(e,n)}let $l;function Sl(e,t,n){const r=e.type;if(!e.render){if(!t&&$l&&!r.render){const s=r.template||!1;if(s){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Le(Le({isCustomElement:i,delimiters:o},l),a);r.render=$l(s,c)}}e.render=r.render||St}}const lu={get(e,t){return ke(e,"get",""),e[t]}};function ou(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,lu),slots:e.slots,emit:e.emit,expose:t}}function br(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vi(Xa(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Cn)return Cn[n](e)},has(t,n){return n in t||n in Cn}})):e.proxy}function au(e,t=!0){return ne(e)?e.displayName||e.name:e.name||t&&e.__name}function cu(e){return ne(e)&&"__vccOpts"in e}const de=(e,t)=>cc(e,t,An);function W(e,t,n){try{dr(-1);const r=arguments.length;return r===2?ce(t)&&!V(t)?gr(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gr(n)&&(n=[n]),Q(e,t,n))}finally{dr(1)}}const uu="3.5.28";/**
|
|
24
25
|
* @vue/runtime-dom v3.5.28
|
|
25
26
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
26
27
|
* @license MIT
|
|
27
|
-
**/let gs;const Sl=typeof window<"u"&&window.trustedTypes;if(Sl)try{gs=Sl.createPolicy("vue",{createHTML:e=>e})}catch{}const Rl=gs?e=>gs.createHTML(e):e=>e,cu="http://www.w3.org/2000/svg",uu="http://www.w3.org/1998/Math/MathML",ot=typeof document<"u"?document:null,Al=ot&&ot.createElement("template"),fu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?ot.createElementNS(cu,e):t==="mathml"?ot.createElementNS(uu,e):n?ot.createElement(e,{is:n}):ot.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>ot.createTextNode(e),createComment:e=>ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const l=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{Al.innerHTML=Rl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=Al.content;if(r==="svg"||r==="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]}},hu=Symbol("_vtc");function pu(e,t,n){const r=e[hu];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const yr=Symbol("_vod"),El=Symbol("_vsh"),Tl={name:"show",beforeMount(e,{value:t},{transition:n}){e[yr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):En(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),En(e,!0),r.enter(e)):r.leave(e,()=>{En(e,!1)}):En(e,t))},beforeUnmount(e,{value:t}){En(e,t)}};function En(e,t){e.style.display=t?e[yr]:"none",e[El]=!t}const du=Symbol(""),gu=/(?:^|;)\s*display\s*:/;function mu(e,t,n){const r=e.style,s=ye(n);let i=!1;if(n&&!s){if(t)if(ye(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&wr(r,o,"")}else for(const l in t)n[l]==null&&wr(r,l,"");for(const l in n)l==="display"&&(i=!0),wr(r,l,n[l])}else if(s){if(t!==n){const l=r[du];l&&(n+=";"+l),r.cssText=n,i=gu.test(n)}}else t&&e.removeAttribute("style");yr in e&&(e[yr]=i?r.display:"",e[El]&&(r.display="none"))}const Ll=/\s*!important$/;function wr(e,t,n){if(V(n))n.forEach(r=>wr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=vu(e,t);Ll.test(n)?e.setProperty(Rt(r),n.replace(Ll,""),"important"):e[r]=n}}const Il=["Webkit","Moz","ms"],ms={};function vu(e,t){const n=ms[t];if(n)return n;let r=ze(t);if(r!=="filter"&&r in e)return ms[t]=r;r=Kn(r);for(let s=0;s<Il.length;s++){const i=Il[s]+r;if(i in e)return ms[t]=i}return t}const Ml="http://www.w3.org/1999/xlink";function Pl(e,t,n,r,s,i=Sa(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ml,t.slice(6,t.length)):e.setAttributeNS(Ml,t,n):n==null||i&&!wi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":We(n)?String(n):n)}function Ol(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Rl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=wi(n):n==null&&o==="string"?(n="",l=!0):o==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(s||t)}function at(e,t,n,r){e.addEventListener(t,n,r)}function bu(e,t,n,r){e.removeEventListener(t,n,r)}const jl=Symbol("_vei");function yu(e,t,n,r,s=null){const i=e[jl]||(e[jl]={}),l=i[t];if(r&&l)l.value=r;else{const[o,a]=wu(t);if(r){const c=i[t]=_u(r,s);at(e,o,c,a)}else l&&(bu(e,o,l,a),i[t]=void 0)}}const zl=/(?:Once|Passive|Capture)$/;function wu(e){let t;if(zl.test(e)){t={};let r;for(;r=e.match(zl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Rt(e.slice(2)),t]}let vs=0;const ku=Promise.resolve(),xu=()=>vs||(ku.then(()=>vs=0),vs=Date.now());function _u(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;st(Cu(r,n.value),t,5,[r])};return n.value=e,n.attached=xu(),n}function Cu(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Fl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$u=(e,t,n,r,s,i)=>{const l=s==="svg";t==="class"?pu(e,r,l):t==="style"?mu(e,n,r):Vn(t)?Hr(t)||yu(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Su(e,t,r,l))?(Ol(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pl(e,t,r,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ye(r))?Ol(e,ze(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Pl(e,t,r,l))};function Su(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Fl(t)&&te(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Fl(t)&&ye(n)?!1:t in e}const kt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Gn(t,n):t};function Ru(e){e.target.composing=!0}function Dl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fe=Symbol("_assign");function Ul(e,t,n){return t&&(e=e.trim()),n&&(e=Zn(e)),e}const bs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Fe]=kt(s);const i=r||s.props&&s.props.type==="number";at(e,t?"change":"input",l=>{l.target.composing||e[Fe](Ul(e.value,n,i))}),(n||i)&&at(e,"change",()=>{e.value=Ul(e.value,n,i)}),t||(at(e,"compositionstart",Ru),at(e,"compositionend",Dl),at(e,"change",Dl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},l){if(e[Fe]=kt(l),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Zn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a))}},Au={deep:!0,created(e,t,n){e[Fe]=kt(n),at(e,"change",()=>{const r=e._modelValue,s=sn(e),i=e.checked,l=e[Fe];if(V(r)){const o=Br(r,s),a=o!==-1;if(i&&!a)l(r.concat(s));else if(!i&&a){const c=[...r];c.splice(o,1),l(c)}}else if(Zt(r)){const o=new Set(r);i?o.add(s):o.delete(s),l(o)}else l(Bl(e,i))})},mounted:Hl,beforeUpdate(e,t,n){e[Fe]=kt(n),Hl(e,t,n)}};function Hl(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(V(t))s=Br(t,r.props.value)>-1;else if(Zt(t))s=t.has(r.props.value);else{if(t===n)return;s=pt(t,Bl(e,!0))}e.checked!==s&&(e.checked=s)}const Eu={created(e,{value:t},n){e.checked=pt(t,n.props.value),e[Fe]=kt(n),at(e,"change",()=>{e[Fe](sn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Fe]=kt(r),t!==n&&(e.checked=pt(t,r.props.value))}},Tu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Zt(t);at(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Zn(sn(l)):sn(l));e[Fe](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,en(()=>{e._assigning=!1})}),e[Fe]=kt(r)},mounted(e,{value:t}){Nl(e,t)},beforeUpdate(e,t,n){e[Fe]=kt(n)},updated(e,{value:t}){e._assigning||Nl(e,t)}};function Nl(e,t){const n=e.multiple,r=V(t);if(!(n&&!r&&!Zt(t))){for(let s=0,i=e.options.length;s<i;s++){const l=e.options[s],o=sn(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Br(t,o)>-1}else l.selected=t.has(o);else if(pt(sn(l),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function sn(e){return"_value"in e?e._value:e.value}function Bl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Lu={created(e,t,n){kr(e,t,n,null,"created")},mounted(e,t,n){kr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){kr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){kr(e,t,n,r,"updated")}};function Iu(e,t){switch(e){case"SELECT":return Tu;case"TEXTAREA":return bs;default:switch(t){case"checkbox":return Au;case"radio":return Eu;default:return bs}}}function kr(e,t,n,r,s){const l=Iu(e.tagName,n.props&&n.props.type)[s];l&&l(e,t,n,r)}const Mu=Le({patchProp:$u},fu);let Vl;function Pu(){return Vl||(Vl=Vc(Mu))}const Wl=((...e)=>{const t=Pu().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=ju(r);if(!s)return;const i=t._component;!te(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const l=n(s,!1,Ou(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t});function Ou(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ju(e){return ye(e)?document.querySelector(e):e}function xr(e,t){return _i()?(Ea(e,t),!0):!1}const _r=typeof window<"u"&&typeof document<"u",zu=Object.prototype.toString,Fu=e=>zu.call(e)==="[object Object]",Cr=()=>{};function Du(...e){if(e.length!==1)return sc(...e);const t=e[0];return typeof t=="function"?Tt(tc(()=>({get:t,set:Cr}))):W(t)}function ql(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}const Kl=e=>e();function Uu(e,t={}){let n,r,s=Cr;const i=a=>{clearTimeout(a),s(),s=Cr};let l;return a=>{const c=Me(e),u=Me(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=void 0),Promise.resolve(a())):new Promise((f,p)=>{s=t.rejectOnCancel?p:f,l=a,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(l())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,f(a())},c)})}}function Hu(e=Kl,t={}){const{initialState:n="active"}=t,r=Du(n==="active");function s(){r.value=!1}function i(){r.value=!0}return{isActive:Tt(r),pause:s,resume:i,eventFilter:(...o)=>{r.value&&e(...o)}}}function ys(e){return Array.isArray(e)?e:[e]}function Gl(e){return hs()}function Nu(e,t=200,n={}){return ql(Uu(t,n),e)}function Bu(e,t,n={}){const{eventFilter:r=Kl,...s}=n;return bt(e,ql(r,t),s)}function Vu(e,t,n={}){const{eventFilter:r,initialState:s="active",...i}=n,{eventFilter:l,pause:o,resume:a,isActive:c}=Hu(r,{initialState:s});return{stop:Bu(e,t,{...i,eventFilter:l}),pause:o,resume:a,isActive:c}}function ws(e,t=!0,n){Gl()?tn(e,n):t?e():en(e)}function Wu(e,t){Gl()&&rs(e,t)}function qu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const l=It(!1);function o(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,o()}function c(){const u=Me(t);u<=0||(l.value=!0,s&&e(),o(),l.value&&(i=setInterval(e,u)))}return r&&_r&&c(),(be(t)||typeof t=="function")&&xr(bt(t,()=>{l.value&&_r&&c()})),xr(a),{isActive:Ya(l),pause:a,resume:c}}function zt(e,t,n){return bt(e,t,{...n,immediate:!0})}const ln=_r?window:void 0,Zl=_r?window.document:void 0;function Ku(e){var t;const n=Me(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Ft(...e){const t=(r,s,i,l)=>(r.addEventListener(s,i,l),()=>r.removeEventListener(s,i,l)),n=de(()=>{const r=ys(Me(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return zt(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(i=>Ku(i)))!==null&&r!==void 0?r:[ln].filter(i=>i!=null),ys(Me(n.value?e[1]:e[0])),ys(N(n.value?e[2]:e[1])),Me(n.value?e[3]:e[2])]},([r,s,i,l],o,a)=>{if(!(r!=null&&r.length)||!(s!=null&&s.length)||!(i!=null&&i.length))return;const c=Fu(l)?{...l}:l,u=r.flatMap(f=>s.flatMap(p=>i.map(m=>t(f,p,m,c))));a(()=>{u.forEach(f=>f())})},{flush:"post"})}function Yl(e,t={}){const{immediate:n=!0,fpsLimit:r=null,window:s=ln,once:i=!1}=t,l=It(!1),o=de(()=>{const m=Me(r);return m?1e3/m:null});let a=0,c=null;function u(m){if(!l.value||!s)return;a||(a=m);const x=m-a;if(o.value&&x<o.value){c=s.requestAnimationFrame(u);return}if(a=m,e({delta:x,timestamp:m}),i){l.value=!1,c=null;return}c=s.requestAnimationFrame(u)}function f(){!l.value&&s&&(l.value=!0,a=0,c=s.requestAnimationFrame(u))}function p(){l.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&f(),xr(p),{isActive:Tt(l),pause:p,resume:f}}const $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sr="__vueuse_ssr_handlers__",Gu=Zu();function Zu(){return Sr in $r||($r[Sr]=$r[Sr]||{}),$r[Sr]}function Yu(e,t){return Gu[e]||t}function Qu(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 Ju={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()}},Ql="vueuse-storage";function on(e,t,n,r={}){var s;const{flush:i="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:f=ln,eventFilter:p,onError:m=F=>{console.error(F)},initOnMounted:x}=r,y=(u?It:W)(typeof t=="function"?t():t),A=de(()=>Me(e));if(!n)try{n=Yu("getDefaultStorage",()=>ln==null?void 0:ln.localStorage)()}catch(F){m(F)}if(!n)return y;const _=Me(t),L=Qu(_),O=(s=r.serializer)!==null&&s!==void 0?s:Ju[L],{pause:S,resume:z}=Vu(y,F=>me(F),{flush:i,deep:l,eventFilter:p});bt(A,()=>H(),{flush:i});let pe=!1;const oe=F=>{x&&!pe||H(F)},D=F=>{x&&!pe||re(F)};f&&o&&(n instanceof Storage?Ft(f,"storage",oe,{passive:!0}):Ft(f,Ql,D)),x?ws(()=>{pe=!0,H()}):H();function Ce(F,Y){if(f){const K={key:A.value,oldValue:F,newValue:Y,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",K):new CustomEvent(Ql,{detail:K}))}}function me(F){try{const Y=n.getItem(A.value);if(F==null)Ce(Y,null),n.removeItem(A.value);else{const K=O.write(F);Y!==K&&(n.setItem(A.value,K),Ce(Y,K))}}catch(Y){m(Y)}}function U(F){const Y=F?F.newValue:n.getItem(A.value);if(Y==null)return a&&_!=null&&n.setItem(A.value,O.write(_)),_;if(!F&&c){const K=O.read(Y);return typeof c=="function"?c(K,_):L==="object"&&!Array.isArray(K)?{..._,...K}:K}else return typeof Y!="string"?Y:O.read(Y)}function H(F){if(!(F&&F.storageArea!==n)){if(F&&F.key==null){y.value=_;return}if(!(F&&F.key!==A.value)){S();try{const Y=O.write(y.value);(F===void 0||(F==null?void 0:F.newValue)!==Y)&&(y.value=U(F))}catch(Y){m(Y)}finally{F?en(z):z()}}}}function re(F){H(F.detail)}return y}function Xu(e){if("interval"in e||"immediate"in e){const{interval:t="requestAnimationFrame",immediate:n=!0}=e;return t==="requestAnimationFrame"?r=>Yl(r,{immediate:n}):r=>qu(r,t,e)}return Yl}function ef(e={}){const{controls:t=!1,scheduler:n=Xu(e)}=e,r=W(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function tf(e,t=Cr,n={}){const{immediate:r=!0,manual:s=!1,type:i="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:f=Zl,attrs:p={},nonce:m=void 0}=n,x=It(null);let y=null;const A=O=>new Promise((S,z)=>{const pe=me=>(x.value=me,S(me),me);if(!f){S(!1);return}let oe=!1,D=f.querySelector(`script[src="${Me(e)}"]`);D?D.hasAttribute("data-loaded")&&pe(D):(D=f.createElement("script"),D.type=i,D.async=l,D.src=Me(e),u&&(D.defer=u),o&&(D.crossOrigin=o),c&&(D.noModule=c),a&&(D.referrerPolicy=a),m&&(D.nonce=m),Object.entries(p).forEach(([me,U])=>D==null?void 0:D.setAttribute(me,U)),oe=!0);const Ce={passive:!0};Ft(D,"error",me=>z(me),Ce),Ft(D,"abort",me=>z(me),Ce),Ft(D,"load",()=>{D.setAttribute("data-loaded","true"),t(D),pe(D)},Ce),oe&&(D=f.head.appendChild(D)),O||pe(D)}),_=(O=!0)=>(y||(y=A(O)),y),L=()=>{if(!f)return;y=null,x.value&&(x.value=null);const O=f.querySelector(`script[src="${Me(e)}"]`);O&&f.head.removeChild(O)};return r&&!s&&ws(_),s||Wu(L),{scriptTag:x,load:_,unload:L}}let nf=0;function rf(e,t={}){const n=It(!1),{document:r=Zl,immediate:s=!0,manual:i=!1,id:l=`vueuse_styletag_${++nf}`}=t,o=It(e);let a=()=>{};const c=()=>{if(!r)return;const f=r.getElementById(l)||r.createElement("style");f.isConnected||(f.id=l,t.nonce&&(f.nonce=t.nonce),t.media&&(f.media=t.media),r.head.appendChild(f)),!n.value&&(a=bt(o,p=>{f.textContent=p},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return s&&!i&&ws(c),i||xr(u),{id:l,css:o,unload:u,load:c,isLoaded:Tt(n)}}const sf="WALINE_EMOJI",Jl=on(sf,{}),lf=e=>/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),of=e=>{const t=lf(e);if(t){const n=Jl.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then(n=>n.json()).then(n=>{const r={folder:e,...n};return t&&(Jl.value[e]=r),r})},Xl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,af=e=>Promise.all(e?e.map(t=>qt(t)?of(ui(t)):Promise.resolve(t)):[]).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:s,folder:i,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:s,icon:Xl(l,i,o,a),items:c.map(u=>{const f=`${o}${u}`;return n.map[f]=Xl(u,i,o,a),f})})}),n}),eo=e=>{e.name!=="AbortError"&&console.error(e.message)},Rr=e=>e instanceof HTMLElement?e:qt(e)?document.querySelector(e):null,to=e=>{const t=[...e].find(n=>n.type.includes("image"));return t?t.getAsFile():null};function ks(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Dt=ks();function no(e){Dt=e}var Ut={exec:()=>null};function G(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(_e.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,t)};return r}var cf=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),_e={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},uf=/^(?:[ \t]*(?:\n|$))+/,ff=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,hf=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Tn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,pf=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xs=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ro=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,so=G(ro).replace(/bull/g,xs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).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/).replace(/\|table/g,"").getRegex(),df=G(ro).replace(/bull/g,xs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).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/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),_s=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,gf=/^[^\n]+/,Cs=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,mf=G(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Cs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vf=G(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xs).getRegex(),Ar="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",$s=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,bf=G("^ {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",$s).replace("tag",Ar).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),io=G(_s).replace("hr",Tn).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ar).getRegex(),yf=G(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",io).getRegex(),Ss={blockquote:yf,code:ff,def:mf,fences:hf,heading:pf,hr:Tn,html:bf,lheading:so,list:vf,newline:uf,paragraph:io,table:Ut,text:gf},lo=G("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ar).getRegex(),wf={...Ss,lheading:df,table:lo,paragraph:G(_s).replace("hr",Tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",lo).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ar).getRegex()},kf={...Ss,html:G(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$s).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:Ut,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:G(_s).replace("hr",Tn).replace("heading",` *#{1,6} *[^
|
|
28
|
-
]`).replace("lheading",
|
|
28
|
+
**/let gs;const Rl=typeof window<"u"&&window.trustedTypes;if(Rl)try{gs=Rl.createPolicy("vue",{createHTML:e=>e})}catch{}const Al=gs?e=>gs.createHTML(e):e=>e,fu="http://www.w3.org/2000/svg",hu="http://www.w3.org/1998/Math/MathML",ot=typeof document<"u"?document:null,El=ot&&ot.createElement("template"),pu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?ot.createElementNS(fu,e):t==="mathml"?ot.createElementNS(hu,e):n?ot.createElement(e,{is:n}):ot.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>ot.createTextNode(e),createComment:e=>ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const l=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{El.innerHTML=Al(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=El.content;if(r==="svg"||r==="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]}},du=Symbol("_vtc");function gu(e,t,n){const r=e[du];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const yr=Symbol("_vod"),Tl=Symbol("_vsh"),Ll={name:"show",beforeMount(e,{value:t},{transition:n}){e[yr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):En(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),En(e,!0),r.enter(e)):r.leave(e,()=>{En(e,!1)}):En(e,t))},beforeUnmount(e,{value:t}){En(e,t)}};function En(e,t){e.style.display=t?e[yr]:"none",e[Tl]=!t}const mu=Symbol(""),vu=/(?:^|;)\s*display\s*:/;function bu(e,t,n){const r=e.style,s=ye(n);let i=!1;if(n&&!s){if(t)if(ye(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&wr(r,o,"")}else for(const l in t)n[l]==null&&wr(r,l,"");for(const l in n)l==="display"&&(i=!0),wr(r,l,n[l])}else if(s){if(t!==n){const l=r[mu];l&&(n+=";"+l),r.cssText=n,i=vu.test(n)}}else t&&e.removeAttribute("style");yr in e&&(e[yr]=i?r.display:"",e[Tl]&&(r.display="none"))}const Il=/\s*!important$/;function wr(e,t,n){if(V(n))n.forEach(r=>wr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=yu(e,t);Il.test(n)?e.setProperty(Rt(r),n.replace(Il,""),"important"):e[r]=n}}const Ml=["Webkit","Moz","ms"],ms={};function yu(e,t){const n=ms[t];if(n)return n;let r=Fe(t);if(r!=="filter"&&r in e)return ms[t]=r;r=Kn(r);for(let s=0;s<Ml.length;s++){const i=Ml[s]+r;if(i in e)return ms[t]=i}return t}const Pl="http://www.w3.org/1999/xlink";function zl(e,t,n,r,s,i=Aa(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Pl,t.slice(6,t.length)):e.setAttributeNS(Pl,t,n):n==null||i&&!ki(n)?e.removeAttribute(t):e.setAttribute(t,i?"":We(n)?String(n):n)}function jl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Al(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=ki(n):n==null&&o==="string"?(n="",l=!0):o==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(s||t)}function at(e,t,n,r){e.addEventListener(t,n,r)}function wu(e,t,n,r){e.removeEventListener(t,n,r)}const Ol=Symbol("_vei");function ku(e,t,n,r,s=null){const i=e[Ol]||(e[Ol]={}),l=i[t];if(r&&l)l.value=r;else{const[o,a]=xu(t);if(r){const c=i[t]=$u(r,s);at(e,o,c,a)}else l&&(wu(e,o,l,a),i[t]=void 0)}}const Fl=/(?:Once|Passive|Capture)$/;function xu(e){let t;if(Fl.test(e)){t={};let r;for(;r=e.match(Fl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Rt(e.slice(2)),t]}let vs=0;const _u=Promise.resolve(),Cu=()=>vs||(_u.then(()=>vs=0),vs=Date.now());function $u(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;st(Su(r,n.value),t,5,[r])};return n.value=e,n.attached=Cu(),n}function Su(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Dl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ru=(e,t,n,r,s,i)=>{const l=s==="svg";t==="class"?gu(e,r,l):t==="style"?bu(e,n,r):Vn(t)?Hr(t)||ku(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Au(e,t,r,l))?(jl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&zl(e,t,r,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ye(r))?jl(e,Fe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),zl(e,t,r,l))};function Au(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dl(t)&&ne(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Dl(t)&&ye(n)?!1:t in e}const kt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Gn(t,n):t};function Eu(e){e.target.composing=!0}function Ul(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const De=Symbol("_assign");function Hl(e,t,n){return t&&(e=e.trim()),n&&(e=Zn(e)),e}const bs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[De]=kt(s);const i=r||s.props&&s.props.type==="number";at(e,t?"change":"input",l=>{l.target.composing||e[De](Hl(e.value,n,i))}),(n||i)&&at(e,"change",()=>{e.value=Hl(e.value,n,i)}),t||(at(e,"compositionstart",Eu),at(e,"compositionend",Ul),at(e,"change",Ul))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},l){if(e[De]=kt(l),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Zn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a))}},Tu={deep:!0,created(e,t,n){e[De]=kt(n),at(e,"change",()=>{const r=e._modelValue,s=sn(e),i=e.checked,l=e[De];if(V(r)){const o=Br(r,s),a=o!==-1;if(i&&!a)l(r.concat(s));else if(!i&&a){const c=[...r];c.splice(o,1),l(c)}}else if(Zt(r)){const o=new Set(r);i?o.add(s):o.delete(s),l(o)}else l(Vl(e,i))})},mounted:Nl,beforeUpdate(e,t,n){e[De]=kt(n),Nl(e,t,n)}};function Nl(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(V(t))s=Br(t,r.props.value)>-1;else if(Zt(t))s=t.has(r.props.value);else{if(t===n)return;s=pt(t,Vl(e,!0))}e.checked!==s&&(e.checked=s)}const Lu={created(e,{value:t},n){e.checked=pt(t,n.props.value),e[De]=kt(n),at(e,"change",()=>{e[De](sn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[De]=kt(r),t!==n&&(e.checked=pt(t,r.props.value))}},Iu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Zt(t);at(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Zn(sn(l)):sn(l));e[De](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,en(()=>{e._assigning=!1})}),e[De]=kt(r)},mounted(e,{value:t}){Bl(e,t)},beforeUpdate(e,t,n){e[De]=kt(n)},updated(e,{value:t}){e._assigning||Bl(e,t)}};function Bl(e,t){const n=e.multiple,r=V(t);if(!(n&&!r&&!Zt(t))){for(let s=0,i=e.options.length;s<i;s++){const l=e.options[s],o=sn(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Br(t,o)>-1}else l.selected=t.has(o);else if(pt(sn(l),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function sn(e){return"_value"in e?e._value:e.value}function Vl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Mu={created(e,t,n){kr(e,t,n,null,"created")},mounted(e,t,n){kr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){kr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){kr(e,t,n,r,"updated")}};function Pu(e,t){switch(e){case"SELECT":return Iu;case"TEXTAREA":return bs;default:switch(t){case"checkbox":return Tu;case"radio":return Lu;default:return bs}}}function kr(e,t,n,r,s){const l=Pu(e.tagName,n.props&&n.props.type)[s];l&&l(e,t,n,r)}const zu=Le({patchProp:Ru},pu);let Wl;function ju(){return Wl||(Wl=qc(zu))}const ql=((...e)=>{const t=ju().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Fu(r);if(!s)return;const i=t._component;!ne(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const l=n(s,!1,Ou(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t});function Ou(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Fu(e){return ye(e)?document.querySelector(e):e}function xr(e,t){return Ci()?(La(e,t),!0):!1}const _r=typeof window<"u"&&typeof document<"u",Du=Object.prototype.toString,Uu=e=>Du.call(e)==="[object Object]",Cr=()=>{};function Hu(...e){if(e.length!==1)return lc(...e);const t=e[0];return typeof t=="function"?Tt(rc(()=>({get:t,set:Cr}))):K(t)}function Kl(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}const Gl=e=>e();function Nu(e,t={}){let n,r,s=Cr;const i=a=>{clearTimeout(a),s(),s=Cr};let l;return a=>{const c=Me(e),u=Me(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=void 0),Promise.resolve(a())):new Promise((f,p)=>{s=t.rejectOnCancel?p:f,l=a,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(l())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,f(a())},c)})}}function Bu(e=Gl,t={}){const{initialState:n="active"}=t,r=Hu(n==="active");function s(){r.value=!1}function i(){r.value=!0}return{isActive:Tt(r),pause:s,resume:i,eventFilter:(...o)=>{r.value&&e(...o)}}}function ys(e){return Array.isArray(e)?e:[e]}function Zl(e){return hs()}function Vu(e,t=200,n={}){return Kl(Nu(t,n),e)}function Wu(e,t,n={}){const{eventFilter:r=Gl,...s}=n;return bt(e,Kl(r,t),s)}function qu(e,t,n={}){const{eventFilter:r,initialState:s="active",...i}=n,{eventFilter:l,pause:o,resume:a,isActive:c}=Bu(r,{initialState:s});return{stop:Wu(e,t,{...i,eventFilter:l}),pause:o,resume:a,isActive:c}}function ws(e,t=!0,n){Zl()?tn(e,n):t?e():en(e)}function Ku(e,t){Zl()&&rs(e,t)}function Gu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const l=It(!1);function o(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,o()}function c(){const u=Me(t);u<=0||(l.value=!0,s&&e(),o(),l.value&&(i=setInterval(e,u)))}return r&&_r&&c(),(be(t)||typeof t=="function")&&xr(bt(t,()=>{l.value&&_r&&c()})),xr(a),{isActive:Qa(l),pause:a,resume:c}}function Ot(e,t,n){return bt(e,t,{...n,immediate:!0})}const ln=_r?window:void 0,Yl=_r?window.document:void 0;function Zu(e){var t;const n=Me(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Ft(...e){const t=(r,s,i,l)=>(r.addEventListener(s,i,l),()=>r.removeEventListener(s,i,l)),n=de(()=>{const r=ys(Me(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return Ot(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(i=>Zu(i)))!==null&&r!==void 0?r:[ln].filter(i=>i!=null),ys(Me(n.value?e[1]:e[0])),ys(U(n.value?e[2]:e[1])),Me(n.value?e[3]:e[2])]},([r,s,i,l],o,a)=>{if(!(r!=null&&r.length)||!(s!=null&&s.length)||!(i!=null&&i.length))return;const c=Uu(l)?{...l}:l,u=r.flatMap(f=>s.flatMap(p=>i.map(m=>t(f,p,m,c))));a(()=>{u.forEach(f=>f())})},{flush:"post"})}function Jl(e,t={}){const{immediate:n=!0,fpsLimit:r=null,window:s=ln,once:i=!1}=t,l=It(!1),o=de(()=>{const m=Me(r);return m?1e3/m:null});let a=0,c=null;function u(m){if(!l.value||!s)return;a||(a=m);const x=m-a;if(o.value&&x<o.value){c=s.requestAnimationFrame(u);return}if(a=m,e({delta:x,timestamp:m}),i){l.value=!1,c=null;return}c=s.requestAnimationFrame(u)}function f(){!l.value&&s&&(l.value=!0,a=0,c=s.requestAnimationFrame(u))}function p(){l.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&f(),xr(p),{isActive:Tt(l),pause:p,resume:f}}const $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sr="__vueuse_ssr_handlers__",Yu=Ju();function Ju(){return Sr in $r||($r[Sr]=$r[Sr]||{}),$r[Sr]}function Qu(e,t){return Yu[e]||t}function Xu(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 ef={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()}},Ql="vueuse-storage";function on(e,t,n,r={}){var s;const{flush:i="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:f=ln,eventFilter:p,onError:m=F=>{console.error(F)},initOnMounted:x}=r,y=(u?It:K)(typeof t=="function"?t():t),A=de(()=>Me(e));if(!n)try{n=Qu("getDefaultStorage",()=>ln==null?void 0:ln.localStorage)()}catch(F){m(F)}if(!n)return y;const _=Me(t),L=Xu(_),z=(s=r.serializer)!==null&&s!==void 0?s:ef[L],{pause:S,resume:O}=qu(y,F=>me(F),{flush:i,deep:l,eventFilter:p});bt(A,()=>N(),{flush:i});let pe=!1;const oe=F=>{x&&!pe||N(F)},D=F=>{x&&!pe||re(F)};f&&o&&(n instanceof Storage?Ft(f,"storage",oe,{passive:!0}):Ft(f,Ql,D)),x?ws(()=>{pe=!0,N()}):N();function Ce(F,X){if(f){const G={key:A.value,oldValue:F,newValue:X,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",G):new CustomEvent(Ql,{detail:G}))}}function me(F){try{const X=n.getItem(A.value);if(F==null)Ce(X,null),n.removeItem(A.value);else{const G=z.write(F);X!==G&&(n.setItem(A.value,G),Ce(X,G))}}catch(X){m(X)}}function H(F){const X=F?F.newValue:n.getItem(A.value);if(X==null)return a&&_!=null&&n.setItem(A.value,z.write(_)),_;if(!F&&c){const G=z.read(X);return typeof c=="function"?c(G,_):L==="object"&&!Array.isArray(G)?{..._,...G}:G}else return typeof X!="string"?X:z.read(X)}function N(F){if(!(F&&F.storageArea!==n)){if(F&&F.key==null){y.value=_;return}if(!(F&&F.key!==A.value)){S();try{const X=z.write(y.value);(F===void 0||(F==null?void 0:F.newValue)!==X)&&(y.value=H(F))}catch(X){m(X)}finally{F?en(O):O()}}}}function re(F){N(F.detail)}return y}function tf(e){if("interval"in e||"immediate"in e){const{interval:t="requestAnimationFrame",immediate:n=!0}=e;return t==="requestAnimationFrame"?r=>Jl(r,{immediate:n}):r=>Gu(r,t,e)}return Jl}function nf(e={}){const{controls:t=!1,scheduler:n=tf(e)}=e,r=K(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function rf(e,t=Cr,n={}){const{immediate:r=!0,manual:s=!1,type:i="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:f=Yl,attrs:p={},nonce:m=void 0}=n,x=It(null);let y=null;const A=z=>new Promise((S,O)=>{const pe=me=>(x.value=me,S(me),me);if(!f){S(!1);return}let oe=!1,D=f.querySelector(`script[src="${Me(e)}"]`);D?D.hasAttribute("data-loaded")&&pe(D):(D=f.createElement("script"),D.type=i,D.async=l,D.src=Me(e),u&&(D.defer=u),o&&(D.crossOrigin=o),c&&(D.noModule=c),a&&(D.referrerPolicy=a),m&&(D.nonce=m),Object.entries(p).forEach(([me,H])=>D==null?void 0:D.setAttribute(me,H)),oe=!0);const Ce={passive:!0};Ft(D,"error",me=>O(me),Ce),Ft(D,"abort",me=>O(me),Ce),Ft(D,"load",()=>{D.setAttribute("data-loaded","true"),t(D),pe(D)},Ce),oe&&(D=f.head.appendChild(D)),z||pe(D)}),_=(z=!0)=>(y||(y=A(z)),y),L=()=>{if(!f)return;y=null,x.value&&(x.value=null);const z=f.querySelector(`script[src="${Me(e)}"]`);z&&f.head.removeChild(z)};return r&&!s&&ws(_),s||Ku(L),{scriptTag:x,load:_,unload:L}}let sf=0;function lf(e,t={}){const n=It(!1),{document:r=Yl,immediate:s=!0,manual:i=!1,id:l=`vueuse_styletag_${++sf}`}=t,o=It(e);let a=()=>{};const c=()=>{if(!r)return;const f=r.getElementById(l)||r.createElement("style");f.isConnected||(f.id=l,t.nonce&&(f.nonce=t.nonce),t.media&&(f.media=t.media),r.head.appendChild(f)),!n.value&&(a=bt(o,p=>{f.textContent=p},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return s&&!i&&ws(c),i||xr(u),{id:l,css:o,unload:u,load:c,isLoaded:Tt(n)}}const of="WALINE_EMOJI",Xl=on(of,{}),af=e=>/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),cf=e=>{const t=af(e);if(t){const n=Xl.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then(n=>n.json()).then(n=>{const r={folder:e,...n};return t&&(Xl.value[e]=r),r})},eo=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,uf=e=>Promise.all(e?e.map(t=>qt(t)?cf(fi(t)):Promise.resolve(t)):[]).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:s,folder:i,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:s,icon:eo(l,i,o,a),items:c.map(u=>{const f=`${o}${u}`;return n.map[f]=eo(u,i,o,a),f})})}),n}),to=e=>{e.name!=="AbortError"&&console.error(e.message)},Rr=e=>e instanceof HTMLElement?e:qt(e)?document.querySelector(e):null,no=e=>{const t=[...e].find(n=>n.type.includes("image"));return t?t.getAsFile():null};function ks(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Dt=ks();function ro(e){Dt=e}var Ut={exec:()=>null};function Y(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(_e.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,t)};return r}var ff=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),_e={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},hf=/^(?:[ \t]*(?:\n|$))+/,pf=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,df=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Tn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,gf=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xs=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,so=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,io=Y(so).replace(/bull/g,xs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).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/).replace(/\|table/g,"").getRegex(),mf=Y(so).replace(/bull/g,xs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).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/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),_s=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,vf=/^[^\n]+/,Cs=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,bf=Y(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Cs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yf=Y(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xs).getRegex(),Ar="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",$s=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wf=Y("^ {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",$s).replace("tag",Ar).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lo=Y(_s).replace("hr",Tn).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ar).getRegex(),kf=Y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lo).getRegex(),Ss={blockquote:kf,code:pf,def:bf,fences:df,heading:gf,hr:Tn,html:wf,lheading:io,list:yf,newline:hf,paragraph:lo,table:Ut,text:vf},oo=Y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ar).getRegex(),xf={...Ss,lheading:mf,table:oo,paragraph:Y(_s).replace("hr",Tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",oo).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ar).getRegex()},_f={...Ss,html:Y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",$s).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:Ut,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Y(_s).replace("hr",Tn).replace("heading",` *#{1,6} *[^
|
|
29
|
+
]`).replace("lheading",io).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Cf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,$f=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ao=/^( {2,}|\\)\n(?!\s*$)/,Sf=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Er=/[\p{P}\p{S}]/u,Rs=/[\s\p{P}\p{S}]/u,co=/[^\s\p{P}\p{S}]/u,Rf=Y(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Rs).getRegex(),uo=/(?!~)[\p{P}\p{S}]/u,Af=/(?!~)[\s\p{P}\p{S}]/u,Ef=/(?:[^\s\p{P}\p{S}]|~)/u,fo=/(?![*_])[\p{P}\p{S}]/u,Tf=/(?![*_])[\s\p{P}\p{S}]/u,Lf=/(?:[^\s\p{P}\p{S}]|[*_])/u,If=Y(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ff?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ho=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Mf=Y(ho,"u").replace(/punct/g,Er).getRegex(),Pf=Y(ho,"u").replace(/punct/g,uo).getRegex(),po="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",zf=Y(po,"gu").replace(/notPunctSpace/g,co).replace(/punctSpace/g,Rs).replace(/punct/g,Er).getRegex(),jf=Y(po,"gu").replace(/notPunctSpace/g,Ef).replace(/punctSpace/g,Af).replace(/punct/g,uo).getRegex(),Of=Y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,co).replace(/punctSpace/g,Rs).replace(/punct/g,Er).getRegex(),Ff=Y(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,fo).getRegex(),Df="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Uf=Y(Df,"gu").replace(/notPunctSpace/g,Lf).replace(/punctSpace/g,Tf).replace(/punct/g,fo).getRegex(),Hf=Y(/\\(punct)/,"gu").replace(/punct/g,Er).getRegex(),Nf=Y(/^<(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(),Bf=Y($s).replace("(?:-->|$)","-->").getRegex(),Vf=Y("^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",Bf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Tr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Wf=Y(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Tr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),go=Y(/^!?\[(label)\]\[(ref)\]/).replace("label",Tr).replace("ref",Cs).getRegex(),mo=Y(/^!?\[(ref)\](?:\[\])?/).replace("ref",Cs).getRegex(),qf=Y("reflink|nolink(?!\\()","g").replace("reflink",go).replace("nolink",mo).getRegex(),vo=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,As={_backpedal:Ut,anyPunctuation:Hf,autolink:Nf,blockSkip:If,br:ao,code:$f,del:Ut,delLDelim:Ut,delRDelim:Ut,emStrongLDelim:Mf,emStrongRDelimAst:zf,emStrongRDelimUnd:Of,escape:Cf,link:Wf,nolink:mo,punctuation:Rf,reflink:go,reflinkSearch:qf,tag:Vf,text:Sf,url:Ut},Kf={...As,link:Y(/^!?\[(label)\]\((.*?)\)/).replace("label",Tr).getRegex(),reflink:Y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Tr).getRegex()},Es={...As,emStrongRDelimAst:jf,emStrongLDelim:Pf,delLDelim:Ff,delRDelim:Uf,url:Y(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vo).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\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Y(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vo).getRegex()},Gf={...Es,br:Y(ao).replace("{2,}","*").getRegex(),text:Y(Es.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Lr={normal:Ss,gfm:xf,pedantic:_f},Ln={normal:As,gfm:Es,breaks:Gf,pedantic:Kf},Zf={"&":"&","<":"<",">":">",'"':""","'":"'"},bo=e=>Zf[e];function ct(e,t){if(t){if(_e.escapeTest.test(e))return e.replace(_e.escapeReplace,bo)}else if(_e.escapeTestNoEncode.test(e))return e.replace(_e.escapeReplaceNoEncode,bo);return e}function yo(e){try{e=encodeURI(e).replace(_e.percentDecode,"%")}catch{return null}return e}function wo(e,t){var i;let n=e.replace(_e.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(_e.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!((i=r.at(-1))!=null&&i.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(_e.slashPipe,"|");return r}function In(e,t,n){let r=e.length;if(r===0)return"";let s=0;for(;s<r&&e.charAt(r-s-1)===t;)s++;return e.slice(0,r-s)}function Yf(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Jf(e,t=0){let n=t,r="";for(let s of e)if(s===" "){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=s,n++;return r}function ko(e,t,n,r,s){let i=t.href,l=t.title||null,o=e[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let a={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}function Qf(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let s=r[1];return t.split(`
|
|
29
30
|
`).map(i=>{let l=i.match(n.other.beginningSpace);if(l===null)return i;let[o]=l;return o.length>=s.length?i.slice(s.length):i}).join(`
|
|
30
31
|
`)}var Ir=class{options;rules;lexer;constructor(e){this.options=e||Dt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:In(n,`
|
|
31
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=
|
|
32
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=Qf(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=In(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:In(t[0],`
|
|
32
33
|
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=In(t[0],`
|
|
33
34
|
`).split(`
|
|
34
35
|
`),r="",s="",i=[];for(;n.length>0;){let l=!1,o=[],a;for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))o.push(n[a]),l=!0;else if(!l)o.push(n[a]);else break;n=n.slice(a);let c=o.join(`
|
|
@@ -40,16 +41,16 @@ ${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
|
|
|
40
41
|
`),y=this.blockquote(x);i[i.length-1]=y,r=r.substring(0,r.length-m.raw.length)+y.raw,s=s.substring(0,s.length-m.text.length)+y.text;break}else if((p==null?void 0:p.type)==="list"){let m=p,x=m.raw+`
|
|
41
42
|
`+n.join(`
|
|
42
43
|
`),y=this.list(x);i[i.length-1]=y,r=r.substring(0,r.length-p.raw.length)+y.raw,s=s.substring(0,s.length-m.raw.length)+y.raw,n=x.substring(i.at(-1).raw.length).split(`
|
|
43
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:s}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim(),i=s.length>1,l={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");let o=this.rules.other.listItemRegex(s),a=!1;for(;e;){let u=!1,f="",p="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;f=t[0],e=e.substring(f.length);let m=
|
|
44
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:s}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim(),i=s.length>1,l={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");let o=this.rules.other.listItemRegex(s),a=!1;for(;e;){let u=!1,f="",p="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;f=t[0],e=e.substring(f.length);let m=Jf(t[2].split(`
|
|
44
45
|
`,1)[0],t[1].length),x=e.split(`
|
|
45
46
|
`,1)[0],y=!m.trim(),A=0;if(this.options.pedantic?(A=2,p=m.trimStart()):y?A=t[1].length+1:(A=m.search(this.rules.other.nonSpaceChar),A=A>4?1:A,p=m.slice(A),A+=t[1].length),y&&this.rules.other.blankLine.test(x)&&(f+=x+`
|
|
46
|
-
`,e=e.substring(x.length+1),u=!0),!u){let _=this.rules.other.nextBulletRegex(A),L=this.rules.other.hrRegex(A),
|
|
47
|
-
`,1)[0],D;if(x=oe,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),D=x):D=x.replace(this.rules.other.tabCharGlobal," "),
|
|
48
|
-
`+D.slice(A);else{if(y||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||
|
|
47
|
+
`,e=e.substring(x.length+1),u=!0),!u){let _=this.rules.other.nextBulletRegex(A),L=this.rules.other.hrRegex(A),z=this.rules.other.fencesBeginRegex(A),S=this.rules.other.headingBeginRegex(A),O=this.rules.other.htmlBeginRegex(A),pe=this.rules.other.blockquoteBeginRegex(A);for(;e;){let oe=e.split(`
|
|
48
|
+
`,1)[0],D;if(x=oe,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),D=x):D=x.replace(this.rules.other.tabCharGlobal," "),z.test(x)||S.test(x)||O.test(x)||pe.test(x)||_.test(x)||L.test(x))break;if(D.search(this.rules.other.nonSpaceChar)>=A||!x.trim())p+=`
|
|
49
|
+
`+D.slice(A);else{if(y||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||z.test(m)||S.test(m)||L.test(m))break;p+=`
|
|
49
50
|
`+x}y=!x.trim(),f+=oe+`
|
|
50
|
-
`,e=e.substring(oe.length+1),m=D.slice(A)}}l.loose||(a?l.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(a=!0)),l.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),l.raw+=f}let c=l.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let u of l.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((n=u.tokens[0])==null?void 0:n.type)==="text"||((r=u.tokens[0])==null?void 0:r.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let f=this.rules.other.listTaskCheckbox.exec(u.raw);if(f){let p={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};u.checked=p.checked,l.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=p.raw+u.tokens[0].raw,u.tokens[0].text=p.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(p)):u.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):u.tokens.unshift(p)}}if(!l.loose){let f=u.tokens.filter(m=>m.type==="space"),p=f.length>0&&f.some(m=>this.rules.other.anyLine.test(m.raw));l.loose=p}}if(l.loose)for(let u of l.items){u.loose=!0;for(let f of u.tokens)f.type==="text"&&(f.type="paragraph")}return l}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:s}}}table(e){var l;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=
|
|
51
|
-
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let o of r)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of s)i.rows.push(
|
|
52
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=In(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=
|
|
51
|
+
`,e=e.substring(oe.length+1),m=D.slice(A)}}l.loose||(a?l.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(a=!0)),l.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),l.raw+=f}let c=l.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let u of l.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((n=u.tokens[0])==null?void 0:n.type)==="text"||((r=u.tokens[0])==null?void 0:r.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let f=this.rules.other.listTaskCheckbox.exec(u.raw);if(f){let p={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};u.checked=p.checked,l.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=p.raw+u.tokens[0].raw,u.tokens[0].text=p.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(p)):u.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):u.tokens.unshift(p)}}if(!l.loose){let f=u.tokens.filter(m=>m.type==="space"),p=f.length>0&&f.some(m=>this.rules.other.anyLine.test(m.raw));l.loose=p}}if(l.loose)for(let u of l.items){u.loose=!0;for(let f of u.tokens)f.type==="text"&&(f.type="paragraph")}return l}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:s}}}table(e){var l;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=wo(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(l=t[3])!=null&&l.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
52
|
+
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let o of r)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of s)i.rows.push(wo(o,i.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:i.align[c]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
53
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=In(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=Yf(t[2],"()");if(i===-2)return;if(i>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],s="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],s=i[3])}else s=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),ko(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[r.toLowerCase()];if(!s){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return ko(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,i,l,o=s,a=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(l=[...i].length,r[3]||r[4]){o+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){a+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o+a);let u=[...r[0]][0].length,f=e.slice(0,s+r.index+u+l);if(Math.min(s,l)%2){let m=f.slice(1,-1);return{type:"em",raw:f,text:m,tokens:this.lexer.inlineTokens(m)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,i,l,o=s,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+s);(r=a.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(l=[...i].length,l!==s))continue;if(r[3]||r[4]){o+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o);let c=[...r[0]][0].length,u=e.slice(0,s+r.index+c+l),f=u.slice(s,-s);return{type:"del",raw:u,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,s;if(t[2]==="@")r=t[0],s="mailto:"+r;else{let i;do i=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(i!==t[0]);r=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Ye=class Os{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Dt,this.options.tokenizer=this.options.tokenizer||new Ir,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:_e,block:Lr.normal,inline:Ln.normal};this.options.pedantic?(n.block=Lr.pedantic,n.inline=Ln.pedantic):this.options.gfm&&(n.block=Lr.gfm,this.options.breaks?n.inline=Ln.breaks:n.inline=Ln.gfm),this.tokenizer.rules=n}static get rules(){return{block:Lr,inline:Ln}}static lex(t,n){return new Os(n).lex(t)}static lexInline(t,n){return new Os(n).inlineTokens(t)}lex(t){t=t.replace(_e.carriageReturn,`
|
|
53
54
|
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var s,i,l;for(this.options.pedantic&&(t=t.replace(_e.tabCharGlobal," ").replace(_e.spaceLine,""));t;){let o;if((i=(s=this.options.extensions)==null?void 0:s.block)!=null&&i.some(c=>(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
|
|
54
55
|
`:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
55
56
|
`)?"":`
|
|
@@ -81,8 +82,8 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
81
82
|
`}tablerow({text:e}){return`<tr>
|
|
82
83
|
${e}</tr>
|
|
83
84
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
84
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ct(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=
|
|
85
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+ct(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Ht=new
|
|
86
|
-
</code></pre>`}}}}function xo(e){return(e||"").match(/\S*/)[0]}function _o(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Co=/[&<>"']/,Jf=new RegExp(Co.source,"g"),$o=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xf=new RegExp($o.source,"g"),eh={"&":"&","<":"<",">":">",'"':""","'":"'"},So=e=>eh[e];function Ro(e,t){if(t){if(Co.test(e))return e.replace(Jf,So)}else if($o.test(e))return e.replace(Xf,So);return e}const th=/\$.*?\$/,nh=/^\$(.*?)\$/,rh=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,sh=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=rh.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(th);return n===-1?t.length:n},tokenizer(t){const n=nh.exec(t);if(n!=null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Ao=(e="",t={})=>e.replaceAll(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),ih=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new ko;if(s.setOptions({breaks:!0}),n&&s.use(Qf({highlight:n})),r){const i=sh(r);s.use({extensions:i})}return s.parse(Ao(e,t))},Ls=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},lh=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),oh=e=>e.match(/[\u4E00-\u9FD5]/gu),ah=e=>{var t,n;return(((t=lh(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=oh(e))==null?void 0:n.length)??0)},ch=async()=>{const{userAgentData:e}=navigator;let t=navigator.userAgent;if((e==null?void 0:e.platform)!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&Number.parseInt(n.split(".")[0],10)>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},Eo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const s=new AbortController,i=document.querySelectorAll(n);return i.length>0&&Ns({serverURL:Bn(e),paths:Array.from(i,l=>ci(Ls(l)??t)),lang:r,signal:s.signal}).then(l=>{i.forEach((o,a)=>{o.textContent=l[a].toString()})}).catch(eo),s.abort.bind(s)},To=({size:e})=>J("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[J("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"}),J("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"})]),uh=()=>J("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},J("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"})),fh=()=>J("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},J("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"})),hh=()=>J("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[J("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"}),J("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"})]),ph=({active:e=!1})=>J("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[J("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"})]),dh=()=>J("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[J("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"}),J("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"})]),gh=()=>J("svg",{width:"16",height:"16",ariaHidden:"true"},J("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"})),mh=()=>J("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},J("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"})),vh=()=>J("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},J("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"})),bh=()=>J("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},J("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"})),yh=()=>J("svg",{class:"administrator-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},[J("path",{d:"M461.6 129.56C489.6 105.96 534.8 105.96 562.4 129.56L625.6 183.96C637.6 194.36 660.4 202.76 676 202.76H744C786.4 202.76 821.2 237.56 821.2 279.96V347.96C821.2 363.96 829.6 386.36 840 398.36L894.4 461.56C918 489.16 918 534.76 894.8 562.36L840.4 625.56C830 637.56 821.6 660.36 821.6 675.96V743.96C821.6 786.36 786.8 821.16 744.4 821.16H676.4C660.4 821.16 638 829.56 626 839.96L562.8 894.36C534.8 917.96 489.6 917.96 462 894.36L398.8 839.96C386.8 829.56 364 821.16 348.4 821.16H279.2C236.8 821.16 202 786.36 202 743.96V675.56C201.999 659.96 193.6 637.56 183.6 625.56L129.6 561.96C106.4 534.36 106.4 489.56 129.6 461.96L183.6 398.36C193.6 386.359 202 363.959 202 348.36V279.96C202 237.56 236.8 202.76 279.2 202.76H348.4C364 202.76 386.8 194.36 398.8 184.36L461.6 129.56ZM549.567 331.896C530.047 303.082 486.645 306.12 471.433 337.412L442.175 396.526C435.587 409.848 422.856 419.097 408.146 421.226L342.706 430.726C340.776 431 338.884 431.397 336.993 431.946C303.482 441.361 292.756 483.493 317.671 507.812L364.975 553.96C375.623 564.321 380.507 579.299 377.991 593.954L366.917 659.102C366.595 661.03 366.355 662.967 366.279 664.923C364.906 699.688 401.683 722.937 432.514 706.738L491.05 675.966C504.217 669.068 519.954 669.069 533.121 675.966L591.675 706.738C593.406 707.645 595.174 708.432 597.028 709.104C629.666 721.205 663.139 693.382 657.273 659.102L646.069 593.954C643.42 579.176 648.24 564.083 659.001 553.6L706.315 507.461C707.687 506.118 708.994 504.66 710.215 503.127C731.779 475.809 715.737 435.41 681.281 430.365L615.839 420.874C601.13 418.745 588.4 409.486 581.821 396.174L552.562 337.052C551.644 335.284 550.674 333.551 549.567 331.896Z",fill:"#f59831"})]),Pn=({size:e=100})=>J("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},J("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},J("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),wh=()=>J("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[J("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"}),J("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"})]),kh=()=>on("WALINE_USER_META",{nick:"",mail:"",link:""}),xh=()=>on("WALINE_COMMENT_BOX_EDITOR",""),_h="WALINE_LIKE",Ch=on(_h,[]),Lo=()=>Ch,$h="WALINE_REACTION",Sh=on($h,{}),Io=()=>Sh;var Is={},ut={},ft={},Mo;function Po(){if(Mo)return ft;Mo=1;var e=ft&&ft.__awaiter||function(r,s,i,l){function o(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function u(m){try{p(l.next(m))}catch(x){c(x)}}function f(m){try{p(l.throw(m))}catch(x){c(x)}}function p(m){m.done?a(m.value):o(m.value).then(u,f)}p((l=l.apply(r,s||[])).next())})},t=ft&&ft.__generator||function(r,s){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(p){return function(m){return f([p,m])}}function f(p){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,p[0]&&(i=0)),i;)try{if(l=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,o=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){i.label=p[1];break}if(p[0]===6&&i.label<a[1]){i.label=a[1],a=p;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(p);break}a[2]&&i.ops.pop(),i.trys.pop();continue}p=s.call(r,i)}catch(m){p=[6,m],o=0}finally{l=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};Object.defineProperty(ft,"__esModule",{value:!0}),ft.ReCaptchaInstance=void 0;var n=(function(){function r(s,i,l){this.siteKey=s,this.recaptchaID=i,this.recaptcha=l,this.styleContainer=null}return r.prototype.execute=function(s){return e(this,void 0,void 0,function(){var i;return t(this,function(l){switch(l.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:s})]:[3,2];case 1:return i=l.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:s})];case 3:i=l.sent(),l.label=4;case 4:return[2,i]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r})();return ft.ReCaptchaInstance=n,ft}var Oo;function Rh(){if(Oo)return ut;Oo=1;var e=ut&&ut.__assign||function(){return e=Object.assign||function(s){for(var i,l=1,o=arguments.length;l<o;l++){i=arguments[l];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=i[a])}return s},e.apply(this,arguments)};Object.defineProperty(ut,"__esModule",{value:!0}),ut.getInstance=ut.load=void 0;var t=Po(),n;(function(s){s[s.NOT_LOADED=0]="NOT_LOADED",s[s.LOADING=1]="LOADING",s[s.LOADED=2]="LOADED"})(n||(n={}));var r=(function(){function s(){}return s.load=function(i,l){if(l===void 0&&(l={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(s.getLoadingState()===n.LOADED)return s.instance.getSiteKey()===i?Promise.resolve(s.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(s.getLoadingState()===n.LOADING)return i!==s.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){s.successfulLoadingConsumers.push(function(u){return a(u)}),s.errorLoadingRunnable.push(function(u){return c(u)})});s.instanceSiteKey=i,s.setLoadingState(n.LOADING);var o=new s;return new Promise(function(a,c){o.loadScript(i,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){s.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,i,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),f=new t.ReCaptchaInstance(i,u,grecaptcha);s.successfulLoadingConsumers.forEach(function(p){return p(f)}),s.successfulLoadingConsumers=[],l.autoHideBadge&&f.hideBadge(),s.instance=f,a(f)}).catch(function(u){s.errorLoadingRunnable.forEach(function(f){return f(u)}),s.errorLoadingRunnable=[],c(u)})})},s.getInstance=function(){return s.instance},s.setLoadingState=function(i){s.loadingState=i},s.getLoadingState=function(){return s.loadingState===null?n.NOT_LOADED:s.loadingState},s.prototype.loadScript=function(i,l,o,a,c){var u=this;l===void 0&&(l=!1),o===void 0&&(o=!1),a===void 0&&(a={}),c===void 0&&(c="");var f=document.createElement("script");f.setAttribute("recaptcha-v3-script",""),f.setAttribute("async",""),f.setAttribute("defer","");var p="https://www.google.com/recaptcha/api.js";l?o?p="https://recaptcha.net/recaptcha/enterprise.js":p="https://recaptcha.net/recaptcha/api.js":o&&(p="https://www.google.com/recaptcha/enterprise.js"),c&&(p=c),a.render&&(a.render=void 0);var m=this.buildQueryString(a);return f.src=p+"?render=explicit"+m,new Promise(function(x,y){f.addEventListener("load",u.waitForScriptToLoad(function(){x(f)},o),!1),f.onerror=function(A){s.setLoadingState(n.NOT_LOADED),y(A)},document.head.appendChild(f)})},s.prototype.buildQueryString=function(i){var l=Object.keys(i);return l.length<1?"":"&"+Object.keys(i).filter(function(o){return!!i[o]}).map(function(o){return o+"="+i[o]}).join("&")},s.prototype.waitForScriptToLoad=function(i,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(i,l)},s.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},s.prototype.doExplicitRender=function(i,l,o,a){var c=e({sitekey:l},o);return o.container?a?i.enterprise.render(o.container,c):i.render(o.container,c):a?i.enterprise.render(c):i.render(c)},s.loadingState=null,s.instance=null,s.instanceSiteKey=null,s.successfulLoadingConsumers=[],s.errorLoadingRunnable=[],s.SCRIPT_LOAD_DELAY=25,s})();return ut.load=r.load,ut.getInstance=r.getInstance,ut}var jo;function Ah(){return jo||(jo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Rh();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Po();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(Is)),Is}var Eh=Ah();const zo={},Th=e=>{const t=zo[e]??(zo[e]=Eh.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Lh=e=>({execute:async t=>{const{load:n}=tf("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const{turnstile:r}=window;return new Promise(s=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:s})})})}}),Ih=on("WALINE_USER",{}),Pr=()=>Ih,Mh={key:0,class:"wl-reaction"},Ph=["textContent"],Oh={class:"wl-reaction-list"},jh=["onClick"],zh={class:"wl-reaction-img"},Fh=["src","alt"],Dh=["textContent"],Uh=["textContent"];var Hh=Ot({__name:"ArticleReaction",setup(e){const t=Io(),n=ur(Nn),r=W(-1),s=W([]),i=de(()=>n.value.locale),l=de(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),o=de(()=>{var f;const{path:p}=n.value;return((f=l.value)==null?void 0:f.map((m,x)=>({icon:m,desc:i.value[`reaction${x}`],active:t.value[p]===x})))??null});let a;const c=async()=>{const{serverURL:f,lang:p,path:m}=n.value;if(!l.value)return;const x=new AbortController;a=x.abort.bind(x);const[y]=await Un({serverURL:f,lang:p,paths:[m],type:l.value.map((A,_)=>`reaction${_}`),signal:x.signal});s.value=l.value.map((A,_)=>y[`reaction${_}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:p,lang:m,path:x}=n.value,y=t.value[x];r.value=f,y!=null&&(await Wt({serverURL:p,lang:m,path:x,type:`reaction${y}`,action:"desc"}),s.value[y]=Math.max(s.value[y]-1,0)),y!==f&&(await Wt({serverURL:p,lang:m,path:x,type:`reaction${f}`}),s.value[f]=(s.value[f]||0)+1),y===f?delete t.value[x]:t.value[x]=f,r.value=-1};return tn(()=>{zt(()=>[n.value.serverURL,n.value.path],()=>c())}),rs(()=>{a==null||a()}),(f,p)=>o.value?(E(),P("div",Mh,[M("div",{class:"wl-reaction-title",textContent:Q(i.value.reactionTitle)},null,8,Ph),M("ul",Oh,[(E(!0),P(ie,null,Ae(o.value,({active:m,icon:x,desc:y},A)=>(E(),P("li",{key:A,class:ve(["wl-reaction-item",{active:m}]),onClick:_=>u(A)},[M("div",zh,[M("img",{src:x,alt:y},null,8,Fh),r.value===A?(E(),Ke(N(Pn),{key:0,class:"wl-reaction-loading"})):(E(),P("div",{key:1,class:"wl-reaction-votes",textContent:Q(s.value[A]||0)},null,8,Dh))]),M("div",{class:"wl-reaction-text",textContent:Q(y)},null,8,Uh)],10,jh))),128))])])):q("v-if",!0)}}),On=new Map;function Nh(e){var t=On.get(e);t&&t.destroy()}function Bh(e){var t=On.get(e);t&&t.update()}var jn=null;typeof window>"u"?((jn=function(e){return e}).destroy=function(e){return e},jn.update=function(e){return e}):((jn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return(function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!On.has(r)){var s,i=null,l=window.getComputedStyle(r),o=(s=r.value,function(){c({testForHeightReduction:s===""||!r.value.startsWith(s),restoreTextAlign:null}),s=r.value}),a=(function(f){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(f).forEach(function(p){return r.style[p]=f[p]}),On.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",u),r.addEventListener("input",o),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",On.set(r,{destroy:a,update:u}),u()}function c(f){var p,m,x=f.restoreTextAlign,y=x===void 0?null:x,A=f.testForHeightReduction,_=A===void 0||A,L=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),_&&(p=(function(S){for(var z=[];S&&S.parentNode&&S.parentNode instanceof Element;)S.parentNode.scrollTop&&z.push([S.parentNode,S.parentNode.scrollTop]),S=S.parentNode;return function(){return z.forEach(function(pe){var oe=pe[0],D=pe[1];oe.style.scrollBehavior="auto",oe.scrollTop=D,oe.style.scrollBehavior=null})}})(r),r.style.height=""),m=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=m+"px",y&&(r.style.textAlign=y),p&&p(),i!==m&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=m),L!==l.overflow&&!y)){var O=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=O==="start"?"end":"start"),c({restoreTextAlign:O,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}})(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Nh),e},jn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Bh),e});var Fo=jn;const Vh=["data-index"],Wh=["src","title","onClick"];var qh=Ot({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){let t=null;const n=yt("wall"),r=W({}),s=W([]),i=()=>{const u=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return u>0?u:1},l=u=>Array.from({length:u},()=>[]),o=async u=>{var f;if(u>=e.items.length)return;await en();const p=[...((f=n.value)==null?void 0:f.children)??[]].reduce((m,x)=>x.getBoundingClientRect().height<m.getBoundingClientRect().height?x:m);s.value[Number(p.dataset.index)].push(u),await o(u+1)},a=async(u=!1)=>{if(s.value.length===i()&&!u)return;s.value=l(i());const{scrollY:f}=window;await o(0),window.scrollTo({top:f})},c=u=>{r.value[u.target.src]=!0};return tn(()=>{a(!0),t=new ResizeObserver(()=>{a()}),t.observe(n.value),bt(()=>[e.items],()=>{r.value={},a(!0)}),bt(()=>[e.columnWidth,e.gap],()=>{a()})}),_c(()=>{t.unobserve(n.value)}),(u,f)=>(E(),P("div",{ref_key:"wall",ref:n,class:"wl-gallery",style:At({gap:`${e.gap}px`})},[(E(!0),P(ie,null,Ae(s.value,(p,m)=>(E(),P("div",{key:m,class:"wl-gallery-column","data-index":m,style:At({gap:`${e.gap}px`})},[(E(!0),P(ie,null,Ae(p,x=>(E(),P(ie,{key:x},[r.value[e.items[x].src]?q("v-if",!0):(E(),Ke(N(Pn),{key:0,size:36,style:{margin:"20px auto"}})),M("img",{class:"wl-gallery-item",src:e.items[x].src,title:e.items[x].title,loading:"lazy",onLoad:c,onClick:y=>u.$emit("insert",``)},null,40,Wh)],64))),128))],12,Vh))),128))],4))}});const Kh={key:0,class:"wl-login-info"},Gh={class:"wl-avatar"},Zh=["title"],Yh=["title"],Qh=["src"],Jh=["title","textContent"],Xh={class:"wl-panel"},ep=["for","textContent"],tp=["id","onUpdate:modelValue","name","type"],np=["placeholder"],rp={class:"wl-preview"},sp=["innerHTML"],ip={class:"wl-footer"},lp={class:"wl-actions"},op={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},ap=["title"],cp=["title"],up=["title","aria-label"],fp=["title"],hp={class:"wl-info"},pp={class:"wl-text-number"},dp={key:0},gp=["textContent"],mp=["textContent"],vp=["disabled"],bp=["placeholder"],yp={key:1,class:"wl-loading"},wp=["title","onClick","onMouseenter"],kp=["src","alt"],xp=["src"],_p={key:0,class:"wl-tabs"},Cp=["onClick"],$p=["src","alt","title"],Sp=["title"];var Do=Ot({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,s=ur(Nn),i=xh(),l=kh(),o=Pr(),a=W({}),c=yt("textarea"),u=yt("image-uploader"),f=yt("emoji-button"),p=yt("emoji-popup"),m=yt("gif-button"),x=yt("gif-popup"),y=yt("gif-search"),A=W({tabs:[],map:{}}),_=W(0),L=W(!1),O=W(""),S=W({});let z;const pe=(g,v)=>{clearTimeout(z),O.value=v;const b=g.currentTarget,w=p.value;if(b&&w){const k=b.getBoundingClientRect(),R=w.getBoundingClientRect();S.value={left:`${k.left-R.left+k.width/2}px`,top:`${k.top-R.top}px`,transform:"translate(-50%, -100%)"}}},oe=()=>{z=setTimeout(()=>{O.value=""},50)},D=W(!1),Ce=W(!1),me=W(""),U=W(0),H=yn({loading:!0,list:[]}),re=W(0),F=W(!1),Y=W(""),K=W(!1),Ve=W(!1),fe=de(()=>s.value.locale),xt=de(()=>!!o.value.token),Nt=de(()=>s.value.imageUploader!=null),_t=g=>{const v=c.value,b=v.selectionStart,w=v.selectionEnd||0,{scrollTop:k}=v;i.value=v.value.slice(0,b)+g+v.value.slice(w),v.focus(),v.selectionStart=b+g.length,v.selectionEnd=b+g.length,v.scrollTop=k},Je=({key:g,ctrlKey:v,metaKey:b})=>{K.value||(v||b)&&g==="Enter"&&Vt()},an=async g=>{const v=`![${s.value.locale.uploading} ${g.name}]()`;_t(v),K.value=!0;try{const b=await s.value.imageUploader(g);i.value=i.value.replace(v,`\r
|
|
87
|
-
`)}catch(b){alert(b.message),i.value=i.value.replace(v,"")}finally{K.value=!1}},Ps=g=>{var v;if((v=g.dataTransfer)!=null&&v.items){const b=to(g.dataTransfer.items);b&&Nt.value&&(an(b),g.preventDefault())}},Os=g=>{if(g.clipboardData){const v=to(g.clipboardData.items);v&&Nt.value&&an(v)}},Bt=()=>{const g=u.value;g.files&&Nt.value&&an(g.files[0]).then(()=>{g.value=""})},Vt=async()=>{var g;const{serverURL:v,lang:b,login:w,wordLimit:k,requiredMeta:R,recaptchaV3Key:$,turnstileKey:C}=s.value,I={comment:Y.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:s.value.path,ua:await ch()};if(!n.edit)if(o.value.token)I.nick=o.value.display_name,I.mail=o.value.email,I.link=o.value.url;else{if(w==="force")return;if(R.includes("nick")&&!I.nick){a.value.nick.focus(),alert(fe.value.nickError);return}if(R.includes("mail")&&!I.mail||I.mail&&!va(I.mail)){a.value.mail.focus(),alert(fe.value.mailError);return}I.nick||(I.nick=fe.value.anonymous)}if(!I.comment){c.value.focus();return}if(!F.value){alert(fe.value.wordHint.replace("$0",k[0].toString()).replace("$1",k[1].toString()).replace("$2",U.value.toString()));return}I.comment=Ao(I.comment,A.value.map),n.replyId&&n.rootId&&(I.pid=n.replyId,I.rid=n.rootId,I.at=n.replyUser),K.value=!0;try{$&&(I.recaptchaV3=await Th($).execute("social")),C&&(I.turnstile=await Lh(C).execute("social"));const T={serverURL:v,lang:b,token:o.value.token,comment:I},j=await(n.edit?cn({objectId:n.edit.objectId,...T}):Us(T));if(K.value=!1,j.errmsg){alert(j.errmsg);return}r("submit",j.data),i.value="",me.value="",await en(),n.replyId&&r("cancelReply"),(g=n.edit)!=null&&g.objectId&&r("cancelEdit")}catch(T){K.value=!1,alert(T.message)}},zn=g=>{g.preventDefault();const{lang:v,serverURL:b}=s.value;Bs({serverURL:b,lang:v}).then(w=>{o.value=w,(w.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(w)),r("log")})},jr=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Ct=g=>{g.preventDefault();const{lang:v,serverURL:b}=s.value,w=800,k=800,R=(window.innerWidth-w)/2,$=(window.innerHeight-k)/2,C=new URLSearchParams({lng:v,token:o.value.token}),I=window.open(`${b}/ui/profile?${C.toString()}`,"_blank",`width=${w},height=${k},left=${R},top=${$},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);I==null||I.postMessage({type:"TOKEN",data:o.value.token},"*")},Wo=g=>{var v,b,w,k;!((v=f.value)!=null&&v.contains(g.target))&&!((b=p.value)!=null&&b.contains(g.target))&&(L.value=!1),!((w=m.value)!=null&&w.contains(g.target))&&!((k=x.value)!=null&&k.contains(g.target))&&(D.value=!1)},h=async g=>{var v;const{scrollTop:b,clientHeight:w,scrollHeight:k}=g.target,R=(w+b)/k,$=s.value.search,C=((v=y.value)==null?void 0:v.value)??"";R<.9||H.loading||Ve.value||(H.loading=!0,($.more&&H.list.length>0?await $.more(C,H.list.length):await $.search(C)).length>0?H.list=[...H.list,...$.more&&H.list.length>0?await $.more(C,H.list.length):await $.search(C)]:Ve.value=!0,H.loading=!1,setTimeout(()=>{g.target.scrollTop=b},50))},d=Nu(g=>{H.list=[],Ve.value=!1,h(g)},300);return Ft("click",Wo),Ft("message",({data:g})=>{(g==null?void 0:g.type)==="profile"&&(o.value={...o.value,...g.data},[localStorage,sessionStorage].filter(v=>v.getItem("WALINE_USER")).forEach(v=>{v.setItem("WALINE_USER",JSON.stringify(o))}))}),zt([s,U],([g,v])=>{const{wordLimit:b}=g;b?v<b[0]&&b[0]!==0?([re.value]=b,F.value=!1):v>b[1]?([,re.value]=b,F.value=!1):([,re.value]=b,F.value=!0):(re.value=0,F.value=!0)}),bt(D,async g=>{var v;if(!g)return;const b=s.value.search;y.value&&(y.value.value=""),H.loading=!0,H.list=await(((v=b.default)==null?void 0:v.call(b))??b.search("")),H.loading=!1}),tn(()=>{var g;(g=n.edit)!=null&&g.objectId&&(i.value=n.edit.orig),zt(()=>i.value,v=>{const{highlighter:b,texRenderer:w}=s.value;Y.value=v,me.value=ih(v,{emojiMap:A.value.map,highlighter:b,texRenderer:w}),U.value=ah(v),v?Fo(c.value):Fo.destroy(c.value)}),zt(()=>s.value.emoji,async v=>{A.value=await af(v)})}),(g,v)=>{var b,w;return E(),P("div",{key:N(o).token,class:"wl-comment"},[N(s).login!=="disable"&&xt.value&&!((b=e.edit)!=null&&b.objectId)?(E(),P("div",Kh,[M("div",Gh,[M("button",{type:"submit",class:"wl-logout-btn",title:fe.value.logout,onClick:jr},[ne(N(To),{size:14})],8,Zh),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:fe.value.profile,onClick:Ct},[M("img",{src:N(o).avatar,alt:"avatar"},null,8,Qh)],8,Yh)]),M("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:fe.value.profile,onClick:Ct,textContent:Q(N(o).display_name)},null,8,Jh)])):q("v-if",!0),M("div",Xh,[N(s).login!=="force"&&N(s).meta.length&&!xt.value?(E(),P("div",{key:0,class:ve(["wl-header",`item${N(s).meta.length}`])},[(E(!0),P(ie,null,Ae(N(s).meta,k=>(E(),P("div",{key:k,class:"wl-header-item"},[M("label",{for:`wl-${k}`,textContent:Q(fe.value[k]+(N(s).requiredMeta.includes(k)||!N(s).requiredMeta.length?"":`(${fe.value.optional})`))},null,8,ep),cr(M("input",{id:`wl-${k}`,ref_for:!0,ref:R=>{R&&(a.value[k]=R)},"onUpdate:modelValue":R=>N(l)[k]=R,class:ve(["wl-input",`wl-${k}`]),name:k,type:k==="mail"?"email":"text"},null,10,tp),[[Lu,N(l)[k]]])]))),128))],2)):q("v-if",!0),cr(M("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":v[0]||(v[0]=k=>be(i)?i.value=k:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:fe.value.placeholder,onKeydown:Je,onDrop:Ps,onPaste:Os},null,40,np),[[bs,N(i)]]),cr(M("div",rp,[v[7]||(v[7]=M("hr",null,null,-1)),M("h4",null,Q(fe.value.preview)+":",1),M("div",{class:"wl-content",innerHTML:me.value},null,8,sp)],512),[[Tl,Ce.value]]),M("div",ip,[M("div",lp,[M("a",op,[ne(N(gh))]),cr(M("button",{ref:"emoji-button",type:"button",class:ve(["wl-action",{active:L.value}]),title:fe.value.emoji,onClick:v[1]||(v[1]=k=>L.value=!L.value)},[ne(N(fh))],10,ap),[[Tl,A.value.tabs.length]]),N(s).search?(E(),P("button",{key:0,ref:"gif-button",type:"button",class:ve(["wl-action",{active:D.value}]),title:fe.value.gif,onClick:v[2]||(v[2]=k=>D.value=!D.value)},[ne(N(wh))],10,cp)):q("v-if",!0),M("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Bt},null,544),Nt.value?(E(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:fe.value.uploadImage,"aria-label":fe.value.uploadImage},[ne(N(hh))],8,up)):q("v-if",!0),M("button",{type:"button",class:ve(["wl-action",{active:Ce.value}]),title:fe.value.preview,onClick:v[3]||(v[3]=k=>Ce.value=!Ce.value)},[ne(N(dh))],10,fp)]),M("div",hp,[v[9]||(v[9]=M("div",{class:"wl-captcha-container"},null,-1)),M("div",pp,[it(Q(U.value)+" ",1),N(s).wordLimit?(E(),P("span",dp,[v[8]||(v[8]=it(" / ",-1)),M("span",{class:ve({illegal:!F.value}),textContent:Q(re.value)},null,10,gp)])):q("v-if",!0),it(" "+Q(fe.value.word),1)]),N(s).login!=="disable"&&!xt.value?(E(),P("button",{key:0,type:"button",class:"wl-btn",onClick:zn,textContent:Q(fe.value.login)},null,8,mp)):q("v-if",!0),N(s).login!=="force"||xt.value?(E(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:K.value,onClick:Vt},[K.value?(E(),Ke(N(Pn),{key:0,size:16})):(E(),P(ie,{key:1},[it(Q(fe.value.submit),1)],64))],8,vp)):q("v-if",!0)]),M("div",{ref:"gif-popup",class:ve(["wl-gif-popup",{display:D.value}])},[M("input",{ref:"gif-search",type:"text",placeholder:fe.value.gifSearchPlaceholder,onInput:v[4]||(v[4]=(...k)=>N(d)&&N(d)(...k))},null,40,bp),H.list.length?(E(),Ke(qh,{key:0,items:H.list,"column-width":200,gap:6,onInsert:v[5]||(v[5]=k=>_t(k)),onScroll:h},null,8,["items"])):q("v-if",!0),H.loading?(E(),P("div",yp,[ne(N(Pn),{size:30})])):q("v-if",!0)],2),M("div",{ref:"emoji-popup",class:ve(["wl-emoji-popup",{display:L.value}])},[(E(!0),P(ie,null,Ae(A.value.tabs,(k,R)=>(E(),P(ie,{key:k.name},[R===_.value?(E(),P("div",{key:0,class:"wl-tab-wrapper",onScroll:oe},[(E(!0),P(ie,null,Ae(k.items,$=>(E(),P("button",{key:$,type:"button",title:$,onClick:C=>_t(`:${$}:`),onMouseenter:C=>pe(C,$),onMouseleave:oe},[L.value?(E(),P("img",{key:0,class:"wl-emoji",src:A.value.map[$],alt:$,loading:"lazy",referrerPolicy:"no-referrer"},null,8,kp)):q("v-if",!0)],40,wp))),128))],32)):q("v-if",!0)],64))),128)),M("div",null,[O.value?(E(),P("img",{key:0,class:"wl-emoji-preview",src:A.value.map[O.value],alt:"preview",loading:"lazy",referrerPolicy:"no-referrer",style:At(S.value)},null,12,xp)):q("v-if",!0)]),A.value.tabs.length>1?(E(),P("div",_p,[(E(!0),P(ie,null,Ae(A.value.tabs,(k,R)=>(E(),P("button",{key:k.name,type:"button",class:ve(["wl-tab",{active:_.value===R}]),onClick:$=>_.value=R},[M("img",{class:"wl-emoji",src:k.icon,alt:k.name,title:k.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,$p)],10,Cp))),128))])):q("v-if",!0)],2)])]),e.replyId||(w=e.edit)!=null&&w.objectId?(E(),P("button",{key:1,type:"button",class:"wl-close",title:fe.value.cancelReply,onClick:v[6]||(v[6]=k=>e.replyId?r("cancelReply"):r("cancelEdit"))},[ne(N(To),{size:24})],8,Sp)):q("v-if",!0)])}}});const Rp=["id"],Ap={class:"wl-user","aria-hidden":"true"},Ep=["src"],Tp={class:"wl-card"},Lp={class:"wl-head"},Ip=["href"],Mp={key:1,class:"wl-nick"},Pp=["textContent"],Op=["textContent"],jp=["textContent"],zp=["textContent"],Fp={class:"wl-comment-actions"},Dp=["title"],Up=["title"],Hp={class:"wl-meta","aria-hidden":"true"},Np=["data-value","textContent"],Bp={key:0,class:"wl-warning","aria-hidden":"true"},Vp={key:1,class:"wl-content"},Wp={key:0},qp=["href"],Kp=["innerHTML"],Gp={key:2,class:"wl-admin-actions"},Zp={class:"wl-comment-status"},Yp=["disabled","onClick","textContent"],Qp={key:4,class:"wl-quote"};var Jp=Ot({__name:"CommentCard",props:{comment:{},edit:{},rootId:{},reply:{}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=t,r=["approved","waiting","spam"],s=ur(Nn),i=Lo(),l=ef(),o=Pr(),a=de(()=>s.value.locale),c=de(()=>{const{link:A}=e.comment;return A?fi(A)?A:`https://${A}`:""}),u=de(()=>i.value.includes(e.comment.objectId)),f=de(()=>ga(new Date(e.comment.time),l.value,a.value)),p=de(()=>o.value.type==="administrator"),m=de(()=>e.comment.user_id&&o.value.objectId===e.comment.user_id),x=de(()=>{var A;return e.comment.objectId===((A=e.reply)==null?void 0:A.objectId)}),y=de(()=>{var A;return e.comment.objectId===((A=e.edit)==null?void 0:A.objectId)});return(A,_)=>{var L;const O=el("CommentCard",!0);return E(),P("div",{id:e.comment.objectId.toString(),class:"wl-card-item"},[M("div",Ap,[e.comment.avatar?(E(),P("img",{key:0,class:"wl-user-avatar",src:e.comment.avatar,alt:""},null,8,Ep)):q("v-if",!0),e.comment.type==="guest"?(E(),Ke(N(bh),{key:1})):q("v-if",!0),e.comment.type==="administrator"?(E(),Ke(N(yh),{key:2})):q("v-if",!0)]),M("div",Tp,[M("div",Lp,[c.value?(E(),P("a",{key:0,class:"wl-nick",href:c.value,target:"_blank",rel:"nofollow noopener noreferrer"},Q(e.comment.nick),9,Ip)):(E(),P("span",Mp,Q(e.comment.nick),1)),e.comment.label?(E(),P("span",{key:2,class:"wl-badge",textContent:Q(e.comment.label)},null,8,Pp)):q("v-if",!0),e.comment.sticky?(E(),P("span",{key:3,class:"wl-badge",textContent:Q(a.value.sticky)},null,8,Op)):q("v-if",!0),typeof e.comment.level=="number"?(E(),P("span",{key:4,class:ve(`wl-badge level${e.comment.level}`),textContent:Q(a.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,jp)):q("v-if",!0),M("span",{class:"wl-time",textContent:Q(f.value)},null,8,zp),M("div",Fp,[p.value||m.value?(E(),P(ie,{key:0},[M("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=S=>n("edit",e.comment))},[ne(N(vh))]),M("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=S=>n("delete",e.comment))},[ne(N(uh))])],64)):q("v-if",!0),M("button",{type:"button",class:"wl-like",title:u.value?a.value.cancelLike:a.value.like,onClick:_[2]||(_[2]=S=>n("like",e.comment))},[ne(N(ph),{active:u.value},null,8,["active"]),it(" "+Q("like"in e.comment?e.comment.like:""),1)],8,Dp),M("button",{type:"button",class:ve(["wl-reply",{active:x.value}]),title:x.value?a.value.cancelReply:a.value.reply,onClick:_[3]||(_[3]=S=>n("reply",x.value?null:e.comment))},[ne(N(mh))],10,Up)])]),M("div",Hp,[(E(),P(ie,null,Ae(["addr","browser","os"],S=>(E(),P(ie,null,[e.comment[S]?(E(),P("span",{key:S,class:ve(`wl-${S}`),"data-value":e.comment[S],textContent:Q(e.comment[S])},null,10,Np)):q("v-if",!0)],64))),64))]),e.comment.status==="waiting"&&!p.value?(E(),P("div",Bp,Q(a.value.commentUnderReview),1)):q("v-if",!0),y.value?q("v-if",!0):(E(),P("div",Vp,["reply_user"in e.comment&&e.comment.reply_user?(E(),P("p",Wp,[M("a",{href:"#"+e.comment.pid},"@"+Q(e.comment.reply_user.nick),9,qp),_[17]||(_[17]=M("span",null,": ",-1))])):q("v-if",!0),M("div",{innerHTML:e.comment.comment},null,8,Kp)])),p.value&&!y.value?(E(),P("div",Gp,[M("span",Zp,[(E(),P(ie,null,Ae(r,S=>M("button",{key:S,type:"submit",class:ve(`wl-btn wl-${S}`),disabled:e.comment.status===S,onClick:z=>n("status",{status:S,comment:e.comment}),textContent:Q(a.value[S])},null,10,Yp)),64))]),p.value&&!("rid"in e.comment)?(E(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=S=>n("sticky",e.comment))},Q(e.comment.sticky?a.value.unsticky:a.value.sticky),1)):q("v-if",!0)])):q("v-if",!0),x.value||y.value?(E(),P("div",{key:3,class:ve({"wl-reply-wrapper":x.value,"wl-edit-wrapper":y.value})},[ne(Do,{edit:e.edit,"reply-id":(L=e.reply)==null?void 0:L.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:_[5]||(_[5]=S=>n("log")),onCancelReply:_[6]||(_[6]=S=>n("reply",null)),onCancelEdit:_[7]||(_[7]=S=>n("edit",null)),onSubmit:_[8]||(_[8]=S=>n("submit",S))},null,8,["edit","reply-id","reply-user","root-id"])],2)):q("v-if",!0),"children"in e.comment?(E(),P("div",Qp,[(E(!0),P(ie,null,Ae(e.comment.children,S=>(E(),Ke(O,{key:S.objectId,comment:S,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:_[9]||(_[9]=z=>n("log")),onDelete:_[10]||(_[10]=z=>n("delete",z)),onEdit:_[11]||(_[11]=z=>n("edit",z)),onLike:_[12]||(_[12]=z=>n("like",z)),onReply:_[13]||(_[13]=z=>n("reply",z)),onStatus:_[14]||(_[14]=z=>n("status",z)),onSticky:_[15]||(_[15]=z=>n("sticky",z)),onSubmit:_[16]||(_[16]=z=>n("submit",z))},null,8,["comment","reply","edit","root-id"]))),128))])):q("v-if",!0)])],8,Rp)}}});const Uo="3.11.0",Xp={"data-waline":""},ed={class:"wl-meta-head"},td={class:"wl-count"},nd=["textContent"],rd={class:"wl-sort"},sd=["onClick"],id={class:"wl-cards"},ld={key:1,class:"wl-operation"},od=["textContent"],ad={key:2,class:"wl-loading"},cd=["textContent"],ud={key:4,class:"wl-operation"},fd=["textContent"],hd={key:5,class:"wl-power"};var pd=Ot({__name:"WalineComment",props:{serverURL:{},path:{},meta:{},requiredMeta:{},wordLimit:{},pageSize:{},lang:{},locale:{},commentSorting:{},dark:{type:[String,Boolean]},login:{},noCopyright:{type:Boolean},recaptchaV3Key:{},turnstileKey:{},reaction:{type:[Array,Boolean]},emoji:{},search:{},highlighter:{type:Function},imageUploader:{type:Function},texRenderer:{type:Function}},setup(e){const t=e,n=Pr(),r=Lo(),s=W("loading"),i=W(0),l=W(1),o=W(0),a=de(()=>ha(t)),c=W(a.value.commentSorting),u=W([]),f=W(null),p=W(null),m=de(()=>pa(a.value.dark)),x=de(()=>a.value.locale);rf(m,{id:"waline-darkmode"});let y=null;const A=U=>{const{serverURL:H,path:re,pageSize:F}=a.value,Y=new AbortController;s.value="loading",y==null||y(),Ds({serverURL:H,lang:a.value.lang,path:re,pageSize:F,sortBy:ai[c.value],page:U,signal:Y.signal,token:n.value.token}).then(K=>{s.value="success",i.value=K.count,u.value.push(...K.data),l.value=U,o.value=K.totalPages}).catch(K=>{K.name!=="AbortError"&&(console.error(K.message),s.value="error")}),y=Y.abort.bind(Y)},_=()=>{A(l.value+1)},L=()=>{i.value=0,u.value=[],A(1)},O=U=>{c.value!==U&&(c.value=U,L())},S=U=>{f.value=U},z=U=>{p.value=U},pe=U=>{if(p.value)p.value.comment=U.comment,p.value.orig=U.orig;else if("rid"in U){const H=u.value.find(({objectId:re})=>re===U.rid);if(!H)return;Array.isArray(H.children)||(H.children=[]),H.children.push(U)}else u.value.unshift(U),i.value+=1},oe=async({comment:U,status:H})=>{if(U.status===H)return;const{serverURL:re,lang:F}=a.value;await cn({serverURL:re,lang:F,token:n.value.token,objectId:U.objectId,comment:{status:H}}),U.status=H},D=async U=>{if("rid"in U)return;const{serverURL:H,lang:re}=a.value;await cn({serverURL:H,lang:re,token:n.value.token,objectId:U.objectId,comment:{sticky:U.sticky?0:1}}),U.sticky=!U.sticky},Ce=async({objectId:U})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:H,lang:re}=a.value;await Hs({serverURL:H,lang:re,token:n.value.token,objectId:U}),u.value.some((F,Y)=>F.objectId===U?(u.value=u.value.filter((K,Ve)=>Ve!==Y),!0):F.children.some((K,Ve)=>K.objectId===U?(u.value[Y].children=F.children.filter((fe,xt)=>xt!==Ve),!0):!1))},me=async U=>{const{serverURL:H,lang:re}=a.value,{objectId:F}=U,Y=r.value.includes(F);await cn({serverURL:H,lang:re,objectId:F,token:n.value.token,comment:{like:!Y}}),Y?r.value=r.value.filter(K=>K!==F):(r.value=[...r.value,F],r.value.length>50&&(r.value=r.value.slice(-50))),U.like=Math.max(0,(U.like||0)+(Y?-1:1))};return dc(Nn,a),tn(()=>{zt(()=>[t.serverURL,t.path],()=>{L()})}),rs(()=>{y==null||y()}),(U,H)=>(E(),P("div",Xp,[ne(Hh),!f.value&&!p.value?(E(),Ke(Do,{key:0,onLog:L,onSubmit:pe})):q("v-if",!0),M("div",ed,[M("div",td,[i.value?(E(),P("span",{key:0,class:"wl-num",textContent:Q(i.value)},null,8,nd)):q("v-if",!0),it(" "+Q(x.value.comment),1)]),M("ul",rd,[(E(!0),P(ie,null,Ae(N(ua),re=>(E(),P("li",{key:re,class:ve([re===c.value?"active":""]),onClick:F=>O(re)},Q(x.value[re]),11,sd))),128))])]),M("div",id,[(E(!0),P(ie,null,Ae(u.value,re=>(E(),Ke(Jp,{key:re.objectId,"root-id":re.objectId,comment:re,reply:f.value,edit:p.value,onLog:L,onReply:S,onEdit:z,onSubmit:pe,onStatus:oe,onDelete:Ce,onSticky:D,onLike:me},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(E(),P("div",ld,[M("button",{type:"button",class:"wl-btn",onClick:L,textContent:Q(x.value.refresh)},null,8,od)])):s.value==="loading"?(E(),P("div",ad,[ne(N(Pn),{size:30})])):u.value.length?l.value<o.value?(E(),P("div",ud,[M("button",{type:"button",class:"wl-btn",onClick:_,textContent:Q(x.value.more)},null,8,fd)])):q("v-if",!0):(E(),P("div",{key:3,class:"wl-empty",textContent:Q(x.value.sofa)},null,8,cd)),a.value.noCopyright?q("v-if",!0):(E(),P("div",hd,[H[0]||(H[0]=it(" Powered by ",-1)),H[1]||(H[1]=M("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),it(" v"+Q(N(Uo)),1)]))]))}});const Ho=(e,t)=>{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.textContent=s.toString())})},No=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:s=navigator.language})=>{const i=new AbortController,l=[...document.querySelectorAll(n)],o=c=>{const u=Ls(c);return u!=null&&t!==u},a=c=>Vs({serverURL:Bn(e),paths:c.map(u=>Ls(u)??t),lang:s,signal:i.signal}).then(u=>{Ho(u,c)}).catch(eo);if(r){const c=l.filter(f=>!o(f)),u=l.filter(f=>o(f));Ws({serverURL:Bn(e),path:t,lang:s}).then(f=>{Ho(f,c)}),u.length>0&&a(u)}else a(l);return i.abort.bind(i)},dd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...s})=>{const i=e?Rr(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!s.serverURL)throw new Error("Option 'serverURL' is missing!");const l=yn({...s}),o=yn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&Eo({serverURL:l.serverURL,path:o.path,...qt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&No({serverURL:l.serverURL,path:o.path,...qt(o.pageview)?{selector:o.pageview}:{}})};let u=null;i&&(u=Wl(()=>J(pd,{path:o.path,...l})),u.mount(i));const f=Yi(a),p=Yi(c);return{el:i,update:({comment:m,pageview:x,path:y=window.location.pathname,...A}={})=>{Object.entries(A).forEach(([_,L])=>{l[_]=L}),o.path=y,m!=null&&(o.comment=m),x!=null&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),f(),p()}}},gd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const s=Pr(),i=Rr(e),l=new AbortController;return qs({serverURL:t,count:n,lang:r,signal:l.signal,token:s.value.token}).then(o=>i&&o.length>0?(i.innerHTML=`<ul class="wl-recent-list">${o.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:o,destroy:()=>{l.abort(),i.innerHTML=""}}):{comments:o,destroy:()=>{l.abort()}})},md=({el:e,serverURL:t,count:n,locale:r,lang:s=navigator.language,mode:i="list"})=>{const l=Rr(e),o=new AbortController;return Ks({serverURL:t,pageSize:n,lang:s,signal:o.signal}).then(a=>{if(!l||a.length===0)return{users:a,destroy:()=>{o.abort()}};const c={...li(s),...typeof r=="object"?r:{}};return l.innerHTML=`<ul class="wl-user-${i}">${a.map((u,f)=>[`<li class="wl-user-item" aria-label="${u.nick}">`,u.link?`<a href="${u.link}" target="_blank">`:"",'<div class="wl-user-avatar">',`<img src="${u.avatar}" alt="${u.nick}">`,`<span class="wl-user-badge">${f+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',u.nick,typeof u.level=="number"?`<span class="wl-badge">${c[`level${u.level}`]??`Level ${u.level}`}</span>`:"",u.label?`<span class="wl-badge">${u.label}</span>`:"","</div>",u.link,"</div>",u.link?"</a>":"","</li>"].filter(Boolean).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}})},vd=async({serverURL:e,lang:t,path:n})=>{const r=[1,2,3,4,5],s=new AbortController,i=s.abort.bind(s),[l]=await Un({serverURL:e,lang:t,paths:[n],type:Array.from({length:5},(o,a)=>`reaction${a}`),signal:s.signal});return{value:r.map((o,a)=>l[`reaction${a}`]),abort:i}},Ms=e=>{if(Number.isNaN(e))return 0;const t=Math.round(e);return Math.min(5,Math.max(0,t))},Bo=(e=[])=>Array.from({length:5},(t,n)=>{const r=e[n]??0;return typeof r=="number"&&r>0?r:0});var bd=Ot({name:"WalineStarDisplay",props:{score:{type:Number,default:0}},setup(e){const t=de(()=>Ms(e.score));return{displayScore:t,displayClass:n=>t.value>=n?"wl-star-solid":"wl-star-outline"}}}),Vo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const yd={class:"wl-star-icon",viewBox:"0 0 24 24"};function wd(e,t,n,r,s,i){return E(),P(ie,null,Ae([1,2,3,4,5],l=>M("span",{key:l,class:"wl-star-item"},[(E(),P("svg",yd,[M("path",{class:ve(e.displayClass(l)),d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"},null,2)]))])),64)}var kd=Vo(bd,[["render",wd]]),xd=Ot({name:"WalineStarWidget",components:{StarDisplay:kd},props:{path:{type:String,default:""},serverURL:{type:String,default:""},lang:{type:String,default:""}},emits:["rate"],setup(e,{emit:t}){const n=W(null),r=Io(),s=W(Ms((r.value[e.path]??0)+1)),i=W(null),l=W(Bo([])),o=W(!1);tn(()=>{zt(()=>[e.serverURL,e.path],async()=>{try{const _=await vd({serverURL:e.serverURL,path:e.path,lang:e.lang});l.value=Bo(_.value)}catch(_){console.error("Failed to fetch reaction data:",_)}})});const a=de(()=>i.value??s.value),c=de(()=>l.value.reduce((_,L)=>_+L,0)),u=de(()=>l.value.map(_=>c.value?_/c.value:0)),f=_=>{if(!n.value)return 0;const{firstElementChild:L,lastElementChild:O}=n.value;if(!L||!O)return 0;const{left:S}=L.getBoundingClientRect(),{right:z}=O.getBoundingClientRect(),pe=z-S,oe=(_.clientX-S)/pe,D=Math.min(1,Math.max(0,oe))*5;return Ms(D)},p=_=>{i.value=f(_)},m=()=>{i.value=null},x=async _=>{const L=i.value??f(_);if(L===s.value||o.value)return;o.value=!0;const O=s.value,S={serverURL:e.serverURL,lang:e.lang,path:e.path};try{O&&(await Wt({...S,type:`reaction${O-1}`,action:"desc"}),l.value[O-1]=Math.max(0,(l.value[O-1]??0)-1)),s.value=L;const z=L-1;r.value[e.path]=z,await Wt({serverURL:e.serverURL,lang:e.lang,path:e.path,type:`reaction${z}`,action:"inc"}),l.value[z]=(l.value[z]??0)+1,t("rate",L)}catch(z){s.value=O,O?r.value[e.path]=O-1:delete r.value[e.path],console.error("[Waline] Failed to update reaction counter",z)}finally{o.value=!1}};function y(_){return l.value[_-1]??0}function A(_){return`${((u.value[_-1]??0)*100).toFixed(1)}%`}return{ratingArea:n,displayScore:a,onMouseMove:p,onMouseLeave:m,onClick:x,countFor:y,percentText:A}}});const _d={class:"wl-star"},Cd={class:"wl-star-score"},$d={class:"wl-star-rate"},Sd={class:"wl-star-progress"},Rd=["data-count"],Ad={class:"wl-star-percent"};function Ed(e,t,n,r,s,i){const l=el("StarDisplay");return E(),P("div",_d,[M("div",{ref:"ratingArea",class:"wl-star-rate",onMousemove:t[0]||(t[0]=(...o)=>e.onMouseMove&&e.onMouseMove(...o)),onMouseleave:t[1]||(t[1]=(...o)=>e.onMouseLeave&&e.onMouseLeave(...o)),onClick:t[2]||(t[2]=(...o)=>e.onClick&&e.onClick(...o))},[ne(l,{score:e.displayScore},null,8,["score"])],544),M("div",Cd,[(E(),P(ie,null,Ae([5,4,3,2,1],o=>M("div",{key:o,class:"wl-star-row"},[M("div",$d,[ne(l,{score:o},null,8,["score"])]),M("div",Sd,[M("div",{class:"wl-star-progress-bar",style:At({width:e.percentText(o)}),"data-count":e.countFor(o).toString()},null,12,Rd)]),M("span",Ad,Q(e.percentText(o)),1)])),64))])])}var Td=Vo(xd,[["render",Ed]]);const Ld=({el:e,path:t,lang:n=navigator.language,serverURL:r,onRate:s})=>{const i=Rr(e);if(!i)return{destroy:()=>{}};const l=Wl(Td,{path:t,lang:n,serverURL:r,onRate:s});return l.mount(i),{destroy:()=>{l.unmount(),i.innerHTML=""}}};ee.RecentComments=gd,ee.Star=Ld,ee.UserList=md,ee.addComment=Us,ee.commentCount=Eo,ee.defaultLocales=Hn,ee.deleteComment=Hs,ee.fetchCommentCount=Ns,ee.getArticleCounter=Un,ee.getComment=Ds,ee.getPageview=Vs,ee.getRecentComment=qs,ee.getUserList=Ks,ee.init=dd,ee.login=Bs,ee.pageviewCount=No,ee.updateArticleCounter=Wt,ee.updateComment=cn,ee.updatePageview=Ws,ee.version=Uo}));
|
|
85
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ct(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=yo(e);if(s===null)return r;e=s;let i='<a href="'+e+'"';return t&&(i+=' title="'+ct(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=yo(e);if(s===null)return ct(n);e=s;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${ct(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ct(e.text)}},Ts=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Je=class Fs{options;renderer;textRenderer;constructor(t){this.options=t||Dt,this.options.renderer=this.options.renderer||new Mr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ts}static parse(t,n){return new Fs(n).parse(t)}static parseInline(t,n){return new Fs(n).parseInline(t)}parse(t){var r,s;let n="";for(let i=0;i<t.length;i++){let l=t[i];if((s=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&s[l.type]){let a=l,c=this.options.extensions.renderers[a.type].call({parser:this},a);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){n+=c||"";continue}}let o=l;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(t,n=this.renderer){var s,i;let r="";for(let l=0;l<t.length;l++){let o=t[l];if((i=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&i[o.type]){let c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=c||"";continue}}let a=o;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"checkbox":{r+=n.checkbox(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{let c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}},Mn=(zr=class{options;block;constructor(t){this.options=t||Dt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Ye.lex:Ye.lexInline}provideParser(){return this.block?Je.parse:Je.parseInline}},js(zr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),js(zr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),zr),xo=class{defaults=ks();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Je;Renderer=Mr;TextRenderer=Ts;Lexer=Ye;Tokenizer=Ir;Hooks=Mn;constructor(...e){this.use(...e)}walkTokens(e,t){var r,s;let n=[];for(let i of e)switch(n=n.concat(t.call(this,i)),i.type){case"table":{let l=i;for(let o of l.header)n=n.concat(this.walkTokens(o.tokens,t));for(let o of l.rows)for(let a of o)n=n.concat(this.walkTokens(a.tokens,t));break}case"list":{let l=i;n=n.concat(this.walkTokens(l.items,t));break}default:{let l=i;(s=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&s[l.type]?this.defaults.extensions.childTokens[l.type].forEach(o=>{let a=l[o].flat(1/0);n=n.concat(this.walkTokens(a,t))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let i=t.renderers[s.name];i?t.renderers[s.name]=function(...l){let o=s.renderer.apply(this,l);return o===!1&&(o=i.apply(this,l)),o}:t.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'");let i=t[s.level];i?i.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),r.extensions=t),n.renderer){let s=this.defaults.renderer||new Mr(this.defaults);for(let i in n.renderer){if(!(i in s))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let l=i,o=n.renderer[l],a=s[l];s[l]=(...c)=>{let u=o.apply(s,c);return u===!1&&(u=a.apply(s,c)),u||""}}r.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Ir(this.defaults);for(let i in n.tokenizer){if(!(i in s))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let l=i,o=n.tokenizer[l],a=s[l];s[l]=(...c)=>{let u=o.apply(s,c);return u===!1&&(u=a.apply(s,c)),u}}r.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Mn;for(let i in n.hooks){if(!(i in s))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let l=i,o=n.hooks[l],a=s[l];Mn.passThroughHooks.has(i)?s[l]=c=>{if(this.defaults.async&&Mn.passThroughHooksRespectAsync.has(i))return(async()=>{let f=await o.call(s,c);return a.call(s,f)})();let u=o.call(s,c);return a.call(s,u)}:s[l]=(...c)=>{if(this.defaults.async)return(async()=>{let f=await o.apply(s,c);return f===!1&&(f=await a.apply(s,c)),f})();let u=o.apply(s,c);return u===!1&&(u=a.apply(s,c)),u}}r.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,i=n.walkTokens;r.walkTokens=function(l){let o=[];return o.push(i.call(this,l)),s&&(o=o.concat(s.call(this,l))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Ye.lex(e,t??this.defaults)}parser(e,t){return Je.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=e),s.async)return(async()=>{let l=s.hooks?await s.hooks.preprocess(t):t,o=await(s.hooks?await s.hooks.provideLexer():e?Ye.lex:Ye.lexInline)(l,s),a=s.hooks?await s.hooks.processAllTokens(o):o;s.walkTokens&&await Promise.all(this.walkTokens(a,s.walkTokens));let c=await(s.hooks?await s.hooks.provideParser():e?Je.parse:Je.parseInline)(a,s);return s.hooks?await s.hooks.postprocess(c):c})().catch(i);try{s.hooks&&(t=s.hooks.preprocess(t));let l=(s.hooks?s.hooks.provideLexer():e?Ye.lex:Ye.lexInline)(t,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let o=(s.hooks?s.hooks.provideParser():e?Je.parse:Je.parseInline)(l,s);return s.hooks&&(o=s.hooks.postprocess(o)),o}catch(l){return i(l)}}}onError(e,t){return n=>{if(n.message+=`
|
|
86
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+ct(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Ht=new xo;function ge(e,t){return Ht.parse(e,t)}ge.options=ge.setOptions=function(e){return Ht.setOptions(e),ge.defaults=Ht.defaults,ro(ge.defaults),ge},ge.getDefaults=ks,ge.defaults=Dt,ge.use=function(...e){return Ht.use(...e),ge.defaults=Ht.defaults,ro(ge.defaults),ge},ge.walkTokens=function(e,t){return Ht.walkTokens(e,t)},ge.parseInline=Ht.parseInline,ge.Parser=Je,ge.parser=Je.parse,ge.Renderer=Mr,ge.TextRenderer=Ts,ge.Lexer=Ye,ge.lexer=Ye.lex,ge.Tokenizer=Ir,ge.Hooks=Mn,ge.parse=ge;function Xf(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-"),typeof e.emptyLangClass!="string"&&(e.emptyLangClass=""),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=_o(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Co(t));const r=e.highlight(t.text,n,t.lang||"");if(r 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.");Co(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const s=_o(n),i=s?e.langPrefix+Ao(s):e.emptyLangClass,l=i?` class="${i}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:Ao(t,!0)}
|
|
87
|
+
</code></pre>`}}}}function _o(e){return(e||"").match(/\S*/)[0]}function Co(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const $o=/[&<>"']/,eh=new RegExp($o.source,"g"),So=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,th=new RegExp(So.source,"g"),nh={"&":"&","<":"<",">":">",'"':""","'":"'"},Ro=e=>nh[e];function Ao(e,t){if(t){if($o.test(e))return e.replace(eh,Ro)}else if(So.test(e))return e.replace(th,Ro);return e}const rh=/\$.*?\$/,sh=/^\$(.*?)\$/,ih=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,lh=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=ih.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(rh);return n===-1?t.length:n},tokenizer(t){const n=sh.exec(t);if(n!=null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Eo=(e="",t={})=>e.replaceAll(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),oh=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new xo;if(s.setOptions({breaks:!0}),n&&s.use(Xf({highlight:n})),r){const i=lh(r);s.use({extensions:i})}return s.parse(Eo(e,t))},Ls=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},ah=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),ch=e=>e.match(/[\u4E00-\u9FD5]/gu),uh=e=>{var t,n;return(((t=ah(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=ch(e))==null?void 0:n.length)??0)},fh=async()=>{const{userAgentData:e}=navigator;let t=navigator.userAgent;if((e==null?void 0:e.platform)!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&Number.parseInt(n.split(".")[0],10)>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},To=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const s=new AbortController,i=document.querySelectorAll(n);return i.length>0&&Ns({serverURL:Bn(e),paths:Array.from(i,l=>ui(Ls(l)??t)),lang:r,signal:s.signal}).then(l=>{i.forEach((o,a)=>{o.textContent=l[a].toString()})}).catch(to),s.abort.bind(s)},Lo=({size:e})=>W("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[W("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"}),W("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"})]),hh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},W("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"})),ph=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},W("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"})),dh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[W("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"}),W("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"})]),gh=({active:e=!1})=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[W("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"})]),mh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[W("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"}),W("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"})]),vh=()=>W("svg",{width:"16",height:"16",ariaHidden:"true"},W("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"})),bh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},W("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"})),yh=()=>W("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},W("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"})),wh=()=>W("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},W("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"})),kh=()=>W("svg",{class:"administrator-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},[W("path",{d:"M461.6 129.56C489.6 105.96 534.8 105.96 562.4 129.56L625.6 183.96C637.6 194.36 660.4 202.76 676 202.76H744C786.4 202.76 821.2 237.56 821.2 279.96V347.96C821.2 363.96 829.6 386.36 840 398.36L894.4 461.56C918 489.16 918 534.76 894.8 562.36L840.4 625.56C830 637.56 821.6 660.36 821.6 675.96V743.96C821.6 786.36 786.8 821.16 744.4 821.16H676.4C660.4 821.16 638 829.56 626 839.96L562.8 894.36C534.8 917.96 489.6 917.96 462 894.36L398.8 839.96C386.8 829.56 364 821.16 348.4 821.16H279.2C236.8 821.16 202 786.36 202 743.96V675.56C201.999 659.96 193.6 637.56 183.6 625.56L129.6 561.96C106.4 534.36 106.4 489.56 129.6 461.96L183.6 398.36C193.6 386.359 202 363.959 202 348.36V279.96C202 237.56 236.8 202.76 279.2 202.76H348.4C364 202.76 386.8 194.36 398.8 184.36L461.6 129.56ZM549.567 331.896C530.047 303.082 486.645 306.12 471.433 337.412L442.175 396.526C435.587 409.848 422.856 419.097 408.146 421.226L342.706 430.726C340.776 431 338.884 431.397 336.993 431.946C303.482 441.361 292.756 483.493 317.671 507.812L364.975 553.96C375.623 564.321 380.507 579.299 377.991 593.954L366.917 659.102C366.595 661.03 366.355 662.967 366.279 664.923C364.906 699.688 401.683 722.937 432.514 706.738L491.05 675.966C504.217 669.068 519.954 669.069 533.121 675.966L591.675 706.738C593.406 707.645 595.174 708.432 597.028 709.104C629.666 721.205 663.139 693.382 657.273 659.102L646.069 593.954C643.42 579.176 648.24 564.083 659.001 553.6L706.315 507.461C707.687 506.118 708.994 504.66 710.215 503.127C731.779 475.809 715.737 435.41 681.281 430.365L615.839 420.874C601.13 418.745 588.4 409.486 581.821 396.174L552.562 337.052C551.644 335.284 550.674 333.551 549.567 331.896Z",fill:"#f59831"})]),Pn=({size:e=100})=>W("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},W("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},W("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),xh=()=>W("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[W("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"}),W("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"})]),Io=()=>W("svg",{width:"16",height:"16",viewBox:"0 0 24 24"},W("g",{transform:"translate(0 -1028.4)"},W("g",{},[W("path",{d:"m4 1031.4c-1.1046 0-2 0.9-2 2v16c0 1.1 0.8954 2 2 2h16c1.105 0 2-0.9 2-2v-16c0-1.1-0.895-2-2-2h-16z",fill:"#d35400"}),W("path",{d:"m4 2c-1.1046 0-2 0.8954-2 2v16c0 1.105 0.8954 2 2 2h16c1.105 0 2-0.895 2-2v-16c0-1.1046-0.895-2-2-2h-16z",transform:"translate(0 1028.4)",fill:"#e67e22"}),W("path",{d:"m5 1034.4v2.3c6.443 0 11.667 5.2 11.667 11.7h2.333c0-7.8-6.268-14-14-14zm0 4.6v2.4c3.866 0 7 3.1 7 7h2.333c0-5.2-4.178-9.4-9.333-9.4zm2.0417 5.3c-1.1276 0-2.0417 0.9-2.0417 2s0.9141 2.1 2.0417 2.1c1.1275 0 2.0416-1 2.0416-2.1s-0.9141-2-2.0416-2z",fill:"#d35400"}),W("path",{d:"m5 1033.4v2.3c6.443 0 11.667 5.2 11.667 11.7h2.333c0-7.8-6.268-14-14-14zm0 4.6v2.4c3.866 0 7 3.1 7 7h2.333c0-5.2-4.178-9.4-9.333-9.4zm2.0417 5.3c-1.1276 0-2.0417 0.9-2.0417 2s0.9141 2.1 2.0417 2.1c1.1275 0 2.0416-1 2.0416-2.1s-0.9141-2-2.0416-2z",fill:"#ecf0f1"})]))),_h=()=>W("svg",{fill:"currentColor",width:"24",height:"24",viewBox:"-3 0 19 19",class:"cf-icon-svg"},W("path",{d:"M.926 12.818a1.403 1.403 0 1 1 0 1.984 1.402 1.402 0 0 1 0-1.984zm10.531 2.357a1.03 1.03 0 0 1-1.029-1.03 8.775 8.775 0 0 0-.694-3.438A8.826 8.826 0 0 0 1.591 5.31a1.03 1.03 0 1 1 0-2.059 10.817 10.817 0 0 1 4.24.857 10.893 10.893 0 0 1 3.463 2.334 10.867 10.867 0 0 1 3.19 7.703 1.027 1.027 0 0 1-1.027 1.029zm-4.538 0a1.03 1.03 0 0 1-1.029-1.03 4.297 4.297 0 0 0-4.299-4.298 1.03 1.03 0 0 1 0-2.059 6.362 6.362 0 0 1 5.857 3.883 6.298 6.298 0 0 1 .5 2.475 1.03 1.03 0 0 1-1.029 1.029z"})),Ch=()=>on("WALINE_USER_META",{nick:"",mail:"",link:""}),$h=()=>on("WALINE_COMMENT_BOX_EDITOR",""),Sh="WALINE_LIKE",Rh=on(Sh,[]),Mo=()=>Rh,Ah="WALINE_REACTION",Eh=on(Ah,{}),Po=()=>Eh;var Is={},ut={},ft={},zo;function jo(){if(zo)return ft;zo=1;var e=ft&&ft.__awaiter||function(r,s,i,l){function o(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function u(m){try{p(l.next(m))}catch(x){c(x)}}function f(m){try{p(l.throw(m))}catch(x){c(x)}}function p(m){m.done?a(m.value):o(m.value).then(u,f)}p((l=l.apply(r,s||[])).next())})},t=ft&&ft.__generator||function(r,s){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(p){return function(m){return f([p,m])}}function f(p){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,p[0]&&(i=0)),i;)try{if(l=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,o=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){i.label=p[1];break}if(p[0]===6&&i.label<a[1]){i.label=a[1],a=p;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(p);break}a[2]&&i.ops.pop(),i.trys.pop();continue}p=s.call(r,i)}catch(m){p=[6,m],o=0}finally{l=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};Object.defineProperty(ft,"__esModule",{value:!0}),ft.ReCaptchaInstance=void 0;var n=(function(){function r(s,i,l){this.siteKey=s,this.recaptchaID=i,this.recaptcha=l,this.styleContainer=null}return r.prototype.execute=function(s){return e(this,void 0,void 0,function(){var i;return t(this,function(l){switch(l.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:s})]:[3,2];case 1:return i=l.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:s})];case 3:i=l.sent(),l.label=4;case 4:return[2,i]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r})();return ft.ReCaptchaInstance=n,ft}var Oo;function Th(){if(Oo)return ut;Oo=1;var e=ut&&ut.__assign||function(){return e=Object.assign||function(s){for(var i,l=1,o=arguments.length;l<o;l++){i=arguments[l];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=i[a])}return s},e.apply(this,arguments)};Object.defineProperty(ut,"__esModule",{value:!0}),ut.getInstance=ut.load=void 0;var t=jo(),n;(function(s){s[s.NOT_LOADED=0]="NOT_LOADED",s[s.LOADING=1]="LOADING",s[s.LOADED=2]="LOADED"})(n||(n={}));var r=(function(){function s(){}return s.load=function(i,l){if(l===void 0&&(l={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(s.getLoadingState()===n.LOADED)return s.instance.getSiteKey()===i?Promise.resolve(s.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(s.getLoadingState()===n.LOADING)return i!==s.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){s.successfulLoadingConsumers.push(function(u){return a(u)}),s.errorLoadingRunnable.push(function(u){return c(u)})});s.instanceSiteKey=i,s.setLoadingState(n.LOADING);var o=new s;return new Promise(function(a,c){o.loadScript(i,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){s.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,i,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),f=new t.ReCaptchaInstance(i,u,grecaptcha);s.successfulLoadingConsumers.forEach(function(p){return p(f)}),s.successfulLoadingConsumers=[],l.autoHideBadge&&f.hideBadge(),s.instance=f,a(f)}).catch(function(u){s.errorLoadingRunnable.forEach(function(f){return f(u)}),s.errorLoadingRunnable=[],c(u)})})},s.getInstance=function(){return s.instance},s.setLoadingState=function(i){s.loadingState=i},s.getLoadingState=function(){return s.loadingState===null?n.NOT_LOADED:s.loadingState},s.prototype.loadScript=function(i,l,o,a,c){var u=this;l===void 0&&(l=!1),o===void 0&&(o=!1),a===void 0&&(a={}),c===void 0&&(c="");var f=document.createElement("script");f.setAttribute("recaptcha-v3-script",""),f.setAttribute("async",""),f.setAttribute("defer","");var p="https://www.google.com/recaptcha/api.js";l?o?p="https://recaptcha.net/recaptcha/enterprise.js":p="https://recaptcha.net/recaptcha/api.js":o&&(p="https://www.google.com/recaptcha/enterprise.js"),c&&(p=c),a.render&&(a.render=void 0);var m=this.buildQueryString(a);return f.src=p+"?render=explicit"+m,new Promise(function(x,y){f.addEventListener("load",u.waitForScriptToLoad(function(){x(f)},o),!1),f.onerror=function(A){s.setLoadingState(n.NOT_LOADED),y(A)},document.head.appendChild(f)})},s.prototype.buildQueryString=function(i){var l=Object.keys(i);return l.length<1?"":"&"+Object.keys(i).filter(function(o){return!!i[o]}).map(function(o){return o+"="+i[o]}).join("&")},s.prototype.waitForScriptToLoad=function(i,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(i,l)},s.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},s.prototype.doExplicitRender=function(i,l,o,a){var c=e({sitekey:l},o);return o.container?a?i.enterprise.render(o.container,c):i.render(o.container,c):a?i.enterprise.render(c):i.render(c)},s.loadingState=null,s.instance=null,s.instanceSiteKey=null,s.successfulLoadingConsumers=[],s.errorLoadingRunnable=[],s.SCRIPT_LOAD_DELAY=25,s})();return ut.load=r.load,ut.getInstance=r.getInstance,ut}var Fo;function Lh(){return Fo||(Fo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Th();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=jo();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(Is)),Is}var Ih=Lh();const Do={},Mh=e=>{const t=Do[e]??(Do[e]=Ih.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Ph=e=>({execute:async t=>{const{load:n}=rf("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const{turnstile:r}=window;return new Promise(s=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:s})})})}}),zh=on("WALINE_USER",{}),Pr=()=>zh,jh={key:0,class:"wl-reaction"},Oh=["textContent"],Fh={class:"wl-reaction-list"},Dh=["onClick"],Uh={class:"wl-reaction-img"},Hh=["src","alt"],Nh=["textContent"],Bh=["textContent"];var Vh=zt({__name:"ArticleReaction",setup(e){const t=Po(),n=ur(Nn),r=K(-1),s=K([]),i=de(()=>n.value.locale),l=de(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),o=de(()=>{var f;const{path:p}=n.value;return((f=l.value)==null?void 0:f.map((m,x)=>({icon:m,desc:i.value[`reaction${x}`],active:t.value[p]===x})))??null});let a;const c=async()=>{const{serverURL:f,lang:p,path:m}=n.value;if(!l.value)return;const x=new AbortController;a=x.abort.bind(x);const[y]=await Un({serverURL:f,lang:p,paths:[m],type:l.value.map((A,_)=>`reaction${_}`),signal:x.signal});s.value=l.value.map((A,_)=>y[`reaction${_}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:p,lang:m,path:x}=n.value,y=t.value[x];r.value=f,y!=null&&(await Wt({serverURL:p,lang:m,path:x,type:`reaction${y}`,action:"desc"}),s.value[y]=Math.max(s.value[y]-1,0)),y!==f&&(await Wt({serverURL:p,lang:m,path:x,type:`reaction${f}`}),s.value[f]=(s.value[f]||0)+1),y===f?delete t.value[x]:t.value[x]=f,r.value=-1};return tn(()=>{Ot(()=>[n.value.serverURL,n.value.path],()=>c())}),rs(()=>{a==null||a()}),(f,p)=>o.value?(E(),P("div",jh,[I("div",{class:"wl-reaction-title",textContent:Z(i.value.reactionTitle)},null,8,Oh),I("ul",Fh,[(E(!0),P(ie,null,Ae(o.value,({active:m,icon:x,desc:y},A)=>(E(),P("li",{key:A,class:ve(["wl-reaction-item",{active:m}]),onClick:_=>u(A)},[I("div",Uh,[I("img",{src:x,alt:y},null,8,Hh),r.value===A?(E(),Ke(U(Pn),{key:0,class:"wl-reaction-loading"})):(E(),P("div",{key:1,class:"wl-reaction-votes",textContent:Z(s.value[A]||0)},null,8,Nh))]),I("div",{class:"wl-reaction-text",textContent:Z(y)},null,8,Bh)],10,Dh))),128))])])):q("v-if",!0)}}),zn=new Map;function Wh(e){var t=zn.get(e);t&&t.destroy()}function qh(e){var t=zn.get(e);t&&t.update()}var jn=null;typeof window>"u"?((jn=function(e){return e}).destroy=function(e){return e},jn.update=function(e){return e}):((jn=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return(function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!zn.has(r)){var s,i=null,l=window.getComputedStyle(r),o=(s=r.value,function(){c({testForHeightReduction:s===""||!r.value.startsWith(s),restoreTextAlign:null}),s=r.value}),a=(function(f){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(f).forEach(function(p){return r.style[p]=f[p]}),zn.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",u),r.addEventListener("input",o),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",zn.set(r,{destroy:a,update:u}),u()}function c(f){var p,m,x=f.restoreTextAlign,y=x===void 0?null:x,A=f.testForHeightReduction,_=A===void 0||A,L=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),_&&(p=(function(S){for(var O=[];S&&S.parentNode&&S.parentNode instanceof Element;)S.parentNode.scrollTop&&O.push([S.parentNode,S.parentNode.scrollTop]),S=S.parentNode;return function(){return O.forEach(function(pe){var oe=pe[0],D=pe[1];oe.style.scrollBehavior="auto",oe.scrollTop=D,oe.style.scrollBehavior=null})}})(r),r.style.height=""),m=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=m+"px",y&&(r.style.textAlign=y),p&&p(),i!==m&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=m),L!==l.overflow&&!y)){var z=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=z==="start"?"end":"start"),c({restoreTextAlign:z,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}})(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Wh),e},jn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],qh),e});var Uo=jn;const Kh=["data-index"],Gh=["src","title","onClick"];var Zh=zt({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){let t=null;const n=yt("wall"),r=K({}),s=K([]),i=()=>{const u=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return u>0?u:1},l=u=>Array.from({length:u},()=>[]),o=async u=>{var f;if(u>=e.items.length)return;await en();const p=[...((f=n.value)==null?void 0:f.children)??[]].reduce((m,x)=>x.getBoundingClientRect().height<m.getBoundingClientRect().height?x:m);s.value[Number(p.dataset.index)].push(u),await o(u+1)},a=async(u=!1)=>{if(s.value.length===i()&&!u)return;s.value=l(i());const{scrollY:f}=window;await o(0),window.scrollTo({top:f})},c=u=>{r.value[u.target.src]=!0};return tn(()=>{a(!0),t=new ResizeObserver(()=>{a()}),t.observe(n.value),bt(()=>[e.items],()=>{r.value={},a(!0)}),bt(()=>[e.columnWidth,e.gap],()=>{a()})}),$c(()=>{t.unobserve(n.value)}),(u,f)=>(E(),P("div",{ref_key:"wall",ref:n,class:"wl-gallery",style:At({gap:`${e.gap}px`})},[(E(!0),P(ie,null,Ae(s.value,(p,m)=>(E(),P("div",{key:m,class:"wl-gallery-column","data-index":m,style:At({gap:`${e.gap}px`})},[(E(!0),P(ie,null,Ae(p,x=>(E(),P(ie,{key:x},[r.value[e.items[x].src]?q("v-if",!0):(E(),Ke(U(Pn),{key:0,size:36,style:{margin:"20px auto"}})),I("img",{class:"wl-gallery-item",src:e.items[x].src,title:e.items[x].title,loading:"lazy",onLoad:c,onClick:y=>u.$emit("insert",``)},null,40,Gh)],64))),128))],12,Kh))),128))],4))}});const Yh={key:0,class:"wl-login-info"},Jh={class:"wl-avatar"},Qh=["title"],Xh=["title"],ep=["src"],tp=["title","textContent"],np={class:"wl-panel"},rp=["for","textContent"],sp=["id","onUpdate:modelValue","name","type"],ip=["placeholder"],lp={class:"wl-preview"},op=["innerHTML"],ap={class:"wl-footer"},cp={class:"wl-actions"},up={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},fp=["title"],hp=["title"],pp=["title","aria-label"],dp=["title"],gp={class:"wl-info"},mp={class:"wl-text-number"},vp={key:0},bp=["textContent"],yp=["textContent"],wp=["disabled"],kp=["placeholder"],xp={key:1,class:"wl-loading"},_p=["title","onClick","onMouseenter"],Cp=["src","alt"],$p=["src"],Sp={key:0,class:"wl-tabs"},Rp=["onClick"],Ap=["src","alt","title"],Ep=["title"];var Ho=zt({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,s=ur(Nn),i=$h(),l=Ch(),o=Pr(),a=K({}),c=yt("textarea"),u=yt("image-uploader"),f=yt("emoji-button"),p=yt("emoji-popup"),m=yt("gif-button"),x=yt("gif-popup"),y=yt("gif-search"),A=K({tabs:[],map:{}}),_=K(0),L=K(!1),z=K(""),S=K({});let O;const pe=(g,v)=>{clearTimeout(O),z.value=v;const b=g.currentTarget,w=p.value;if(b&&w){const k=b.getBoundingClientRect(),R=w.getBoundingClientRect();S.value={left:`${k.left-R.left+k.width/2}px`,top:`${k.top-R.top}px`,transform:"translate(-50%, -100%)"}}},oe=()=>{O=setTimeout(()=>{z.value=""},50)},D=K(!1),Ce=K(!1),me=K(""),H=K(0),N=yn({loading:!0,list:[]}),re=K(0),F=K(!1),X=K(""),G=K(!1),Ve=K(!1),fe=de(()=>s.value.locale),xt=de(()=>!!o.value.token),Nt=de(()=>s.value.imageUploader!=null),_t=g=>{const v=c.value,b=v.selectionStart,w=v.selectionEnd||0,{scrollTop:k}=v;i.value=v.value.slice(0,b)+g+v.value.slice(w),v.focus(),v.selectionStart=b+g.length,v.selectionEnd=b+g.length,v.scrollTop=k},Qe=({key:g,ctrlKey:v,metaKey:b})=>{G.value||(v||b)&&g==="Enter"&&Vt()},an=async g=>{const v=`![${s.value.locale.uploading} ${g.name}]()`;_t(v),G.value=!0;try{const b=await s.value.imageUploader(g);i.value=i.value.replace(v,`\r
|
|
88
|
+
`)}catch(b){alert(b.message),i.value=i.value.replace(v,"")}finally{G.value=!1}},Ps=g=>{var v;if((v=g.dataTransfer)!=null&&v.items){const b=no(g.dataTransfer.items);b&&Nt.value&&(an(b),g.preventDefault())}},zs=g=>{if(g.clipboardData){const v=no(g.clipboardData.items);v&&Nt.value&&an(v)}},Bt=()=>{const g=u.value;g.files&&Nt.value&&an(g.files[0]).then(()=>{g.value=""})},Vt=async()=>{var g;const{serverURL:v,lang:b,login:w,wordLimit:k,requiredMeta:R,recaptchaV3Key:$,turnstileKey:C}=s.value,M={comment:X.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:s.value.path,ua:await fh()};if(!n.edit)if(o.value.token)M.nick=o.value.display_name,M.mail=o.value.email,M.link=o.value.url;else{if(w==="force")return;if(R.includes("nick")&&!M.nick){a.value.nick.focus(),alert(fe.value.nickError);return}if(R.includes("mail")&&!M.mail||M.mail&&!ya(M.mail)){a.value.mail.focus(),alert(fe.value.mailError);return}M.nick||(M.nick=fe.value.anonymous)}if(!M.comment){c.value.focus();return}if(!F.value){alert(fe.value.wordHint.replace("$0",k[0].toString()).replace("$1",k[1].toString()).replace("$2",H.value.toString()));return}M.comment=Eo(M.comment,A.value.map),n.replyId&&n.rootId&&(M.pid=n.replyId,M.rid=n.rootId,M.at=n.replyUser),G.value=!0;try{$&&(M.recaptchaV3=await Mh($).execute("social")),C&&(M.turnstile=await Ph(C).execute("social"));const T={serverURL:v,lang:b,token:o.value.token,comment:M},j=await(n.edit?cn({objectId:n.edit.objectId,...T}):Us(T));if(G.value=!1,j.errmsg){alert(j.errmsg);return}r("submit",j.data),i.value="",me.value="",await en(),n.replyId&&r("cancelReply"),(g=n.edit)!=null&&g.objectId&&r("cancelEdit")}catch(T){G.value=!1,alert(T.message)}},On=g=>{g.preventDefault();const{lang:v,serverURL:b}=s.value;Bs({serverURL:b,lang:v}).then(w=>{o.value=w,(w.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(w)),r("log")})},jr=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Ct=g=>{g.preventDefault();const{lang:v,serverURL:b}=s.value,w=800,k=800,R=(window.innerWidth-w)/2,$=(window.innerHeight-k)/2,C=new URLSearchParams({lng:v,token:o.value.token}),M=window.open(`${b}/ui/profile?${C.toString()}`,"_blank",`width=${w},height=${k},left=${R},top=${$},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);M==null||M.postMessage({type:"TOKEN",data:o.value.token},"*")},Ko=g=>{var v,b,w,k;!((v=f.value)!=null&&v.contains(g.target))&&!((b=p.value)!=null&&b.contains(g.target))&&(L.value=!1),!((w=m.value)!=null&&w.contains(g.target))&&!((k=x.value)!=null&&k.contains(g.target))&&(D.value=!1)},h=async g=>{var v;const{scrollTop:b,clientHeight:w,scrollHeight:k}=g.target,R=(w+b)/k,$=s.value.search,C=((v=y.value)==null?void 0:v.value)??"";R<.9||N.loading||Ve.value||(N.loading=!0,($.more&&N.list.length>0?await $.more(C,N.list.length):await $.search(C)).length>0?N.list=[...N.list,...$.more&&N.list.length>0?await $.more(C,N.list.length):await $.search(C)]:Ve.value=!0,N.loading=!1,setTimeout(()=>{g.target.scrollTop=b},50))},d=Vu(g=>{N.list=[],Ve.value=!1,h(g)},300);return Ft("click",Ko),Ft("message",({data:g})=>{(g==null?void 0:g.type)==="profile"&&(o.value={...o.value,...g.data},[localStorage,sessionStorage].filter(v=>v.getItem("WALINE_USER")).forEach(v=>{v.setItem("WALINE_USER",JSON.stringify(o))}))}),Ot([s,H],([g,v])=>{const{wordLimit:b}=g;b?v<b[0]&&b[0]!==0?([re.value]=b,F.value=!1):v>b[1]?([,re.value]=b,F.value=!1):([,re.value]=b,F.value=!0):(re.value=0,F.value=!0)}),bt(D,async g=>{var v;if(!g)return;const b=s.value.search;y.value&&(y.value.value=""),N.loading=!0,N.list=await(((v=b.default)==null?void 0:v.call(b))??b.search("")),N.loading=!1}),tn(()=>{var g;(g=n.edit)!=null&&g.objectId&&(i.value=n.edit.orig),Ot(()=>i.value,v=>{const{highlighter:b,texRenderer:w}=s.value;X.value=v,me.value=oh(v,{emojiMap:A.value.map,highlighter:b,texRenderer:w}),H.value=uh(v),v?Uo(c.value):Uo.destroy(c.value)}),Ot(()=>s.value.emoji,async v=>{A.value=await uf(v)})}),(g,v)=>{var b,w;return E(),P("div",{key:U(o).token,class:"wl-comment"},[U(s).login!=="disable"&&xt.value&&!((b=e.edit)!=null&&b.objectId)?(E(),P("div",Yh,[I("div",Jh,[I("button",{type:"submit",class:"wl-logout-btn",title:fe.value.logout,onClick:jr},[Q(U(Lo),{size:14})],8,Qh),I("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:fe.value.profile,onClick:Ct},[I("img",{src:U(o).avatar,alt:"avatar"},null,8,ep)],8,Xh)]),I("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:fe.value.profile,onClick:Ct,textContent:Z(U(o).display_name)},null,8,tp)])):q("v-if",!0),I("div",np,[U(s).login!=="force"&&U(s).meta.length&&!xt.value?(E(),P("div",{key:0,class:ve(["wl-header",`item${U(s).meta.length}`])},[(E(!0),P(ie,null,Ae(U(s).meta,k=>(E(),P("div",{key:k,class:"wl-header-item"},[I("label",{for:`wl-${k}`,textContent:Z(fe.value[k]+(U(s).requiredMeta.includes(k)||!U(s).requiredMeta.length?"":`(${fe.value.optional})`))},null,8,rp),cr(I("input",{id:`wl-${k}`,ref_for:!0,ref:R=>{R&&(a.value[k]=R)},"onUpdate:modelValue":R=>U(l)[k]=R,class:ve(["wl-input",`wl-${k}`]),name:k,type:k==="mail"?"email":"text"},null,10,sp),[[Mu,U(l)[k]]])]))),128))],2)):q("v-if",!0),cr(I("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":v[0]||(v[0]=k=>be(i)?i.value=k:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:fe.value.placeholder,onKeydown:Qe,onDrop:Ps,onPaste:zs},null,40,ip),[[bs,U(i)]]),cr(I("div",lp,[v[7]||(v[7]=I("hr",null,null,-1)),I("h4",null,Z(fe.value.preview)+":",1),I("div",{class:"wl-content",innerHTML:me.value},null,8,op)],512),[[Ll,Ce.value]]),I("div",ap,[I("div",cp,[I("a",up,[Q(U(vh))]),cr(I("button",{ref:"emoji-button",type:"button",class:ve(["wl-action",{active:L.value}]),title:fe.value.emoji,onClick:v[1]||(v[1]=k=>L.value=!L.value)},[Q(U(ph))],10,fp),[[Ll,A.value.tabs.length]]),U(s).search?(E(),P("button",{key:0,ref:"gif-button",type:"button",class:ve(["wl-action",{active:D.value}]),title:fe.value.gif,onClick:v[2]||(v[2]=k=>D.value=!D.value)},[Q(U(xh))],10,hp)):q("v-if",!0),I("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Bt},null,544),Nt.value?(E(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:fe.value.uploadImage,"aria-label":fe.value.uploadImage},[Q(U(dh))],8,pp)):q("v-if",!0),I("button",{type:"button",class:ve(["wl-action",{active:Ce.value}]),title:fe.value.preview,onClick:v[3]||(v[3]=k=>Ce.value=!Ce.value)},[Q(U(mh))],10,dp)]),I("div",gp,[v[9]||(v[9]=I("div",{class:"wl-captcha-container"},null,-1)),I("div",mp,[it(Z(H.value)+" ",1),U(s).wordLimit?(E(),P("span",vp,[v[8]||(v[8]=it(" / ",-1)),I("span",{class:ve({illegal:!F.value}),textContent:Z(re.value)},null,10,bp)])):q("v-if",!0),it(" "+Z(fe.value.word),1)]),U(s).login!=="disable"&&!xt.value?(E(),P("button",{key:0,type:"button",class:"wl-btn",onClick:On,textContent:Z(fe.value.login)},null,8,yp)):q("v-if",!0),U(s).login!=="force"||xt.value?(E(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:G.value,onClick:Vt},[G.value?(E(),Ke(U(Pn),{key:0,size:16})):(E(),P(ie,{key:1},[it(Z(fe.value.submit),1)],64))],8,wp)):q("v-if",!0)]),I("div",{ref:"gif-popup",class:ve(["wl-gif-popup",{display:D.value}])},[I("input",{ref:"gif-search",type:"text",placeholder:fe.value.gifSearchPlaceholder,onInput:v[4]||(v[4]=(...k)=>U(d)&&U(d)(...k))},null,40,kp),N.list.length?(E(),Ke(Zh,{key:0,items:N.list,"column-width":200,gap:6,onInsert:v[5]||(v[5]=k=>_t(k)),onScroll:h},null,8,["items"])):q("v-if",!0),N.loading?(E(),P("div",xp,[Q(U(Pn),{size:30})])):q("v-if",!0)],2),I("div",{ref:"emoji-popup",class:ve(["wl-emoji-popup",{display:L.value}])},[(E(!0),P(ie,null,Ae(A.value.tabs,(k,R)=>(E(),P(ie,{key:k.name},[R===_.value?(E(),P("div",{key:0,class:"wl-tab-wrapper",onScroll:oe},[(E(!0),P(ie,null,Ae(k.items,$=>(E(),P("button",{key:$,type:"button",title:$,onClick:C=>_t(`:${$}:`),onMouseenter:C=>pe(C,$),onMouseleave:oe},[L.value?(E(),P("img",{key:0,class:"wl-emoji",src:A.value.map[$],alt:$,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Cp)):q("v-if",!0)],40,_p))),128))],32)):q("v-if",!0)],64))),128)),I("div",null,[z.value?(E(),P("img",{key:0,class:"wl-emoji-preview",src:A.value.map[z.value],alt:"preview",loading:"lazy",referrerPolicy:"no-referrer",style:At(S.value)},null,12,$p)):q("v-if",!0)]),A.value.tabs.length>1?(E(),P("div",Sp,[(E(!0),P(ie,null,Ae(A.value.tabs,(k,R)=>(E(),P("button",{key:k.name,type:"button",class:ve(["wl-tab",{active:_.value===R}]),onClick:$=>_.value=R},[I("img",{class:"wl-emoji",src:k.icon,alt:k.name,title:k.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ap)],10,Rp))),128))])):q("v-if",!0)],2)])]),e.replyId||(w=e.edit)!=null&&w.objectId?(E(),P("button",{key:1,type:"button",class:"wl-close",title:fe.value.cancelReply,onClick:v[6]||(v[6]=k=>e.replyId?r("cancelReply"):r("cancelEdit"))},[Q(U(Lo),{size:24})],8,Ep)):q("v-if",!0)])}}});const Tp=["id"],Lp={class:"wl-user","aria-hidden":"true"},Ip=["src"],Mp={class:"wl-card"},Pp={class:"wl-head"},zp=["href"],jp={key:1,class:"wl-nick"},Op=["textContent"],Fp=["textContent"],Dp=["textContent"],Up=["textContent"],Hp={class:"wl-comment-actions"},Np=["title","href"],Bp=["title"],Vp=["title"],Wp={class:"wl-meta","aria-hidden":"true"},qp=["data-value","textContent"],Kp={key:0,class:"wl-warning","aria-hidden":"true"},Gp={key:1,class:"wl-content"},Zp={key:0},Yp=["href"],Jp=["innerHTML"],Qp={key:2,class:"wl-admin-actions"},Xp={class:"wl-comment-status"},ed=["disabled","onClick","textContent"],td={key:4,class:"wl-quote"};var nd=zt({__name:"CommentCard",props:{comment:{},edit:{},rootId:{},reply:{}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=t,r=["approved","waiting","spam"],s=ur(Nn),i=Mo(),l=nf(),o=Pr(),a=de(()=>s.value.locale),c=de(()=>{const{link:A}=e.comment;return A?hi(A)?A:`https://${A}`:""}),u=de(()=>i.value.includes(e.comment.objectId)),f=de(()=>va(new Date(e.comment.time),l.value,a.value)),p=de(()=>o.value.type==="administrator"),m=de(()=>e.comment.user_id&&o.value.objectId===e.comment.user_id),x=de(()=>{var A;return e.comment.objectId===((A=e.reply)==null?void 0:A.objectId)}),y=de(()=>{var A;return e.comment.objectId===((A=e.edit)==null?void 0:A.objectId)});return(A,_)=>{var L;const z=tl("CommentCard",!0);return E(),P("div",{id:e.comment.objectId.toString(),class:"wl-card-item"},[I("div",Lp,[e.comment.avatar?(E(),P("img",{key:0,class:"wl-user-avatar",src:e.comment.avatar,alt:""},null,8,Ip)):q("v-if",!0),e.comment.type==="guest"?(E(),Ke(U(wh),{key:1})):q("v-if",!0),e.comment.type==="administrator"?(E(),Ke(U(kh),{key:2})):q("v-if",!0)]),I("div",Mp,[I("div",Pp,[c.value?(E(),P("a",{key:0,class:"wl-nick",href:c.value,target:"_blank",rel:"nofollow noopener noreferrer"},Z(e.comment.nick),9,zp)):(E(),P("span",jp,Z(e.comment.nick),1)),e.comment.label?(E(),P("span",{key:2,class:"wl-badge",textContent:Z(e.comment.label)},null,8,Op)):q("v-if",!0),e.comment.sticky?(E(),P("span",{key:3,class:"wl-badge",textContent:Z(a.value.sticky)},null,8,Fp)):q("v-if",!0),typeof e.comment.level=="number"?(E(),P("span",{key:4,class:ve(`wl-badge level${e.comment.level}`),textContent:Z(a.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,Dp)):q("v-if",!0),I("span",{class:"wl-time",textContent:Z(f.value)},null,8,Up),I("div",Hp,[p.value||m.value?(E(),P(ie,{key:0},[I("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=S=>n("edit",e.comment))},[Q(U(yh))]),I("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=S=>n("delete",e.comment))},[Q(U(hh))])],64)):q("v-if",!0),m.value?(E(),P("a",{key:1,role:"button",class:"wl-rss",title:a.value.subscribeToReplies,href:`${U(s).serverURL}/api/comment/rss?user_id=${e.comment.user_id}`,target:"_blank",rel:"noopener noreferrer"},[Q(U(_h))],8,Np)):q("v-if",!0),I("button",{type:"button",class:"wl-like",title:u.value?a.value.cancelLike:a.value.like,onClick:_[2]||(_[2]=S=>n("like",e.comment))},[Q(U(gh),{active:u.value},null,8,["active"]),it(" "+Z("like"in e.comment?e.comment.like:""),1)],8,Bp),I("button",{type:"button",class:ve(["wl-reply",{active:x.value}]),title:x.value?a.value.cancelReply:a.value.reply,onClick:_[3]||(_[3]=S=>n("reply",x.value?null:e.comment))},[Q(U(bh))],10,Vp)])]),I("div",Wp,[(E(),P(ie,null,Ae(["addr","browser","os"],S=>(E(),P(ie,null,[e.comment[S]?(E(),P("span",{key:S,class:ve(`wl-${S}`),"data-value":e.comment[S],textContent:Z(e.comment[S])},null,10,qp)):q("v-if",!0)],64))),64))]),e.comment.status==="waiting"&&!p.value?(E(),P("div",Kp,Z(a.value.commentUnderReview),1)):q("v-if",!0),y.value?q("v-if",!0):(E(),P("div",Gp,["reply_user"in e.comment&&e.comment.reply_user?(E(),P("p",Zp,[I("a",{href:"#"+e.comment.pid},"@"+Z(e.comment.reply_user.nick),9,Yp),_[17]||(_[17]=I("span",null,": ",-1))])):q("v-if",!0),I("div",{innerHTML:e.comment.comment},null,8,Jp)])),p.value&&!y.value?(E(),P("div",Qp,[I("span",Xp,[(E(),P(ie,null,Ae(r,S=>I("button",{key:S,type:"submit",class:ve(`wl-btn wl-${S}`),disabled:e.comment.status===S,onClick:O=>n("status",{status:S,comment:e.comment}),textContent:Z(a.value[S])},null,10,ed)),64))]),p.value&&!("rid"in e.comment)?(E(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=S=>n("sticky",e.comment))},Z(e.comment.sticky?a.value.unsticky:a.value.sticky),1)):q("v-if",!0)])):q("v-if",!0),x.value||y.value?(E(),P("div",{key:3,class:ve({"wl-reply-wrapper":x.value,"wl-edit-wrapper":y.value})},[Q(Ho,{edit:e.edit,"reply-id":(L=e.reply)==null?void 0:L.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:_[5]||(_[5]=S=>n("log")),onCancelReply:_[6]||(_[6]=S=>n("reply",null)),onCancelEdit:_[7]||(_[7]=S=>n("edit",null)),onSubmit:_[8]||(_[8]=S=>n("submit",S))},null,8,["edit","reply-id","reply-user","root-id"])],2)):q("v-if",!0),"children"in e.comment?(E(),P("div",td,[(E(!0),P(ie,null,Ae(e.comment.children,S=>(E(),Ke(z,{key:S.objectId,comment:S,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:_[9]||(_[9]=O=>n("log")),onDelete:_[10]||(_[10]=O=>n("delete",O)),onEdit:_[11]||(_[11]=O=>n("edit",O)),onLike:_[12]||(_[12]=O=>n("like",O)),onReply:_[13]||(_[13]=O=>n("reply",O)),onStatus:_[14]||(_[14]=O=>n("status",O)),onSticky:_[15]||(_[15]=O=>n("sticky",O)),onSubmit:_[16]||(_[16]=O=>n("submit",O))},null,8,["comment","reply","edit","root-id"]))),128))])):q("v-if",!0)])],8,Tp)}}});const No="3.12.0",rd={"data-waline":""},sd={class:"wl-meta-head"},id={class:"wl-count"},ld=["textContent"],od={class:"wl-sort"},ad=["onClick"],cd={class:"wl-cards"},ud={key:1,class:"wl-operation"},fd=["textContent"],hd={key:2,class:"wl-loading"},pd=["textContent"],dd={key:4,class:"wl-operation"},gd=["textContent"],md={key:5,class:"wl-meta-foot"},vd={class:"wl-rss"},bd=["href"],yd=["textContent"],wd=["href"],kd=["textContent"],xd={key:0,class:"wl-power"};var _d=zt({__name:"WalineComment",props:{serverURL:{},path:{},meta:{},requiredMeta:{},wordLimit:{},pageSize:{},lang:{},locale:{},commentSorting:{},dark:{type:[String,Boolean]},login:{},noCopyright:{type:Boolean},recaptchaV3Key:{},turnstileKey:{},reaction:{type:[Array,Boolean]},emoji:{},search:{},highlighter:{type:Function},imageUploader:{type:Function},texRenderer:{type:Function}},setup(e){const t=e,n=Pr(),r=Mo(),s=K("loading"),i=K(0),l=K(1),o=K(0),a=de(()=>da(t)),c=K(a.value.commentSorting),u=K([]),f=K(null),p=K(null),m=de(()=>ga(a.value.dark)),x=de(()=>a.value.locale);lf(m,{id:"waline-darkmode"});let y=null;const A=H=>{const{serverURL:N,path:re,pageSize:F}=a.value,X=new AbortController;s.value="loading",y==null||y(),Ds({serverURL:N,lang:a.value.lang,path:re,pageSize:F,sortBy:ci[c.value],page:H,signal:X.signal,token:n.value.token}).then(G=>{s.value="success",i.value=G.count,u.value.push(...G.data),l.value=H,o.value=G.totalPages}).catch(G=>{G.name!=="AbortError"&&(console.error(G.message),s.value="error")}),y=X.abort.bind(X)},_=()=>{A(l.value+1)},L=()=>{i.value=0,u.value=[],A(1)},z=H=>{c.value!==H&&(c.value=H,L())},S=H=>{f.value=H},O=H=>{p.value=H},pe=H=>{if(p.value)p.value.comment=H.comment,p.value.orig=H.orig;else if("rid"in H){const N=u.value.find(({objectId:re})=>re===H.rid);if(!N)return;Array.isArray(N.children)||(N.children=[]),N.children.push(H)}else u.value.unshift(H),i.value+=1},oe=async({comment:H,status:N})=>{if(H.status===N)return;const{serverURL:re,lang:F}=a.value;await cn({serverURL:re,lang:F,token:n.value.token,objectId:H.objectId,comment:{status:N}}),H.status=N},D=async H=>{if("rid"in H)return;const{serverURL:N,lang:re}=a.value;await cn({serverURL:N,lang:re,token:n.value.token,objectId:H.objectId,comment:{sticky:H.sticky?0:1}}),H.sticky=!H.sticky},Ce=async({objectId:H})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:N,lang:re}=a.value;await Hs({serverURL:N,lang:re,token:n.value.token,objectId:H}),u.value.some((F,X)=>F.objectId===H?(u.value=u.value.filter((G,Ve)=>Ve!==X),!0):F.children.some((G,Ve)=>G.objectId===H?(u.value[X].children=F.children.filter((fe,xt)=>xt!==Ve),!0):!1))},me=async H=>{const{serverURL:N,lang:re}=a.value,{objectId:F}=H,X=r.value.includes(F);await cn({serverURL:N,lang:re,objectId:F,token:n.value.token,comment:{like:!X}}),X?r.value=r.value.filter(G=>G!==F):(r.value=[...r.value,F],r.value.length>50&&(r.value=r.value.slice(-50))),H.like=Math.max(0,(H.like||0)+(X?-1:1))};return mc(Nn,a),tn(()=>{Ot(()=>[t.serverURL,t.path],()=>{L()})}),rs(()=>{y==null||y()}),(H,N)=>(E(),P("div",rd,[Q(Vh),!f.value&&!p.value?(E(),Ke(Ho,{key:0,onLog:L,onSubmit:pe})):q("v-if",!0),I("div",sd,[I("div",id,[i.value?(E(),P("span",{key:0,class:"wl-num",textContent:Z(i.value)},null,8,ld)):q("v-if",!0),it(" "+Z(x.value.comment),1)]),I("ul",od,[(E(!0),P(ie,null,Ae(U(ha),re=>(E(),P("li",{key:re,class:ve([re===c.value?"active":""]),onClick:F=>z(re)},Z(x.value[re]),11,ad))),128))])]),I("div",cd,[(E(!0),P(ie,null,Ae(u.value,re=>(E(),Ke(nd,{key:re.objectId,"root-id":re.objectId,comment:re,reply:f.value,edit:p.value,onLog:L,onReply:S,onEdit:O,onSubmit:pe,onStatus:oe,onDelete:Ce,onSticky:D,onLike:me},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(E(),P("div",ud,[I("button",{type:"button",class:"wl-btn",onClick:L,textContent:Z(x.value.refresh)},null,8,fd)])):s.value==="loading"?(E(),P("div",hd,[Q(U(Pn),{size:30})])):u.value.length?l.value<o.value?(E(),P("div",dd,[I("button",{type:"button",class:"wl-btn",onClick:_,textContent:Z(x.value.more)},null,8,gd)])):q("v-if",!0):(E(),P("div",{key:3,class:"wl-empty",textContent:Z(x.value.sofa)},null,8,pd)),u.value.length||s.value!=="loading"?(E(),P("div",md,[I("div",vd,[I("a",{href:`${a.value.serverURL}/api/comment/rss?path=${encodeURIComponent(a.value.path)}`,target:"_blank",rel:"noopener noreferrer"},[Q(U(Io)),I("span",{textContent:Z(x.value.subPostComment)},null,8,yd)],8,bd),I("a",{href:`${a.value.serverURL}/api/comment/rss`,target:"_blank",rel:"noopener noreferrer"},[Q(U(Io)),I("span",{textContent:Z(x.value.subSiteComment)},null,8,kd)],8,wd)]),a.value.noCopyright?q("v-if",!0):(E(),P("div",xd,[N[0]||(N[0]=it(" Powered by ",-1)),N[1]||(N[1]=I("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),it(" v"+Z(U(No)),1)]))])):q("v-if",!0)]))}});const Bo=(e,t)=>{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.textContent=s.toString())})},Vo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:s=navigator.language})=>{const i=new AbortController,l=[...document.querySelectorAll(n)],o=c=>{const u=Ls(c);return u!=null&&t!==u},a=c=>Vs({serverURL:Bn(e),paths:c.map(u=>Ls(u)??t),lang:s,signal:i.signal}).then(u=>{Bo(u,c)}).catch(to);if(r){const c=l.filter(f=>!o(f)),u=l.filter(f=>o(f));Ws({serverURL:Bn(e),path:t,lang:s}).then(f=>{Bo(f,c)}),u.length>0&&a(u)}else a(l);return i.abort.bind(i)},Cd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...s})=>{const i=e?Rr(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!s.serverURL)throw new Error("Option 'serverURL' is missing!");const l=yn({...s}),o=yn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&To({serverURL:l.serverURL,path:o.path,...qt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&Vo({serverURL:l.serverURL,path:o.path,...qt(o.pageview)?{selector:o.pageview}:{}})};let u=null;i&&(u=ql(()=>W(_d,{path:o.path,...l})),u.mount(i));const f=Ji(a),p=Ji(c);return{el:i,update:({comment:m,pageview:x,path:y=window.location.pathname,...A}={})=>{Object.entries(A).forEach(([_,L])=>{l[_]=L}),o.path=y,m!=null&&(o.comment=m),x!=null&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),f(),p()}}},$d=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const s=Pr(),i=Rr(e),l=new AbortController;return qs({serverURL:t,count:n,lang:r,signal:l.signal,token:s.value.token}).then(o=>i&&o.length>0?(i.innerHTML=`<ul class="wl-recent-list">${o.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:o,destroy:()=>{l.abort(),i.innerHTML=""}}):{comments:o,destroy:()=>{l.abort()}})},Sd=({el:e,serverURL:t,count:n,locale:r,lang:s=navigator.language,mode:i="list"})=>{const l=Rr(e),o=new AbortController;return Ks({serverURL:t,pageSize:n,lang:s,signal:o.signal}).then(a=>{if(!l||a.length===0)return{users:a,destroy:()=>{o.abort()}};const c={...oi(s),...typeof r=="object"?r:{}};return l.innerHTML=`<ul class="wl-user-${i}">${a.map((u,f)=>[`<li class="wl-user-item" aria-label="${u.nick}">`,u.link?`<a href="${u.link}" target="_blank">`:"",'<div class="wl-user-avatar">',`<img src="${u.avatar}" alt="${u.nick}">`,`<span class="wl-user-badge">${f+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',u.nick,typeof u.level=="number"?`<span class="wl-badge">${c[`level${u.level}`]??`Level ${u.level}`}</span>`:"",u.label?`<span class="wl-badge">${u.label}</span>`:"","</div>",u.link,"</div>",u.link?"</a>":"","</li>"].filter(Boolean).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}})},Rd=async({serverURL:e,lang:t,path:n})=>{const r=[1,2,3,4,5],s=new AbortController,i=s.abort.bind(s),[l]=await Un({serverURL:e,lang:t,paths:[n],type:Array.from({length:5},(o,a)=>`reaction${a}`),signal:s.signal});return{value:r.map((o,a)=>l[`reaction${a}`]),abort:i}},Ms=e=>{if(Number.isNaN(e))return 0;const t=Math.round(e);return Math.min(5,Math.max(0,t))},Wo=(e=[])=>Array.from({length:5},(t,n)=>{const r=e[n]??0;return typeof r=="number"&&r>0?r:0});var Ad=zt({name:"WalineStarDisplay",props:{score:{type:Number,default:0}},setup(e){const t=de(()=>Ms(e.score));return{displayScore:t,displayClass:n=>t.value>=n?"wl-star-solid":"wl-star-outline"}}}),qo=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const Ed={class:"wl-star-icon",viewBox:"0 0 24 24"};function Td(e,t,n,r,s,i){return E(),P(ie,null,Ae([1,2,3,4,5],l=>I("span",{key:l,class:"wl-star-item"},[(E(),P("svg",Ed,[I("path",{class:ve(e.displayClass(l)),d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"},null,2)]))])),64)}var Ld=qo(Ad,[["render",Td]]),Id=zt({name:"WalineStarWidget",components:{StarDisplay:Ld},props:{path:{type:String,default:""},serverURL:{type:String,default:""},lang:{type:String,default:""}},emits:["rate"],setup(e,{emit:t}){const n=K(null),r=Po(),s=K(Ms((r.value[e.path]??0)+1)),i=K(null),l=K(Wo([])),o=K(!1);tn(()=>{Ot(()=>[e.serverURL,e.path],async()=>{try{const _=await Rd({serverURL:e.serverURL,path:e.path,lang:e.lang});l.value=Wo(_.value)}catch(_){console.error("Failed to fetch reaction data:",_)}})});const a=de(()=>i.value??s.value),c=de(()=>l.value.reduce((_,L)=>_+L,0)),u=de(()=>l.value.map(_=>c.value?_/c.value:0)),f=_=>{if(!n.value)return 0;const{firstElementChild:L,lastElementChild:z}=n.value;if(!L||!z)return 0;const{left:S}=L.getBoundingClientRect(),{right:O}=z.getBoundingClientRect(),pe=O-S,oe=(_.clientX-S)/pe,D=Math.min(1,Math.max(0,oe))*5;return Ms(D)},p=_=>{i.value=f(_)},m=()=>{i.value=null},x=async _=>{const L=i.value??f(_);if(L===s.value||o.value)return;o.value=!0;const z=s.value,S={serverURL:e.serverURL,lang:e.lang,path:e.path};try{z&&(await Wt({...S,type:`reaction${z-1}`,action:"desc"}),l.value[z-1]=Math.max(0,(l.value[z-1]??0)-1)),s.value=L;const O=L-1;r.value[e.path]=O,await Wt({serverURL:e.serverURL,lang:e.lang,path:e.path,type:`reaction${O}`,action:"inc"}),l.value[O]=(l.value[O]??0)+1,t("rate",L)}catch(O){s.value=z,z?r.value[e.path]=z-1:delete r.value[e.path],console.error("[Waline] Failed to update reaction counter",O)}finally{o.value=!1}};function y(_){return l.value[_-1]??0}function A(_){return`${((u.value[_-1]??0)*100).toFixed(1)}%`}return{ratingArea:n,displayScore:a,onMouseMove:p,onMouseLeave:m,onClick:x,countFor:y,percentText:A}}});const Md={class:"wl-star"},Pd={class:"wl-star-score"},zd={class:"wl-star-rate"},jd={class:"wl-star-progress"},Od=["data-count"],Fd={class:"wl-star-percent"};function Dd(e,t,n,r,s,i){const l=tl("StarDisplay");return E(),P("div",Md,[I("div",{ref:"ratingArea",class:"wl-star-rate",onMousemove:t[0]||(t[0]=(...o)=>e.onMouseMove&&e.onMouseMove(...o)),onMouseleave:t[1]||(t[1]=(...o)=>e.onMouseLeave&&e.onMouseLeave(...o)),onClick:t[2]||(t[2]=(...o)=>e.onClick&&e.onClick(...o))},[Q(l,{score:e.displayScore},null,8,["score"])],544),I("div",Pd,[(E(),P(ie,null,Ae([5,4,3,2,1],o=>I("div",{key:o,class:"wl-star-row"},[I("div",zd,[Q(l,{score:o},null,8,["score"])]),I("div",jd,[I("div",{class:"wl-star-progress-bar",style:At({width:e.percentText(o)}),"data-count":e.countFor(o).toString()},null,12,Od)]),I("span",Fd,Z(e.percentText(o)),1)])),64))])])}var Ud=qo(Id,[["render",Dd]]);const Hd=({el:e,path:t,lang:n=navigator.language,serverURL:r,onRate:s})=>{const i=Rr(e);if(!i)return{destroy:()=>{}};const l=ql(Ud,{path:t,lang:n,serverURL:r,onRate:s});return l.mount(i),{destroy:()=>{l.unmount(),i.innerHTML=""}}};te.RecentComments=$d,te.Star=Hd,te.UserList=Sd,te.addComment=Us,te.commentCount=To,te.defaultLocales=Hn,te.deleteComment=Hs,te.fetchCommentCount=Ns,te.getArticleCounter=Un,te.getComment=Ds,te.getPageview=Vs,te.getRecentComment=qs,te.getUserList=Ks,te.init=Cd,te.login=Bs,te.pageviewCount=Vo,te.updateArticleCounter=Wt,te.updateComment=cn,te.updatePageview=Ws,te.version=No}));
|
|
88
89
|
//# sourceMappingURL=waline.umd.js.map
|