@waline/client 3.8.0 → 3.10.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/comment.js.map +1 -1
- package/dist/component.d.ts +9 -13
- package/dist/component.js +12 -12
- package/dist/component.js.map +1 -1
- package/dist/pageview.js +1 -1
- package/dist/pageview.js.map +1 -1
- package/dist/slim.d.ts +22 -7
- package/dist/slim.js +12 -12
- package/dist/slim.js.map +1 -1
- package/dist/waline-meta.css +1 -1
- package/dist/waline-meta.css.map +1 -1
- package/dist/waline.css +1 -1
- package/dist/waline.css.map +1 -1
- package/dist/waline.d.ts +22 -7
- package/dist/waline.js +63 -64
- package/dist/waline.js.map +1 -1
- package/dist/waline.umd.js +63 -64
- package/dist/waline.umd.js.map +1 -1
- package/package.json +35 -35
package/dist/waline.umd.js
CHANGED
|
@@ -1,89 +1,88 @@
|
|
|
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?"]),
|
|
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?"]),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 ?"]),
|
|
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?"]),
|
|
6
|
-
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),
|
|
7
|
-
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?"]),
|
|
8
|
-
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),
|
|
9
|
-
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?"]),
|
|
10
|
-
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),
|
|
11
|
-
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const
|
|
12
|
-
* @vue/shared v3.5.
|
|
1
|
+
var xd=Object.defineProperty;var _d=(ee,Se,Re)=>Se in ee?xd(ee,Se,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ee[Se]=Re;var js=(ee,Se,Re)=>_d(ee,typeof Se!="symbol"?Se+"":Se,Re);(function(ee,Se){typeof exports=="object"&&typeof module<"u"?Se(exports):typeof define=="function"&&define.amd?define(["exports"],Se):(ee=typeof globalThis<"u"?globalThis:ee||self,Se(ee.Waline={}))})(this,(function(ee){"use strict";var Or;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),Vt=({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=>Vt({...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),Zo=new Set(["nick","mail","link"]),Gs=e=>e.filter(t=>Zo.has(t)),Zs=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Yo=["//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"],Qo=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)}),Jo=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Xo=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()})}},ea=/[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|\w+/,ta=/</,na=/(?:^|\s)\/\/(.+?)$/gm,ra=/\/\*([\S\s]*?)\*\//gm,sa=new RegExp(`(${ea.source}|${ta.source})|((?:${na.source})|(?:${ra.source}))`,"gmi"),Ys=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],zr={},ia=e=>{let t=0;return e.replace(sa,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"<";let i;zr[r]?i=zr[r]:(i=Ys[t],zr[r]=i);const l=`<span style="color: #${i}">${r}</span>`;return t=++t%Ys.length,l})},la=["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"],He=e=>Object.fromEntries(e.map((t,n)=>[la[n],t]));var oa=He(["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."]),Qs=He(["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."]),Js=He(["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."]),Xs=He(["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."]),ei=He(["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."]),ti=He(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
|
6
|
+
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?","あなたのコメントは審査中で、現在はあなただけに表示されています。承認後に公開されます。"]),aa=He(["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!
|
|
7
|
+
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."]),ni=He(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
|
8
|
+
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?","Ваш комментарий находится на рассмотрении и в настоящее время виден только вам. После одобрения он станет общедоступным."]),ri=He(["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ừ!
|
|
9
|
+
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."]),si=He(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
|
10
|
+
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?","评论正在审核中,当前仅自己可见,审核通过后公开可见。"]),ca=He(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
|
11
|
+
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?","您的評論正在審核中,目前僅您可見。審核通過後將公開顯示。"]);const ii="en-US",Hn={zh:si,"zh-cn":si,"zh-tw":ca,en:Qs,"en-us":Qs,fr:Xs,"fr-fr":Xs,it:ei,"it-it":ei,jp:ti,"jp-jp":ti,"pt-br":aa,ru:ni,"ru-ru":ni,vi:ri,"vi-vn":ri,de:oa,es:Js,"es-mx":Js},li=e=>Hn[e.toLowerCase()]??Hn[ii.toLowerCase()],oi=e=>Object.keys(Hn).includes(e.toLowerCase())?e:ii,ai={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},ua=Object.keys(ai),Nn=Symbol("waline-config"),ci=e=>{try{return decodeURI(e)}catch{return e}},ui=(e="")=>e.replace(/\/$/u,""),fi=e=>/^(https?:)?\/\//.test(e),Bn=e=>{const t=ui(e);return fi(t)?t:`https://${t}`},fa=e=>Array.isArray(e)?e:typeof e=="number"?[0,e]:!1,un=(e,t)=>e==null||e===!0?t:e===!1?null:e,ha=({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:d="",commentSorting:p="latest",emoji:w=Zs,imageUploader:y,highlighter:A,texRenderer:_,search:I,reaction:z,...R})=>({serverURL:Bn(e),path:ci(t),lang:oi(n),locale:{...li(oi(n)),...typeof r=="object"?r:{}},wordLimit:fa(a),meta:Gs(s),requiredMeta:Gs(i),dark:l,pageSize:o,commentSorting:p,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:d,...R,reaction:z===!0?Yo:z||null,imageUploader:un(y,Qo),highlighter:un(A,ia),texRenderer:un(_,Jo),emoji:un(w,Zs),search:un(I,Xo(n))}),Wt=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}",pa=e=>Wt(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},da=e=>{const t=Dr(e.getDate(),2),n=Dr(e.getMonth()+1,2);return`${Dr(e.getFullYear(),2)}-${n}-${t}`},ga=(e,t,n)=>{if(!e)return"";const r=Wt(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}`:da(r)},ma=/^[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])?)*$/,va=e=>ma.test(e);/**
|
|
12
|
+
* @vue/shared v3.5.28
|
|
13
13
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
14
14
|
* @license MIT
|
|
15
|
-
**/function
|
|
16
|
-
* @vue/reactivity v3.5.
|
|
15
|
+
**/function Ur(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const fe={},qt=[],St=()=>{},hi=()=>!1,Vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Hr=e=>e.startsWith("onUpdate:"),Te=Object.assign,pi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ba=Object.prototype.hasOwnProperty,ie=(e,t)=>ba.call(e,t),W=Array.isArray,Kt=e=>fn(e)==="[object Map]",Gt=e=>fn(e)==="[object Set]",di=e=>fn(e)==="[object Date]",te=e=>typeof e=="function",we=e=>typeof e=="string",We=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",gi=e=>(oe(e)||te(e))&&te(e.then)&&te(e.catch),mi=Object.prototype.toString,fn=e=>mi.call(e),ya=e=>fn(e).slice(8,-1),vi=e=>fn(e)==="[object Object]",Wn=e=>we(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)))},wa=/-\w/g,je=qn(e=>e.replace(wa,t=>t.slice(1).toUpperCase())),ka=/\B([A-Z])/g,Rt=qn(e=>e.replace(ka,"-$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)},bi=(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 yi;const pn=()=>yi||(yi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zt(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=we(r)?$a(r):Zt(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(we(e)||oe(e))return e}const xa=/;(?![^(]*\))/g,_a=/:([^]+)/,Ca=/\/\*[^]*?\*\//g;function $a(e){const t={};return e.replace(Ca,"").split(xa).forEach(n=>{if(n){const r=n.split(_a);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ye(e){let t="";if(we(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const r=ye(e[n]);r&&(t+=r+" ")}else if(oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Sa=Ur("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function wi(e){return!!e||e===""}function Ra(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=di(e),r=di(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=W(e),r=W(t),n||r)return n&&r?Ra(e,t):!1;if(n=oe(e),r=oe(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 ki=e=>!!(e&&e.__v_isRef===!0),J=e=>we(e)?e:e==null?"":W(e)||oe(e)&&(e.toString===mi||!te(e.toString))?ki(e)?J(e.value):JSON.stringify(e,xi,2):String(e),xi=(e,t)=>ki(t)?xi(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Vr(r,i)+" =>"]=s,n),{})}:Gt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Vr(n))}:We(t)?Vr(t):oe(t)&&!W(t)&&!vi(t)?String(t):t,Vr=(e,t="")=>{var n;return We(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
16
|
+
* @vue/reactivity v3.5.28
|
|
17
17
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
18
18
|
* @license MIT
|
|
19
|
-
**/let Ce;class ga{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.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=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){++this._on===1&&(this.prevScope=Ce,Ce=this)}off(){this._on>0&&--this._on===0&&(Ce=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 xi(){return Ce}function ma(e,t=!1){Ce&&Ce.cleanups.push(e)}let pe;const Br=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,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Br.has(this)&&(Br.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||$i(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ti(this),Si(this);const t=pe,n=We;pe=this,We=!0;try{return this.fn()}finally{Ri(this),pe=t,We=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Gr(t);this.deps=this.depsTail=void 0,Ti(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Br.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Kr(this)&&this.run()}get dirty(){return Kr(this)}}let Ci=0,an,cn;function $i(e,t=!1){if(e.flags|=8,t){e.next=cn,cn=e;return}e.next=an,an=e}function Wr(){Ci++}function qr(){if(--Ci>0)return;if(cn){let t=cn;for(cn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;an;){let t=an;for(an=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 Si(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ri(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Gr(r),va(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Kr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ai(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ai(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===un)||(e.globalVersion=un,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Kr(e))))return;e.flags|=2;const t=e.dep,n=pe,r=We;pe=e,We=!0;try{Si(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{pe=n,We=r,Ri(e),e.flags&=-3}}function Gr(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)Gr(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function va(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let We=!0;const Ei=[];function pt(){Ei.push(We),We=!1}function dt(){const e=Ei.pop();We=e===void 0?!0:e}function Ti(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=pe;pe=void 0;try{t()}finally{pe=n}}}let un=0;class ba{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 Kn{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(!pe||!We||pe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==pe)n=this.activeLink=new ba(pe,this),pe.deps?(n.prevDep=pe.depsTail,pe.depsTail.nextDep=n,pe.depsTail=n):pe.deps=pe.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=pe.depsTail,n.nextDep=void 0,pe.depsTail.nextDep=n,pe.depsTail=n,pe.deps===n&&(pe.deps=r)}return n}trigger(t){this.version++,un++,this.notify(t)}notify(t){Wr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{qr()}}}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 Gn=new WeakMap,Rt=Symbol(""),Zr=Symbol(""),fn=Symbol("");function $e(e,t,n){if(We&&pe){let r=Gn.get(e);r||Gn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Kn),s.map=r,s.key=n),s.track()}}function nt(e,t,n,r,s,i){const o=Gn.get(e);if(!o){un++;return}const l=a=>{a&&a.trigger()};if(Wr(),t==="clear")o.forEach(l);else{const a=G(e),c=a&&Dr(n);if(a&&n==="length"){const u=Number(r);o.forEach((f,p)=>{(p==="length"||p===fn||!Ke(p)&&p>=u)&&l(f)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),c&&l(o.get(fn)),t){case"add":a?c&&l(o.get("length")):(l(o.get(Rt)),Dt(e)&&l(o.get(Zr)));break;case"delete":a||(l(o.get(Rt)),Dt(e)&&l(o.get(Zr)));break;case"set":Dt(e)&&l(o.get(Rt));break}}qr()}function ya(e,t){const n=Gn.get(e);return n&&n.get(t)}function Nt(e){const t=ne(e);return t===e?t:($e(t,"iterate",fn),He(e)?t:t.map(xe))}function Zn(e){return $e(e=ne(e),"iterate",fn),e}const wa={__proto__:null,[Symbol.iterator](){return Jr(this,Symbol.iterator,xe)},concat(...e){return Nt(this).concat(...e.map(t=>G(t)?Nt(t):t))},entries(){return Jr(this,"entries",e=>(e[1]=xe(e[1]),e))},every(e,t){return rt(this,"every",e,t,void 0,arguments)},filter(e,t){return rt(this,"filter",e,t,n=>n.map(xe),arguments)},find(e,t){return rt(this,"find",e,t,xe,arguments)},findIndex(e,t){return rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return rt(this,"findLast",e,t,xe,arguments)},findLastIndex(e,t){return rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Yr(this,"includes",e)},indexOf(...e){return Yr(this,"indexOf",e)},join(e){return Nt(this).join(e)},lastIndexOf(...e){return Yr(this,"lastIndexOf",e)},map(e,t){return rt(this,"map",e,t,void 0,arguments)},pop(){return hn(this,"pop")},push(...e){return hn(this,"push",e)},reduce(e,...t){return Li(this,"reduce",e,t)},reduceRight(e,...t){return Li(this,"reduceRight",e,t)},shift(){return hn(this,"shift")},some(e,t){return rt(this,"some",e,t,void 0,arguments)},splice(...e){return hn(this,"splice",e)},toReversed(){return Nt(this).toReversed()},toSorted(e){return Nt(this).toSorted(e)},toSpliced(...e){return Nt(this).toSpliced(...e)},unshift(...e){return hn(this,"unshift",e)},values(){return Jr(this,"values",xe)}};function Jr(e,t,n){const r=Zn(e),s=r[t]();return r!==e&&!He(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const ka=Array.prototype;function rt(e,t,n,r,s,i){const o=Zn(e),l=o!==e&&!He(e),a=o[t];if(a!==ka[t]){const f=a.apply(e,i);return l?xe(f):f}let c=n;o!==e&&(l?c=function(f,p){return n.call(this,xe(f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=a.call(o,c,r);return l&&s?s(u):u}function Li(e,t,n,r){const s=Zn(e);let i=n;return s!==e&&(He(e)?n.length>3&&(i=function(o,l,a){return n.call(this,o,l,a,e)}):i=function(o,l,a){return n.call(this,o,xe(l),a,e)}),s[t](i,...r)}function Yr(e,t,n){const r=ne(e);$e(r,"iterate",fn);const s=r[t](...n);return(s===-1||s===!1)&&Qr(n[0])?(n[0]=ne(n[0]),r[t](...n)):s}function hn(e,t,n=[]){pt(),Wr();const r=ne(e)[t].apply(e,n);return qr(),dt(),r}const xa=Fr("__proto__,__v_isRef,__isVue"),Mi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke));function _a(e){Ke(e)||(e=String(e));const t=ne(this);return $e(t,"has",e),t.hasOwnProperty(e)}class Pi{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?Di:Hi:i?Fi:zi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=G(t);if(!s){let a;if(o&&(a=wa[n]))return a;if(n==="hasOwnProperty")return _a}const l=Reflect.get(t,n,we(t)?t:r);if((Ke(n)?Mi.has(n):xa(n))||(s||$e(t,"get",n),i))return l;if(we(l)){const a=o&&Dr(n)?l:l.value;return s&&ge(a)?At(a):a}return ge(l)?s?At(l):pn(l):l}}class ji extends Pi{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=gt(i);if(!He(r)&&!gt(r)&&(i=ne(i),r=ne(r)),!G(t)&&we(i)&&!we(r))return a||(i.value=r),!0}const o=G(t)&&Dr(n)?Number(n)<t.length:re(t,n),l=Reflect.set(t,n,r,we(t)?t:s);return t===ne(s)&&(o?ht(r,i)&&nt(t,"set",n,r):nt(t,"add",n,r)),l}deleteProperty(t,n){const r=re(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&nt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ke(n)||!Mi.has(n))&&$e(t,"has",n),r}ownKeys(t){return $e(t,"iterate",G(t)?"length":Rt),Reflect.ownKeys(t)}}class Oi extends Pi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ca=new ji,$a=new Oi,Sa=new ji(!0),Ra=new Oi(!0),Xr=e=>e,Jn=e=>Reflect.getPrototypeOf(e);function Aa(e,t,n){return function(...r){const s=this.__v_raw,i=ne(s),o=Dt(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=s[e](...r),u=n?Xr:t?er:xe;return!t&&$e(i,"iterate",a?Zr:Rt),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:l?[u(f[0]),u(f[1])]:u(f),done:p}},[Symbol.iterator](){return this}}}}function Yn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ea(e,t){const n={get(s){const i=this.__v_raw,o=ne(i),l=ne(s);e||(ht(s,l)&&$e(o,"get",s),$e(o,"get",l));const{has:a}=Jn(o),c=t?Xr:e?er:xe;if(a.call(o,s))return c(i.get(s));if(a.call(o,l))return c(i.get(l));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!e&&$e(ne(s),"iterate",Rt),s.size},has(s){const i=this.__v_raw,o=ne(i),l=ne(s);return e||(ht(s,l)&&$e(o,"has",s),$e(o,"has",l)),s===l?i.has(s):i.has(s)||i.has(l)},forEach(s,i){const o=this,l=o.__v_raw,a=ne(l),c=t?Xr:e?er:xe;return!e&&$e(a,"iterate",Rt),l.forEach((u,f)=>s.call(i,c(u),c(f),o))}};return ze(n,e?{add:Yn("add"),set:Yn("set"),delete:Yn("delete"),clear:Yn("clear")}:{add(s){!t&&!He(s)&&!gt(s)&&(s=ne(s));const i=ne(this);return Jn(i).has.call(i,s)||(i.add(s),nt(i,"add",s,s)),this},set(s,i){!t&&!He(i)&&!gt(i)&&(i=ne(i));const o=ne(this),{has:l,get:a}=Jn(o);let c=l.call(o,s);c||(s=ne(s),c=l.call(o,s));const u=a.call(o,s);return o.set(s,i),c?ht(i,u)&&nt(o,"set",s,i):nt(o,"add",s,i),this},delete(s){const i=ne(this),{has:o,get:l}=Jn(i);let a=o.call(i,s);a||(s=ne(s),a=o.call(i,s)),l&&l.call(i,s);const c=i.delete(s);return a&&nt(i,"delete",s,void 0),c},clear(){const s=ne(this),i=s.size!==0,o=s.clear();return i&&nt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Aa(s,e,t)}),n}function Xn(e,t){const n=Ea(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(re(n,s)&&s in r?n:r,s,i)}const Ta={get:Xn(!1,!1)},Ia={get:Xn(!1,!0)},La={get:Xn(!0,!1)},Ma={get:Xn(!0,!0)},zi=new WeakMap,Fi=new WeakMap,Hi=new WeakMap,Di=new WeakMap;function Pa(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ja(e){return e.__v_skip||!Object.isExtensible(e)?0:Pa(la(e))}function pn(e){return gt(e)?e:Qn(e,!1,Ca,Ta,zi)}function Oa(e){return Qn(e,!1,Sa,Ia,Fi)}function At(e){return Qn(e,!0,$a,La,Hi)}function za(e){return Qn(e,!0,Ra,Ma,Di)}function Qn(e,t,n,r,s){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=ja(e);if(i===0)return e;const o=s.get(e);if(o)return o;const l=new Proxy(e,i===2?r:n);return s.set(e,l),l}function Vt(e){return gt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function gt(e){return!!(e&&e.__v_isReadonly)}function He(e){return!!(e&&e.__v_isShallow)}function Qr(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function Fa(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&vi(e,"__v_skip",!0),e}const xe=e=>ge(e)?pn(e):e,er=e=>ge(e)?At(e):e;function we(e){return e?e.__v_isRef===!0:!1}function ae(e){return Ui(e,!1)}function Et(e){return Ui(e,!0)}function Ui(e,t){return we(e)?e:new Ha(e,t)}class Ha{constructor(t,n){this.dep=new Kn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:xe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||He(t)||gt(t);t=r?t:ne(t),ht(t,n)&&(this._rawValue=t,this._value=r?t:xe(t),this.dep.trigger())}}function W(e){return we(e)?e.value:e}function Le(e){return se(e)?e():W(e)}const Da={get:(e,t,n)=>t==="__v_raw"?e:W(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return we(s)&&!we(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Ni(e){return Vt(e)?e:new Proxy(e,Da)}class Ua{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Kn,{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 Na(e){return new Ua(e)}class Va{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ya(ne(this._object),this._key)}}class Ba{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 Wa(e,t,n){return we(e)?e:se(e)?new Ba(e):ge(e)&&arguments.length>1?qa(e,t,n):ae(e)}function qa(e,t,n){const r=e[t];return we(r)?r:new Va(e,t,n)}class Ka{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Kn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=un-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&pe!==this)return $i(this,!0),!0}get value(){const t=this.dep.track();return Ai(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ga(e,t,n=!1){let r,s;return se(e)?r=e:(r=e.get,s=e.set),new Ka(r,s,n)}const tr={},nr=new WeakMap;let Tt;function Za(e,t=!1,n=Tt){if(n){let r=nr.get(n);r||nr.set(n,r=[]),r.push(e)}}function Ja(e,t,n=ue){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:l,call:a}=n,c=E=>s?E:He(E)||s===!1||s===0?st(E,1):st(E);let u,f,p,b,m=!1,k=!1;if(we(e)?(f=()=>e.value,m=He(e)):Vt(e)?(f=()=>c(e),m=!0):G(e)?(k=!0,m=e.some(E=>Vt(E)||He(E)),f=()=>e.map(E=>{if(we(E))return E.value;if(Vt(E))return c(E);if(se(E))return a?a(E,2):E()})):se(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){pt();try{p()}finally{dt()}}const E=Tt;Tt=u;try{return a?a(e,3,[b]):e(b)}finally{Tt=E}}:f=Ct,t&&s){const E=f,P=s===!0?1/0:s;f=()=>st(E(),P)}const L=xi(),A=()=>{u.stop(),L&&L.active&&hi(L.effects,u)};if(i&&t){const E=t;t=(...P)=>{E(...P),A()}}let _=k?new Array(e.length).fill(tr):tr;const F=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const P=u.run();if(s||m||(k?P.some((V,Z)=>ht(V,_[Z])):ht(P,_))){p&&p();const V=Tt;Tt=u;try{const Z=[P,_===tr?void 0:k&&_[0]===tr?[]:_,b];_=P,a?a(t,3,Z):t(...Z)}finally{Tt=V}}}else u.run()};return l&&l(F),u=new _i(f),u.scheduler=o?()=>o(F,!1):F,b=E=>Za(E,!1,u),p=u.onStop=()=>{const E=nr.get(u);if(E){if(a)a(E,4);else for(const P of E)P();nr.delete(u)}},t?r?F(!0):_=u.run():o?o(F.bind(null,!0),!0):u.run(),A.pause=u.pause.bind(u),A.resume=u.resume.bind(u),A.stop=A,A}function st(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,we(e))st(e.value,t,n);else if(G(e))for(let r=0;r<e.length;r++)st(e[r],t,n);else if(Ut(e)||Dt(e))e.forEach(r=>{st(r,t,n)});else if(mi(e)){for(const r in e)st(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&st(e[r],t,n)}return e}/**
|
|
20
|
-
* @vue/runtime-core v3.5.
|
|
19
|
+
**/let ke;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=ke,!t&&ke&&(this.index=(ke.scopes||(ke.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=ke;try{return ke=this,t()}finally{ke=n}}}on(){++this._on===1&&(this.prevScope=ke,ke=this)}off(){this._on>0&&--this._on===0&&(ke=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 ke}function Ea(e,t=!1){ke&&ke.cleanups.push(e)}let ae;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,ke&&ke.active&&ke.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=ae,n=Ne;ae=this,Ne=!0;try{return this.fn()}finally{Ai(this),ae=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=ae,r=Ne;ae=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{ae=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=ae;ae=void 0;try{t()}finally{ae=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(!ae||!Ne||ae===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ae)n=this.activeLink=new La(ae,this),ae.deps?(n.prevDep=ae.depsTail,ae.depsTail.nextDep=n,ae.depsTail=n):ae.deps=ae.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=ae.depsTail,n.nextDep=void 0,ae.depsTail.nextDep=n,ae.depsTail=n,ae.deps===n&&(ae.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,At=Symbol(""),Yr=Symbol(""),vn=Symbol("");function xe(e,t,n){if(Ne&&ae){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=W(e),c=a&&Wn(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===vn||!We(d)&&d>=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(At)),Kt(e)&&o(l.get(Yr)));break;case"delete":a||(o(l.get(At)),Kt(e)&&o(l.get(Yr)));break;case"set":Kt(e)&&o(l.get(At));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:(xe(t,"iterate",vn),Le(e)?t:t.map(Be))}function Jn(e){return xe(e=X(e),"iterate",vn),e}function mt(e,t){return nt(e)?Qt(Tt(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=>W(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&&!Le(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&&!Le(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,d){return n.call(this,mt(e,f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,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&&(Le(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);xe(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 xe(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=W(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||xe(t,"get",n),i))return o;if(be(o)){const a=l&&Wn(n)?o:o.value;return s&&oe(a)?Et(a):a}return oe(o)?s?Et(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=W(t)&&Wn(n);if(!this._isShallow){const c=nt(i);if(!Le(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:ie(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=ie(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))&&xe(t,"has",n),r}ownKeys(t){return xe(t,"iterate",W(t)?"length":At),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=Kt(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Xr:t?Qt:Be;return!t&&xe(i,"iterate",a?Yr:At),Te(Object.create(c),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:o?[u(f[0]),u(f[1])]:u(f),done:d}}})}}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)&&xe(l,"get",s),xe(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&&xe(X(s),"iterate",At),s.size},has(s){const i=this.__v_raw,l=X(i),o=X(s);return e||(ht(s,o)&&xe(l,"has",s),xe(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&&xe(a,"iterate",At),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return Te(n,e?{add:er("add"),set:er("set"),delete:er("delete"),clear:er("clear")}:{add(s){!t&&!Le(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&&!Le(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(ie(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 Et(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(!oe(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 Tt(e){return nt(e)?Tt(e.__v_raw):!!(e&&e.__v_isReactive)}function nt(e){return!!(e&&e.__v_isReadonly)}function Le(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!ie(e,"__v_skip")&&Object.isExtensible(e)&&bi(e,"__v_skip",!0),e}const Be=e=>oe(e)?yn(e):e,Qt=e=>oe(e)?Et(e):e;function be(e){return e?e.__v_isRef===!0:!1}function q(e){return Ni(e,!1)}function Lt(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||Le(t)||nt(t);t=r?t:X(t),ht(t,n)&&(this._rawValue=t,this._value=r?t:Be(t),this.dep.trigger())}}function B(e){return be(e)?e.value:e}function Ie(e){return te(e)?e():B(e)}const Xa={get:(e,t,n)=>t==="__v_raw"?e:B(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 Tt(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(!W(t)||!Wn(String(n)))do s=!rr(i)||Le(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=B(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):oe(e)&&arguments.length>1?ic(e,t,n):q(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)&&ae!==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 It;function ac(e,t=!1,n=It){if(n){let r=ir.get(n);r||ir.set(n,r=[]),r.push(e)}}function cc(e,t,n=fe){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=R=>s?R:Le(R)||s===!1||s===0?rt(R,1):rt(R);let u,f,d,p,w=!1,y=!1;if(be(e)?(f=()=>e.value,w=Le(e)):Tt(e)?(f=()=>c(e),w=!0):W(e)?(y=!0,w=e.some(R=>Tt(R)||Le(R)),f=()=>e.map(R=>{if(be(R))return R.value;if(Tt(R))return c(R);if(te(R))return a?a(R,2):R()})):te(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){dt();try{d()}finally{gt()}}const R=It;It=u;try{return a?a(e,3,[p]):e(p)}finally{It=R}}:f=St,t&&s){const R=f,F=s===!0?1/0:s;f=()=>rt(R(),F)}const A=_i(),_=()=>{u.stop(),A&&A.active&&pi(A.effects,u)};if(i&&t){const R=t;t=(...F)=>{R(...F),_()}}let I=y?new Array(e.length).fill(sr):sr;const z=R=>{if(!(!(u.flags&1)||!u.dirty&&!R))if(t){const F=u.run();if(s||w||(y?F.some((de,ge)=>ht(de,I[ge])):ht(F,I))){d&&d();const de=It;It=u;try{const ge=[F,I===sr?void 0:y&&I[0]===sr?[]:I,p];I=F,a?a(t,3,ge):t(...ge)}finally{It=de}}}else u.run()};return o&&o(z),u=new Ci(f),u.scheduler=l?()=>l(z,!1):z,p=R=>ac(R,!1,u),d=u.onStop=()=>{const R=ir.get(u);if(R){if(a)a(R,4);else for(const F of R)F();ir.delete(u)}},t?r?z(!0):I=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||!oe(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(W(e))for(let r=0;r<e.length;r++)rt(e[r],t,n);else if(Gt(e)||Kt(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
|
+
* @vue/runtime-core v3.5.28
|
|
21
21
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
22
22
|
* @license MIT
|
|
23
|
-
**/function dn(e,t,n,r){try{return r?e(...r):e()}catch(s){rr(s,t,n)}}function it(e,t,n,r){if(se(e)){const s=dn(e,t,n,r);return s&&di(s)&&s.catch(i=>{rr(i,t,n)}),s}if(G(e)){const s=[];for(let i=0;i<e.length;i++)s.push(it(e[i],t,n,r));return s}}function rr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||ue;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}l=l.parent}if(i){pt(),dn(i,null,10,[e,a,c]),dt();return}}Ya(e,n,s,r,o)}function Ya(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Se=[];let Ge=-1;const Bt=[];let mt=null,Wt=0;const Vi=Promise.resolve();let sr=null;function qt(e){const t=sr||Vi;return e?t.then(this?e.bind(this):e):t}function Xa(e){let t=Ge+1,n=Se.length;for(;t<n;){const r=t+n>>>1,s=Se[r],i=gn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function es(e){if(!(e.flags&1)){const t=gn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=gn(n)?Se.push(e):Se.splice(Xa(t),0,e),e.flags|=1,Bi()}}function Bi(){sr||(sr=Vi.then(Ki))}function Qa(e){G(e)?Bt.push(...e):mt&&e.id===-1?mt.splice(Wt+1,0,e):e.flags&1||(Bt.push(e),e.flags|=1),Bi()}function Wi(e,t,n=Ge+1){for(;n<Se.length;n++){const r=Se[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Se.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function qi(e){if(Bt.length){const t=[...new Set(Bt)].sort((n,r)=>gn(n)-gn(r));if(Bt.length=0,mt){mt.push(...t);return}for(mt=t,Wt=0;Wt<mt.length;Wt++){const n=mt[Wt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}mt=null,Wt=0}}const gn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ki(e){try{for(Ge=0;Ge<Se.length;Ge++){const t=Se[Ge];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),dn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ge<Se.length;Ge++){const t=Se[Ge];t&&(t.flags&=-2)}Ge=-1,Se.length=0,qi(),sr=null,(Se.length||Bt.length)&&Ki()}}let Me=null,Gi=null;function ir(e){const t=Me;return Me=e,Gi=e&&e.type.__scopeId||null,t}function ec(e,t=Me,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&fr(-1);const i=ir(t);let o;try{o=e(...s)}finally{ir(i),r._d&&fr(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function lr(e,t){if(Me===null)return e;const n=gr(Me),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,l,a=ue]=t[s];i&&(se(i)&&(i={mounted:i,updated:i}),i.deep&&st(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function It(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let o=0;o<s.length;o++){const l=s[o];i&&(l.oldValue=i[o].value);let a=l.dir[r];a&&(pt(),it(a,n,8,[e.el,l,e,t]),dt())}}const tc=Symbol("_vte"),nc=e=>e.__isTeleport,rc=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 mn(e,t){return se(e)?ze({name:e.name},t,{setup:e}):e}function sc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vt(e){const t=hs(),n=Et(null);if(t){const s=t.refs===ue?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}const or=new WeakMap;function vn(e,t,n,r,s=!1){if(G(e)){e.forEach((m,k)=>vn(m,t&&(G(t)?t[k]:t),n,r,s));return}if(bn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&vn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?gr(r.component):r.el,o=s?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ue?l.refs={}:l.refs,f=l.setupState,p=ne(f),b=f===ue?fi:m=>re(p,m);if(c!=null&&c!==a){if(Zi(t),ke(c))u[c]=null,b(c)&&(f[c]=null);else if(we(c)){c.value=null;const m=t;m.k&&(u[m.k]=null)}}if(se(a))dn(a,l,12,[o,u]);else{const m=ke(a),k=we(a);if(m||k){const L=()=>{if(e.f){const A=m?b(a)?f[a]:u[a]:a.value;if(s)G(A)&&hi(A,i);else if(G(A))A.includes(i)||A.push(i);else if(m)u[a]=[i],b(a)&&(f[a]=u[a]);else{const _=[i];a.value=_,e.k&&(u[e.k]=_)}}else m?(u[a]=o,b(a)&&(f[a]=o)):k&&(a.value=o,e.k&&(u[e.k]=o))};if(o){const A=()=>{L(),or.delete(e)};A.id=-1,or.set(e,A),Pe(A,n)}else Zi(e),L()}}}function Zi(e){const t=or.get(e);t&&(t.flags|=8,or.delete(e))}ln().requestIdleCallback,ln().cancelIdleCallback;const bn=e=>!!e.type.__asyncLoader,ic=e=>e.type.__isKeepAlive;function lc(e,t,n=Ie,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{pt();const l=ds(n),a=it(t,n,e,o);return l(),dt(),a});return r?s.unshift(i):s.push(i),i}}const ns=e=>(t,n=Ie)=>{(!Cn||e==="sp")&&lc(e,(...r)=>t(...r),n)},yn=ns("m"),oc=ns("bum"),rs=ns("um"),ac="components";function cc(e,t){return fc(ac,e,!0,t)||e}const uc=Symbol.for("v-ndc");function fc(e,t,n=!0,r=!1){const s=Me||Ie;if(s){const i=s.type;{const l=Gc(i,!1);if(l&&(l===t||l===Fe(t)||l===Bn(Fe(t))))return i}const o=Ji(s[e]||i[e],t)||Ji(s.appContext[e],t);return!o&&r?i:o}}function Ji(e,t){return e&&(e[t]||e[Fe(t)]||e[Bn(Fe(t))])}function De(e,t,n,r){let s;const i=n,o=G(e);if(o||ke(e)){const l=o&&Vt(e);let a=!1,c=!1;l&&(a=!He(e),c=gt(e),e=Zn(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?er(xe(e[u])):xe(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,i)}else if(ge(e))if(e[Symbol.iterator])s=Array.from(e,(l,a)=>t(l,a,void 0,i));else{const l=Object.keys(e);s=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];s[a]=t(e[u],u,a,i)}}else s=[];return s}const ss=e=>e?vl(e)?gr(e):ss(e.parent):null,wn=ze(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=qt.bind(e.proxy)),$watch:e=>Ct}),is=(e,t)=>e!==ue&&!e.__isScriptSetup&&re(e,t),hc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:o,type:l,appContext:a}=e;let c;if(t[0]!=="$"){const b=o[t];if(b!==void 0)switch(b){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 o[t]=1,r[t];if(s!==ue&&re(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&re(c,t))return o[t]=3,i[t];if(n!==ue&&re(n,t))return o[t]=4,n[t];o[t]=0}}const u=wn[t];let f,p;if(u)return t==="$attrs"&&$e(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ue&&re(n,t))return o[t]=4,n[t];if(p=a.config.globalProperties,re(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return is(s,t)?(s[t]=n,!0):r!==ue&&re(r,t)?(r[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i,type:o}},l){let a,c;return!!(n[l]||e!==ue&&l[0]!=="$"&&re(e,l)||is(t,l)||(a=i[0])&&re(a,l)||re(r,l)||re(wn,l)||re(s.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yi(){return{app:null,config:{isNativeTag:fi,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 pc=0;function dc(e,t){return function(r,s=null){se(r)||(r=ze({},r)),s!=null&&!ge(s)&&(s=null);const i=Yi(),o=new WeakSet,l=[];let a=!1;const c=i.app={_uid:pc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Jc,get config(){return i.config},set config(u){},use(u,...f){return o.has(u)||(u&&se(u.install)?(o.add(u),u.install(c,...f)):se(u)&&(o.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 b=c._ceVNode||fe(r,s);return b.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(b,u,p),a=!0,c._container=u,u.__vue_app__=c,gr(b.component)}},onUnmount(u){l.push(u)},unmount(){a&&(it(l,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=Kt;Kt=c;try{return u()}finally{Kt=f}}};return c}}let Kt=null;function gc(e,t){if(Ie){let n=Ie.provides;const r=Ie.parent&&Ie.parent.provides;r===n&&(n=Ie.provides=Object.create(r)),n[e]=t}}function ar(e,t,n=!1){const r=hs();if(r||Kt){let s=Kt?Kt._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&&se(t)?t.call(r&&r.proxy):t}}const Xi={},Qi=()=>Object.create(Xi),el=e=>Object.getPrototypeOf(e)===Xi;function mc(e,t,n,r=!1){const s={},i=Qi();e.propsDefaults=Object.create(null),tl(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:Oa(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function vc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=e,l=ne(s),[a]=e.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(cr(e.emitsOptions,p))continue;const b=t[p];if(a)if(re(i,p))b!==i[p]&&(i[p]=b,c=!0);else{const m=Fe(p);s[m]=ls(a,l,m,b,e,!1)}else b!==i[p]&&(i[p]=b,c=!0)}}}else{tl(e,t,s,i)&&(c=!0);let u;for(const f in l)(!t||!re(t,f)&&((u=$t(f))===f||!re(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=ls(a,l,f,void 0,e,!0)):delete s[f]);if(i!==l)for(const f in i)(!t||!re(t,f))&&(delete i[f],c=!0)}c&&nt(e.attrs,"set","")}function tl(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(sn(a))continue;const c=t[a];let u;s&&re(s,u=Fe(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:cr(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,o=!0)}if(i){const a=ne(n),c=l||ue;for(let u=0;u<i.length;u++){const f=i[u];n[f]=ls(s,a,f,c[f],e,!re(c,f))}}return o}function ls(e,t,n,r,s,i){const o=e[n];if(o!=null){const l=re(o,"default");if(l&&r===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&se(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)}o[0]&&(i&&!l?r=!1:o[1]&&(r===""||r===$t(n))&&(r=!0))}return r}function bc(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,o={},l=[];if(!i)return ge(e)&&r.set(e,Ht),Ht;if(G(i))for(let c=0;c<i.length;c++){const u=Fe(i[c]);nl(u)&&(o[u]=ue)}else if(i)for(const c in i){const u=Fe(c);if(nl(u)){const f=i[c],p=o[u]=G(f)||se(f)?{type:f}:ze({},f),b=p.type;let m=!1,k=!0;if(G(b))for(let L=0;L<b.length;++L){const A=b[L],_=se(A)&&A.name;if(_==="Boolean"){m=!0;break}else _==="String"&&(k=!1)}else m=se(b)&&b.name==="Boolean";p[0]=m,p[1]=k,(m||re(p,"default"))&&l.push(u)}}const a=[o,l];return ge(e)&&r.set(e,a),a}function nl(e){return e[0]!=="$"&&!sn(e)}const os=e=>e==="_"||e==="_ctx"||e==="$stable",as=e=>G(e)?e.map(Je):[Je(e)],yc=(e,t,n)=>{if(t._n)return t;const r=ec((...s)=>as(t(...s)),n);return r._c=!1,r},rl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(os(s))continue;const i=e[s];if(se(i))t[s]=yc(s,i,r);else if(i!=null){const o=as(i);t[s]=()=>o}}},sl=(e,t)=>{const n=as(t);e.slots.default=()=>n},il=(e,t,n)=>{for(const r in t)(n||!os(r))&&(e[r]=t[r])},wc=(e,t,n)=>{const r=e.slots=Qi();if(e.vnode.shapeFlag&32){const s=t._;s?(il(r,t,n),n&&vi(r,"_",s,!0)):rl(t,r)}else t&&sl(e,t)},kc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=ue;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:il(s,t,n):(i=!t.$stable,rl(t,s)),o=t}else t&&(sl(e,t),o={default:1});if(i)for(const l in s)!os(l)&&o[l]==null&&delete s[l]};function xc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ln().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Pe=Oc;function _c(e){return Cc(e)}function Cc(e,t){xc();const n=ln();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:o,createText:l,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:b=Ct,insertStaticContent:m}=e,k=(h,d,g,y=null,w=null,v=null,R=void 0,C=null,$=!!d.dynamicChildren)=>{if(h===d)return;h&&!_n(h,d)&&(y=zt(h),qe(h,w,v,!0),h=null),d.patchFlag===-2&&($=!1,d.dynamicChildren=null);const{type:x,ref:U,shapeFlag:I}=d;switch(x){case ur:L(h,d,g,y);break;case yt:A(h,d,g,y);break;case us:h==null&&_(d,g,y,R);break;case de:Q(h,d,g,y,w,v,R,C,$);break;default:I&1?P(h,d,g,y,w,v,R,C,$):I&6?N(h,d,g,y,w,v,R,C,$):(I&64||I&128)&&x.process(h,d,g,y,w,v,R,C,$,S)}U!=null&&w?vn(U,h&&h.ref,v,d||h,!d):U==null&&h&&h.ref!=null&&vn(h.ref,null,v,h,!0)},L=(h,d,g,y)=>{if(h==null)r(d.el=l(d.children),g,y);else{const w=d.el=h.el;d.children!==h.children&&c(w,d.children)}},A=(h,d,g,y)=>{h==null?r(d.el=a(d.children||""),g,y):d.el=h.el},_=(h,d,g,y)=>{[h.el,h.anchor]=m(h.children,d,g,y,h.el,h.anchor)},F=({el:h,anchor:d},g,y)=>{let w;for(;h&&h!==d;)w=p(h),r(h,g,y),h=w;r(d,g,y)},E=({el:h,anchor:d})=>{let g;for(;h&&h!==d;)g=p(h),s(h),h=g;s(d)},P=(h,d,g,y,w,v,R,C,$)=>{d.type==="svg"?R="svg":d.type==="math"&&(R="mathml"),h==null?V(d,g,y,w,v,R,C,$):_e(h,d,w,v,R,C,$)},V=(h,d,g,y,w,v,R,C)=>{let $,x;const{props:U,shapeFlag:I,transition:O,dirs:B}=h;if($=h.el=o(h.type,v,U&&U.is,U),I&8?u($,h.children):I&16&&q(h.children,$,null,y,w,cs(h,v),R,C),B&&It(h,null,y,"created"),Z($,h,h.scopeId,R,y),U){for(const ce in U)ce!=="value"&&!sn(ce)&&i($,ce,null,U[ce],v,y);"value"in U&&i($,"value",null,U.value,v),(x=U.onVnodeBeforeMount)&&Ye(x,y,h)}B&&It(h,null,y,"beforeMount");const Y=$c(w,O);Y&&O.beforeEnter($),r($,d,g),((x=U&&U.onVnodeMounted)||Y||B)&&Pe(()=>{x&&Ye(x,y,h),Y&&O.enter($),B&&It(h,null,y,"mounted")},w)},Z=(h,d,g,y,w)=>{if(g&&b(h,g),y)for(let v=0;v<y.length;v++)b(h,y[v]);if(w){let v=w.subTree;if(d===v||pl(v.type)&&(v.ssContent===d||v.ssFallback===d)){const R=w.vnode;Z(h,R,R.scopeId,R.slotScopeIds,w.parent)}}},q=(h,d,g,y,w,v,R,C,$=0)=>{for(let x=$;x<h.length;x++){const U=h[x]=C?wt(h[x]):Je(h[x]);k(null,U,d,g,y,w,v,R,C)}},_e=(h,d,g,y,w,v,R)=>{const C=d.el=h.el;let{patchFlag:$,dynamicChildren:x,dirs:U}=d;$|=h.patchFlag&16;const I=h.props||ue,O=d.props||ue;let B;if(g&&Lt(g,!1),(B=O.onVnodeBeforeUpdate)&&Ye(B,g,d,h),U&&It(d,h,g,"beforeUpdate"),g&&Lt(g,!0),(I.innerHTML&&O.innerHTML==null||I.textContent&&O.textContent==null)&&u(C,""),x?be(h.dynamicChildren,x,C,g,y,cs(d,w),v):R||xt(h,d,C,null,g,y,cs(d,w),v,!1),$>0){if($&16)D(C,I,O,g,w);else if($&2&&I.class!==O.class&&i(C,"class",null,O.class,w),$&4&&i(C,"style",I.style,O.style,w),$&8){const Y=d.dynamicProps;for(let ce=0;ce<Y.length;ce++){const he=Y[ce],Ne=I[he],Ae=O[he];(Ae!==Ne||he==="value")&&i(C,he,Ne,Ae,w,g)}}$&1&&h.children!==d.children&&u(C,d.children)}else!R&&x==null&&D(C,I,O,g,w);((B=O.onVnodeUpdated)||U)&&Pe(()=>{B&&Ye(B,g,d,h),U&&It(d,h,g,"updated")},y)},be=(h,d,g,y,w,v,R)=>{for(let C=0;C<d.length;C++){const $=h[C],x=d[C],U=$.el&&($.type===de||!_n($,x)||$.shapeFlag&198)?f($.el):g;k($,x,U,null,y,w,v,R,!0)}},D=(h,d,g,y,w)=>{if(d!==g){if(d!==ue)for(const v in d)!sn(v)&&!(v in g)&&i(h,v,d[v],null,w,y);for(const v in g){if(sn(v))continue;const R=g[v],C=d[v];R!==C&&v!=="value"&&i(h,v,C,R,w,y)}"value"in g&&i(h,"value",d.value,g.value,w)}},Q=(h,d,g,y,w,v,R,C,$)=>{const x=d.el=h?h.el:l(""),U=d.anchor=h?h.anchor:l("");let{patchFlag:I,dynamicChildren:O,slotScopeIds:B}=d;B&&(C=C?C.concat(B):B),h==null?(r(x,g,y),r(U,g,y),q(d.children||[],g,U,w,v,R,C,$)):I>0&&I&64&&O&&h.dynamicChildren?(be(h.dynamicChildren,O,g,w,v,R,C),(d.key!=null||w&&d===w.subTree)&&ll(h,d,!0)):xt(h,d,g,U,w,v,R,C,$)},N=(h,d,g,y,w,v,R,C,$)=>{d.slotScopeIds=C,h==null?d.shapeFlag&512?w.ctx.activate(d,g,y,R,$):z(d,g,y,w,v,R,$):J(h,d,$)},z=(h,d,g,y,w,v,R)=>{const C=h.component=Vc(h,y,w);if(ic(h)&&(C.ctx.renderer=S),Bc(C,!1,R),C.asyncDep){if(w&&w.registerDep(C,le,R),!h.el){const $=C.subTree=fe(yt);A(null,$,d,g),h.placeholder=$.el}}else le(C,h,d,g,w,v,R)},J=(h,d,g)=>{const y=d.component=h.component;if(Pc(h,d,g))if(y.asyncDep&&!y.asyncResolved){ft(y,d,g);return}else y.next=d,y.update();else d.el=h.el,y.vnode=d},le=(h,d,g,y,w,v,R)=>{const C=()=>{if(h.isMounted){let{next:I,bu:O,u:B,parent:Y,vnode:ce}=h;{const On=ol(h);if(On){I&&(I.el=ce.el,ft(h,I,R)),On.asyncDep.then(()=>{h.isUnmounted||C()});return}}let he=I,Ne;Lt(h,!1),I?(I.el=ce.el,ft(h,I,R)):I=ce,O&&Wn(O),(Ne=I.props&&I.props.onVnodeBeforeUpdate)&&Ye(Ne,Y,I,ce),Lt(h,!0);const Ae=fl(h),Ve=h.subTree;h.subTree=Ae,k(Ve,Ae,f(Ve.el),zt(Ve),h,w,v),I.el=Ae.el,he===null&&jc(h,Ae.el),B&&Pe(B,w),(Ne=I.props&&I.props.onVnodeUpdated)&&Pe(()=>Ye(Ne,Y,I,ce),w)}else{let I;const{props:O}=d,{bm:B,m:Y,parent:ce,root:he,type:Ne}=h,Ae=bn(d);Lt(h,!1),B&&Wn(B),!Ae&&(I=O&&O.onVnodeBeforeMount)&&Ye(I,ce,d),Lt(h,!0);{he.ce&&he.ce._def.shadowRoot!==!1&&he.ce._injectChildStyle(Ne);const Ve=h.subTree=fl(h);k(null,Ve,g,y,h,w,v),d.el=Ve.el}if(Y&&Pe(Y,w),!Ae&&(I=O&&O.onVnodeMounted)){const Ve=d;Pe(()=>Ye(I,ce,Ve),w)}(d.shapeFlag&256||ce&&bn(ce.vnode)&&ce.vnode.shapeFlag&256)&&h.a&&Pe(h.a,w),h.isMounted=!0,d=g=y=null}};h.scope.on();const $=h.effect=new _i(C);h.scope.off();const x=h.update=$.run.bind($),U=h.job=$.runIfDirty.bind($);U.i=h,U.id=h.uid,$.scheduler=()=>es(U),Lt(h,!0),x()},ft=(h,d,g)=>{d.component=h;const y=h.vnode.props;h.vnode=d,h.next=null,vc(h,d.props,y,g),kc(h,d.children,g),pt(),Wi(h),dt()},xt=(h,d,g,y,w,v,R,C,$=!1)=>{const x=h&&h.children,U=h?h.shapeFlag:0,I=d.children,{patchFlag:O,shapeFlag:B}=d;if(O>0){if(O&128){Ir(x,I,g,y,w,v,R,C,$);return}else if(O&256){jn(x,I,g,y,w,v,R,C,$);return}}B&8?(U&16&&Ot(x,w,v),I!==x&&u(g,I)):U&16?B&16?Ir(x,I,g,y,w,v,R,C,$):Ot(x,w,v,!0):(U&8&&u(g,""),B&16&&q(I,g,y,w,v,R,C,$))},jn=(h,d,g,y,w,v,R,C,$)=>{h=h||Ht,d=d||Ht;const x=h.length,U=d.length,I=Math.min(x,U);let O;for(O=0;O<I;O++){const B=d[O]=$?wt(d[O]):Je(d[O]);k(h[O],B,g,null,w,v,R,C,$)}x>U?Ot(h,w,v,!0,!1,I):q(d,g,y,w,v,R,C,$,I)},Ir=(h,d,g,y,w,v,R,C,$)=>{let x=0;const U=d.length;let I=h.length-1,O=U-1;for(;x<=I&&x<=O;){const B=h[x],Y=d[x]=$?wt(d[x]):Je(d[x]);if(_n(B,Y))k(B,Y,g,null,w,v,R,C,$);else break;x++}for(;x<=I&&x<=O;){const B=h[I],Y=d[O]=$?wt(d[O]):Je(d[O]);if(_n(B,Y))k(B,Y,g,null,w,v,R,C,$);else break;I--,O--}if(x>I){if(x<=O){const B=O+1,Y=B<U?d[B].el:y;for(;x<=O;)k(null,d[x]=$?wt(d[x]):Je(d[x]),g,Y,w,v,R,C,$),x++}}else if(x>O)for(;x<=I;)qe(h[x],w,v,!0),x++;else{const B=x,Y=x,ce=new Map;for(x=Y;x<=O;x++){const Oe=d[x]=$?wt(d[x]):Je(d[x]);Oe.key!=null&&ce.set(Oe.key,x)}let he,Ne=0;const Ae=O-Y+1;let Ve=!1,On=0;const zn=new Array(Ae);for(x=0;x<Ae;x++)zn[x]=0;for(x=B;x<=I;x++){const Oe=h[x];if(Ne>=Ae){qe(Oe,w,v,!0);continue}let tt;if(Oe.key!=null)tt=ce.get(Oe.key);else for(he=Y;he<=O;he++)if(zn[he-Y]===0&&_n(Oe,d[he])){tt=he;break}tt===void 0?qe(Oe,w,v,!0):(zn[tt-Y]=x+1,tt>=On?On=tt:Ve=!0,k(Oe,d[tt],g,null,w,v,R,C,$),Ne++)}const Mo=Ve?Sc(zn):Ht;for(he=Mo.length-1,x=Ae-1;x>=0;x--){const Oe=Y+x,tt=d[Oe],Po=d[Oe+1],jo=Oe+1<U?Po.el||Po.placeholder:y;zn[x]===0?k(null,tt,g,jo,w,v,R,C,$):Ve&&(he<0||x!==Mo[he]?Qt(tt,g,jo,2):he--)}}},Qt=(h,d,g,y,w=null)=>{const{el:v,type:R,transition:C,children:$,shapeFlag:x}=h;if(x&6){Qt(h.component.subTree,d,g,y);return}if(x&128){h.suspense.move(d,g,y);return}if(x&64){R.move(h,d,g,S);return}if(R===de){r(v,d,g);for(let I=0;I<$.length;I++)Qt($[I],d,g,y);r(h.anchor,d,g);return}if(R===us){F(h,d,g);return}if(y!==2&&x&1&&C)if(y===0)C.beforeEnter(v),r(v,d,g),Pe(()=>C.enter(v),w);else{const{leave:I,delayLeave:O,afterLeave:B}=C,Y=()=>{h.ctx.isUnmounted?s(v):r(v,d,g)},ce=()=>{v._isLeaving&&v[rc](!0),I(v,()=>{Y(),B&&B()})};O?O(v,Y,ce):ce()}else r(v,d,g)},qe=(h,d,g,y=!1,w=!1)=>{const{type:v,props:R,ref:C,children:$,dynamicChildren:x,shapeFlag:U,patchFlag:I,dirs:O,cacheIndex:B}=h;if(I===-2&&(w=!1),C!=null&&(pt(),vn(C,null,g,h,!0),dt()),B!=null&&(d.renderCache[B]=void 0),U&256){d.ctx.deactivate(h);return}const Y=U&1&&O,ce=!bn(h);let he;if(ce&&(he=R&&R.onVnodeBeforeUnmount)&&Ye(he,d,h),U&6)Mr(h.component,g,y);else{if(U&128){h.suspense.unmount(g,y);return}Y&&It(h,null,d,"beforeUnmount"),U&64?h.type.remove(h,d,g,S,y):x&&!x.hasOnce&&(v!==de||I>0&&I&64)?Ot(x,d,g,!1,!0):(v===de&&I&384||!w&&U&16)&&Ot($,d,g),y&&Lr(h)}(ce&&(he=R&&R.onVnodeUnmounted)||Y)&&Pe(()=>{he&&Ye(he,d,h),Y&&It(h,null,d,"unmounted")},g)},Lr=h=>{const{type:d,el:g,anchor:y,transition:w}=h;if(d===de){Ps(g,y);return}if(d===us){E(h);return}const v=()=>{s(g),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(h.shapeFlag&1&&w&&!w.persisted){const{leave:R,delayLeave:C}=w,$=()=>R(g,v);C?C(h.el,v,$):$()}else v()},Ps=(h,d)=>{let g;for(;h!==d;)g=p(h),s(h),h=g;s(d)},Mr=(h,d,g)=>{const{bum:y,scope:w,job:v,subTree:R,um:C,m:$,a:x}=h;al($),al(x),y&&Wn(y),w.stop(),v&&(v.flags|=8,qe(R,h,d,g)),C&&Pe(C,d),Pe(()=>{h.isUnmounted=!0},d)},Ot=(h,d,g,y=!1,w=!1,v=0)=>{for(let R=v;R<h.length;R++)qe(h[R],d,g,y,w)},zt=h=>{if(h.shapeFlag&6)return zt(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const d=p(h.anchor||h.el),g=d&&d[tc];return g?p(g):d};let en=!1;const H=(h,d,g)=>{h==null?d._vnode&&qe(d._vnode,null,null,!0):k(d._vnode||null,h,d,null,null,null,g),d._vnode=h,en||(en=!0,Wi(),qi(),en=!1)},S={p:k,um:qe,m:Qt,r:Lr,mt:z,mc:q,pc:xt,pbc:be,n:zt,o:e};return{render:H,hydrate:void 0,createApp:dc(H)}}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 Lt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $c(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ll(e,t,n=!1){const r=e.children,s=t.children;if(G(r)&&G(s))for(let i=0;i<r.length;i++){const o=r[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=wt(s[i]),l.el=o.el),!n&&l.patchFlag!==-2&&ll(o,l)),l.type===ur&&l.patchFlag!==-1&&(l.el=o.el),l.type===yt&&!l.el&&(l.el=o.el)}}function Sc(e){const t=e.slice(),n=[0];let r,s,i,o,l;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,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<c?i=l+1:o=l;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ol(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ol(t)}function al(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Rc=Symbol.for("v-scx"),Ac=()=>ar(Rc);function cl(e,t){return ul(e,null,t)}function bt(e,t,n){return ul(e,t,n)}function ul(e,t,n=ue){const{immediate:r,flush:s}=n,i=ze({},n),o=t&&r||!t&&s!=="post";let l;if(Cn){if(s==="sync"){const f=Ac();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!o){const f=()=>{};return f.stop=Ct,f.resume=Ct,f.pause=Ct,f}}const a=Ie;i.call=(f,p,b)=>it(f,a,p,b);let c=!1;s==="post"?i.scheduler=f=>{Pe(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=Ja(e,t,i);return Cn&&(l?l.push(u):o&&u()),u}const Ec=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Fe(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function Tc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let s=n;const i=t.startsWith("update:"),o=i&&Ec(r,t.slice(7));o&&(o.trim&&(s=n.map(u=>ke(u)?u.trim():u)),o.number&&(s=n.map(qn)));let l,a=r[l=Ur(t)]||r[l=Ur(Fe(t))];!a&&i&&(a=r[l=Ur($t(t))]),a&&it(a,e,6,s);const c=r[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,it(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 o={};return i?(G(i)?i.forEach(l=>o[l]=null):ze(o,i),ge(e)&&r.set(e,o),o):(ge(e)&&r.set(e,null),null)}function cr(e,t){return!e||!Nn(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,$t(t))||re(e,t))}function fl(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:l,emit:a,render:c,renderCache:u,props:f,data:p,setupState:b,ctx:m,inheritAttrs:k}=e,L=ir(e);let A,_;try{if(n.shapeFlag&4){const E=s||r,P=E;A=Je(c.call(P,E,u,f,b,p,m)),_=l}else{const E=t;A=Je(E.length>1?E(f,{attrs:l,slots:o,emit:a}):E(f,null)),_=t.props?l:Lc(l)}}catch(E){kn.length=0,rr(E,e,1),A=fe(yt)}let F=A;if(_&&k!==!1){const E=Object.keys(_),{shapeFlag:P}=F;E.length&&P&7&&(i&&E.some(Hr)&&(_=Mc(_,i)),F=Gt(F,_,!1,!0))}return n.dirs&&(F=Gt(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&ts(F,n.transition),A=F,ir(L),A}const Lc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},Mc=(e,t)=>{const n={};for(const r in e)(!Hr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Pc(e,t,n){const{props:r,children:s,component:i}=e,{props:o,children:l,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?hl(r,o,c):!!o;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(o[p]!==r[p]&&!cr(c,p))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===o?!1:r?o?hl(r,o,c):!0:!!o;return!1}function hl(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(t[i]!==e[i]&&!cr(n,i))return!0}return!1}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 pl=e=>e.__isSuspense;function Oc(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):Qa(e)}const de=Symbol.for("v-fgt"),ur=Symbol.for("v-txt"),yt=Symbol.for("v-cmt"),us=Symbol.for("v-stc"),kn=[];let je=null;function T(e=!1){kn.push(je=e?null:[])}function zc(){kn.pop(),je=kn[kn.length-1]||null}let xn=1;function fr(e,t=!1){xn+=e,e<0&&je&&t&&(je.hasOnce=!0)}function dl(e){return e.dynamicChildren=xn>0?je||Ht:null,zc(),xn>0&&je&&je.push(e),e}function M(e,t,n,r,s,i){return dl(j(e,t,n,r,s,i,!0))}function Ze(e,t,n,r,s){return dl(fe(e,t,n,r,s,!0))}function hr(e){return e?e.__v_isVNode===!0:!1}function _n(e,t){return e.type===t.type&&e.key===t.key}const gl=({key:e})=>e??null,pr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ke(e)||we(e)||se(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function j(e,t=null,n=null,r=0,s=null,i=e===de?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gl(t),ref:t&&pr(t),scopeId:Gi,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:Me};return l?(fs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=ke(n)?8:16),xn>0&&!o&&je&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&je.push(a),a}const fe=Fc;function Fc(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===uc)&&(e=yt),hr(e)){const l=Gt(e,t,!0);return n&&fs(l,n),xn>0&&!i&&je&&(l.shapeFlag&6?je[je.indexOf(e)]=l:je.push(l)),l.patchFlag=-2,l}if(Zc(e)&&(e=e.__vccOpts),t){t=Hc(t);let{class:l,style:a}=t;l&&!ke(l)&&(t.class=ye(l)),ge(a)&&(Qr(a)&&!G(a)&&(a=ze({},a)),t.style=on(a))}const o=ke(e)?1:pl(e)?128:nc(e)?64:ge(e)?4:se(e)?2:0;return j(e,t,n,r,s,o,i,!0)}function Hc(e){return e?Qr(e)||el(e)?ze({},e):e:null}function Gt(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:l,transition:a}=e,c=t?Dc(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&gl(c),ref:t&&t.ref?n&&i?G(i)?i.concat(pr(t)):[i,pr(t)]:pr(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(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 lt(e=" ",t=0){return fe(ur,null,e,t)}function X(e="",t=!1){return t?(T(),Ze(yt,null,e)):fe(yt,null,e)}function Je(e){return e==null||typeof e=="boolean"?fe(yt):G(e)?fe(de,null,e.slice()):hr(e)?wt(e):fe(ur,null,String(e))}function wt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function fs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(G(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&&!el(t)?t._ctx=Me:s===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),r&64?(n=16,t=[lt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Dc(...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=ye([t.class,r.class]));else if(s==="style")t.style=on([t.style,r.style]);else if(Nn(s)){const i=t[s],o=r[s];o&&i!==o&&!(G(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function Ye(e,t,n,r=null){it(e,t,7,[n,r])}const Uc=Yi();let Nc=0;function Vc(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Uc,i={uid:Nc++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ga(!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:bc(r,s),emitsOptions:Ic(r,s),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,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=Tc.bind(null,i),e.ce&&e.ce(i),i}let Ie=null;const hs=()=>Ie||Me;let dr,ps;{const e=ln(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};dr=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),ps=t("__VUE_SSR_SETTERS__",n=>Cn=n)}const ds=e=>{const t=Ie;return dr(e),e.scope.on(),()=>{e.scope.off(),dr(t)}},ml=()=>{Ie&&Ie.scope.off(),dr(null)};function vl(e){return e.vnode.shapeFlag&4}let Cn=!1;function Bc(e,t=!1,n=!1){t&&ps(t);const{props:r,children:s}=e.vnode,i=vl(e);mc(e,r,i,t),wc(e,s,n||t);const o=i?Wc(e,t):void 0;return t&&ps(!1),o}function Wc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,hc);const{setup:r}=n;if(r){pt();const s=e.setupContext=r.length>1?Kc(e):null,i=ds(e),o=dn(r,e,0,[e.props,s]),l=di(o);if(dt(),i(),(l||e.sp)&&!bn(e)&&sc(e),l){if(o.then(ml,ml),t)return o.then(a=>{bl(e,a,t)}).catch(a=>{rr(a,e,0)});e.asyncDep=o}else bl(e,o,t)}else wl(e,t)}function bl(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ni(t)),wl(e,n)}let yl;function wl(e,t,n){const r=e.type;if(!e.render){if(!t&&yl&&!r.render){const s=r.template||!1;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=ze(ze({isCustomElement:i,delimiters:l},o),a);r.render=yl(s,c)}}e.render=r.render||Ct}}const qc={get(e,t){return $e(e,"get",""),e[t]}};function Kc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,qc),slots:e.slots,emit:e.emit,expose:t}}function gr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ni(Fa(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in wn)return wn[n](e)},has(t,n){return n in t||n in wn}})):e.proxy}function Gc(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Zc(e){return se(e)&&"__vccOpts"in e}const ve=(e,t)=>Ga(e,t,Cn);function ee(e,t,n){try{fr(-1);const r=arguments.length;return r===2?ge(t)&&!G(t)?hr(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&hr(n)&&(n=[n]),fe(e,t,n))}finally{fr(1)}}const Jc="3.5.22";/**
|
|
24
|
-
* @vue/runtime-dom v3.5.
|
|
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(W(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||fe;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 _e=[];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=_e.length;for(;t<n;){const r=t+n>>>1,s=_e[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=_e[_e.length-1];!n||!(e.flags&2)&&t>=kn(n)?_e.push(e):_e.splice(fc(t),0,e),e.flags|=1,Wi()}}function Wi(){or||(or=Vi.then(Gi))}function hc(e){W(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<_e.length;n++){const r=_e[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;_e.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<_e.length;qe++){const t=_e[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<_e.length;qe++){const t=_e[qe];t&&(t.flags&=-2)}qe=-1,_e.length=0,Ki(),or=null,(_e.length||Jt.length)&&Gi()}}let Me=null,Zi=null;function ar(e){const t=Me;return Me=e,Zi=e&&e.type.__scopeId||null,t}function pc(e,t=Me,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(Me===null)return e;const n=br(Me),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,o,a=fe]=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 Mt(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(Ee){let n=Ee.provides;const r=Ee.parent&&Ee.parent.provides;r===n&&(n=Ee.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=fe){const{immediate:r,flush:s}=n,i=Te({},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=Ee;i.call=(f,d,p)=>st(f,a,d,p);let c=!1;s==="post"?i.scheduler=f=>{Ae(f,a&&a.suspense)}:s!=="sync"&&(c=!0,i.scheduler=(f,d)=>{d?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 Pt(e,t){return te(e)?Te({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=Lt(null);if(t){const s=t.refs===fe?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(W(e)){e.forEach((y,A)=>xn(y,t&&(W(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===fe?o.refs={}:o.refs,f=o.setupState,d=X(f),p=f===fe?hi:y=>Ji(u,y)?!1:ie(d,y),w=(y,A)=>!(A&&Ji(u,A));if(c!=null&&c!==a){if(Xi(t),we(c))u[c]=null,p(c)&&(f[c]=null);else if(be(c)){const y=t;w(c,y.k)&&(c.value=null),y.k&&(u[y.k]=null)}}if(te(a))wn(a,o,12,[l,u]);else{const y=we(a),A=be(a);if(y||A){const _=()=>{if(e.f){const I=y?p(a)?f[a]:u[a]:w()||!e.k?a.value:u[e.k];if(s)W(I)&&pi(I,i);else if(W(I))I.includes(i)||I.push(i);else if(y)u[a]=[i],p(a)&&(f[a]=u[a]);else{const z=[i];w(a,e.k)&&(a.value=z),e.k&&(u[e.k]=z)}}else y?(u[a]=l,p(a)&&(f[a]=l)):A&&(w(a,e.k)&&(a.value=l),e.k&&(u[e.k]=l))};if(l){const I=()=>{_(),fr.delete(e)};I.id=-1,fr.set(e,I),Ae(I,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=Ee,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=Ee)=>{(!An||e==="sp")&&xc(e,(...r)=>t(...r),n)},tn=ns("m"),_c=ns("bum"),rs=ns("um"),Cc="components";function $c(e,t){return Rc(Cc,e,!0,t)||e}const Sc=Symbol.for("v-ndc");function Rc(e,t,n=!0,r=!1){const s=Me||Ee;if(s){const i=s.type;{const o=ou(i,!1);if(o&&(o===t||o===je(t)||o===Kn(je(t))))return i}const l=el(s[e]||i[e],t)||el(s.appContext[e],t);return!l&&r?i:l}}function el(e,t){return e&&(e[t]||e[je(t)]||e[Kn(je(t))])}function ze(e,t,n,r){let s;const i=n,l=W(e);if(l||we(e)){const o=l&&Tt(e);let a=!1,c=!1;o&&(a=!Le(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(oe(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?kl(e)?br(e):ss(e.parent):null,Cn=Te(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!==fe&&!e.__isScriptSetup&&ie(e,t),Ac={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 d=l[t];if(d!==void 0)switch(d){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(ie(i,t))return l[t]=3,i[t];if(n!==fe&&ie(n,t))return l[t]=4,n[t];l[t]=0}}const c=Cn[t];let u,f;if(c)return t==="$attrs"&&xe(e.attrs,"get",""),c(e);if((u=o.__cssModules)&&(u=u[t]))return u;if(n!==fe&&ie(n,t))return l[t]=4,n[t];if(f=a.config.globalProperties,ie(f,t))return f[t]},set({_:e},t,n){const{setupState:r,ctx:s}=e;return is(r,t)?(r[t]=n,!0):ie(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)||ie(i,o)||ie(r,o)||ie(Cn,o)||ie(s.config.globalProperties,o)||(a=l.__cssModules)&&a[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function tl(){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 Ec=0;function Tc(e,t){return function(r,s=null){te(r)||(r=Te({},r)),s!=null&&!oe(s)&&(s=null);const i=tl(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:Ec++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:cu,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,d){if(!a){const p=c._ceVNode||se(r,s);return p.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(p,u,d),a=!0,c._container=u,u.__vue_app__=c,br(p.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 Lc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${je(t)}Modifiers`]||e[`${Rt(t)}Modifiers`];function Ic(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||fe;let s=n;const i=t.startsWith("update:"),l=i&&Lc(r,t.slice(7));l&&(l.trim&&(s=n.map(u=>we(u)?u.trim():u)),l.number&&(s=n.map(Zn)));let o,a=r[o=Nr(t)]||r[o=Nr(je(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 Mc(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?(W(i)?i.forEach(o=>l[o]=null):Te(l,i),oe(e)&&r.set(e,l),l):(oe(e)&&r.set(e,null),null)}function hr(e,t){return!e||!Vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Rt(t))||ie(e,t))}function nl(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:d,setupState:p,ctx:w,inheritAttrs:y}=e,A=ar(e);let _,I;try{if(n.shapeFlag&4){const R=s||r,F=R;_=Ge(c.call(F,R,u,f,p,d,w)),I=o}else{const R=t;_=Ge(R.length>1?R(f,{attrs:o,slots:l,emit:a}):R(f,null)),I=t.props?o:Pc(o)}}catch(R){$n.length=0,lr(R,e,1),_=se(wt)}let z=_;if(I&&y!==!1){const R=Object.keys(I),{shapeFlag:F}=z;R.length&&F&7&&(i&&R.some(Hr)&&(I=Oc(I,i)),z=rn(z,I,!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 Pc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vn(n))&&((t||(t={}))[n]=e[n]);return t},Oc=(e,t)=>{const n={};for(const r in e)(!Hr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function jc(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?rl(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(sl(l,r,d)&&!hr(c,d))return!0}}}else return(s||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?rl(r,l,c):!0:!!l;return!1}function rl(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(sl(t,e,i)&&!hr(n,i))return!0}return!1}function sl(e,t,n){const r=e[n],s=t[n];return n==="style"&&oe(r)&&oe(s)?!pt(r,s):r!==s}function zc({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 il={},ll=()=>Object.create(il),ol=e=>Object.getPrototypeOf(e)===il;function Fc(e,t,n,r=!1){const s={},i=ll();e.propsDefaults=Object.create(null),al(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 Dc(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 d=u[f];if(hr(e.emitsOptions,d))continue;const p=t[d];if(a)if(ie(i,d))p!==i[d]&&(i[d]=p,c=!0);else{const w=je(d);s[w]=ls(a,o,w,p,e,!1)}else p!==i[d]&&(i[d]=p,c=!0)}}}else{al(e,t,s,i)&&(c=!0);let u;for(const f in o)(!t||!ie(t,f)&&((u=Rt(f))===f||!ie(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||!ie(t,f))&&(delete i[f],c=!0)}c&&et(e.attrs,"set","")}function al(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&&ie(s,u=je(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||fe;for(let u=0;u<i.length;u++){const f=i[u];n[f]=ls(s,a,f,c[f],e,!ie(c,f))}}return l}function ls(e,t,n,r,s,i){const l=e[n];if(l!=null){const o=ie(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 Uc(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 oe(e)&&r.set(e,qt),qt;if(W(i))for(let c=0;c<i.length;c++){const u=je(i[c]);cl(u)&&(l[u]=fe)}else if(i)for(const c in i){const u=je(c);if(cl(u)){const f=i[c],d=l[u]=W(f)||te(f)?{type:f}:Te({},f),p=d.type;let w=!1,y=!0;if(W(p))for(let A=0;A<p.length;++A){const _=p[A],I=te(_)&&_.name;if(I==="Boolean"){w=!0;break}else I==="String"&&(y=!1)}else w=te(p)&&p.name==="Boolean";d[0]=w,d[1]=y,(w||ie(d,"default"))&&o.push(u)}}const a=[l,o];return oe(e)&&r.set(e,a),a}function cl(e){return e[0]!=="$"&&!hn(e)}const os=e=>e==="_"||e==="_ctx"||e==="$stable",as=e=>W(e)?e.map(Ge):[Ge(e)],Hc=(e,t,n)=>{if(t._n)return t;const r=pc((...s)=>as(t(...s)),n);return r._c=!1,r},ul=(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]=Hc(s,i,r);else if(i!=null){const l=as(i);t[s]=()=>l}}},fl=(e,t)=>{const n=as(t);e.slots.default=()=>n},hl=(e,t,n)=>{for(const r in t)(n||!os(r))&&(e[r]=t[r])},Nc=(e,t,n)=>{const r=e.slots=ll();if(e.vnode.shapeFlag&32){const s=t._;s?(hl(r,t,n),n&&bi(r,"_",s,!0)):ul(t,r)}else t&&fl(e,t)},Bc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=fe;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:hl(s,t,n):(i=!t.$stable,ul(t,s)),l=t}else t&&(fl(e,t),l={default:1});if(i)for(const o in s)!os(o)&&l[o]==null&&delete s[o]};function Vc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(pn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ae=Zc;function Wc(e){return qc(e)}function qc(e,t){Vc();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:d,setScopeId:p=St,insertStaticContent:w}=e,y=(h,g,m,v=null,b=null,k=null,x=void 0,S=null,$=!!g.dynamicChildren)=>{if(h===g)return;h&&!Rn(h,g)&&(v=Bt(h),Je(h,b,k,!0),h=null),g.patchFlag===-2&&($=!1,g.dynamicChildren=null);const{type:C,ref:L,shapeFlag:E}=g;switch(C){case pr:A(h,g,m,v);break;case wt:_(h,g,m,v);break;case us:h==null&&I(g,m,v,x);break;case ce:H(h,g,m,v,b,k,x,S,$);break;default:E&1?F(h,g,m,v,b,k,x,S,$):E&6?ne(h,g,m,v,b,k,x,S,$):(E&64||E&128)&&C.process(h,g,m,v,b,k,x,S,$,Ct)}L!=null&&b?xn(L,h&&h.ref,k,g||h,!g):L==null&&h&&h.ref!=null&&xn(h.ref,null,k,h,!0)},A=(h,g,m,v)=>{if(h==null)r(g.el=o(g.children),m,v);else{const b=g.el=h.el;g.children!==h.children&&c(b,g.children)}},_=(h,g,m,v)=>{h==null?r(g.el=a(g.children||""),m,v):g.el=h.el},I=(h,g,m,v)=>{[h.el,h.anchor]=w(h.children,g,m,v,h.el,h.anchor)},z=({el:h,anchor:g},m,v)=>{let b;for(;h&&h!==g;)b=d(h),r(h,m,v),h=b;r(g,m,v)},R=({el:h,anchor:g})=>{let m;for(;h&&h!==g;)m=d(h),s(h),h=m;s(g)},F=(h,g,m,v,b,k,x,S,$)=>{if(g.type==="svg"?x="svg":g.type==="math"&&(x="mathml"),h==null)de(g,m,v,b,k,x,S,$);else{const C=h.el&&h.el._isVueCE?h.el:null;try{C&&C._beginPatch(),me(h,g,b,k,x,S,$)}finally{C&&C._endPatch()}}},de=(h,g,m,v,b,k,x,S)=>{let $,C;const{props:L,shapeFlag:E,transition:P,dirs:V}=h;if($=h.el=l(h.type,k,L&&L.is,L),E&8?u($,h.children):E&16&&D(h.children,$,null,v,b,cs(h,k),x,S),V&&Mt(h,null,v,"created"),ge($,h,h.scopeId,x,v),L){for(const re in L)re!=="value"&&!hn(re)&&i($,re,null,L[re],k,v);"value"in L&&i($,"value",null,L.value,k),(C=L.onVnodeBeforeMount)&&Ze(C,v,h)}V&&Mt(h,null,v,"beforeMount");const Y=Kc(b,P);Y&&P.beforeEnter($),r($,g,m),((C=L&&L.onVnodeMounted)||Y||V)&&Ae(()=>{C&&Ze(C,v,h),Y&&P.enter($),V&&Mt(h,null,v,"mounted")},b)},ge=(h,g,m,v,b)=>{if(m&&p(h,m),v)for(let k=0;k<v.length;k++)p(h,v[k]);if(b){let k=b.subTree;if(g===k||vl(k.type)&&(k.ssContent===g||k.ssFallback===g)){const x=b.vnode;ge(h,x,x.scopeId,x.slotScopeIds,b.parent)}}},D=(h,g,m,v,b,k,x,S,$=0)=>{for(let C=$;C<h.length;C++){const L=h[C]=S?lt(h[C]):Ge(h[C]);y(null,L,g,m,v,b,k,x,S)}},me=(h,g,m,v,b,k,x)=>{const S=g.el=h.el;let{patchFlag:$,dynamicChildren:C,dirs:L}=g;$|=h.patchFlag&16;const E=h.props||fe,P=g.props||fe;let V;if(m&&Ot(m,!1),(V=P.onVnodeBeforeUpdate)&&Ze(V,m,g,h),L&&Mt(g,h,m,"beforeUpdate"),m&&Ot(m,!0),(E.innerHTML&&P.innerHTML==null||E.textContent&&P.textContent==null)&&u(S,""),C?ve(h.dynamicChildren,C,S,m,v,cs(g,b),k):x||ue(h,g,S,null,m,v,cs(g,b),k,!1),$>0){if($&16)U(S,E,P,m,b);else if($&2&&E.class!==P.class&&i(S,"class",null,P.class,b),$&4&&i(S,"style",E.style,P.style,b),$&8){const Y=g.dynamicProps;for(let re=0;re<Y.length;re++){const le=Y[re],De=E[le],$e=P[le];($e!==De||le==="value")&&i(S,le,De,$e,b,m)}}$&1&&h.children!==g.children&&u(S,g.children)}else!x&&C==null&&U(S,E,P,m,b);((V=P.onVnodeUpdated)||L)&&Ae(()=>{V&&Ze(V,m,g,h),L&&Mt(g,h,m,"updated")},v)},ve=(h,g,m,v,b,k,x)=>{for(let S=0;S<g.length;S++){const $=h[S],C=g[S],L=$.el&&($.type===ce||!Rn($,C)||$.shapeFlag&198)?f($.el):m;y($,C,L,null,v,b,k,x,!0)}},U=(h,g,m,v,b)=>{if(g!==m){if(g!==fe)for(const k in g)!hn(k)&&!(k in m)&&i(h,k,g[k],null,b,v);for(const k in m){if(hn(k))continue;const x=m[k],S=g[k];x!==S&&k!=="value"&&i(h,k,S,x,b,v)}"value"in m&&i(h,"value",g.value,m.value,b)}},H=(h,g,m,v,b,k,x,S,$)=>{const C=g.el=h?h.el:o(""),L=g.anchor=h?h.anchor:o("");let{patchFlag:E,dynamicChildren:P,slotScopeIds:V}=g;V&&(S=S?S.concat(V):V),h==null?(r(C,m,v),r(L,m,v),D(g.children||[],m,L,b,k,x,S,$)):E>0&&E&64&&P&&h.dynamicChildren&&h.dynamicChildren.length===P.length?(ve(h.dynamicChildren,P,m,b,k,x,S),(g.key!=null||b&&g===b.subTree)&&pl(h,g,!0)):ue(h,g,m,L,b,k,x,S,$)},ne=(h,g,m,v,b,k,x,S,$)=>{g.slotScopeIds=S,h==null?g.shapeFlag&512?b.ctx.activate(g,m,v,x,$):j(g,m,v,b,k,x,$):Q(h,g,$)},j=(h,g,m,v,b,k,x)=>{const S=h.component=nu(h,v,b);if(kc(h)&&(S.ctx.renderer=Ct),ru(S,!1,x),S.asyncDep){if(b&&b.registerDep(S,G,x),!h.el){const $=S.subTree=se(wt);_(null,$,g,m),h.placeholder=$.el}}else G(S,h,g,m,b,k,x)},Q=(h,g,m)=>{const v=g.component=h.component;if(jc(h,g,m))if(v.asyncDep&&!v.asyncResolved){Ve(v,g,m);return}else v.next=g,v.update();else g.el=h.el,v.vnode=g},G=(h,g,m,v,b,k,x)=>{const S=()=>{if(h.isMounted){let{next:E,bu:P,u:V,parent:Y,vnode:re}=h;{const Fn=dl(h);if(Fn){E&&(E.el=re.el,Ve(h,E,x)),Fn.asyncDep.then(()=>{Ae(()=>{h.isUnmounted||C()},b)});return}}let le=E,De;Ot(h,!1),E?(E.el=re.el,Ve(h,E,x)):E=re,P&&Gn(P),(De=E.props&&E.props.onVnodeBeforeUpdate)&&Ze(De,Y,E,re),Ot(h,!0);const $e=nl(h),Ue=h.subTree;h.subTree=$e,y(Ue,$e,f(Ue.el),Bt(Ue),h,b,k),E.el=$e.el,le===null&&zc(h,$e.el),V&&Ae(V,b),(De=E.props&&E.props.onVnodeUpdated)&&Ae(()=>Ze(De,Y,E,re),b)}else{let E;const{props:P}=g,{bm:V,m:Y,parent:re,root:le,type:De}=h,$e=_n(g);Ot(h,!1),V&&Gn(V),!$e&&(E=P&&P.onVnodeBeforeMount)&&Ze(E,re,g),Ot(h,!0);{le.ce&&le.ce._hasShadowRoot()&&le.ce._injectChildStyle(De);const Ue=h.subTree=nl(h);y(null,Ue,m,v,h,b,k),g.el=Ue.el}if(Y&&Ae(Y,b),!$e&&(E=P&&P.onVnodeMounted)){const Ue=g;Ae(()=>Ze(E,re,Ue),b)}(g.shapeFlag&256||re&&_n(re.vnode)&&re.vnode.shapeFlag&256)&&h.a&&Ae(h.a,b),h.isMounted=!0,g=m=v=null}};h.scope.on();const $=h.effect=new Ci(S);h.scope.off();const C=h.update=$.run.bind($),L=h.job=$.runIfDirty.bind($);L.i=h,L.id=h.uid,$.scheduler=()=>es(L),Ot(h,!0),C()},Ve=(h,g,m)=>{g.component=h;const v=h.vnode.props;h.vnode=g,h.next=null,Dc(h,g.props,v,m),Bc(h,g.children,m),dt(),qi(h),gt()},ue=(h,g,m,v,b,k,x,S,$=!1)=>{const C=h&&h.children,L=h?h.shapeFlag:0,E=g.children,{patchFlag:P,shapeFlag:V}=g;if(P>0){if(P&128){Ht(C,E,m,v,b,k,x,S,$);return}else if(P&256){xt(C,E,m,v,b,k,x,S,$);return}}V&8?(L&16&&Nt(C,b,k),E!==C&&u(m,E)):L&16?V&16?Ht(C,E,m,v,b,k,x,S,$):Nt(C,b,k,!0):(L&8&&u(m,""),V&16&&D(E,m,v,b,k,x,S,$))},xt=(h,g,m,v,b,k,x,S,$)=>{h=h||qt,g=g||qt;const C=h.length,L=g.length,E=Math.min(C,L);let P;for(P=0;P<E;P++){const V=g[P]=$?lt(g[P]):Ge(g[P]);y(h[P],V,m,null,b,k,x,S,$)}C>L?Nt(h,b,k,!0,!1,E):D(g,m,v,b,k,x,S,$,E)},Ht=(h,g,m,v,b,k,x,S,$)=>{let C=0;const L=g.length;let E=h.length-1,P=L-1;for(;C<=E&&C<=P;){const V=h[C],Y=g[C]=$?lt(g[C]):Ge(g[C]);if(Rn(V,Y))y(V,Y,m,null,b,k,x,S,$);else break;C++}for(;C<=E&&C<=P;){const V=h[E],Y=g[P]=$?lt(g[P]):Ge(g[P]);if(Rn(V,Y))y(V,Y,m,null,b,k,x,S,$);else break;E--,P--}if(C>E){if(C<=P){const V=P+1,Y=V<L?g[V].el:v;for(;C<=P;)y(null,g[C]=$?lt(g[C]):Ge(g[C]),m,Y,b,k,x,S,$),C++}}else if(C>P)for(;C<=E;)Je(h[C],b,k,!0),C++;else{const V=C,Y=C,re=new Map;for(C=Y;C<=P;C++){const Oe=g[C]=$?lt(g[C]):Ge(g[C]);Oe.key!=null&&re.set(Oe.key,C)}let le,De=0;const $e=P-Y+1;let Ue=!1,Fn=0;const Dn=new Array($e);for(C=0;C<$e;C++)Dn[C]=0;for(C=V;C<=E;C++){const Oe=h[C];if(De>=$e){Je(Oe,b,k,!0);continue}let Xe;if(Oe.key!=null)Xe=re.get(Oe.key);else for(le=Y;le<=P;le++)if(Dn[le-Y]===0&&Rn(Oe,g[le])){Xe=le;break}Xe===void 0?Je(Oe,b,k,!0):(Dn[Xe-Y]=C+1,Xe>=Fn?Fn=Xe:Ue=!0,y(Oe,g[Xe],m,null,b,k,x,S,$),De++)}const qo=Ue?Gc(Dn):qt;for(le=qo.length-1,C=$e-1;C>=0;C--){const Oe=Y+C,Xe=g[Oe],Ko=g[Oe+1],Go=Oe+1<L?Ko.el||ml(Ko):v;Dn[C]===0?y(null,Xe,m,Go,b,k,x,S,$):Ue&&(le<0||C!==qo[le]?_t(Xe,m,Go,2):le--)}}},_t=(h,g,m,v,b=null)=>{const{el:k,type:x,transition:S,children:$,shapeFlag:C}=h;if(C&6){_t(h.component.subTree,g,m,v);return}if(C&128){h.suspense.move(g,m,v);return}if(C&64){x.move(h,g,m,Ct);return}if(x===ce){r(k,g,m);for(let E=0;E<$.length;E++)_t($[E],g,m,v);r(h.anchor,g,m);return}if(x===us){z(h,g,m);return}if(v!==2&&C&1&&S)if(v===0)S.beforeEnter(k),r(k,g,m),Ae(()=>S.enter(k),b);else{const{leave:E,delayLeave:P,afterLeave:V}=S,Y=()=>{h.ctx.isUnmounted?s(k):r(k,g,m)},re=()=>{k._isLeaving&&k[yc](!0),E(k,()=>{Y(),V&&V()})};P?P(k,Y,re):re()}else r(k,g,m)},Je=(h,g,m,v=!1,b=!1)=>{const{type:k,props:x,ref:S,children:$,dynamicChildren:C,shapeFlag:L,patchFlag:E,dirs:P,cacheIndex:V}=h;if(E===-2&&(b=!1),S!=null&&(dt(),xn(S,null,m,h,!0),gt()),V!=null&&(g.renderCache[V]=void 0),L&256){g.ctx.deactivate(h);return}const Y=L&1&&P,re=!_n(h);let le;if(re&&(le=x&&x.onVnodeBeforeUnmount)&&Ze(le,g,h),L&6)Os(h.component,m,v);else{if(L&128){h.suspense.unmount(m,v);return}Y&&Mt(h,null,g,"beforeUnmount"),L&64?h.type.remove(h,g,m,Ct,v):C&&!C.hasOnce&&(k!==ce||E>0&&E&64)?Nt(C,g,m,!1,!0):(k===ce&&E&384||!b&&L&16)&&Nt($,g,m),v&&an(h)}(re&&(le=x&&x.onVnodeUnmounted)||Y)&&Ae(()=>{le&&Ze(le,g,h),Y&&Mt(h,null,g,"unmounted")},m)},an=h=>{const{type:g,el:m,anchor:v,transition:b}=h;if(g===ce){Ps(m,v);return}if(g===us){R(h);return}const k=()=>{s(m),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(h.shapeFlag&1&&b&&!b.persisted){const{leave:x,delayLeave:S}=b,$=()=>x(m,k);S?S(h.el,k,$):$()}else k()},Ps=(h,g)=>{let m;for(;h!==g;)m=d(h),s(h),h=m;s(g)},Os=(h,g,m)=>{const{bum:v,scope:b,job:k,subTree:x,um:S,m:$,a:C}=h;gl($),gl(C),v&&Gn(v),b.stop(),k&&(k.flags|=8,Je(x,h,g,m)),S&&Ae(S,g),Ae(()=>{h.isUnmounted=!0},g)},Nt=(h,g,m,v=!1,b=!1,k=0)=>{for(let x=k;x<h.length;x++)Je(h[x],g,m,v,b)},Bt=h=>{if(h.shapeFlag&6)return Bt(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const g=d(h.anchor||h.el),m=g&&g[vc];return m?d(m):g};let zn=!1;const jr=(h,g,m)=>{let v;h==null?g._vnode&&(Je(g._vnode,null,null,!0),v=g._vnode.component):y(g._vnode||null,h,g,null,null,null,m),g._vnode=h,zn||(zn=!0,qi(v),Ki(),zn=!1)},Ct={p:y,um:Je,m:_t,r:an,mt:j,mc:D,pc:ue,pbc:ve,n:Bt,o:e};return{render:jr,hydrate:void 0,createApp:Tc(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 Ot({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Kc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function pl(e,t,n=!1){const r=e.children,s=t.children;if(W(r)&&W(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&&pl(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 Gc(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 dl(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:dl(t)}function gl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function ml(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?ml(t.subTree):null}const vl=e=>e.__isSuspense;function Zc(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):hc(e)}const ce=Symbol.for("v-fgt"),pr=Symbol.for("v-txt"),wt=Symbol.for("v-cmt"),us=Symbol.for("v-stc"),$n=[];let Pe=null;function T(e=!1){$n.push(Pe=e?null:[])}function Yc(){$n.pop(),Pe=$n[$n.length-1]||null}let Sn=1;function dr(e,t=!1){Sn+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function bl(e){return e.dynamicChildren=Sn>0?Pe||qt:null,Yc(),Sn>0&&Pe&&Pe.push(e),e}function M(e,t,n,r,s,i){return bl(O(e,t,n,r,s,i,!0))}function Ke(e,t,n,r,s){return bl(se(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 yl=({key:e})=>e??null,mr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||be(e)||te(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,r=0,s=null,i=e===ce?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yl(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:Me};return o?(fs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),Sn>0&&!l&&Pe&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Pe.push(a),a}const se=Qc;function Qc(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===Sc)&&(e=wt),gr(e)){const o=rn(e,t,!0);return n&&fs(o,n),Sn>0&&!i&&Pe&&(o.shapeFlag&6?Pe[Pe.indexOf(e)]=o:Pe.push(o)),o.patchFlag=-2,o}if(au(e)&&(e=e.__vccOpts),t){t=Jc(t);let{class:o,style:a}=t;o&&!we(o)&&(t.class=ye(o)),oe(a)&&(rr(a)&&!W(a)&&(a=Te({},a)),t.style=Zt(a))}const l=we(e)?1:vl(e)?128:bc(e)?64:oe(e)?4:te(e)?2:0;return O(e,t,n,r,s,l,i,!0)}function Jc(e){return e?rr(e)||ol(e)?Te({},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?Xc(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&yl(c),ref:t&&t.ref?n&&i?W(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!==ce?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&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 se(pr,null,e,t)}function K(e="",t=!1){return t?(T(),Ke(wt,null,e)):se(wt,null,e)}function Ge(e){return e==null||typeof e=="boolean"?se(wt):W(e)?se(ce,null,e.slice()):gr(e)?lt(e):se(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(W(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&&!ol(t)?t._ctx=Me:s===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),r&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function Xc(...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=ye([t.class,r.class]));else if(s==="style")t.style=Zt([t.style,r.style]);else if(Vn(s)){const i=t[s],l=r[s];l&&i!==l&&!(W(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 eu=tl();let tu=0;function nu(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||eu,i={uid:tu++,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:Uc(r,s),emitsOptions:Mc(r,s),emit:null,emitted:null,propsDefaults:fe,inheritAttrs:r.inheritAttrs,ctx:fe,data:fe,props:fe,attrs:fe,slots:fe,refs:fe,setupState:fe,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=Ic.bind(null,i),e.ce&&e.ce(i),i}let Ee=null;const hs=()=>Ee||Me;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=>Ee=n),ps=t("__VUE_SSR_SETTERS__",n=>An=n)}const ds=e=>{const t=Ee;return vr(e),e.scope.on(),()=>{e.scope.off(),vr(t)}},wl=()=>{Ee&&Ee.scope.off(),vr(null)};function kl(e){return e.vnode.shapeFlag&4}let An=!1;function ru(e,t=!1,n=!1){t&&ps(t);const{props:r,children:s}=e.vnode,i=kl(e);Fc(e,r,i,t),Nc(e,s,n||t);const l=i?su(e,t):void 0;return t&&ps(!1),l}function su(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ac);const{setup:r}=n;if(r){dt();const s=e.setupContext=r.length>1?lu(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(wl,wl),t)return l.then(a=>{xl(e,a,t)}).catch(a=>{lr(a,e,0)});e.asyncDep=l}else xl(e,l,t)}else Cl(e,t)}function xl(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=Bi(t)),Cl(e,n)}let _l;function Cl(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=Te(Te({isCustomElement:i,delimiters:o},l),a);r.render=_l(s,c)}}e.render=r.render||St}}const iu={get(e,t){return xe(e,"get",""),e[t]}};function lu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,iu),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 ou(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function au(e){return te(e)&&"__vccOpts"in e}const he=(e,t)=>oc(e,t,An);function N(e,t,n){try{dr(-1);const r=arguments.length;return r===2?oe(t)&&!W(t)?gr(t)?se(e,null,[t]):se(e,t):se(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&gr(n)&&(n=[n]),se(e,t,n))}finally{dr(1)}}const cu="3.5.28";/**
|
|
24
|
+
* @vue/runtime-dom v3.5.28
|
|
25
25
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
26
26
|
* @license MIT
|
|
27
|
-
**/let gs;const kl=typeof window<"u"&&window.trustedTypes;if(kl)try{gs=kl.createPolicy("vue",{createHTML:e=>e})}catch{}const xl=gs?e=>gs.createHTML(e):e=>e,Yc="http://www.w3.org/2000/svg",Xc="http://www.w3.org/1998/Math/MathML",ot=typeof document<"u"?document:null,_l=ot&&ot.createElement("template"),Qc={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(Yc,e):t==="mathml"?ot.createElementNS(Xc,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 o=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{_l.innerHTML=xl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=_l.content;if(r==="svg"||r==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},eu=Symbol("_vtc");function tu(e,t,n){const r=e[eu];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const mr=Symbol("_vod"),Cl=Symbol("_vsh"),$l={name:"show",beforeMount(e,{value:t},{transition:n}){e[mr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):$n(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),$n(e,!0),r.enter(e)):r.leave(e,()=>{$n(e,!1)}):$n(e,t))},beforeUnmount(e,{value:t}){$n(e,t)}};function $n(e,t){e.style.display=t?e[mr]:"none",e[Cl]=!t}const nu=Symbol(""),ru=/(?:^|;)\s*display\s*:/;function su(e,t,n){const r=e.style,s=ke(n);let i=!1;if(n&&!s){if(t)if(ke(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&vr(r,l,"")}else for(const o in t)n[o]==null&&vr(r,o,"");for(const o in n)o==="display"&&(i=!0),vr(r,o,n[o])}else if(s){if(t!==n){const o=r[nu];o&&(n+=";"+o),r.cssText=n,i=ru.test(n)}}else t&&e.removeAttribute("style");mr in e&&(e[mr]=i?r.display:"",e[Cl]&&(r.display="none"))}const Sl=/\s*!important$/;function vr(e,t,n){if(G(n))n.forEach(r=>vr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=iu(e,t);Sl.test(n)?e.setProperty($t(r),n.replace(Sl,""),"important"):e[r]=n}}const Rl=["Webkit","Moz","ms"],ms={};function iu(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=Bn(r);for(let s=0;s<Rl.length;s++){const i=Rl[s]+r;if(i in e)return ms[t]=i}return t}const Al="http://www.w3.org/1999/xlink";function El(e,t,n,r,s,i=pa(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Al,t.slice(6,t.length)):e.setAttributeNS(Al,t,n):n==null||i&&!yi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ke(n)?String(n):n)}function Tl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?xl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=yi(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(s||t)}function at(e,t,n,r){e.addEventListener(t,n,r)}function lu(e,t,n,r){e.removeEventListener(t,n,r)}const Il=Symbol("_vei");function ou(e,t,n,r,s=null){const i=e[Il]||(e[Il]={}),o=i[t];if(r&&o)o.value=r;else{const[l,a]=au(t);if(r){const c=i[t]=fu(r,s);at(e,l,c,a)}else o&&(lu(e,l,o,a),i[t]=void 0)}}const Ll=/(?:Once|Passive|Capture)$/;function au(e){let t;if(Ll.test(e)){t={};let r;for(;r=e.match(Ll);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$t(e.slice(2)),t]}let vs=0;const cu=Promise.resolve(),uu=()=>vs||(cu.then(()=>vs=0),vs=Date.now());function fu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;it(hu(r,n.value),t,5,[r])};return n.value=e,n.attached=uu(),n}function hu(e,t){if(G(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 Ml=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,pu=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?tu(e,r,o):t==="style"?su(e,n,r):Nn(t)?Hr(t)||ou(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):du(e,t,r,o))?(Tl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&El(e,t,r,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ke(r))?Tl(e,Fe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),El(e,t,r,o))};function du(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ml(t)&&se(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||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 Ml(t)&&ke(n)?!1:t in e}const kt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>Wn(t,n):t};function gu(e){e.target.composing=!0}function Pl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ue=Symbol("_assign"),bs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Ue]=kt(s);const i=r||s.props&&s.props.type==="number";at(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=qn(l)),e[Ue](l)}),n&&at(e,"change",()=>{e.value=e.value.trim()}),t||(at(e,"compositionstart",gu),at(e,"compositionend",Pl),at(e,"change",Pl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[Ue]=kt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?qn(e.value):e.value,a=t??"";l!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===a)||(e.value=a))}},mu={deep:!0,created(e,t,n){e[Ue]=kt(n),at(e,"change",()=>{const r=e._modelValue,s=Zt(e),i=e.checked,o=e[Ue];if(G(r)){const l=Nr(r,s),a=l!==-1;if(i&&!a)o(r.concat(s));else if(!i&&a){const c=[...r];c.splice(l,1),o(c)}}else if(Ut(r)){const l=new Set(r);i?l.add(s):l.delete(s),o(l)}else o(zl(e,i))})},mounted:jl,beforeUpdate(e,t,n){e[Ue]=kt(n),jl(e,t,n)}};function jl(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(G(t))s=Nr(t,r.props.value)>-1;else if(Ut(t))s=t.has(r.props.value);else{if(t===n)return;s=St(t,zl(e,!0))}e.checked!==s&&(e.checked=s)}const vu={created(e,{value:t},n){e.checked=St(t,n.props.value),e[Ue]=kt(n),at(e,"change",()=>{e[Ue](Zt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ue]=kt(r),t!==n&&(e.checked=St(t,r.props.value))}},bu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Ut(t);at(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?qn(Zt(o)):Zt(o));e[Ue](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,qt(()=>{e._assigning=!1})}),e[Ue]=kt(r)},mounted(e,{value:t}){Ol(e,t)},beforeUpdate(e,t,n){e[Ue]=kt(n)},updated(e,{value:t}){e._assigning||Ol(e,t)}};function Ol(e,t){const n=e.multiple,r=G(t);if(!(n&&!r&&!Ut(t))){for(let s=0,i=e.options.length;s<i;s++){const o=e.options[s],l=Zt(o);if(n)if(r){const a=typeof l;a==="string"||a==="number"?o.selected=t.some(c=>String(c)===String(l)):o.selected=Nr(t,l)>-1}else o.selected=t.has(l);else if(St(Zt(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Zt(e){return"_value"in e?e._value:e.value}function zl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const yu={created(e,t,n){br(e,t,n,null,"created")},mounted(e,t,n){br(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){br(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){br(e,t,n,r,"updated")}};function wu(e,t){switch(e){case"SELECT":return bu;case"TEXTAREA":return bs;default:switch(t){case"checkbox":return mu;case"radio":return vu;default:return bs}}}function br(e,t,n,r,s){const o=wu(e.tagName,n.props&&n.props.type)[s];o&&o(e,t,n,r)}const ku=ze({patchProp:pu},Qc);let Fl;function xu(){return Fl||(Fl=_c(ku))}const _u=((...e)=>{const t=xu().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=$u(r);if(!s)return;const i=t._component;!se(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,Cu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t});function Cu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function $u(e){return ke(e)?document.querySelector(e):e}function Sn(e,t){return xi()?(ma(e,t),!0):!1}const yr=typeof window<"u"&&typeof document<"u",Su=Object.prototype.toString,Ru=e=>Su.call(e)==="[object Object]",wr=()=>{};function Au(...e){if(e.length!==1)return Wa(...e);const t=e[0];return typeof t=="function"?At(Na(()=>({get:t,set:wr}))):ae(t)}function Hl(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 Dl=e=>e();function Eu(e,t={}){let n,r,s=wr;const i=a=>{clearTimeout(a),s(),s=wr};let o;return a=>{const c=Le(e),u=Le(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,o=a,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(o())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,f(a())},c)})}}function Tu(e=Dl,t={}){const{initialState:n="active"}=t,r=Au(n==="active");function s(){r.value=!1}function i(){r.value=!0}const o=(...l)=>{r.value&&e(...l)};return{isActive:At(r),pause:s,resume:i,eventFilter:o}}function ys(e){return Array.isArray(e)?e:[e]}function Ul(e){return hs()}function Iu(e,t=200,n={}){return Hl(Eu(t,n),e)}function Lu(e,t,n={}){const{eventFilter:r=Dl,...s}=n;return bt(e,Hl(r,t),s)}function Mu(e,t,n={}){const{eventFilter:r,initialState:s="active",...i}=n,{eventFilter:o,pause:l,resume:a,isActive:c}=Tu(r,{initialState:s});return{stop:Lu(e,t,{...i,eventFilter:o}),pause:l,resume:a,isActive:c}}const Pu=Mu;function ws(e,t=!0,n){Ul()?yn(e,n):t?e():qt(e)}function ju(e,t){Ul()&&rs(e,t)}function Ou(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const o=Et(!1);function l(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,l()}function c(){const u=Le(t);u<=0||(o.value=!0,s&&e(),l(),o.value&&(i=setInterval(e,u)))}return r&&yr&&c(),(we(t)||typeof t=="function")&&Sn(bt(t,()=>{o.value&&yr&&c()})),Sn(a),{isActive:za(o),pause:a,resume:c}}function Jt(e,t,n){return bt(e,t,{...n,immediate:!0})}const Yt=yr?window:void 0,Nl=yr?window.document:void 0;function zu(e){var t;const n=Le(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function Mt(...e){const t=[],n=()=>{t.forEach(l=>l()),t.length=0},r=(l,a,c,u)=>(l.addEventListener(a,c,u),()=>l.removeEventListener(a,c,u)),s=ve(()=>{const l=ys(Le(e[0])).filter(a=>a!=null);return l.every(a=>typeof a!="string")?l:void 0}),i=Jt(()=>{var l,a;return[(l=(a=s.value)===null||a===void 0?void 0:a.map(c=>zu(c)))!==null&&l!==void 0?l:[Yt].filter(c=>c!=null),ys(Le(s.value?e[1]:e[0])),ys(W(s.value?e[2]:e[1])),Le(s.value?e[3]:e[2])]},([l,a,c,u])=>{if(n(),!(l!=null&&l.length)||!(a!=null&&a.length)||!(c!=null&&c.length))return;const f=Ru(u)?{...u}:u;t.push(...l.flatMap(p=>a.flatMap(b=>c.map(m=>r(p,b,m,f)))))},{flush:"post"}),o=()=>{i(),n()};return Sn(n),o}function Fu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=Yt,once:i=!1}=t,o=Et(!1),l=ve(()=>r?1e3/Le(r):null);let a=0,c=null;function u(b){if(!o.value||!s)return;a||(a=b);const m=b-a;if(l.value&&m<l.value){c=s.requestAnimationFrame(u);return}if(a=b,e({delta:m,timestamp:b}),i){o.value=!1,c=null;return}c=s.requestAnimationFrame(u)}function f(){!o.value&&s&&(o.value=!0,a=0,c=s.requestAnimationFrame(u))}function p(){o.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&f(),Sn(p),{isActive:At(o),pause:p,resume:f}}const kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},xr="__vueuse_ssr_handlers__",Hu=Du();function Du(){return xr in kr||(kr[xr]=kr[xr]||{}),kr[xr]}function Uu(e,t){return Hu[e]||t}function Nu(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 Vu={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()}},Vl="vueuse-storage";function Xt(e,t,n,r={}){var s;const{flush:i="pre",deep:o=!0,listenToStorageChanges:l=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:f=Yt,eventFilter:p,onError:b=z=>{console.error(z)},initOnMounted:m}=r,k=(u?Et:ae)(typeof t=="function"?t():t),L=ve(()=>Le(e));if(!n)try{n=Uu("getDefaultStorage",()=>Yt==null?void 0:Yt.localStorage)()}catch(z){b(z)}if(!n)return k;const A=Le(t),_=Nu(A),F=(s=r.serializer)!==null&&s!==void 0?s:Vu[_],{pause:E,resume:P}=Pu(k,z=>be(z),{flush:i,deep:o,eventFilter:p});bt(L,()=>Q(),{flush:i});let V=!1;const Z=z=>{m&&!V||Q(z)},q=z=>{m&&!V||N(z)};f&&l&&(n instanceof Storage?Mt(f,"storage",Z,{passive:!0}):Mt(f,Vl,q)),m?ws(()=>{V=!0,Q()}):Q();function _e(z,J){if(f){const le={key:L.value,oldValue:z,newValue:J,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",le):new CustomEvent(Vl,{detail:le}))}}function be(z){try{const J=n.getItem(L.value);if(z==null)_e(J,null),n.removeItem(L.value);else{const le=F.write(z);J!==le&&(n.setItem(L.value,le),_e(J,le))}}catch(J){b(J)}}function D(z){const J=z?z.newValue:n.getItem(L.value);if(J==null)return a&&A!=null&&n.setItem(L.value,F.write(A)),A;if(!z&&c){const le=F.read(J);return typeof c=="function"?c(le,A):_==="object"&&!Array.isArray(le)?{...A,...le}:le}else return typeof J!="string"?J:F.read(J)}function Q(z){if(!(z&&z.storageArea!==n)){if(z&&z.key==null){k.value=A;return}if(!(z&&z.key!==L.value)){E();try{const J=F.write(k.value);(z===void 0||(z==null?void 0:z.newValue)!==J)&&(k.value=D(z))}catch(J){b(J)}finally{z?qt(P):P()}}}}function N(z){Q(z.detail)}return k}function Bu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame",immediate:r=!0}=e,s=ae(new Date),i=()=>s.value=new Date,o=n==="requestAnimationFrame"?Fu(i,{immediate:r}):Ou(i,n,{immediate:r});return t?{now:s,...o}:s}function Wu(e,t=wr,n={}){const{immediate:r=!0,manual:s=!1,type:i="text/javascript",async:o=!0,crossOrigin:l,referrerPolicy:a,noModule:c,defer:u,document:f=Nl,attrs:p={},nonce:b=void 0}=n,m=Et(null);let k=null;const L=F=>new Promise((E,P)=>{const V=be=>(m.value=be,E(be),be);if(!f){E(!1);return}let Z=!1,q=f.querySelector(`script[src="${Le(e)}"]`);q?q.hasAttribute("data-loaded")&&V(q):(q=f.createElement("script"),q.type=i,q.async=o,q.src=Le(e),u&&(q.defer=u),l&&(q.crossOrigin=l),c&&(q.noModule=c),a&&(q.referrerPolicy=a),b&&(q.nonce=b),Object.entries(p).forEach(([be,D])=>q==null?void 0:q.setAttribute(be,D)),Z=!0);const _e={passive:!0};Mt(q,"error",be=>P(be),_e),Mt(q,"abort",be=>P(be),_e),Mt(q,"load",()=>{q.setAttribute("data-loaded","true"),t(q),V(q)},_e),Z&&(q=f.head.appendChild(q)),F||V(q)}),A=(F=!0)=>(k||(k=L(F)),k),_=()=>{if(!f)return;k=null,m.value&&(m.value=null);const F=f.querySelector(`script[src="${Le(e)}"]`);F&&f.head.removeChild(F)};return r&&!s&&ws(A),s||ju(_),{scriptTag:m,load:A,unload:_}}let qu=0;function Ku(e,t={}){const n=Et(!1),{document:r=Nl,immediate:s=!0,manual:i=!1,id:o=`vueuse_styletag_${++qu}`}=t,l=Et(e);let a=()=>{};const c=()=>{if(!r)return;const f=r.getElementById(o)||r.createElement("style");f.isConnected||(f.id=o,t.nonce&&(f.nonce=t.nonce),t.media&&(f.media=t.media),r.head.appendChild(f)),!n.value&&(a=bt(l,p=>{f.textContent=p},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(o)),n.value=!1)};return s&&!i&&ws(c),i||Sn(u),{id:o,css:l,unload:u,load:c,isLoaded:At(n)}}const Gu="WALINE_EMOJI",Bl=Xt(Gu,{}),Zu=e=>/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Ju=e=>{const t=Zu(e);if(t){const n=Bl.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&&(Bl.value[e]=r),r})},Wl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Yu=e=>Promise.all(e?e.map(t=>Ft(t)?Ju(ci(t)):Promise.resolve(t)):[]).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:s,folder:i,icon:o,prefix:l="",type:a,items:c}=r;n.tabs.push({name:s,icon:Wl(o,i,l,a),items:c.map(u=>{const f=`${l}${u}`;return n.map[f]=Wl(u,i,l,a),f})})}),n}),ql=e=>{e.name!=="AbortError"&&console.error(e.message)},ks=e=>e instanceof HTMLElement?e:Ft(e)?document.querySelector(e):null,Xu=e=>e.type.includes("image"),Kl=e=>{const t=Array.from(e).find(Xu);return t?t.getAsFile():null};function xs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Pt=xs();function Gl(e){Pt=e}var Rn={exec:()=>null};function te(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(Re.caret,"$1"),n=n.replace(s,o),r},getRegex:()=>new RegExp(n,t)};return r}var Re={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,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ 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")},Qu=/^(?:[ \t]*(?:\n|$))+/,ef=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,tf=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,An=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nf=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_s=/(?:[*+-]|\d{1,9}[.)])/,Zl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Jl=te(Zl).replace(/bull/g,_s).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(),rf=te(Zl).replace(/bull/g,_s).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(),Cs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,sf=/^[^\n]+/,$s=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lf=te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$s).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),of=te(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,_s).getRegex(),_r="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",Ss=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,af=te("^ {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",Ss).replace("tag",_r).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Yl=te(Cs).replace("hr",An).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_r).getRegex(),cf=te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Yl).getRegex(),Rs={blockquote:cf,code:ef,def:lf,fences:tf,heading:nf,hr:An,html:af,lheading:Jl,list:of,newline:Qu,paragraph:Yl,table:Rn,text:sf},Xl=te("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",An).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_r).getRegex(),uf={...Rs,lheading:rf,table:Xl,paragraph:te(Cs).replace("hr",An).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Xl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_r).getRegex()},ff={...Rs,html:te(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ss).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:Rn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:te(Cs).replace("hr",An).replace("heading",` *#{1,6} *[^
|
|
28
|
-
]`).replace("lheading",
|
|
29
|
-
`).map(i=>{let
|
|
30
|
-
`)}var
|
|
31
|
-
`)}}}fences(
|
|
32
|
-
`)}}blockquote(
|
|
27
|
+
**/let gs;const $l=typeof window<"u"&&window.trustedTypes;if($l)try{gs=$l.createPolicy("vue",{createHTML:e=>e})}catch{}const Sl=gs?e=>gs.createHTML(e):e=>e,uu="http://www.w3.org/2000/svg",fu="http://www.w3.org/1998/Math/MathML",ot=typeof document<"u"?document:null,Rl=ot&&ot.createElement("template"),hu={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(uu,e):t==="mathml"?ot.createElementNS(fu,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{Rl.innerHTML=Sl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=Rl.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]}},pu=Symbol("_vtc");function du(e,t,n){const r=e[pu];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const yr=Symbol("_vod"),Al=Symbol("_vsh"),El={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[Al]=!t}const gu=Symbol(""),mu=/(?:^|;)\s*display\s*:/;function vu(e,t,n){const r=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(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[gu];l&&(n+=";"+l),r.cssText=n,i=mu.test(n)}}else t&&e.removeAttribute("style");yr in e&&(e[yr]=i?r.display:"",e[Al]&&(r.display="none"))}const Tl=/\s*!important$/;function wr(e,t,n){if(W(n))n.forEach(r=>wr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=bu(e,t);Tl.test(n)?e.setProperty(Rt(r),n.replace(Tl,""),"important"):e[r]=n}}const Ll=["Webkit","Moz","ms"],ms={};function bu(e,t){const n=ms[t];if(n)return n;let r=je(t);if(r!=="filter"&&r in e)return ms[t]=r;r=Kn(r);for(let s=0;s<Ll.length;s++){const i=Ll[s]+r;if(i in e)return ms[t]=i}return t}const Il="http://www.w3.org/1999/xlink";function Ml(e,t,n,r,s,i=Sa(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Il,t.slice(6,t.length)):e.setAttributeNS(Il,t,n):n==null||i&&!wi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":We(n)?String(n):n)}function Pl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Sl(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 yu(e,t,n,r){e.removeEventListener(t,n,r)}const Ol=Symbol("_vei");function wu(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]=ku(t);if(r){const c=i[t]=Cu(r,s);at(e,o,c,a)}else l&&(yu(e,o,l,a),i[t]=void 0)}}const jl=/(?:Once|Passive|Capture)$/;function ku(e){let t;if(jl.test(e)){t={};let r;for(;r=e.match(jl);)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 xu=Promise.resolve(),_u=()=>vs||(xu.then(()=>vs=0),vs=Date.now());function Cu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;st($u(r,n.value),t,5,[r])};return n.value=e,n.attached=_u(),n}function $u(e,t){if(W(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 zl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Su=(e,t,n,r,s,i)=>{const l=s==="svg";t==="class"?du(e,r,l):t==="style"?vu(e,n,r):Vn(t)?Hr(t)||wu(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ru(e,t,r,l))?(Pl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ml(e,t,r,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?Pl(e,je(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ml(e,t,r,l))};function Ru(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&zl(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 zl(t)&&we(n)?!1:t in e}const kt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Gn(t,n):t};function Au(e){e.target.composing=!0}function Fl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fe=Symbol("_assign");function Dl(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](Dl(e.value,n,i))}),(n||i)&&at(e,"change",()=>{e.value=Dl(e.value,n,i)}),t||(at(e,"compositionstart",Au),at(e,"compositionend",Fl),at(e,"change",Fl))},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))}},Eu={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(W(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(Gt(r)){const o=new Set(r);i?o.add(s):o.delete(s),l(o)}else l(Nl(e,i))})},mounted:Ul,beforeUpdate(e,t,n){e[Fe]=kt(n),Ul(e,t,n)}};function Ul(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(W(t))s=Br(t,r.props.value)>-1;else if(Gt(t))s=t.has(r.props.value);else{if(t===n)return;s=pt(t,Nl(e,!0))}e.checked!==s&&(e.checked=s)}const Tu={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))}},Lu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Gt(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}){Hl(e,t)},beforeUpdate(e,t,n){e[Fe]=kt(n)},updated(e,{value:t}){e._assigning||Hl(e,t)}};function Hl(e,t){const n=e.multiple,r=W(t);if(!(n&&!r&&!Gt(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 Nl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Iu={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 Mu(e,t){switch(e){case"SELECT":return Lu;case"TEXTAREA":return bs;default:switch(t){case"checkbox":return Eu;case"radio":return Tu;default:return bs}}}function kr(e,t,n,r,s){const l=Mu(e.tagName,n.props&&n.props.type)[s];l&&l(e,t,n,r)}const Pu=Te({patchProp:Su},hu);let Bl;function Ou(){return Bl||(Bl=Wc(Pu))}const Vl=((...e)=>{const t=Ou().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=zu(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,ju(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t});function ju(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function zu(e){return we(e)?document.querySelector(e):e}function xr(e,t){return _i()?(Ea(e,t),!0):!1}const _r=typeof window<"u"&&typeof document<"u",Fu=Object.prototype.toString,Du=e=>Fu.call(e)==="[object Object]",Cr=()=>{};function Uu(...e){if(e.length!==1)return sc(...e);const t=e[0];return typeof t=="function"?Et(tc(()=>({get:t,set:Cr}))):q(t)}function Wl(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 ql=e=>e();function Hu(e,t={}){let n,r,s=Cr;const i=a=>{clearTimeout(a),s(),s=Cr};let l;return a=>{const c=Ie(e),u=Ie(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,d)=>{s=t.rejectOnCancel?d: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 Nu(e=ql,t={}){const{initialState:n="active"}=t,r=Uu(n==="active");function s(){r.value=!1}function i(){r.value=!0}return{isActive:Et(r),pause:s,resume:i,eventFilter:(...o)=>{r.value&&e(...o)}}}function ys(e){return Array.isArray(e)?e:[e]}function Kl(e){return hs()}function Bu(e,t=200,n={}){return Wl(Hu(t,n),e)}function Vu(e,t,n={}){const{eventFilter:r=ql,...s}=n;return bt(e,Wl(r,t),s)}function Wu(e,t,n={}){const{eventFilter:r,initialState:s="active",...i}=n,{eventFilter:l,pause:o,resume:a,isActive:c}=Nu(r,{initialState:s});return{stop:Vu(e,t,{...i,eventFilter:l}),pause:o,resume:a,isActive:c}}function ws(e,t=!0,n){Kl()?tn(e,n):t?e():en(e)}function qu(e,t){Kl()&&rs(e,t)}function Ku(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const l=Lt(!1);function o(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,o()}function c(){const u=Ie(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 jt(e,t,n){return bt(e,t,{...n,immediate:!0})}const ln=_r?window:void 0,Gl=_r?window.document:void 0;function Gu(e){var t;const n=Ie(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function zt(...e){const t=(r,s,i,l)=>(r.addEventListener(s,i,l),()=>r.removeEventListener(s,i,l)),n=he(()=>{const r=ys(Ie(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return jt(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(i=>Gu(i)))!==null&&r!==void 0?r:[ln].filter(i=>i!=null),ys(Ie(n.value?e[1]:e[0])),ys(B(n.value?e[2]:e[1])),Ie(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=Du(l)?{...l}:l,u=r.flatMap(f=>s.flatMap(d=>i.map(p=>t(f,d,p,c))));a(()=>{u.forEach(f=>f())})},{flush:"post"})}function Zl(e,t={}){const{immediate:n=!0,fpsLimit:r=null,window:s=ln,once:i=!1}=t,l=Lt(!1),o=he(()=>{const p=Ie(r);return p?1e3/p:null});let a=0,c=null;function u(p){if(!l.value||!s)return;a||(a=p);const w=p-a;if(o.value&&w<o.value){c=s.requestAnimationFrame(u);return}if(a=p,e({delta:w,timestamp:p}),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 d(){l.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&f(),xr(d),{isActive:Et(l),pause:d,resume:f}}const $r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Sr="__vueuse_ssr_handlers__",Zu=Yu();function Yu(){return Sr in $r||($r[Sr]=$r[Sr]||{}),$r[Sr]}function Qu(e,t){return Zu[e]||t}function Ju(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Xu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Yl="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:d,onError:p=j=>{console.error(j)},initOnMounted:w}=r,y=(u?Lt:q)(typeof t=="function"?t():t),A=he(()=>Ie(e));if(!n)try{n=Qu("getDefaultStorage",()=>ln==null?void 0:ln.localStorage)()}catch(j){p(j)}if(!n)return y;const _=Ie(t),I=Ju(_),z=(s=r.serializer)!==null&&s!==void 0?s:Xu[I],{pause:R,resume:F}=Wu(y,j=>ve(j),{flush:i,deep:l,eventFilter:d});bt(A,()=>H(),{flush:i});let de=!1;const ge=j=>{w&&!de||H(j)},D=j=>{w&&!de||ne(j)};f&&o&&(n instanceof Storage?zt(f,"storage",ge,{passive:!0}):zt(f,Yl,D)),w?ws(()=>{de=!0,H()}):H();function me(j,Q){if(f){const G={key:A.value,oldValue:j,newValue:Q,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",G):new CustomEvent(Yl,{detail:G}))}}function ve(j){try{const Q=n.getItem(A.value);if(j==null)me(Q,null),n.removeItem(A.value);else{const G=z.write(j);Q!==G&&(n.setItem(A.value,G),me(Q,G))}}catch(Q){p(Q)}}function U(j){const Q=j?j.newValue:n.getItem(A.value);if(Q==null)return a&&_!=null&&n.setItem(A.value,z.write(_)),_;if(!j&&c){const G=z.read(Q);return typeof c=="function"?c(G,_):I==="object"&&!Array.isArray(G)?{..._,...G}:G}else return typeof Q!="string"?Q:z.read(Q)}function H(j){if(!(j&&j.storageArea!==n)){if(j&&j.key==null){y.value=_;return}if(!(j&&j.key!==A.value)){R();try{const Q=z.write(y.value);(j===void 0||(j==null?void 0:j.newValue)!==Q)&&(y.value=U(j))}catch(Q){p(Q)}finally{j?en(F):F()}}}}function ne(j){H(j.detail)}return y}function ef(e){if("interval"in e||"immediate"in e){const{interval:t="requestAnimationFrame",immediate:n=!0}=e;return t==="requestAnimationFrame"?r=>Zl(r,{immediate:n}):r=>Ku(r,t,e)}return Zl}function tf(e={}){const{controls:t=!1,scheduler:n=ef(e)}=e,r=q(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function nf(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=Gl,attrs:d={},nonce:p=void 0}=n,w=Lt(null);let y=null;const A=z=>new Promise((R,F)=>{const de=ve=>(w.value=ve,R(ve),ve);if(!f){R(!1);return}let ge=!1,D=f.querySelector(`script[src="${Ie(e)}"]`);D?D.hasAttribute("data-loaded")&&de(D):(D=f.createElement("script"),D.type=i,D.async=l,D.src=Ie(e),u&&(D.defer=u),o&&(D.crossOrigin=o),c&&(D.noModule=c),a&&(D.referrerPolicy=a),p&&(D.nonce=p),Object.entries(d).forEach(([ve,U])=>D==null?void 0:D.setAttribute(ve,U)),ge=!0);const me={passive:!0};zt(D,"error",ve=>F(ve),me),zt(D,"abort",ve=>F(ve),me),zt(D,"load",()=>{D.setAttribute("data-loaded","true"),t(D),de(D)},me),ge&&(D=f.head.appendChild(D)),z||de(D)}),_=(z=!0)=>(y||(y=A(z)),y),I=()=>{if(!f)return;y=null,w.value&&(w.value=null);const z=f.querySelector(`script[src="${Ie(e)}"]`);z&&f.head.removeChild(z)};return r&&!s&&ws(_),s||qu(I),{scriptTag:w,load:_,unload:I}}let rf=0;function sf(e,t={}){const n=Lt(!1),{document:r=Gl,immediate:s=!0,manual:i=!1,id:l=`vueuse_styletag_${++rf}`}=t,o=Lt(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,d=>{f.textContent=d},{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:Et(n)}}const lf="WALINE_EMOJI",Ql=on(lf,{}),of=e=>/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),af=e=>{const t=of(e);if(t){const n=Ql.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&&(Ql.value[e]=r),r})},Jl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,cf=e=>Promise.all(e?e.map(t=>Wt(t)?af(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:Jl(l,i,o,a),items:c.map(u=>{const f=`${o}${u}`;return n.map[f]=Jl(u,i,o,a),f})})}),n}),Xl=e=>{e.name!=="AbortError"&&console.error(e.message)},Rr=e=>e instanceof HTMLElement?e:Wt(e)?document.querySelector(e):null,eo=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 Ft=ks();function to(e){Ft=e}var Dt={exec:()=>null};function Z(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(Ce.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,t)};return r}var uf=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ce={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)}}>`)},ff=/^(?:[ \t]*(?:\n|$))+/,hf=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,pf=/^ {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+|$)/,df=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xs=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,no=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ro=Z(no).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(),gf=Z(no).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]+)*)/,mf=/^[^\n]+/,Cs=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,vf=Z(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Cs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),bf=Z(/^(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]*?(?:-->|$))/,yf=Z("^ {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(),so=Z(_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(),wf=Z(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",so).getRegex(),Ss={blockquote:wf,code:hf,def:vf,fences:pf,heading:df,hr:Tn,html:yf,lheading:ro,list:bf,newline:ff,paragraph:so,table:Dt,text:mf},io=Z("^ *([^\\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(),kf={...Ss,lheading:gf,table:io,paragraph:Z(_s).replace("hr",Tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",io).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()},xf={...Ss,html:Z(`^ *(?: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:Dt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Z(_s).replace("hr",Tn).replace("heading",` *#{1,6} *[^
|
|
28
|
+
]`).replace("lheading",ro).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},_f=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Cf=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,lo=/^( {2,}|\\)\n(?!\s*$)/,$f=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Er=/[\p{P}\p{S}]/u,Rs=/[\s\p{P}\p{S}]/u,oo=/[^\s\p{P}\p{S}]/u,Sf=Z(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Rs).getRegex(),ao=/(?!~)[\p{P}\p{S}]/u,Rf=/(?!~)[\s\p{P}\p{S}]/u,Af=/(?:[^\s\p{P}\p{S}]|~)/u,co=/(?![*_])[\p{P}\p{S}]/u,Ef=/(?![*_])[\s\p{P}\p{S}]/u,Tf=/(?:[^\s\p{P}\p{S}]|[*_])/u,Lf=Z(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uf?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),uo=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,If=Z(uo,"u").replace(/punct/g,Er).getRegex(),Mf=Z(uo,"u").replace(/punct/g,ao).getRegex(),fo="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Pf=Z(fo,"gu").replace(/notPunctSpace/g,oo).replace(/punctSpace/g,Rs).replace(/punct/g,Er).getRegex(),Of=Z(fo,"gu").replace(/notPunctSpace/g,Af).replace(/punctSpace/g,Rf).replace(/punct/g,ao).getRegex(),jf=Z("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,oo).replace(/punctSpace/g,Rs).replace(/punct/g,Er).getRegex(),zf=Z(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,co).getRegex(),Ff="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Df=Z(Ff,"gu").replace(/notPunctSpace/g,Tf).replace(/punctSpace/g,Ef).replace(/punct/g,co).getRegex(),Uf=Z(/\\(punct)/,"gu").replace(/punct/g,Er).getRegex(),Hf=Z(/^<(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(),Nf=Z($s).replace("(?:-->|$)","-->").getRegex(),Bf=Z("^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",Nf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Tr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Vf=Z(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Tr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ho=Z(/^!?\[(label)\]\[(ref)\]/).replace("label",Tr).replace("ref",Cs).getRegex(),po=Z(/^!?\[(ref)\](?:\[\])?/).replace("ref",Cs).getRegex(),Wf=Z("reflink|nolink(?!\\()","g").replace("reflink",ho).replace("nolink",po).getRegex(),go=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,As={_backpedal:Dt,anyPunctuation:Uf,autolink:Hf,blockSkip:Lf,br:lo,code:Cf,del:Dt,delLDelim:Dt,delRDelim:Dt,emStrongLDelim:If,emStrongRDelimAst:Pf,emStrongRDelimUnd:jf,escape:_f,link:Vf,nolink:po,punctuation:Sf,reflink:ho,reflinkSearch:Wf,tag:Bf,text:$f,url:Dt},qf={...As,link:Z(/^!?\[(label)\]\((.*?)\)/).replace("label",Tr).getRegex(),reflink:Z(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Tr).getRegex()},Es={...As,emStrongRDelimAst:Of,emStrongLDelim:Mf,delLDelim:zf,delRDelim:Df,url:Z(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",go).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:Z(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",go).getRegex()},Kf={...Es,br:Z(lo).replace("{2,}","*").getRegex(),text:Z(Es.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Lr={normal:Ss,gfm:kf,pedantic:xf},Ln={normal:As,gfm:Es,breaks:Kf,pedantic:qf},Gf={"&":"&","<":"<",">":">",'"':""","'":"'"},mo=e=>Gf[e];function ct(e,t){if(t){if(Ce.escapeTest.test(e))return e.replace(Ce.escapeReplace,mo)}else if(Ce.escapeTestNoEncode.test(e))return e.replace(Ce.escapeReplaceNoEncode,mo);return e}function vo(e){try{e=encodeURI(e).replace(Ce.percentDecode,"%")}catch{return null}return e}function bo(e,t){var i;let n=e.replace(Ce.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Ce.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(Ce.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 Zf(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 Yf(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 yo(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
|
+
`).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
|
+
`)}var Ir=class{options;rules;lexer;constructor(t){this.options=t||Ft}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:In(r,`
|
|
31
|
+
`)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let r=n[0],s=Qf(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:s}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let s=In(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:In(n[0],`
|
|
32
|
+
`)}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let r=In(n[0],`
|
|
33
33
|
`).split(`
|
|
34
|
-
`),
|
|
35
|
-
`),u
|
|
36
|
-
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");
|
|
37
|
-
${
|
|
38
|
-
${
|
|
39
|
-
`+
|
|
40
|
-
`),
|
|
41
|
-
`+
|
|
42
|
-
`),
|
|
43
|
-
`);continue}}return{type:"blockquote",raw:
|
|
44
|
-
`,1)[0]
|
|
45
|
-
`,1)[0],
|
|
46
|
-
`,
|
|
47
|
-
`,1)[0],
|
|
48
|
-
`+
|
|
49
|
-
`+
|
|
50
|
-
`,
|
|
51
|
-
`):[],
|
|
52
|
-
`?
|
|
53
|
-
`),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,
|
|
54
|
-
`:n.push(
|
|
34
|
+
`),s="",i="",l=[];for(;r.length>0;){let o=!1,a=[],c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),o=!0;else if(!o)a.push(r[c]);else break;r=r.slice(c);let u=a.join(`
|
|
35
|
+
`),f=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
36
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
37
|
+
${u}`:u,i=i?`${i}
|
|
38
|
+
${f}`:f;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,l,!0),this.lexer.state.top=d,r.length===0)break;let p=l.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let w=p,y=w.raw+`
|
|
39
|
+
`+r.join(`
|
|
40
|
+
`),A=this.blockquote(y);l[l.length-1]=A,s=s.substring(0,s.length-w.raw.length)+A.raw,i=i.substring(0,i.length-w.text.length)+A.text;break}else if((p==null?void 0:p.type)==="list"){let w=p,y=w.raw+`
|
|
41
|
+
`+r.join(`
|
|
42
|
+
`),A=this.list(y);l[l.length-1]=A,s=s.substring(0,s.length-p.raw.length)+A.raw,i=i.substring(0,i.length-w.raw.length)+A.raw,r=y.substring(l.at(-1).raw.length).split(`
|
|
43
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:l,text:i}}}list(t){var r,s;let n=this.rules.block.list.exec(t);if(n){let i=n[1].trim(),l=i.length>1,o={type:"list",raw:"",ordered:l,start:l?+i.slice(0,-1):"",loose:!1,items:[]};i=l?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=l?i:"[*+-]");let a=this.rules.other.listItemRegex(i),c=!1;for(;t;){let f=!1,d="",p="";if(!(n=a.exec(t))||this.rules.block.hr.test(t))break;d=n[0],t=t.substring(d.length);let w=Yf(n[2].split(`
|
|
44
|
+
`,1)[0],n[1].length),y=t.split(`
|
|
45
|
+
`,1)[0],A=!w.trim(),_=0;if(this.options.pedantic?(_=2,p=w.trimStart()):A?_=n[1].length+1:(_=w.search(this.rules.other.nonSpaceChar),_=_>4?1:_,p=w.slice(_),_+=n[1].length),A&&this.rules.other.blankLine.test(y)&&(d+=y+`
|
|
46
|
+
`,t=t.substring(y.length+1),f=!0),!f){let I=this.rules.other.nextBulletRegex(_),z=this.rules.other.hrRegex(_),R=this.rules.other.fencesBeginRegex(_),F=this.rules.other.headingBeginRegex(_),de=this.rules.other.htmlBeginRegex(_),ge=this.rules.other.blockquoteBeginRegex(_);for(;t;){let D=t.split(`
|
|
47
|
+
`,1)[0],me;if(y=D,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),me=y):me=y.replace(this.rules.other.tabCharGlobal," "),R.test(y)||F.test(y)||de.test(y)||ge.test(y)||I.test(y)||z.test(y))break;if(me.search(this.rules.other.nonSpaceChar)>=_||!y.trim())p+=`
|
|
48
|
+
`+me.slice(_);else{if(A||w.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(w)||F.test(w)||z.test(w))break;p+=`
|
|
49
|
+
`+y}A=!y.trim(),d+=D+`
|
|
50
|
+
`,t=t.substring(D.length+1),w=me.slice(_)}}o.loose||(c?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(c=!0)),o.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),o.raw+=d}let u=o.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let f of o.items){if(this.lexer.state.top=!1,f.tokens=this.lexer.blockTokens(f.text,[]),f.task){if(f.text=f.text.replace(this.rules.other.listReplaceTask,""),((r=f.tokens[0])==null?void 0:r.type)==="text"||((s=f.tokens[0])==null?void 0:s.type)==="paragraph"){f.tokens[0].raw=f.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),f.tokens[0].text=f.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 d=this.rules.other.listTaskCheckbox.exec(f.raw);if(d){let p={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};f.checked=p.checked,o.loose?f.tokens[0]&&["paragraph","text"].includes(f.tokens[0].type)&&"tokens"in f.tokens[0]&&f.tokens[0].tokens?(f.tokens[0].raw=p.raw+f.tokens[0].raw,f.tokens[0].text=p.raw+f.tokens[0].text,f.tokens[0].tokens.unshift(p)):f.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):f.tokens.unshift(p)}}if(!o.loose){let d=f.tokens.filter(w=>w.type==="space"),p=d.length>0&&d.some(w=>this.rules.other.anyLine.test(w.raw));o.loose=p}}if(o.loose)for(let f of o.items){f.loose=!0;for(let d of f.tokens)d.type==="text"&&(d.type="paragraph")}return o}}html(t){let n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){let n=this.rules.block.def.exec(t);if(n){let r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:s,title:i}}}table(t){var o;let n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=bo(n[1]),s=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=(o=n[3])!=null&&o.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
51
|
+
`):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?l.align.push("right"):this.rules.other.tableAlignCenter.test(a)?l.align.push("center"):this.rules.other.tableAlignLeft.test(a)?l.align.push("left"):l.align.push(null);for(let a=0;a<r.length;a++)l.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:l.align[a]});for(let a of i)l.rows.push(bo(a,l.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(t){let n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){let n=this.rules.block.paragraph.exec(t);if(n){let r=n[1].charAt(n[1].length-1)===`
|
|
52
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){let n=this.rules.inline.link.exec(t);if(n){let r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let l=In(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{let l=Zf(n[2],"()");if(l===-2)return;if(l>-1){let o=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,o).trim(),n[3]=""}}let s=n[2],i="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],i=l[3])}else i=n[3]?n[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),yo(n,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=n[s.toLowerCase()];if(!i){let l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return yo(r,i,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!r||this.rules.inline.punctuation.exec(r))){let i=[...s[0]].length-1,l,o,a=i,c=0,u=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,n=n.slice(-1*t.length+i);(s=u.exec(n))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(o=[...l].length,s[3]||s[4]){a+=o;continue}else if((s[5]||s[6])&&i%3&&!((i+o)%3)){c+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+c);let f=[...s[0]][0].length,d=t.slice(0,i+s.index+f+o);if(Math.min(i,o)%2){let w=d.slice(1,-1);return{type:"em",raw:d,text:w,tokens:this.lexer.inlineTokens(w)}}let p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(t){let n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),i=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&i&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){let n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t,n,r=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!r||this.rules.inline.punctuation.exec(r))){let i=[...s[0]].length-1,l,o,a=i,c=this.rules.inline.delRDelim;for(c.lastIndex=0,n=n.slice(-1*t.length+i);(s=c.exec(n))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l||(o=[...l].length,o!==i))continue;if(s[3]||s[4]){a+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a);let u=[...s[0]][0].length,f=t.slice(0,i+s.index+u+o),d=f.slice(i,-i);return{type:"del",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(t){let n=this.rules.inline.autolink.exec(t);if(n){let r,s;return n[2]==="@"?(r=n[1],s="mailto:"+r):(r=n[1],s=r),{type:"link",raw:n[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let s,i;if(n[2]==="@")s=n[0],i="mailto:"+s;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);s=n[0],n[1]==="www."?i="http://"+n[0]:i=n[0]}return{type:"link",raw:n[0],text:s,href:i,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let n=this.rules.inline.text.exec(t);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}},Ye=class zs{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ft,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:Ce,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 zs(n).lex(t)}static lexInline(t,n){return new zs(n).inlineTokens(t)}lex(t){t=t.replace(Ce.carriageReturn,`
|
|
53
|
+
`),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(Ce.tabCharGlobal," ").replace(Ce.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
|
+
`: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
55
|
`)?"":`
|
|
56
|
-
`)+
|
|
57
|
-
`+
|
|
56
|
+
`)+o.raw,c.text+=`
|
|
57
|
+
`+o.text,this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(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(`
|
|
58
58
|
`)?"":`
|
|
59
|
-
`)+
|
|
60
|
-
`+
|
|
59
|
+
`)+o.raw,c.text+=`
|
|
60
|
+
`+o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},n.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}let a=t;if((l=this.options.extensions)!=null&&l.startBlock){let c=1/0,u=t.slice(1),f;this.options.extensions.startBlock.forEach(d=>{f=d.call({lexer:this},u),typeof f=="number"&&f>=0&&(c=Math.min(c,f))}),c<1/0&&c>=0&&(a=t.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(a))){let c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
61
61
|
`)?"":`
|
|
62
|
-
`)+
|
|
63
|
-
`+
|
|
62
|
+
`)+o.raw,c.text+=`
|
|
63
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o),r=a.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
64
64
|
`)?"":`
|
|
65
|
-
`)+
|
|
66
|
-
`+
|
|
67
|
-
`;return s?'<pre><code class="language-'+
|
|
68
|
-
`:"<pre><code>"+(r?i:
|
|
65
|
+
`)+o.raw,c.text+=`
|
|
66
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var a,c,u,f,d;let r=t,s=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)p.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)i=s[2]?s[2].length:0,r=r.slice(0,s.index+i)+"["+"a".repeat(s[0].length-i-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((c=(a=this.options.hooks)==null?void 0:a.emStrongMask)==null?void 0:c.call({lexer:this},r))??r;let l=!1,o="";for(;t;){l||(o=""),l=!1;let p;if((f=(u=this.options.extensions)==null?void 0:u.inline)!=null&&f.some(y=>(p=y.call({lexer:this},t,n))?(t=t.substring(p.raw.length),n.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let y=n.at(-1);p.type==="text"&&(y==null?void 0:y.type)==="text"?(y.raw+=p.raw,y.text+=p.text):n.push(p);continue}if(p=this.tokenizer.emStrong(t,r,o)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.del(t,r,o)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),n.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),n.push(p);continue}let w=t;if((d=this.options.extensions)!=null&&d.startInline){let y=1/0,A=t.slice(1),_;this.options.extensions.startInline.forEach(I=>{_=I.call({lexer:this},A),typeof _=="number"&&_>=0&&(y=Math.min(y,_))}),y<1/0&&y>=0&&(w=t.substring(0,y+1))}if(p=this.tokenizer.inlineText(w)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(o=p.raw.slice(-1)),l=!0;let y=n.at(-1);(y==null?void 0:y.type)==="text"?(y.raw+=p.raw,y.text+=p.text):n.push(p);continue}if(t){let y="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw new Error(y)}}return n}},Mr=class{options;parser;constructor(t){this.options=t||Ft}space(t){return""}code({text:t,lang:n,escaped:r}){var l;let s=(l=(n||"").match(Ce.notSpaceStart))==null?void 0:l[0],i=t.replace(Ce.endingNewline,"")+`
|
|
67
|
+
`;return s?'<pre><code class="language-'+ct(s)+'">'+(r?i:ct(i,!0))+`</code></pre>
|
|
68
|
+
`:"<pre><code>"+(r?i:ct(i,!0))+`</code></pre>
|
|
69
69
|
`}blockquote({tokens:t}){return`<blockquote>
|
|
70
70
|
${this.parser.parse(t)}</blockquote>
|
|
71
71
|
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
72
72
|
`}hr(t){return`<hr>
|
|
73
|
-
`}list(t){let n=t.ordered,r=t.start,s="";for(let
|
|
73
|
+
`}list(t){let n=t.ordered,r=t.start,s="";for(let o=0;o<t.items.length;o++){let a=t.items[o];s+=this.listitem(a)}let i=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+i+l+`>
|
|
74
74
|
`+s+"</"+i+`>
|
|
75
|
-
`}listitem(t){
|
|
76
|
-
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
77
|
-
`}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let s="";for(let i=0;i<t.rows.length;i++){let
|
|
75
|
+
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
76
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
77
|
+
`}table(t){let n="",r="";for(let i=0;i<t.header.length;i++)r+=this.tablecell(t.header[i]);n+=this.tablerow({text:r});let s="";for(let i=0;i<t.rows.length;i++){let l=t.rows[i];r="";for(let o=0;o<l.length;o++)r+=this.tablecell(l[o]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
78
78
|
<thead>
|
|
79
79
|
`+n+`</thead>
|
|
80
80
|
`+s+`</table>
|
|
81
81
|
`}tablerow({text:t}){return`<tr>
|
|
82
82
|
${t}</tr>
|
|
83
83
|
`}tablecell(t){let n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
|
|
84
|
-
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${
|
|
85
|
-
|
|
86
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Xe(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},jt=new fo;function me(e,t){return jt.parse(e,t)}me.options=me.setOptions=function(e){return jt.setOptions(e),me.defaults=jt.defaults,Gl(me.defaults),me},me.getDefaults=xs,me.defaults=Pt,me.use=function(...e){return jt.use(...e),me.defaults=jt.defaults,Gl(me.defaults),me},me.walkTokens=function(e,t){return jt.walkTokens(e,t)},me.parseInline=jt.parseInline,me.Parser=et,me.parser=et.parse,me.Renderer=Ar,me.TextRenderer=Is,me.Lexer=Qe,me.lexer=Qe.lex,me.Tokenizer=Rr,me.Hooks=In,me.parse=me;function jf(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=ho(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(po(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.");po(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const s=ho(n),i=s?e.langPrefix+bo(s):e.emptyLangClass,o=i?` class="${i}"`:"";return t=t.replace(/\n$/,""),`<pre><code${o}>${r?t:bo(t,!0)}
|
|
87
|
-
</code></pre>`}}}}function ho(e){return(e||"").match(/\S*/)[0]}function po(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const go=/[&<>"']/,Of=new RegExp(go.source,"g"),mo=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,zf=new RegExp(mo.source,"g"),Ff={"&":"&","<":"<",">":">",'"':""","'":"'"},vo=e=>Ff[e];function bo(e,t){if(t){if(go.test(e))return e.replace(Of,vo)}else if(mo.test(e))return e.replace(zf,vo);return e}const Hf=/\$.*?\$/,Df=/^\$(.*?)\$/,Uf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Nf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Uf.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(Hf);return n!==-1?n:t.length},tokenizer(t){const n=Df.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],yo=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),Vf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new fo;if(s.setOptions({breaks:!0}),n&&s.use(jf({highlight:n})),r){const i=Nf(r);s.use({extensions:i})}return s.parse(yo(e,t))},Ls=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},Bf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Wf=e=>e.match(/[\u4E00-\u9FD5]/gu),qf=e=>{var t,n;return(((t=Bf(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=Wf(e))==null?void 0:n.length)??0)},Kf=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&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},wo=({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&&Us({serverURL:Un(e),paths:Array.from(i).map(o=>ai(Ls(o)??t)),lang:r,signal:s.signal}).then(o=>{i.forEach((l,a)=>{l.innerText=o[a].toString()})}).catch(ql),s.abort.bind(s)},ko=({size:e})=>ee("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ee("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"}),ee("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"})]),Gf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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"})),Zf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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"})),Jf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ee("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"}),ee("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"})]),Yf=({active:e=!1})=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ee("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"})]),Xf=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ee("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"}),ee("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"})]),Qf=()=>ee("svg",{width:"16",height:"16",ariaHidden:"true"},ee("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"})),eh=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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"})),th=()=>ee("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ee("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"})),nh=()=>ee("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ee("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"})),rh=()=>ee("svg",{class:"administrator-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},[ee("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"})]),Ln=({size:e=100})=>ee("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ee("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ee("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),sh=()=>ee("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ee("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"}),ee("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"})]),ih=()=>Xt("WALINE_USER_META",{nick:"",mail:"",link:""}),lh=()=>Xt("WALINE_COMMENT_BOX_EDITOR",""),oh="WALINE_LIKE",ah=Xt(oh,[]),xo=()=>ah,ch="WALINE_REACTION",uh=Xt(ch,{}),fh=()=>uh;var Ms={},ct={},ut={},_o;function Co(){if(_o)return ut;_o=1;var e=ut&&ut.__awaiter||function(r,s,i,o){function l(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function u(b){try{p(o.next(b))}catch(m){c(m)}}function f(b){try{p(o.throw(b))}catch(m){c(m)}}function p(b){b.done?a(b.value):l(b.value).then(u,f)}p((o=o.apply(r,s||[])).next())})},t=ut&&ut.__generator||function(r,s){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,l,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(b){return f([p,b])}}function f(p){if(o)throw new TypeError("Generator is already executing.");for(;c&&(c=0,p[0]&&(i=0)),i;)try{if(o=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=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++,l=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(b){p=[6,b],l=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};Object.defineProperty(ut,"__esModule",{value:!0}),ut.ReCaptchaInstance=void 0;var n=(function(){function r(s,i,o){this.siteKey=s,this.recaptchaID=i,this.recaptcha=o,this.styleContainer=null}return r.prototype.execute=function(s){return e(this,void 0,void 0,function(){var i;return t(this,function(o){switch(o.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:s})]:[3,2];case 1:return i=o.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:s})];case 3:i=o.sent(),o.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 ut.ReCaptchaInstance=n,ut}var $o;function hh(){if($o)return ct;$o=1;var e=ct&&ct.__assign||function(){return e=Object.assign||function(s){for(var i,o=1,l=arguments.length;o<l;o++){i=arguments[o];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=i[a])}return s},e.apply(this,arguments)};Object.defineProperty(ct,"__esModule",{value:!0}),ct.getInstance=ct.load=void 0;var t=Co(),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,o){if(o===void 0&&(o={}),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 l=new s;return new Promise(function(a,c){l.loadScript(i,o.useRecaptchaNet||!1,o.useEnterprise||!1,o.renderParameters?o.renderParameters:{},o.customUrl).then(function(){s.setLoadingState(n.LOADED);var u=l.doExplicitRender(grecaptcha,i,o.explicitRenderParameters?o.explicitRenderParameters:{},o.useEnterprise||!1),f=new t.ReCaptchaInstance(i,u,grecaptcha);s.successfulLoadingConsumers.forEach(function(p){return p(f)}),s.successfulLoadingConsumers=[],o.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,o,l,a,c){var u=this;o===void 0&&(o=!1),l===void 0&&(l=!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";o?l?p="https://recaptcha.net/recaptcha/enterprise.js":p="https://recaptcha.net/recaptcha/api.js":l&&(p="https://www.google.com/recaptcha/enterprise.js"),c&&(p=c),a.render&&(a.render=void 0);var b=this.buildQueryString(a);return f.src=p+"?render=explicit"+b,new Promise(function(m,k){f.addEventListener("load",u.waitForScriptToLoad(function(){m(f)},l),!1),f.onerror=function(L){s.setLoadingState(n.NOT_LOADED),k(L)},document.head.appendChild(f)})},s.prototype.buildQueryString=function(i){var o=Object.keys(i);return o.length<1?"":"&"+Object.keys(i).filter(function(l){return!!i[l]}).map(function(l){return l+"="+i[l]}).join("&")},s.prototype.waitForScriptToLoad=function(i,o){var l=this;return function(){window.grecaptcha===void 0?setTimeout(function(){l.waitForScriptToLoad(i,o)},s.SCRIPT_LOAD_DELAY):o?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},s.prototype.doExplicitRender=function(i,o,l,a){var c=e({sitekey:o},l);return l.container?a?i.enterprise.render(l.container,c):i.render(l.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 ct.load=r.load,ct.getInstance=r.getInstance,ct}var So;function ph(){return So||(So=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=hh();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Co();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(Ms)),Ms}var dh=ph();const Ro={},gh=e=>{const t=Ro[e]??(Ro[e]=dh.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},mh=e=>({execute:async t=>{const{load:n}=Wu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window.turnstile;return new Promise(s=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:s})})})}}),vh=Xt("WALINE_USER",{}),Er=()=>vh,bh={key:0,class:"wl-reaction"},yh=["textContent"],wh={class:"wl-reaction-list"},kh=["onClick"],xh={class:"wl-reaction-img"},_h=["src","alt"],Ch=["textContent"],$h=["textContent"];var Sh=mn({__name:"ArticleReaction",setup(e){const t=fh(),n=ar(Dn),r=ae(-1),s=ae([]),i=ve(()=>n.value.locale),o=ve(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),l=ve(()=>{var f;const{path:p}=n.value;return((f=o.value)==null?void 0:f.map((b,m)=>({icon:b,desc:i.value[`reaction${m}`],active:t.value[p]===m})))??null});let a;const c=async()=>{const{serverURL:f,lang:p,path:b}=n.value;if(!o.value)return;const m=new AbortController;a=m.abort.bind(m);const[k]=await Pr({serverURL:f,lang:p,paths:[b],type:o.value.map((L,A)=>`reaction${A}`),signal:m.signal});s.value=o.value.map((L,A)=>k[`reaction${A}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:p,lang:b,path:m}=n.value,k=t.value[m];r.value=f,k!==void 0&&(await Fn({serverURL:p,lang:b,path:m,type:`reaction${k}`,action:"desc"}),s.value[k]=Math.max(s.value[k]-1,0)),k!==f&&(await Fn({serverURL:p,lang:b,path:m,type:`reaction${f}`}),s.value[f]=(s.value[f]||0)+1),k===f?delete t.value[m]:t.value[m]=f,r.value=-1};return yn(()=>{Jt(()=>[n.value.serverURL,n.value.path],()=>c())}),rs(()=>{a==null||a()}),(f,p)=>l.value?(T(),M("div",bh,[j("div",{class:"wl-reaction-title",textContent:ie(i.value.reactionTitle)},null,8,yh),j("ul",wh,[(T(!0),M(de,null,De(l.value,({active:b,icon:m,desc:k},L)=>(T(),M("li",{key:L,class:ye(["wl-reaction-item",{active:b}]),onClick:A=>u(L)},[j("div",xh,[j("img",{src:m,alt:k},null,8,_h),r.value===L?(T(),Ze(W(Ln),{key:0,class:"wl-reaction-loading"})):(T(),M("div",{key:1,class:"wl-reaction-votes",textContent:ie(s.value[L]||0)},null,8,Ch))]),j("div",{class:"wl-reaction-text",textContent:ie(k)},null,8,$h)],10,kh))),128))])])):X("v-if",!0)}}),Mn=new Map;function Rh(e){var t=Mn.get(e);t&&t.destroy()}function Ah(e){var t=Mn.get(e);t&&t.update()}var Pn=null;typeof window>"u"?((Pn=function(e){return e}).destroy=function(e){return e},Pn.update=function(e){return e}):((Pn=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"&&!Mn.has(r)){var s,i=null,o=window.getComputedStyle(r),l=(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",l),window.removeEventListener("resize",u),Object.keys(f).forEach(function(p){return r.style[p]=f[p]}),Mn.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",l),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",Mn.set(r,{destroy:a,update:u}),u()}function c(f){var p,b,m=f.restoreTextAlign,k=m===void 0?null:m,L=f.testForHeightReduction,A=L===void 0||L,_=o.overflowY;if(r.scrollHeight!==0&&(o.resize==="vertical"?r.style.resize="none":o.resize==="both"&&(r.style.resize="horizontal"),A&&(p=(function(E){for(var P=[];E&&E.parentNode&&E.parentNode instanceof Element;)E.parentNode.scrollTop&&P.push([E.parentNode,E.parentNode.scrollTop]),E=E.parentNode;return function(){return P.forEach(function(V){var Z=V[0],q=V[1];Z.style.scrollBehavior="auto",Z.scrollTop=q,Z.style.scrollBehavior=null})}})(r),r.style.height=""),b=o.boxSizing==="content-box"?r.scrollHeight-(parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)):r.scrollHeight+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),o.maxHeight!=="none"&&b>parseFloat(o.maxHeight)?(o.overflowY==="hidden"&&(r.style.overflow="scroll"),b=parseFloat(o.maxHeight)):o.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=b+"px",k&&(r.style.textAlign=k),p&&p(),i!==b&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=b),_!==o.overflow&&!k)){var F=o.textAlign;o.overflow==="hidden"&&(r.style.textAlign=F==="start"?"end":"start"),c({restoreTextAlign:F,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}})(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Rh),e},Pn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Ah),e});var Ao=Pn;const Eh=["data-index"],Th=["src","title","onClick"];var Ih=mn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){const t=e;let n=null;const r=vt("wall"),s=ae({}),i=ae([]),o=()=>{const f=Math.floor((r.value.getBoundingClientRect().width+t.gap)/(t.columnWidth+t.gap));return f>0?f:1},l=f=>new Array(f).fill(null).map(()=>[]),a=async f=>{var p;if(f>=t.items.length)return;await qt();const b=Array.from(((p=r.value)==null?void 0:p.children)??[]).reduce((m,k)=>k.getBoundingClientRect().height<m.getBoundingClientRect().height?k:m);i.value[Number(b.dataset.index)].push(f),await a(f+1)},c=async(f=!1)=>{if(i.value.length===o()&&!f)return;i.value=l(o());const p=window.scrollY;await a(0),window.scrollTo({top:p})},u=f=>{s.value[f.target.src]=!0};return yn(()=>{c(!0),n=new ResizeObserver(()=>{c()}),n.observe(r.value),bt(()=>[t.items],()=>{s.value={},c(!0)}),bt(()=>[t.columnWidth,t.gap],()=>{c()})}),oc(()=>{n.unobserve(r.value)}),(f,p)=>(T(),M("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:on({gap:`${e.gap}px`})},[(T(!0),M(de,null,De(i.value,(b,m)=>(T(),M("div",{key:m,class:"wl-gallery-column","data-index":m,style:on({gap:`${e.gap}px`})},[(T(!0),M(de,null,De(b,k=>(T(),M(de,{key:k},[s.value[e.items[k].src]?X("v-if",!0):(T(),Ze(W(Ln),{key:0,size:36,style:{margin:"20px auto"}})),j("img",{class:"wl-gallery-item",src:e.items[k].src,title:e.items[k].title,loading:"lazy",onLoad:u,onClick:L=>f.$emit("insert",``)},null,40,Th)],64))),128))],12,Eh))),128))],4))}});const Lh={key:0,class:"wl-login-info"},Mh={class:"wl-avatar"},Ph=["title"],jh=["title"],Oh=["src"],zh=["title","textContent"],Fh={class:"wl-panel"},Hh=["for","textContent"],Dh=["id","onUpdate:modelValue","name","type"],Uh=["placeholder"],Nh={class:"wl-preview"},Vh=["innerHTML"],Bh={class:"wl-footer"},Wh={class:"wl-actions"},qh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Kh=["title"],Gh=["title"],Zh=["title","aria-label"],Jh=["title"],Yh={class:"wl-info"},Xh={class:"wl-text-number"},Qh={key:0},ep=["textContent"],tp=["textContent"],np=["disabled"],rp=["placeholder"],sp={key:1,class:"wl-loading"},ip={key:0,class:"wl-tab-wrapper"},lp=["title","onClick"],op=["src","alt"],ap={key:0,class:"wl-tabs"},cp=["onClick"],up=["src","alt","title"],fp=["title"];var Eo=mn({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,s=ar(Dn),i=lh(),o=ih(),l=Er(),a=ae({}),c=vt("textarea"),u=vt("image-uploader"),f=vt("emoji-button"),p=vt("emoji-popup"),b=vt("gif-button"),m=vt("gif-popup"),k=vt("gif-search"),L=ae({tabs:[],map:{}}),A=ae(0),_=ae(!1),F=ae(!1),E=ae(!1),P=ae(""),V=ae(0),Z=pn({loading:!0,list:[]}),q=ae(0),_e=ae(!1),be=ae(""),D=ae(!1),Q=ae(!1),N=ve(()=>s.value.locale),z=ve(()=>!!l.value.token),J=ve(()=>s.value.imageUploader!==null),le=H=>{const S=c.value,K=S.selectionStart,h=S.selectionEnd||0,d=S.scrollTop;i.value=S.value.substring(0,K)+H+S.value.substring(h,S.value.length),S.focus(),S.selectionStart=K+H.length,S.selectionEnd=K+H.length,S.scrollTop=d},ft=({key:H,ctrlKey:S,metaKey:K})=>{D.value||(S||K)&&H==="Enter"&&qe()},xt=async H=>{const S=`![${s.value.locale.uploading} ${H.name}]()`;le(S),D.value=!0;try{const K=await s.value.imageUploader(H);i.value=i.value.replace(S,`\r
|
|
88
|
-
`)}catch(K){alert(K.message),i.value=i.value.replace(S,"")}finally{D.value=!1}},jn=H=>{var S;if((S=H.dataTransfer)!=null&&S.items){const K=Kl(H.dataTransfer.items);K&&J.value&&(xt(K),H.preventDefault())}},Ir=H=>{if(H.clipboardData){const S=Kl(H.clipboardData.items);S&&J.value&&xt(S)}},Qt=()=>{const H=u.value;H.files&&J.value&&xt(H.files[0]).then(()=>{H.value=""})},qe=async()=>{var H;const{serverURL:S,lang:K,login:h,wordLimit:d,requiredMeta:g,recaptchaV3Key:y,turnstileKey:w}=s.value,v={comment:be.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:s.value.path,ua:await Kf()};if(!n.edit)if(l.value.token)v.nick=l.value.display_name,v.mail=l.value.email,v.link=l.value.url;else{if(h==="force")return;if(g.includes("nick")&&!v.nick){a.value.nick.focus(),alert(N.value.nickError);return}if(g.includes("mail")&&!v.mail||v.mail&&!sa(v.mail)){a.value.mail.focus(),alert(N.value.mailError);return}v.nick||(v.nick=N.value.anonymous)}if(!v.comment){c.value.focus();return}if(!_e.value){alert(N.value.wordHint.replace("$0",d[0].toString()).replace("$1",d[1].toString()).replace("$2",V.value.toString()));return}v.comment=yo(v.comment,L.value.map),n.replyId&&n.rootId&&(v.pid=n.replyId,v.rid=n.rootId,v.at=n.replyUser),D.value=!0;try{y&&(v.recaptchaV3=await gh(y).execute("social")),w&&(v.turnstile=await mh(w).execute("social"));const R={serverURL:S,lang:K,token:l.value.token,comment:v},C=await(n.edit?tn({objectId:n.edit.objectId,...R}):Hs(R));if(D.value=!1,C.errmsg){alert(C.errmsg);return}r("submit",C.data),i.value="",P.value="",await qt(),n.replyId&&r("cancelReply"),(H=n.edit)!=null&&H.objectId&&r("cancelEdit")}catch(R){D.value=!1,alert(R.message)}},Lr=H=>{H.preventDefault();const{lang:S,serverURL:K}=s.value;Ns({serverURL:K,lang:S}).then(h=>{l.value=h,(h.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(h)),r("log")})},Ps=()=>{l.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Mr=H=>{H.preventDefault();const{lang:S,serverURL:K}=s.value,h=800,d=800,g=(window.innerWidth-h)/2,y=(window.innerHeight-d)/2,w=new URLSearchParams({lng:S,token:l.value.token}),v=window.open(`${K}/ui/profile?${w.toString()}`,"_blank",`width=${h},height=${d},left=${g},top=${y},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);v==null||v.postMessage({type:"TOKEN",data:l.value.token},"*")},Ot=H=>{var S,K,h,d;!((S=f.value)!=null&&S.contains(H.target))&&!((K=p.value)!=null&&K.contains(H.target))&&(_.value=!1),!((h=b.value)!=null&&h.contains(H.target))&&!((d=m.value)!=null&&d.contains(H.target))&&(F.value=!1)},zt=async H=>{var S;const{scrollTop:K,clientHeight:h,scrollHeight:d}=H.target,g=(h+K)/d,y=s.value.search,w=((S=k.value)==null?void 0:S.value)??"";g<.9||Z.loading||Q.value||(Z.loading=!0,(y.more&&Z.list.length?await y.more(w,Z.list.length):await y.search(w)).length?Z.list=[...Z.list,...y.more&&Z.list.length?await y.more(w,Z.list.length):await y.search(w)]:Q.value=!0,Z.loading=!1,setTimeout(()=>{H.target.scrollTop=K},50))},en=Iu(H=>{Z.list=[],Q.value=!1,zt(H)},300);return Mt("click",Ot),Mt("message",({data:H})=>{(H==null?void 0:H.type)==="profile"&&(l.value={...l.value,...H.data},[localStorage,sessionStorage].filter(S=>S.getItem("WALINE_USER")).forEach(S=>{S.setItem("WALINE_USER",JSON.stringify(l))}))}),Jt([s,V],([H,S])=>{const{wordLimit:K}=H;K?S<K[0]&&K[0]!==0?(q.value=K[0],_e.value=!1):S>K[1]?(q.value=K[1],_e.value=!1):(q.value=K[1],_e.value=!0):(q.value=0,_e.value=!0)}),bt(F,async H=>{var S;if(!H)return;const K=s.value.search;k.value&&(k.value.value=""),Z.loading=!0,Z.list=await(((S=K.default)==null?void 0:S.call(K))??K.search("")),Z.loading=!1}),yn(()=>{var H;(H=n.edit)!=null&&H.objectId&&(i.value=n.edit.orig),Jt(()=>i.value,S=>{const{highlighter:K,texRenderer:h}=s.value;be.value=S,P.value=Vf(S,{emojiMap:L.value.map,highlighter:K,texRenderer:h}),V.value=qf(S),S?Ao(c.value):Ao.destroy(c.value)}),Jt(()=>s.value.emoji,async S=>{L.value=await Yu(S)})}),(H,S)=>{var K,h;return T(),M("div",{key:W(l).token,class:"wl-comment"},[W(s).login!=="disable"&&z.value&&!((K=e.edit)!=null&&K.objectId)?(T(),M("div",Lh,[j("div",Mh,[j("button",{type:"submit",class:"wl-logout-btn",title:N.value.logout,onClick:Ps},[fe(W(ko),{size:14})],8,Ph),j("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:N.value.profile,onClick:Mr},[j("img",{src:W(l).avatar,alt:"avatar"},null,8,Oh)],8,jh)]),j("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:N.value.profile,onClick:Mr,textContent:ie(W(l).display_name)},null,8,zh)])):X("v-if",!0),j("div",Fh,[W(s).login!=="force"&&W(s).meta.length&&!z.value?(T(),M("div",{key:0,class:ye(["wl-header",`item${W(s).meta.length}`])},[(T(!0),M(de,null,De(W(s).meta,d=>(T(),M("div",{key:d,class:"wl-header-item"},[j("label",{for:`wl-${d}`,textContent:ie(N.value[d]+(W(s).requiredMeta.includes(d)||!W(s).requiredMeta.length?"":`(${N.value.optional})`))},null,8,Hh),lr(j("input",{id:`wl-${d}`,ref_for:!0,ref:g=>{g&&(a.value[d]=g)},"onUpdate:modelValue":g=>W(o)[d]=g,class:ye(["wl-input",`wl-${d}`]),name:d,type:d==="mail"?"email":"text"},null,10,Dh),[[yu,W(o)[d]]])]))),128))],2)):X("v-if",!0),lr(j("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":S[0]||(S[0]=d=>we(i)?i.value=d:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:N.value.placeholder,onKeydown:ft,onDrop:jn,onPaste:Ir},null,40,Uh),[[bs,W(i)]]),lr(j("div",Nh,[S[7]||(S[7]=j("hr",null,null,-1)),j("h4",null,ie(N.value.preview)+":",1),j("div",{class:"wl-content",innerHTML:P.value},null,8,Vh)],512),[[$l,E.value]]),j("div",Bh,[j("div",Wh,[j("a",qh,[fe(W(Qf))]),lr(j("button",{ref:"emoji-button",type:"button",class:ye(["wl-action",{active:_.value}]),title:N.value.emoji,onClick:S[1]||(S[1]=d=>_.value=!_.value)},[fe(W(Zf))],10,Kh),[[$l,L.value.tabs.length]]),W(s).search?(T(),M("button",{key:0,ref:"gif-button",type:"button",class:ye(["wl-action",{active:F.value}]),title:N.value.gif,onClick:S[2]||(S[2]=d=>F.value=!F.value)},[fe(W(sh))],10,Gh)):X("v-if",!0),j("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Qt},null,544),J.value?(T(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:N.value.uploadImage,"aria-label":N.value.uploadImage},[fe(W(Jf))],8,Zh)):X("v-if",!0),j("button",{type:"button",class:ye(["wl-action",{active:E.value}]),title:N.value.preview,onClick:S[3]||(S[3]=d=>E.value=!E.value)},[fe(W(Xf))],10,Jh)]),j("div",Yh,[S[9]||(S[9]=j("div",{class:"wl-captcha-container"},null,-1)),j("div",Xh,[lt(ie(V.value)+" ",1),W(s).wordLimit?(T(),M("span",Qh,[S[8]||(S[8]=lt(" / ",-1)),j("span",{class:ye({illegal:!_e.value}),textContent:ie(q.value)},null,10,ep)])):X("v-if",!0),lt(" "+ie(N.value.word),1)]),W(s).login!=="disable"&&!z.value?(T(),M("button",{key:0,type:"button",class:"wl-btn",onClick:Lr,textContent:ie(N.value.login)},null,8,tp)):X("v-if",!0),W(s).login!=="force"||z.value?(T(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:D.value,onClick:qe},[D.value?(T(),Ze(W(Ln),{key:0,size:16})):(T(),M(de,{key:1},[lt(ie(N.value.submit),1)],64))],8,np)):X("v-if",!0)]),j("div",{ref:"gif-popup",class:ye(["wl-gif-popup",{display:F.value}])},[j("input",{ref:"gif-search",type:"text",placeholder:N.value.gifSearchPlaceholder,onInput:S[4]||(S[4]=(...d)=>W(en)&&W(en)(...d))},null,40,rp),Z.list.length?(T(),Ze(Ih,{key:0,items:Z.list,"column-width":200,gap:6,onInsert:S[5]||(S[5]=d=>le(d)),onScroll:zt},null,8,["items"])):X("v-if",!0),Z.loading?(T(),M("div",sp,[fe(W(Ln),{size:30})])):X("v-if",!0)],2),j("div",{ref:"emoji-popup",class:ye(["wl-emoji-popup",{display:_.value}])},[(T(!0),M(de,null,De(L.value.tabs,(d,g)=>(T(),M(de,{key:d.name},[g===A.value?(T(),M("div",ip,[(T(!0),M(de,null,De(d.items,y=>(T(),M("button",{key:y,type:"button",title:y,onClick:w=>le(`:${y}:`)},[_.value?(T(),M("img",{key:0,class:"wl-emoji",src:L.value.map[y],alt:y,loading:"lazy",referrerPolicy:"no-referrer"},null,8,op)):X("v-if",!0)],8,lp))),128))])):X("v-if",!0)],64))),128)),L.value.tabs.length>1?(T(),M("div",ap,[(T(!0),M(de,null,De(L.value.tabs,(d,g)=>(T(),M("button",{key:d.name,type:"button",class:ye(["wl-tab",{active:A.value===g}]),onClick:y=>A.value=g},[j("img",{class:"wl-emoji",src:d.icon,alt:d.name,title:d.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,up)],10,cp))),128))])):X("v-if",!0)],2)])]),e.replyId||(h=e.edit)!=null&&h.objectId?(T(),M("button",{key:1,type:"button",class:"wl-close",title:N.value.cancelReply,onClick:S[6]||(S[6]=d=>e.replyId?r("cancelReply"):r("cancelEdit"))},[fe(W(ko),{size:24})],8,fp)):X("v-if",!0)])}}});const hp=["id"],pp={class:"wl-user","aria-hidden":"true"},dp=["src"],gp={class:"wl-card"},mp={class:"wl-head"},vp=["href"],bp={key:1,class:"wl-nick"},yp=["textContent"],wp=["textContent"],kp=["textContent"],xp=["textContent"],_p={class:"wl-comment-actions"},Cp=["title"],$p=["title"],Sp={class:"wl-meta","aria-hidden":"true"},Rp=["data-value","textContent"],Ap={key:0,class:"wl-content"},Ep={key:0},Tp=["href"],Ip=["innerHTML"],Lp={key:1,class:"wl-admin-actions"},Mp={class:"wl-comment-status"},Pp=["disabled","onClick","textContent"],jp={key:3,class:"wl-quote"};var Op=mn({__name:"CommentCard",props:{comment:{},edit:{},rootId:{},reply:{}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=e,r=t,s=["approved","waiting","spam"],i=ar(Dn),o=xo(),l=Bu(),a=Er(),c=ve(()=>i.value.locale),u=ve(()=>{const{link:A}=n.comment;return A?ui(A)?A:`https://${A}`:""}),f=ve(()=>o.value.includes(n.comment.objectId)),p=ve(()=>na(new Date(n.comment.time),l.value,c.value)),b=ve(()=>a.value.type==="administrator"),m=ve(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),k=ve(()=>{var A;return n.comment.objectId===((A=n.reply)==null?void 0:A.objectId)}),L=ve(()=>{var A;return n.comment.objectId===((A=n.edit)==null?void 0:A.objectId)});return(A,_)=>{var F;const E=cc("CommentCard",!0);return T(),M("div",{id:e.comment.objectId.toString(),class:"wl-card-item"},[j("div",pp,[e.comment.avatar?(T(),M("img",{key:0,class:"wl-user-avatar",src:e.comment.avatar,alt:""},null,8,dp)):X("v-if",!0),e.comment.type==="guest"?(T(),Ze(W(nh),{key:1})):X("v-if",!0),e.comment.type==="administrator"?(T(),Ze(W(rh),{key:2})):X("v-if",!0)]),j("div",gp,[j("div",mp,[u.value?(T(),M("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},ie(e.comment.nick),9,vp)):(T(),M("span",bp,ie(e.comment.nick),1)),e.comment.label?(T(),M("span",{key:2,class:"wl-badge",textContent:ie(e.comment.label)},null,8,yp)):X("v-if",!0),e.comment.sticky?(T(),M("span",{key:3,class:"wl-badge",textContent:ie(c.value.sticky)},null,8,wp)):X("v-if",!0),typeof e.comment.level=="number"?(T(),M("span",{key:4,class:ye(`wl-badge level${e.comment.level}`),textContent:ie(c.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,kp)):X("v-if",!0),j("span",{class:"wl-time",textContent:ie(p.value)},null,8,xp),j("div",_p,[b.value||m.value?(T(),M(de,{key:0},[j("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=P=>r("edit",e.comment))},[fe(W(th))]),j("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=P=>r("delete",e.comment))},[fe(W(Gf))])],64)):X("v-if",!0),j("button",{type:"button",class:"wl-like",title:f.value?c.value.cancelLike:c.value.like,onClick:_[2]||(_[2]=P=>r("like",e.comment))},[fe(W(Yf),{active:f.value},null,8,["active"]),lt(" "+ie("like"in e.comment?e.comment.like:""),1)],8,Cp),j("button",{type:"button",class:ye(["wl-reply",{active:k.value}]),title:k.value?c.value.cancelReply:c.value.reply,onClick:_[3]||(_[3]=P=>r("reply",k.value?null:e.comment))},[fe(W(eh))],10,$p)])]),j("div",Sp,[(T(),M(de,null,De(["addr","browser","os"],P=>(T(),M(de,null,[e.comment[P]?(T(),M("span",{key:P,class:ye(`wl-${P}`),"data-value":e.comment[P],textContent:ie(e.comment[P])},null,10,Rp)):X("v-if",!0)],64))),64))]),L.value?X("v-if",!0):(T(),M("div",Ap,["reply_user"in e.comment&&e.comment.reply_user?(T(),M("p",Ep,[j("a",{href:"#"+e.comment.pid},"@"+ie(e.comment.reply_user.nick),9,Tp),_[17]||(_[17]=j("span",null,": ",-1))])):X("v-if",!0),j("div",{innerHTML:e.comment.comment},null,8,Ip)])),b.value&&!L.value?(T(),M("div",Lp,[j("span",Mp,[(T(),M(de,null,De(s,P=>j("button",{key:P,type:"submit",class:ye(`wl-btn wl-${P}`),disabled:e.comment.status===P,onClick:V=>r("status",{status:P,comment:e.comment}),textContent:ie(c.value[P])},null,10,Pp)),64))]),b.value&&!("rid"in e.comment)?(T(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=P=>r("sticky",e.comment))},ie(e.comment.sticky?c.value.unsticky:c.value.sticky),1)):X("v-if",!0)])):X("v-if",!0),k.value||L.value?(T(),M("div",{key:2,class:ye({"wl-reply-wrapper":k.value,"wl-edit-wrapper":L.value})},[fe(Eo,{edit:e.edit,"reply-id":(F=e.reply)==null?void 0:F.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:_[5]||(_[5]=P=>r("log")),onCancelReply:_[6]||(_[6]=P=>r("reply",null)),onCancelEdit:_[7]||(_[7]=P=>r("edit",null)),onSubmit:_[8]||(_[8]=P=>r("submit",P))},null,8,["edit","reply-id","reply-user","root-id"])],2)):X("v-if",!0),"children"in e.comment?(T(),M("div",jp,[(T(!0),M(de,null,De(e.comment.children,P=>(T(),Ze(E,{key:P.objectId,comment:P,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:_[9]||(_[9]=V=>r("log")),onDelete:_[10]||(_[10]=V=>r("delete",V)),onEdit:_[11]||(_[11]=V=>r("edit",V)),onLike:_[12]||(_[12]=V=>r("like",V)),onReply:_[13]||(_[13]=V=>r("reply",V)),onStatus:_[14]||(_[14]=V=>r("status",V)),onSticky:_[15]||(_[15]=V=>r("sticky",V)),onSubmit:_[16]||(_[16]=V=>r("submit",V))},null,8,["comment","reply","edit","root-id"]))),128))])):X("v-if",!0)])],8,hp)}}});const To="3.8.0",zp={"data-waline":""},Fp={class:"wl-meta-head"},Hp={class:"wl-count"},Dp=["textContent"],Up={class:"wl-sort"},Np=["onClick"],Vp={class:"wl-cards"},Bp={key:1,class:"wl-operation"},Wp=["textContent"],qp={key:2,class:"wl-loading"},Kp=["textContent"],Gp={key:4,class:"wl-operation"},Zp=["textContent"],Jp={key:5,class:"wl-power"};var Yp=mn({__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=Er(),r=xo(),s=ae("loading"),i=ae(0),o=ae(1),l=ae(0),a=ve(()=>Qo(t)),c=ae(a.value.commentSorting),u=ae([]),f=ae(null),p=ae(null),b=ve(()=>ea(a.value.dark)),m=ve(()=>a.value.locale);Ku(b,{id:"waline-darkmode"});let k=null;const L=D=>{const{serverURL:Q,path:N,pageSize:z}=a.value,J=new AbortController;s.value="loading",k==null||k(),Fs({serverURL:Q,lang:a.value.lang,path:N,pageSize:z,sortBy:oi[c.value],page:D,signal:J.signal,token:n.value.token}).then(le=>{s.value="success",i.value=le.count,u.value.push(...le.data),o.value=D,l.value=le.totalPages}).catch(le=>{le.name!=="AbortError"&&(console.error(le.message),s.value="error")}),k=J.abort.bind(J)},A=()=>{L(o.value+1)},_=()=>{i.value=0,u.value=[],L(1)},F=D=>{c.value!==D&&(c.value=D,_())},E=D=>{f.value=D},P=D=>{p.value=D},V=D=>{if(p.value)p.value.comment=D.comment,p.value.orig=D.orig;else if("rid"in D){const Q=u.value.find(({objectId:N})=>N===D.rid);if(!Q)return;Array.isArray(Q.children)||(Q.children=[]),Q.children.push(D)}else u.value.unshift(D),i.value+=1},Z=async({comment:D,status:Q})=>{if(D.status===Q)return;const{serverURL:N,lang:z}=a.value;await tn({serverURL:N,lang:z,token:n.value.token,objectId:D.objectId,comment:{status:Q}}),D.status=Q},q=async D=>{if("rid"in D)return;const{serverURL:Q,lang:N}=a.value;await tn({serverURL:Q,lang:N,token:n.value.token,objectId:D.objectId,comment:{sticky:D.sticky?0:1}}),D.sticky=!D.sticky},_e=async({objectId:D})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:Q,lang:N}=a.value;await Ds({serverURL:Q,lang:N,token:n.value.token,objectId:D}),u.value.some((z,J)=>z.objectId===D?(u.value=u.value.filter((le,ft)=>ft!==J),!0):z.children.some((le,ft)=>le.objectId===D?(u.value[J].children=z.children.filter((xt,jn)=>jn!==ft),!0):!1))},be=async D=>{const{serverURL:Q,lang:N}=a.value,{objectId:z}=D,J=r.value.includes(z);await tn({serverURL:Q,lang:N,objectId:z,token:n.value.token,comment:{like:!J}}),J?r.value=r.value.filter(le=>le!==z):(r.value=[...r.value,z],r.value.length>50&&(r.value=r.value.slice(-50))),D.like=Math.max(0,(D.like||0)+(J?-1:1))};return gc(Dn,a),yn(()=>{Jt(()=>[t.serverURL,t.path],()=>{_()})}),rs(()=>{k==null||k()}),(D,Q)=>(T(),M("div",zp,[fe(Sh),!f.value&&!p.value?(T(),Ze(Eo,{key:0,onLog:_,onSubmit:V})):X("v-if",!0),j("div",Fp,[j("div",Hp,[i.value?(T(),M("span",{key:0,class:"wl-num",textContent:ie(i.value)},null,8,Dp)):X("v-if",!0),lt(" "+ie(m.value.comment),1)]),j("ul",Up,[(T(!0),M(de,null,De(W(Yo),N=>(T(),M("li",{key:N,class:ye([N===c.value?"active":""]),onClick:z=>F(N)},ie(m.value[N]),11,Np))),128))])]),j("div",Vp,[(T(!0),M(de,null,De(u.value,N=>(T(),Ze(Op,{key:N.objectId,"root-id":N.objectId,comment:N,reply:f.value,edit:p.value,onLog:_,onReply:E,onEdit:P,onSubmit:V,onStatus:Z,onDelete:_e,onSticky:q,onLike:be},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(T(),M("div",Bp,[j("button",{type:"button",class:"wl-btn",onClick:_,textContent:ie(m.value.refresh)},null,8,Wp)])):s.value==="loading"?(T(),M("div",qp,[fe(W(Ln),{size:30})])):u.value.length?o.value<l.value?(T(),M("div",Gp,[j("button",{type:"button",class:"wl-btn",onClick:A,textContent:ie(m.value.more)},null,8,Zp)])):X("v-if",!0):(T(),M("div",{key:3,class:"wl-empty",textContent:ie(m.value.sofa)},null,8,Kp)),a.value.noCopyright?X("v-if",!0):(T(),M("div",Jp,[Q[0]||(Q[0]=lt(" Powered by ",-1)),Q[1]||(Q[1]=j("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),lt(" v"+ie(W(To)),1)]))]))}});const Io=(e,t)=>{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.innerText=s.toString())})},Lo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:s=navigator.language})=>{const i=new AbortController,o=Array.from(document.querySelectorAll(n)),l=c=>{const u=Ls(c);return u!==null&&t!==u},a=c=>Vs({serverURL:Un(e),paths:c.map(u=>Ls(u)??t),lang:s,signal:i.signal}).then(u=>Io(u,c)).catch(ql);if(r){const c=o.filter(f=>!l(f)),u=o.filter(l);Bs({serverURL:Un(e),path:t,lang:s}).then(f=>Io(f,c)),u.length&&a(u)}else a(o);return i.abort.bind(i)},Xp=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...s})=>{const i=e?ks(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 o=pn({...s}),l=pn({comment:n,pageview:r,path:t}),a=()=>{l.comment&&wo({serverURL:o.serverURL,path:l.path,...Ft(l.comment)?{selector:l.comment}:{}})},c=()=>{l.pageview&&Lo({serverURL:o.serverURL,path:l.path,...Ft(l.pageview)?{selector:l.pageview}:{}})};let u=null;i&&(u=_u(()=>ee(Yp,{path:l.path,...o})),u.mount(i));const f=cl(a),p=cl(c);return{el:i,update:({comment:b,pageview:m,path:k=window.location.pathname,...L}={})=>{Object.entries(L).forEach(([A,_])=>{o[A]=_}),l.path=k,b!==void 0&&(l.comment=b),m!==void 0&&(l.pageview=m)},destroy:()=>{u==null||u.unmount(),f(),p()}}},Qp=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const s=Er(),i=ks(e),o=new AbortController;return Ws({serverURL:t,count:n,lang:r,signal:o.signal,token:s.value.token}).then(l=>i&&l.length?(i.innerHTML=`<ul class="wl-recent-list">${l.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:l,destroy:()=>{o.abort(),i.innerHTML=""}}):{comments:l,destroy:()=>o.abort()})},ed=({el:e,serverURL:t,count:n,locale:r,lang:s=navigator.language,mode:i="list"})=>{const o=ks(e),l=new AbortController;return qs({serverURL:t,pageSize:n,lang:s,signal:l.signal}).then(a=>!o||!a.length?{users:a,destroy:()=>l.abort()}:(r={...ii(s),...typeof r=="object"?r:{}},o.innerHTML=`<ul class="wl-user-${i}">${a.map((c,u)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${u+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${r?r[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(f=>f).join("")).join("")}</ul>`,{users:a,destroy:()=>{l.abort(),o.innerHTML=""}}))};oe.RecentComments=Qp,oe.UserList=ed,oe.addComment=Hs,oe.commentCount=wo,oe.defaultLocales=Hn,oe.deleteComment=Ds,oe.fetchCommentCount=Us,oe.getArticleCounter=Pr,oe.getComment=Fs,oe.getPageview=Vs,oe.getRecentComment=Ws,oe.getUserList=qs,oe.init=Xp,oe.login=Ns,oe.pageviewCount=Lo,oe.updateArticleCounter=Fn,oe.updateComment=tn,oe.updatePageview=Bs,oe.version=To}));
|
|
84
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ct(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){let s=this.parser.parseInline(r),i=vo(t);if(i===null)return s;t=i;let l='<a href="'+t+'"';return n&&(l+=' title="'+ct(n)+'"'),l+=">"+s+"</a>",l}image({href:t,title:n,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let i=vo(t);if(i===null)return ct(r);t=i;let l=`<img src="${t}" alt="${r}"`;return n&&(l+=` title="${ct(n)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ct(t.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}},Qe=class Fs{options;renderer;textRenderer;constructor(t){this.options=t||Ft,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=(Or=class{options;block;constructor(t){this.options=t||Ft}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?Qe.parse:Qe.parseInline}},js(Or,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),js(Or,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Or),wo=class{defaults=ks();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Qe;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 Qe.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?Qe.parse:Qe.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?Qe.parse:Qe.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+=`
|
|
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}}},Ut=new wo;function pe(e,t){return Ut.parse(e,t)}pe.options=pe.setOptions=function(e){return Ut.setOptions(e),pe.defaults=Ut.defaults,to(pe.defaults),pe},pe.getDefaults=ks,pe.defaults=Ft,pe.use=function(...e){return Ut.use(...e),pe.defaults=Ut.defaults,to(pe.defaults),pe},pe.walkTokens=function(e,t){return Ut.walkTokens(e,t)},pe.parseInline=Ut.parseInline,pe.Parser=Qe,pe.parser=Qe.parse,pe.Renderer=Mr,pe.TextRenderer=Ts,pe.Lexer=Ye,pe.lexer=Ye.lex,pe.Tokenizer=Ir,pe.Hooks=Mn,pe.parse=pe;function Jf(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=ko(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(xo(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.");xo(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const s=ko(n),i=s?e.langPrefix+So(s):e.emptyLangClass,l=i?` class="${i}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:So(t,!0)}
|
|
86
|
+
</code></pre>`}}}}function ko(e){return(e||"").match(/\S*/)[0]}function xo(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const _o=/[&<>"']/,Xf=new RegExp(_o.source,"g"),Co=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,eh=new RegExp(Co.source,"g"),th={"&":"&","<":"<",">":">",'"':""","'":"'"},$o=e=>th[e];function So(e,t){if(t){if(_o.test(e))return e.replace(Xf,$o)}else if(Co.test(e))return e.replace(eh,$o);return e}const nh=/\$.*?\$/,rh=/^\$(.*?)\$/,sh=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ih=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=sh.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(nh);return n===-1?t.length:n},tokenizer(t){const n=rh.exec(t);if(n!=null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Ro=(e="",t={})=>e.replaceAll(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),lh=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new wo;if(s.setOptions({breaks:!0}),n&&s.use(Jf({highlight:n})),r){const i=ih(r);s.use({extensions:i})}return s.parse(Ro(e,t))},Ls=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},oh=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),ah=e=>e.match(/[\u4E00-\u9FD5]/gu),ch=e=>{var t,n;return(((t=oh(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=ah(e))==null?void 0:n.length)??0)},uh=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},Ao=({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(Xl),s.abort.bind(s)},Eo=({size:e})=>N("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[N("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"}),N("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"})]),fh=()=>N("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},N("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"})),hh=()=>N("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},N("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"})),ph=()=>N("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[N("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"}),N("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"})]),dh=({active:e=!1})=>N("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[N("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"})]),gh=()=>N("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[N("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"}),N("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"})]),mh=()=>N("svg",{width:"16",height:"16",ariaHidden:"true"},N("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"})),vh=()=>N("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},N("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"})),bh=()=>N("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},N("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"})),yh=()=>N("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},N("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"})),wh=()=>N("svg",{class:"administrator-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},[N("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})=>N("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},N("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},N("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),kh=()=>N("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[N("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"}),N("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"})]),xh=()=>on("WALINE_USER_META",{nick:"",mail:"",link:""}),_h=()=>on("WALINE_COMMENT_BOX_EDITOR",""),Ch="WALINE_LIKE",$h=on(Ch,[]),To=()=>$h,Sh="WALINE_REACTION",Rh=on(Sh,{}),Lo=()=>Rh;var Is={},ut={},ft={},Io;function Mo(){if(Io)return ft;Io=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(p){try{d(l.next(p))}catch(w){c(w)}}function f(p){try{d(l.throw(p))}catch(w){c(w)}}function d(p){p.done?a(p.value):o(p.value).then(u,f)}d((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(d){return function(p){return f([d,p])}}function f(d){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(i=0)),i;)try{if(l=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return i.label++,{value:d[1],done:!1};case 5:i.label++,o=d[1],d=[0];continue;case 7:d=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){i.label=d[1];break}if(d[0]===6&&i.label<a[1]){i.label=a[1],a=d;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(d);break}a[2]&&i.ops.pop(),i.trys.pop();continue}d=s.call(r,i)}catch(p){d=[6,p],o=0}finally{l=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[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 Po;function Ah(){if(Po)return ut;Po=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=Mo(),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(d){return d(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 d="https://www.google.com/recaptcha/api.js";l?o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":o&&(d="https://www.google.com/recaptcha/enterprise.js"),c&&(d=c),a.render&&(a.render=void 0);var p=this.buildQueryString(a);return f.src=d+"?render=explicit"+p,new Promise(function(w,y){f.addEventListener("load",u.waitForScriptToLoad(function(){w(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 Oo;function Eh(){return Oo||(Oo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Ah();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Mo();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(Is)),Is}var Th=Eh();const jo={},Lh=e=>{const t=jo[e]??(jo[e]=Th.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Ih=e=>({execute:async t=>{const{load:n}=nf("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})})})}}),Mh=on("WALINE_USER",{}),Pr=()=>Mh,Ph={key:0,class:"wl-reaction"},Oh=["textContent"],jh={class:"wl-reaction-list"},zh=["onClick"],Fh={class:"wl-reaction-img"},Dh=["src","alt"],Uh=["textContent"],Hh=["textContent"];var Nh=Pt({__name:"ArticleReaction",setup(e){const t=Lo(),n=ur(Nn),r=q(-1),s=q([]),i=he(()=>n.value.locale),l=he(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),o=he(()=>{var f;const{path:d}=n.value;return((f=l.value)==null?void 0:f.map((p,w)=>({icon:p,desc:i.value[`reaction${w}`],active:t.value[d]===w})))??null});let a;const c=async()=>{const{serverURL:f,lang:d,path:p}=n.value;if(!l.value)return;const w=new AbortController;a=w.abort.bind(w);const[y]=await Un({serverURL:f,lang:d,paths:[p],type:l.value.map((A,_)=>`reaction${_}`),signal:w.signal});s.value=l.value.map((A,_)=>y[`reaction${_}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:d,lang:p,path:w}=n.value,y=t.value[w];r.value=f,y!=null&&(await Vt({serverURL:d,lang:p,path:w,type:`reaction${y}`,action:"desc"}),s.value[y]=Math.max(s.value[y]-1,0)),y!==f&&(await Vt({serverURL:d,lang:p,path:w,type:`reaction${f}`}),s.value[f]=(s.value[f]||0)+1),y===f?delete t.value[w]:t.value[w]=f,r.value=-1};return tn(()=>{jt(()=>[n.value.serverURL,n.value.path],()=>c())}),rs(()=>{a==null||a()}),(f,d)=>o.value?(T(),M("div",Ph,[O("div",{class:"wl-reaction-title",textContent:J(i.value.reactionTitle)},null,8,Oh),O("ul",jh,[(T(!0),M(ce,null,ze(o.value,({active:p,icon:w,desc:y},A)=>(T(),M("li",{key:A,class:ye(["wl-reaction-item",{active:p}]),onClick:_=>u(A)},[O("div",Fh,[O("img",{src:w,alt:y},null,8,Dh),r.value===A?(T(),Ke(B(Pn),{key:0,class:"wl-reaction-loading"})):(T(),M("div",{key:1,class:"wl-reaction-votes",textContent:J(s.value[A]||0)},null,8,Uh))]),O("div",{class:"wl-reaction-text",textContent:J(y)},null,8,Hh)],10,zh))),128))])])):K("v-if",!0)}}),On=new Map;function Bh(e){var t=On.get(e);t&&t.destroy()}function Vh(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(d){return r.style[d]=f[d]}),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 d,p,w=f.restoreTextAlign,y=w===void 0?null:w,A=f.testForHeightReduction,_=A===void 0||A,I=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),_&&(d=(function(R){for(var F=[];R&&R.parentNode&&R.parentNode instanceof Element;)R.parentNode.scrollTop&&F.push([R.parentNode,R.parentNode.scrollTop]),R=R.parentNode;return function(){return F.forEach(function(de){var ge=de[0],D=de[1];ge.style.scrollBehavior="auto",ge.scrollTop=D,ge.style.scrollBehavior=null})}})(r),r.style.height=""),p=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&p>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),p=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=p+"px",y&&(r.style.textAlign=y),d&&d(),i!==p&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=p),I!==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],Bh),e},jn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Vh),e});var zo=jn;const Wh=["data-index"],qh=["src","title","onClick"];var Kh=Pt({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){let t=null;const n=yt("wall"),r=q({}),s=q([]),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 d=[...((f=n.value)==null?void 0:f.children)??[]].reduce((p,w)=>w.getBoundingClientRect().height<p.getBoundingClientRect().height?w:p);s.value[Number(d.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)=>(T(),M("div",{ref_key:"wall",ref:n,class:"wl-gallery",style:Zt({gap:`${e.gap}px`})},[(T(!0),M(ce,null,ze(s.value,(d,p)=>(T(),M("div",{key:p,class:"wl-gallery-column","data-index":p,style:Zt({gap:`${e.gap}px`})},[(T(!0),M(ce,null,ze(d,w=>(T(),M(ce,{key:w},[r.value[e.items[w].src]?K("v-if",!0):(T(),Ke(B(Pn),{key:0,size:36,style:{margin:"20px auto"}})),O("img",{class:"wl-gallery-item",src:e.items[w].src,title:e.items[w].title,loading:"lazy",onLoad:c,onClick:y=>u.$emit("insert",``)},null,40,qh)],64))),128))],12,Wh))),128))],4))}});const Gh={key:0,class:"wl-login-info"},Zh={class:"wl-avatar"},Yh=["title"],Qh=["title"],Jh=["src"],Xh=["title","textContent"],ep={class:"wl-panel"},tp=["for","textContent"],np=["id","onUpdate:modelValue","name","type"],rp=["placeholder"],sp={class:"wl-preview"},ip=["innerHTML"],lp={class:"wl-footer"},op={class:"wl-actions"},ap={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},cp=["title"],up=["title"],fp=["title","aria-label"],hp=["title"],pp={class:"wl-info"},dp={class:"wl-text-number"},gp={key:0},mp=["textContent"],vp=["textContent"],bp=["disabled"],yp=["placeholder"],wp={key:1,class:"wl-loading"},kp=["title","onClick","onMouseenter"],xp=["src","alt"],_p=["src"],Cp={key:0,class:"wl-tabs"},$p=["onClick"],Sp=["src","alt","title"],Rp=["title"];var Fo=Pt({__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=xh(),o=Pr(),a=q({}),c=yt("textarea"),u=yt("image-uploader"),f=yt("emoji-button"),d=yt("emoji-popup"),p=yt("gif-button"),w=yt("gif-popup"),y=yt("gif-search"),A=q({tabs:[],map:{}}),_=q(0),I=q(!1),z=q(""),R=q({});let F;const de=(m,v)=>{clearTimeout(F),z.value=v;const b=m.currentTarget,k=d.value;if(b&&k){const x=b.getBoundingClientRect(),S=k.getBoundingClientRect();R.value={left:`${x.left-S.left+x.width/2}px`,top:`${x.top-S.top}px`,transform:"translate(-50%, -100%)"}}},ge=()=>{F=setTimeout(()=>{z.value=""},50)},D=q(!1),me=q(!1),ve=q(""),U=q(0),H=yn({loading:!0,list:[]}),ne=q(0),j=q(!1),Q=q(""),G=q(!1),Ve=q(!1),ue=he(()=>s.value.locale),xt=he(()=>!!o.value.token),Ht=he(()=>s.value.imageUploader!=null),_t=m=>{const v=c.value,b=v.selectionStart,k=v.selectionEnd||0,{scrollTop:x}=v;i.value=v.value.slice(0,b)+m+v.value.slice(k),v.focus(),v.selectionStart=b+m.length,v.selectionEnd=b+m.length,v.scrollTop=x},Je=({key:m,ctrlKey:v,metaKey:b})=>{G.value||(v||b)&&m==="Enter"&&Bt()},an=async m=>{const v=`![${s.value.locale.uploading} ${m.name}]()`;_t(v),G.value=!0;try{const b=await s.value.imageUploader(m);i.value=i.value.replace(v,`\r
|
|
87
|
+
`)}catch(b){alert(b.message),i.value=i.value.replace(v,"")}finally{G.value=!1}},Ps=m=>{var v;if((v=m.dataTransfer)!=null&&v.items){const b=eo(m.dataTransfer.items);b&&Ht.value&&(an(b),m.preventDefault())}},Os=m=>{if(m.clipboardData){const v=eo(m.clipboardData.items);v&&Ht.value&&an(v)}},Nt=()=>{const m=u.value;m.files&&Ht.value&&an(m.files[0]).then(()=>{m.value=""})},Bt=async()=>{var m;const{serverURL:v,lang:b,login:k,wordLimit:x,requiredMeta:S,recaptchaV3Key:$,turnstileKey:C}=s.value,L={comment:Q.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:s.value.path,ua:await uh()};if(!n.edit)if(o.value.token)L.nick=o.value.display_name,L.mail=o.value.email,L.link=o.value.url;else{if(k==="force")return;if(S.includes("nick")&&!L.nick){a.value.nick.focus(),alert(ue.value.nickError);return}if(S.includes("mail")&&!L.mail||L.mail&&!va(L.mail)){a.value.mail.focus(),alert(ue.value.mailError);return}L.nick||(L.nick=ue.value.anonymous)}if(!L.comment){c.value.focus();return}if(!j.value){alert(ue.value.wordHint.replace("$0",x[0].toString()).replace("$1",x[1].toString()).replace("$2",U.value.toString()));return}L.comment=Ro(L.comment,A.value.map),n.replyId&&n.rootId&&(L.pid=n.replyId,L.rid=n.rootId,L.at=n.replyUser),G.value=!0;try{$&&(L.recaptchaV3=await Lh($).execute("social")),C&&(L.turnstile=await Ih(C).execute("social"));const E={serverURL:v,lang:b,token:o.value.token,comment:L},P=await(n.edit?cn({objectId:n.edit.objectId,...E}):Us(E));if(G.value=!1,P.errmsg){alert(P.errmsg);return}r("submit",P.data),i.value="",ve.value="",await en(),n.replyId&&r("cancelReply"),(m=n.edit)!=null&&m.objectId&&r("cancelEdit")}catch(E){G.value=!1,alert(E.message)}},zn=m=>{m.preventDefault();const{lang:v,serverURL:b}=s.value;Bs({serverURL:b,lang:v}).then(k=>{o.value=k,(k.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(k)),r("log")})},jr=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Ct=m=>{m.preventDefault();const{lang:v,serverURL:b}=s.value,k=800,x=800,S=(window.innerWidth-k)/2,$=(window.innerHeight-x)/2,C=new URLSearchParams({lng:v,token:o.value.token}),L=window.open(`${b}/ui/profile?${C.toString()}`,"_blank",`width=${k},height=${x},left=${S},top=${$},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);L==null||L.postMessage({type:"TOKEN",data:o.value.token},"*")},Wo=m=>{var v,b,k,x;!((v=f.value)!=null&&v.contains(m.target))&&!((b=d.value)!=null&&b.contains(m.target))&&(I.value=!1),!((k=p.value)!=null&&k.contains(m.target))&&!((x=w.value)!=null&&x.contains(m.target))&&(D.value=!1)},h=async m=>{var v;const{scrollTop:b,clientHeight:k,scrollHeight:x}=m.target,S=(k+b)/x,$=s.value.search,C=((v=y.value)==null?void 0:v.value)??"";S<.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(()=>{m.target.scrollTop=b},50))},g=Bu(m=>{H.list=[],Ve.value=!1,h(m)},300);return zt("click",Wo),zt("message",({data:m})=>{(m==null?void 0:m.type)==="profile"&&(o.value={...o.value,...m.data},[localStorage,sessionStorage].filter(v=>v.getItem("WALINE_USER")).forEach(v=>{v.setItem("WALINE_USER",JSON.stringify(o))}))}),jt([s,U],([m,v])=>{const{wordLimit:b}=m;b?v<b[0]&&b[0]!==0?([ne.value]=b,j.value=!1):v>b[1]?([,ne.value]=b,j.value=!1):([,ne.value]=b,j.value=!0):(ne.value=0,j.value=!0)}),bt(D,async m=>{var v;if(!m)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 m;(m=n.edit)!=null&&m.objectId&&(i.value=n.edit.orig),jt(()=>i.value,v=>{const{highlighter:b,texRenderer:k}=s.value;Q.value=v,ve.value=lh(v,{emojiMap:A.value.map,highlighter:b,texRenderer:k}),U.value=ch(v),v?zo(c.value):zo.destroy(c.value)}),jt(()=>s.value.emoji,async v=>{A.value=await cf(v)})}),(m,v)=>{var b,k;return T(),M("div",{key:B(o).token,class:"wl-comment"},[B(s).login!=="disable"&&xt.value&&!((b=e.edit)!=null&&b.objectId)?(T(),M("div",Gh,[O("div",Zh,[O("button",{type:"submit",class:"wl-logout-btn",title:ue.value.logout,onClick:jr},[se(B(Eo),{size:14})],8,Yh),O("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:ue.value.profile,onClick:Ct},[O("img",{src:B(o).avatar,alt:"avatar"},null,8,Jh)],8,Qh)]),O("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:ue.value.profile,onClick:Ct,textContent:J(B(o).display_name)},null,8,Xh)])):K("v-if",!0),O("div",ep,[B(s).login!=="force"&&B(s).meta.length&&!xt.value?(T(),M("div",{key:0,class:ye(["wl-header",`item${B(s).meta.length}`])},[(T(!0),M(ce,null,ze(B(s).meta,x=>(T(),M("div",{key:x,class:"wl-header-item"},[O("label",{for:`wl-${x}`,textContent:J(ue.value[x]+(B(s).requiredMeta.includes(x)||!B(s).requiredMeta.length?"":`(${ue.value.optional})`))},null,8,tp),cr(O("input",{id:`wl-${x}`,ref_for:!0,ref:S=>{S&&(a.value[x]=S)},"onUpdate:modelValue":S=>B(l)[x]=S,class:ye(["wl-input",`wl-${x}`]),name:x,type:x==="mail"?"email":"text"},null,10,np),[[Iu,B(l)[x]]])]))),128))],2)):K("v-if",!0),cr(O("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":v[0]||(v[0]=x=>be(i)?i.value=x:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:ue.value.placeholder,onKeydown:Je,onDrop:Ps,onPaste:Os},null,40,rp),[[bs,B(i)]]),cr(O("div",sp,[v[7]||(v[7]=O("hr",null,null,-1)),O("h4",null,J(ue.value.preview)+":",1),O("div",{class:"wl-content",innerHTML:ve.value},null,8,ip)],512),[[El,me.value]]),O("div",lp,[O("div",op,[O("a",ap,[se(B(mh))]),cr(O("button",{ref:"emoji-button",type:"button",class:ye(["wl-action",{active:I.value}]),title:ue.value.emoji,onClick:v[1]||(v[1]=x=>I.value=!I.value)},[se(B(hh))],10,cp),[[El,A.value.tabs.length]]),B(s).search?(T(),M("button",{key:0,ref:"gif-button",type:"button",class:ye(["wl-action",{active:D.value}]),title:ue.value.gif,onClick:v[2]||(v[2]=x=>D.value=!D.value)},[se(B(kh))],10,up)):K("v-if",!0),O("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Nt},null,544),Ht.value?(T(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:ue.value.uploadImage,"aria-label":ue.value.uploadImage},[se(B(ph))],8,fp)):K("v-if",!0),O("button",{type:"button",class:ye(["wl-action",{active:me.value}]),title:ue.value.preview,onClick:v[3]||(v[3]=x=>me.value=!me.value)},[se(B(gh))],10,hp)]),O("div",pp,[v[9]||(v[9]=O("div",{class:"wl-captcha-container"},null,-1)),O("div",dp,[it(J(U.value)+" ",1),B(s).wordLimit?(T(),M("span",gp,[v[8]||(v[8]=it(" / ",-1)),O("span",{class:ye({illegal:!j.value}),textContent:J(ne.value)},null,10,mp)])):K("v-if",!0),it(" "+J(ue.value.word),1)]),B(s).login!=="disable"&&!xt.value?(T(),M("button",{key:0,type:"button",class:"wl-btn",onClick:zn,textContent:J(ue.value.login)},null,8,vp)):K("v-if",!0),B(s).login!=="force"||xt.value?(T(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:G.value,onClick:Bt},[G.value?(T(),Ke(B(Pn),{key:0,size:16})):(T(),M(ce,{key:1},[it(J(ue.value.submit),1)],64))],8,bp)):K("v-if",!0)]),O("div",{ref:"gif-popup",class:ye(["wl-gif-popup",{display:D.value}])},[O("input",{ref:"gif-search",type:"text",placeholder:ue.value.gifSearchPlaceholder,onInput:v[4]||(v[4]=(...x)=>B(g)&&B(g)(...x))},null,40,yp),H.list.length?(T(),Ke(Kh,{key:0,items:H.list,"column-width":200,gap:6,onInsert:v[5]||(v[5]=x=>_t(x)),onScroll:h},null,8,["items"])):K("v-if",!0),H.loading?(T(),M("div",wp,[se(B(Pn),{size:30})])):K("v-if",!0)],2),O("div",{ref:"emoji-popup",class:ye(["wl-emoji-popup",{display:I.value}])},[(T(!0),M(ce,null,ze(A.value.tabs,(x,S)=>(T(),M(ce,{key:x.name},[S===_.value?(T(),M("div",{key:0,class:"wl-tab-wrapper",onScroll:ge},[(T(!0),M(ce,null,ze(x.items,$=>(T(),M("button",{key:$,type:"button",title:$,onClick:C=>_t(`:${$}:`),onMouseenter:C=>de(C,$),onMouseleave:ge},[I.value?(T(),M("img",{key:0,class:"wl-emoji",src:A.value.map[$],alt:$,loading:"lazy",referrerPolicy:"no-referrer"},null,8,xp)):K("v-if",!0)],40,kp))),128))],32)):K("v-if",!0)],64))),128)),O("div",null,[z.value?(T(),M("img",{key:0,class:"wl-emoji-preview",src:A.value.map[z.value],alt:"preview",loading:"lazy",referrerPolicy:"no-referrer",style:Zt(R.value)},null,12,_p)):K("v-if",!0)]),A.value.tabs.length>1?(T(),M("div",Cp,[(T(!0),M(ce,null,ze(A.value.tabs,(x,S)=>(T(),M("button",{key:x.name,type:"button",class:ye(["wl-tab",{active:_.value===S}]),onClick:$=>_.value=S},[O("img",{class:"wl-emoji",src:x.icon,alt:x.name,title:x.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Sp)],10,$p))),128))])):K("v-if",!0)],2)])]),e.replyId||(k=e.edit)!=null&&k.objectId?(T(),M("button",{key:1,type:"button",class:"wl-close",title:ue.value.cancelReply,onClick:v[6]||(v[6]=x=>e.replyId?r("cancelReply"):r("cancelEdit"))},[se(B(Eo),{size:24})],8,Rp)):K("v-if",!0)])}}});const Ap=["id"],Ep={class:"wl-user","aria-hidden":"true"},Tp=["src"],Lp={class:"wl-card"},Ip={class:"wl-head"},Mp=["href"],Pp={key:1,class:"wl-nick"},Op=["textContent"],jp=["textContent"],zp=["textContent"],Fp=["textContent"],Dp={class:"wl-comment-actions"},Up=["title"],Hp=["title"],Np={class:"wl-meta","aria-hidden":"true"},Bp=["data-value","textContent"],Vp={key:0,class:"wl-warning","aria-hidden":"true"},Wp={key:1,class:"wl-content"},qp={key:0},Kp=["href"],Gp=["innerHTML"],Zp={key:2,class:"wl-admin-actions"},Yp={class:"wl-comment-status"},Qp=["disabled","onClick","textContent"],Jp={key:4,class:"wl-quote"};var Xp=Pt({__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=To(),l=tf(),o=Pr(),a=he(()=>s.value.locale),c=he(()=>{const{link:A}=e.comment;return A?fi(A)?A:`https://${A}`:""}),u=he(()=>i.value.includes(e.comment.objectId)),f=he(()=>ga(new Date(e.comment.time),l.value,a.value)),d=he(()=>o.value.type==="administrator"),p=he(()=>e.comment.user_id&&o.value.objectId===e.comment.user_id),w=he(()=>{var A;return e.comment.objectId===((A=e.reply)==null?void 0:A.objectId)}),y=he(()=>{var A;return e.comment.objectId===((A=e.edit)==null?void 0:A.objectId)});return(A,_)=>{var I;const z=$c("CommentCard",!0);return T(),M("div",{id:e.comment.objectId.toString(),class:"wl-card-item"},[O("div",Ep,[e.comment.avatar?(T(),M("img",{key:0,class:"wl-user-avatar",src:e.comment.avatar,alt:""},null,8,Tp)):K("v-if",!0),e.comment.type==="guest"?(T(),Ke(B(yh),{key:1})):K("v-if",!0),e.comment.type==="administrator"?(T(),Ke(B(wh),{key:2})):K("v-if",!0)]),O("div",Lp,[O("div",Ip,[c.value?(T(),M("a",{key:0,class:"wl-nick",href:c.value,target:"_blank",rel:"nofollow noopener noreferrer"},J(e.comment.nick),9,Mp)):(T(),M("span",Pp,J(e.comment.nick),1)),e.comment.label?(T(),M("span",{key:2,class:"wl-badge",textContent:J(e.comment.label)},null,8,Op)):K("v-if",!0),e.comment.sticky?(T(),M("span",{key:3,class:"wl-badge",textContent:J(a.value.sticky)},null,8,jp)):K("v-if",!0),typeof e.comment.level=="number"?(T(),M("span",{key:4,class:ye(`wl-badge level${e.comment.level}`),textContent:J(a.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,zp)):K("v-if",!0),O("span",{class:"wl-time",textContent:J(f.value)},null,8,Fp),O("div",Dp,[d.value||p.value?(T(),M(ce,{key:0},[O("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=R=>n("edit",e.comment))},[se(B(bh))]),O("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=R=>n("delete",e.comment))},[se(B(fh))])],64)):K("v-if",!0),O("button",{type:"button",class:"wl-like",title:u.value?a.value.cancelLike:a.value.like,onClick:_[2]||(_[2]=R=>n("like",e.comment))},[se(B(dh),{active:u.value},null,8,["active"]),it(" "+J("like"in e.comment?e.comment.like:""),1)],8,Up),O("button",{type:"button",class:ye(["wl-reply",{active:w.value}]),title:w.value?a.value.cancelReply:a.value.reply,onClick:_[3]||(_[3]=R=>n("reply",w.value?null:e.comment))},[se(B(vh))],10,Hp)])]),O("div",Np,[(T(),M(ce,null,ze(["addr","browser","os"],R=>(T(),M(ce,null,[e.comment[R]?(T(),M("span",{key:R,class:ye(`wl-${R}`),"data-value":e.comment[R],textContent:J(e.comment[R])},null,10,Bp)):K("v-if",!0)],64))),64))]),e.comment.status==="waiting"&&!d.value?(T(),M("div",Vp,J(a.value.commentUnderReview),1)):K("v-if",!0),y.value?K("v-if",!0):(T(),M("div",Wp,["reply_user"in e.comment&&e.comment.reply_user?(T(),M("p",qp,[O("a",{href:"#"+e.comment.pid},"@"+J(e.comment.reply_user.nick),9,Kp),_[17]||(_[17]=O("span",null,": ",-1))])):K("v-if",!0),O("div",{innerHTML:e.comment.comment},null,8,Gp)])),d.value&&!y.value?(T(),M("div",Zp,[O("span",Yp,[(T(),M(ce,null,ze(r,R=>O("button",{key:R,type:"submit",class:ye(`wl-btn wl-${R}`),disabled:e.comment.status===R,onClick:F=>n("status",{status:R,comment:e.comment}),textContent:J(a.value[R])},null,10,Qp)),64))]),d.value&&!("rid"in e.comment)?(T(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=R=>n("sticky",e.comment))},J(e.comment.sticky?a.value.unsticky:a.value.sticky),1)):K("v-if",!0)])):K("v-if",!0),w.value||y.value?(T(),M("div",{key:3,class:ye({"wl-reply-wrapper":w.value,"wl-edit-wrapper":y.value})},[se(Fo,{edit:e.edit,"reply-id":(I=e.reply)==null?void 0:I.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:_[5]||(_[5]=R=>n("log")),onCancelReply:_[6]||(_[6]=R=>n("reply",null)),onCancelEdit:_[7]||(_[7]=R=>n("edit",null)),onSubmit:_[8]||(_[8]=R=>n("submit",R))},null,8,["edit","reply-id","reply-user","root-id"])],2)):K("v-if",!0),"children"in e.comment?(T(),M("div",Jp,[(T(!0),M(ce,null,ze(e.comment.children,R=>(T(),Ke(z,{key:R.objectId,comment:R,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:_[9]||(_[9]=F=>n("log")),onDelete:_[10]||(_[10]=F=>n("delete",F)),onEdit:_[11]||(_[11]=F=>n("edit",F)),onLike:_[12]||(_[12]=F=>n("like",F)),onReply:_[13]||(_[13]=F=>n("reply",F)),onStatus:_[14]||(_[14]=F=>n("status",F)),onSticky:_[15]||(_[15]=F=>n("sticky",F)),onSubmit:_[16]||(_[16]=F=>n("submit",F))},null,8,["comment","reply","edit","root-id"]))),128))])):K("v-if",!0)])],8,Ap)}}});const Do="3.10.0",ed={"data-waline":""},td={class:"wl-meta-head"},nd={class:"wl-count"},rd=["textContent"],sd={class:"wl-sort"},id=["onClick"],ld={class:"wl-cards"},od={key:1,class:"wl-operation"},ad=["textContent"],cd={key:2,class:"wl-loading"},ud=["textContent"],fd={key:4,class:"wl-operation"},hd=["textContent"],pd={key:5,class:"wl-power"};var dd=Pt({__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=To(),s=q("loading"),i=q(0),l=q(1),o=q(0),a=he(()=>ha(t)),c=q(a.value.commentSorting),u=q([]),f=q(null),d=q(null),p=he(()=>pa(a.value.dark)),w=he(()=>a.value.locale);sf(p,{id:"waline-darkmode"});let y=null;const A=U=>{const{serverURL:H,path:ne,pageSize:j}=a.value,Q=new AbortController;s.value="loading",y==null||y(),Ds({serverURL:H,lang:a.value.lang,path:ne,pageSize:j,sortBy:ai[c.value],page:U,signal:Q.signal,token:n.value.token}).then(G=>{s.value="success",i.value=G.count,u.value.push(...G.data),l.value=U,o.value=G.totalPages}).catch(G=>{G.name!=="AbortError"&&(console.error(G.message),s.value="error")}),y=Q.abort.bind(Q)},_=()=>{A(l.value+1)},I=()=>{i.value=0,u.value=[],A(1)},z=U=>{c.value!==U&&(c.value=U,I())},R=U=>{f.value=U},F=U=>{d.value=U},de=U=>{if(d.value)d.value.comment=U.comment,d.value.orig=U.orig;else if("rid"in U){const H=u.value.find(({objectId:ne})=>ne===U.rid);if(!H)return;Array.isArray(H.children)||(H.children=[]),H.children.push(U)}else u.value.unshift(U),i.value+=1},ge=async({comment:U,status:H})=>{if(U.status===H)return;const{serverURL:ne,lang:j}=a.value;await cn({serverURL:ne,lang:j,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:ne}=a.value;await cn({serverURL:H,lang:ne,token:n.value.token,objectId:U.objectId,comment:{sticky:U.sticky?0:1}}),U.sticky=!U.sticky},me=async({objectId:U})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:H,lang:ne}=a.value;await Hs({serverURL:H,lang:ne,token:n.value.token,objectId:U}),u.value.some((j,Q)=>j.objectId===U?(u.value=u.value.filter((G,Ve)=>Ve!==Q),!0):j.children.some((G,Ve)=>G.objectId===U?(u.value[Q].children=j.children.filter((ue,xt)=>xt!==Ve),!0):!1))},ve=async U=>{const{serverURL:H,lang:ne}=a.value,{objectId:j}=U,Q=r.value.includes(j);await cn({serverURL:H,lang:ne,objectId:j,token:n.value.token,comment:{like:!Q}}),Q?r.value=r.value.filter(G=>G!==j):(r.value=[...r.value,j],r.value.length>50&&(r.value=r.value.slice(-50))),U.like=Math.max(0,(U.like||0)+(Q?-1:1))};return dc(Nn,a),tn(()=>{jt(()=>[t.serverURL,t.path],()=>{I()})}),rs(()=>{y==null||y()}),(U,H)=>(T(),M("div",ed,[se(Nh),!f.value&&!d.value?(T(),Ke(Fo,{key:0,onLog:I,onSubmit:de})):K("v-if",!0),O("div",td,[O("div",nd,[i.value?(T(),M("span",{key:0,class:"wl-num",textContent:J(i.value)},null,8,rd)):K("v-if",!0),it(" "+J(w.value.comment),1)]),O("ul",sd,[(T(!0),M(ce,null,ze(B(ua),ne=>(T(),M("li",{key:ne,class:ye([ne===c.value?"active":""]),onClick:j=>z(ne)},J(w.value[ne]),11,id))),128))])]),O("div",ld,[(T(!0),M(ce,null,ze(u.value,ne=>(T(),Ke(Xp,{key:ne.objectId,"root-id":ne.objectId,comment:ne,reply:f.value,edit:d.value,onLog:I,onReply:R,onEdit:F,onSubmit:de,onStatus:ge,onDelete:me,onSticky:D,onLike:ve},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(T(),M("div",od,[O("button",{type:"button",class:"wl-btn",onClick:I,textContent:J(w.value.refresh)},null,8,ad)])):s.value==="loading"?(T(),M("div",cd,[se(B(Pn),{size:30})])):u.value.length?l.value<o.value?(T(),M("div",fd,[O("button",{type:"button",class:"wl-btn",onClick:_,textContent:J(w.value.more)},null,8,hd)])):K("v-if",!0):(T(),M("div",{key:3,class:"wl-empty",textContent:J(w.value.sofa)},null,8,ud)),a.value.noCopyright?K("v-if",!0):(T(),M("div",pd,[H[0]||(H[0]=it(" Powered by ",-1)),H[1]||(H[1]=O("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),it(" v"+J(B(Do)),1)]))]))}});const Uo=(e,t)=>{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.textContent=s.toString())})},Ho=({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=>{Uo(u,c)}).catch(Xl);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=>{Uo(f,c)}),u.length>0&&a(u)}else a(l);return i.abort.bind(i)},gd=({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&&Ao({serverURL:l.serverURL,path:o.path,...Wt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&Ho({serverURL:l.serverURL,path:o.path,...Wt(o.pageview)?{selector:o.pageview}:{}})};let u=null;i&&(u=Vl(()=>N(dd,{path:o.path,...l})),u.mount(i));const f=Yi(a),d=Yi(c);return{el:i,update:({comment:p,pageview:w,path:y=window.location.pathname,...A}={})=>{Object.entries(A).forEach(([_,I])=>{l[_]=I}),o.path=y,p!=null&&(o.comment=p),w!=null&&(o.pageview=w)},destroy:()=>{u==null||u.unmount(),f(),d()}}},md=({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()}})},vd=({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=""}}})},No=Lo(),bd=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:[1,2,3,4,5].map((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}),yd="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",Vo=Pt({name:"WalineStarDisplay",props:{score:{type:Number,default:0}},setup(e){const t=he(()=>Ms(e.score));return()=>[1,2,3,4,5].map((n,r)=>N("span",{key:r,class:"wl-star-item"},[N("svg",{class:"wl-star-icon",viewBox:"0 0 24 24"},[N("path",{class:[t.value>=n?"wl-star-solid":"wl-star-outline"],d:yd})])]))}}),wd=Pt({name:"WalineStarWidget",props:{path:{type:String,default:""},serverURL:{type:String,default:""},lang:{type:String,default:""}},emits:["rate"],setup(e,{emit:t}){const n=q(null),r=q(Ms(No.value[e.path]??0)),s=q(null),i=q(Bo([]));tn(()=>{jt(()=>[e.serverURL,e.path],async()=>{const p=await bd({serverURL:e.serverURL,path:e.path,lang:e.lang});i.value=Bo(p.value)})});const l=he(()=>s.value??r.value),o=he(()=>i.value.reduce((p,w)=>p+w,0)),a=he(()=>i.value.map(p=>o.value?p/o.value:0)),c=p=>{if(!n.value)return 0;const{firstElementChild:w,lastElementChild:y}=n.value;if(!w||!y)return 0;const{left:A}=w.getBoundingClientRect(),{right:_}=y.getBoundingClientRect(),I=_-A,z=(p.clientX-A)/I,R=Math.min(1,Math.max(0,z))*5;return Ms(R)},u=p=>{s.value=c(p)},f=()=>{s.value=null},d=async p=>{const w=s.value??c(p),y={serverURL:e.serverURL,lang:e.lang,path:e.path};r.value&&await Vt({...y,type:`reaction${r.value}`,action:"desc"}),r.value=w,No.value[e.path]=w,await Vt({serverURL:e.serverURL,lang:e.lang,path:e.path,type:`reaction${w}`,action:"inc"}),t("rate",w)};return()=>N("div",{class:"wl-star"},[N("div",{ref:n,class:["wl-star-rate"],onMousemove:u,onMouseleave:f,onClick:d},[N(Vo,{score:l.value})]),N("div",{class:"wl-star-score"},[5,4,3,2,1].map(p=>{const w=i.value[p-1]??0,y=`${((a.value[p-1]??0)*100).toFixed(1)}%`;return N("div",{key:p,class:"wl-star-row"},[N("div",{class:["wl-star-rate"]},[N(Vo,{score:p})]),N("div",{class:"wl-star-progress"},[N("div",{class:"wl-star-progress-bar",style:{width:y},"data-count":w.toString()})]),N("span",{class:"wl-star-percent"},y)])}))])}}),kd=({el:e,path:t,lang:n,serverURL:r,onRate:s})=>{const i=Rr(e);if(!i)return{destroy:()=>{}};const l=Vl(wd,{path:t,lang:n,serverURL:r,onRate:s});return l.mount(i),{destroy:()=>{l.unmount(),i.innerHTML=""}}};ee.RecentComments=md,ee.Star=kd,ee.UserList=vd,ee.addComment=Us,ee.commentCount=Ao,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=gd,ee.login=Bs,ee.pageviewCount=Ho,ee.updateArticleCounter=Vt,ee.updateComment=cn,ee.updatePageview=Ws,ee.version=Do}));
|
|
89
88
|
//# sourceMappingURL=waline.umd.js.map
|