@waline/client 3.7.1 → 3.9.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 -11
- 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 +8 -5
- package/dist/slim.js +12 -11
- 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 +8 -5
- package/dist/waline.js +68 -68
- package/dist/waline.js.map +1 -1
- package/dist/waline.umd.js +69 -69
- package/dist/waline.umd.js.map +1 -1
- package/package.json +35 -35
package/dist/waline.js
CHANGED
|
@@ -1,88 +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?"]),
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*
|
|
1
|
+
var Uo=Object.defineProperty;var Vo=(e,t,n)=>t in e?Uo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Or=(e,t,n)=>Vo(e,typeof t!="symbol"?t+"":t,n);var Ir;const Hs={"Content-Type":"application/json"},Qe=e=>`${e.replace(/\/?$/,"/")}api/`,St=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},jr=({serverURL:e,lang:t,paths:n,type:r,signal:s})=>fetch(`${Qe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>St(i,"Get counter").data),Fn=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${Qe(e)}article?lang=${t}`,{method:"POST",headers:Hs,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>St(i,"Update counter").data),Ns=({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(`${Qe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>St(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(`${Qe(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},Vs=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Qe(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>St(s,"Delete comment")),on=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${Qe(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Hs,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>St(i,"Update comment")),Bs=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Qe(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>St(s,"Get comment count").data),Ws=({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)})},qs=({serverURL:e,lang:t,paths:n,signal:r})=>jr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Ks=e=>Fn({...e,type:"time",action:"inc"}),Gs=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${Qe(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(l=>l.json())},Zs=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Qe(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>St(s,"user list")).then(s=>s.data),Bo=new Set(["nick","mail","link"]),Ys=e=>e.filter(t=>Bo.has(t)),Qs=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Wo=["//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)}),Ko=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Go=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()})}},Zo=/[\u4E00-\u9FFF\u3400-\u4DBF\uF900-\uFAFF\u3040-\u309F\uAC00-\uD7AF\u0400-\u04FF]+|\w+/,Yo=/</,Qo=/(?:^|\s)\/\/(.+?)$/gm,Jo=/\/\*([\S\s]*?)\*\//gm,Xo=new RegExp(`(${Zo.source}|${Yo.source})|((?:${Qo.source})|(?:${Jo.source}))`,"gmi"),Js=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],zr={},ea=e=>{let t=0;return e.replace(Xo,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"<";let i;zr[r]?i=zr[r]:(i=Js[t],zr[r]=i);const l=`<span style="color: #${i}">${r}</span>`;return t=++t%Js.length,l})},ta=["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"],De=e=>Object.fromEntries(e.map((t,n)=>[ta[n],t]));var na=De(["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."]),Xs=De(["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."]),ei=De(["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."]),ti=De(["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."]),ni=De(["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."]),ri=De(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
|
6
|
+
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?","あなたのコメントは審査中で、現在はあなただけに表示されています。承認後に公開されます。"]),ra=De(["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."]),si=De(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
|
8
|
+
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?","Ваш комментарий находится на рассмотрении и в настоящее время виден только вам. После одобрения он станет общедоступным."]),ii=De(["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."]),li=De(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
|
10
|
+
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?","评论正在审核中,当前仅自己可见,审核通过后公开可见。"]),sa=De(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
|
11
|
+
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?","您的評論正在審核中,目前僅您可見。審核通過後將公開顯示。"]);const oi="en-US",Dn={zh:li,"zh-cn":li,"zh-tw":sa,en:Xs,"en-us":Xs,fr:ti,"fr-fr":ti,it:ni,"it-it":ni,jp:ri,"jp-jp":ri,"pt-br":ra,ru:si,"ru-ru":si,vi:ii,"vi-vn":ii,de:na,es:ei,"es-mx":ei},ai=e=>Dn[e.toLowerCase()]??Dn[oi.toLowerCase()],ci=e=>Object.keys(Dn).includes(e.toLowerCase())?e:oi,ui={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},ia=Object.keys(ui),Hn=Symbol("waline-config"),fi=e=>{try{return decodeURI(e)}catch{return e}},hi=(e="")=>e.replace(/\/$/u,""),pi=e=>/^(https?:)?\/\//.test(e),Nn=e=>{const t=hi(e);return pi(t)?t:`https://${t}`},la=e=>Array.isArray(e)?e:typeof e=="number"?[0,e]:!1,an=(e,t)=>e==null||e===!0?t:e===!1?null:e,oa=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:s=["nick","mail","link"],requiredMeta:i=[],dark:l=!1,pageSize:o=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:p="",commentSorting:v="latest",emoji:x=Qs,imageUploader:y,highlighter:A,texRenderer:S,search:I,reaction:z,...R})=>({serverURL:Nn(e),path:fi(t),lang:ci(n),locale:{...ai(ci(n)),...typeof r=="object"?r:{}},wordLimit:la(a),meta:Ys(s),requiredMeta:Ys(i),dark:l,pageSize:o,commentSorting:v,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:p,...R,reaction:z===!0?Wo:z||null,imageUploader:an(y,qo),highlighter:an(A,ea),texRenderer:an(S,Ko),emoji:an(x,Qs),search:an(I,Go(n))}),Nt=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}",aa=e=>Nt(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},ca=e=>{const t=Dr(e.getDate(),2),n=Dr(e.getMonth()+1,2);return`${Dr(e.getFullYear(),2)}-${n}-${t}`},ua=(e,t,n)=>{if(!e)return"";const r=Nt(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}`:ca(r)},fa=/^[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])?)*$/,ha=e=>fa.test(e);/**
|
|
12
|
+
* @vue/shared v3.5.28
|
|
12
13
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
14
|
* @license MIT
|
|
14
|
-
**/function
|
|
15
|
-
* @vue/reactivity v3.5.
|
|
15
|
+
**/function Hr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const fe={},Ut=[],Rt=()=>{},di=()=>!1,Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Nr=e=>e.startsWith("onUpdate:"),Ae=Object.assign,gi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},pa=Object.prototype.hasOwnProperty,ie=(e,t)=>pa.call(e,t),B=Array.isArray,Vt=e=>cn(e)==="[object Map]",Bt=e=>cn(e)==="[object Set]",mi=e=>cn(e)==="[object Date]",te=e=>typeof e=="function",be=e=>typeof e=="string",Be=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",vi=e=>(oe(e)||te(e))&&te(e.then)&&te(e.catch),bi=Object.prototype.toString,cn=e=>bi.call(e),da=e=>cn(e).slice(8,-1),yi=e=>cn(e)==="[object Object]",Vn=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,un=Hr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ga=/-\w/g,Oe=Bn(e=>e.replace(ga,t=>t.slice(1).toUpperCase())),ma=/\B([A-Z])/g,At=Bn(e=>e.replace(ma,"-$1").toLowerCase()),Wn=Bn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ur=Bn(e=>e?`on${Wn(e)}`:""),pt=(e,t)=>!Object.is(e,t),qn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},wi=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ki;const fn=()=>ki||(ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Wt(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=be(r)?wa(r):Wt(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(be(e)||oe(e))return e}const va=/;(?![^(]*\))/g,ba=/:([^]+)/,ya=/\/\*[^]*?\*\//g;function wa(e){const t={};return e.replace(ya,"").split(va).forEach(n=>{if(n){const r=n.split(ba);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(be(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ka="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",xa=Hr(ka);function xi(e){return!!e||e===""}function _a(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=dt(e[r],t[r]);return n}function dt(e,t){if(e===t)return!0;let n=mi(e),r=mi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Be(e),r=Be(t),n||r)return e===t;if(n=B(e),r=B(t),n||r)return n&&r?_a(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||!dt(e[l],t[l]))return!1}}return String(e)===String(t)}function Vr(e,t){return e.findIndex(n=>dt(n,t))}const _i=e=>!!(e&&e.__v_isRef===!0),Q=e=>be(e)?e:e==null?"":B(e)||oe(e)&&(e.toString===bi||!te(e.toString))?_i(e)?Q(e.value):JSON.stringify(e,Ci,2):String(e),Ci=(e,t)=>_i(t)?Ci(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[Br(r,i)+" =>"]=s,n),{})}:Bt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Br(n))}:Be(t)?Br(t):oe(t)&&!B(t)&&!yi(t)?String(t):t,Br=(e,t="")=>{var n;return Be(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
16
|
+
* @vue/reactivity v3.5.28
|
|
16
17
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
18
|
* @license MIT
|
|
18
|
-
**/let _e;class ma{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=_e,!t&&_e&&(this.index=(_e.scopes||(_e.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=_e;try{return _e=this,t()}finally{_e=n}}}on(){++this._on===1&&(this.prevScope=_e,_e=this)}off(){this._on>0&&--this._on===0&&(_e=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 _e}function va(e,t=!1){_e&&_e.cleanups.push(e)}let he;const Br=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,_e&&_e.active&&_e.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||Si(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Li(this),Ri(this);const t=he,n=Ne;he=this,Ne=!0;try{return this.fn()}finally{Ai(this),he=t,Ne=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,Li(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 $i=0,cn,un;function Si(e,t=!1){if(e.flags|=8,t){e.next=un,un=e;return}e.next=cn,cn=e}function Wr(){$i++}function qr(){if(--$i>0)return;if(un){let t=un;for(un=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;cn;){let t=cn;for(cn=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),Gr(r),ba(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&&(Ti(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ti(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===fn)||(e.globalVersion=fn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Kr(e))))return;e.flags|=2;const t=e.dep,n=he,r=Ne;he=e,Ne=!0;try{Ri(e);const s=e.fn(e._value);(t.version===0||ft(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{he=n,Ne=r,Ai(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 ba(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 Ei=[];function ht(){Ei.push(Ne),Ne=!1}function pt(){const e=Ei.pop();Ne=e===void 0?!0:e}function Li(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let fn=0;class ya{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 Gn{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(!he||!Ne||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new ya(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.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=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=r)}return n}trigger(t){this.version++,fn++,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 Zn=new WeakMap,Rt=Symbol(""),Zr=Symbol(""),hn=Symbol("");function Ce(e,t,n){if(Ne&&he){let r=Zn.get(e);r||Zn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Gn),s.map=r,s.key=n),s.track()}}function tt(e,t,n,r,s,i){const o=Zn.get(e);if(!o){fn++;return}const l=a=>{a&&a.trigger()};if(Wr(),t==="clear")o.forEach(l);else{const a=Z(e),c=a&&Hr(n);if(a&&n==="length"){const u=Number(r);o.forEach((f,p)=>{(p==="length"||p===hn||!We(p)&&p>=u)&&l(f)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),c&&l(o.get(hn)),t){case"add":a?c&&l(o.get("length")):(l(o.get(Rt)),Ht(e)&&l(o.get(Zr)));break;case"delete":a||(l(o.get(Rt)),Ht(e)&&l(o.get(Zr)));break;case"set":Ht(e)&&l(o.get(Rt));break}}qr()}function wa(e,t){const n=Zn.get(e);return n&&n.get(t)}function Nt(e){const t=ne(e);return t===e?t:(Ce(t,"iterate",hn),Fe(e)?t:t.map(xe))}function Jn(e){return Ce(e=ne(e),"iterate",hn),e}const ka={__proto__:null,[Symbol.iterator](){return Jr(this,Symbol.iterator,xe)},concat(...e){return Nt(this).concat(...e.map(t=>Z(t)?Nt(t):t))},entries(){return Jr(this,"entries",e=>(e[1]=xe(e[1]),e))},every(e,t){return nt(this,"every",e,t,void 0,arguments)},filter(e,t){return nt(this,"filter",e,t,n=>n.map(xe),arguments)},find(e,t){return nt(this,"find",e,t,xe,arguments)},findIndex(e,t){return nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nt(this,"findLast",e,t,xe,arguments)},findLastIndex(e,t){return nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nt(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 nt(this,"map",e,t,void 0,arguments)},pop(){return pn(this,"pop")},push(...e){return pn(this,"push",e)},reduce(e,...t){return Mi(this,"reduce",e,t)},reduceRight(e,...t){return Mi(this,"reduceRight",e,t)},shift(){return pn(this,"shift")},some(e,t){return nt(this,"some",e,t,void 0,arguments)},splice(...e){return pn(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 pn(this,"unshift",e)},values(){return Jr(this,"values",xe)}};function Jr(e,t,n){const r=Jn(e),s=r[t]();return r!==e&&!Fe(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const xa=Array.prototype;function nt(e,t,n,r,s,i){const o=Jn(e),l=o!==e&&!Fe(e),a=o[t];if(a!==xa[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 Mi(e,t,n,r){const s=Jn(e);let i=n;return s!==e&&(Fe(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);Ce(r,"iterate",hn);const s=r[t](...n);return(s===-1||s===!1)&&Qr(n[0])?(n[0]=ne(n[0]),r[t](...n)):s}function pn(e,t,n=[]){ht(),Wr();const r=ne(e)[t].apply(e,n);return qr(),pt(),r}const _a=Fr("__proto__,__v_isRef,__isVue"),Pi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We));function Ca(e){We(e)||(e=String(e));const t=ne(this);return Ce(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?Ui:Hi:i?Di:Fi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=Z(t);if(!s){let a;if(o&&(a=ka[n]))return a;if(n==="hasOwnProperty")return Ca}const l=Reflect.get(t,n,ye(t)?t:r);if((We(n)?Pi.has(n):_a(n))||(s||Ce(t,"get",n),i))return l;if(ye(l)){const a=o&&Hr(n)?l:l.value;return s&&de(a)?At(a):a}return de(l)?s?At(l):dn(l):l}}class ji extends Oi{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=dt(i);if(!Fe(r)&&!dt(r)&&(i=ne(i),r=ne(r)),!Z(t)&&ye(i)&&!ye(r))return a||(i.value=r),!0}const o=Z(t)&&Hr(n)?Number(n)<t.length:se(t,n),l=Reflect.set(t,n,r,ye(t)?t:s);return t===ne(s)&&(o?ft(r,i)&&tt(t,"set",n,r):tt(t,"add",n,r)),l}deleteProperty(t,n){const r=se(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&tt(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!We(n)||!Pi.has(n))&&Ce(t,"has",n),r}ownKeys(t){return Ce(t,"iterate",Z(t)?"length":Rt),Reflect.ownKeys(t)}}class zi extends Oi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const $a=new ji,Sa=new zi,Ra=new ji(!0),Aa=new zi(!0),Xr=e=>e,Yn=e=>Reflect.getPrototypeOf(e);function Ta(e,t,n){return function(...r){const s=this.__v_raw,i=ne(s),o=Ht(i),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,c=s[e](...r),u=n?Xr:t?tr:xe;return!t&&Ce(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 Xn(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||(ft(s,l)&&Ce(o,"get",s),Ce(o,"get",l));const{has:a}=Yn(o),c=t?Xr:e?tr: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&&Ce(ne(s),"iterate",Rt),s.size},has(s){const i=this.__v_raw,o=ne(i),l=ne(s);return e||(ft(s,l)&&Ce(o,"has",s),Ce(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?tr:xe;return!e&&Ce(a,"iterate",Rt),l.forEach((u,f)=>s.call(i,c(u),c(f),o))}};return je(n,e?{add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear")}:{add(s){!t&&!Fe(s)&&!dt(s)&&(s=ne(s));const i=ne(this);return Yn(i).has.call(i,s)||(i.add(s),tt(i,"add",s,s)),this},set(s,i){!t&&!Fe(i)&&!dt(i)&&(i=ne(i));const o=ne(this),{has:l,get:a}=Yn(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?ft(i,u)&&tt(o,"set",s,i):tt(o,"add",s,i),this},delete(s){const i=ne(this),{has:o,get:l}=Yn(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&&tt(i,"delete",s,void 0),c},clear(){const s=ne(this),i=s.size!==0,o=s.clear();return i&&tt(s,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Ta(s,e,t)}),n}function Qn(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(se(n,s)&&s in r?n:r,s,i)}const La={get:Qn(!1,!1)},Ia={get:Qn(!1,!0)},Ma={get:Qn(!0,!1)},Pa={get:Qn(!0,!0)},Fi=new WeakMap,Di=new WeakMap,Hi=new WeakMap,Ui=new WeakMap;function Oa(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:Oa(la(e))}function dn(e){return dt(e)?e:er(e,!1,$a,La,Fi)}function za(e){return er(e,!1,Ra,Ia,Di)}function At(e){return er(e,!0,Sa,Ma,Hi)}function Fa(e){return er(e,!0,Aa,Pa,Ui)}function er(e,t,n,r,s){if(!de(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 dt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function dt(e){return!!(e&&e.__v_isReadonly)}function Fe(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 Da(e){return!se(e,"__v_skip")&&Object.isExtensible(e)&&bi(e,"__v_skip",!0),e}const xe=e=>de(e)?dn(e):e,tr=e=>de(e)?At(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function ae(e){return Ni(e,!1)}function Tt(e){return Ni(e,!0)}function Ni(e,t){return ye(e)?e:new Ha(e,t)}class Ha{constructor(t,n){this.dep=new Gn,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||Fe(t)||dt(t);t=r?t:ne(t),ft(t,n)&&(this._rawValue=t,this._value=r?t:xe(t),this.dep.trigger())}}function K(e){return ye(e)?e.value:e}function Ee(e){return ie(e)?e():K(e)}const Ua={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ye(s)&&!ye(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Vi(e){return Vt(e)?e:new Proxy(e,Ua)}class Na{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Gn,{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 Va(e){return new Na(e)}class Ba{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 wa(ne(this._object),this._key)}}class Wa{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 qa(e,t,n){return ye(e)?e:ie(e)?new Wa(e):de(e)&&arguments.length>1?Ka(e,t,n):ae(e)}function Ka(e,t,n){const r=e[t];return ye(r)?r:new Ba(e,t,n)}class Ga{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Gn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=fn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return Si(this,!0),!0}get value(){const t=this.dep.track();return Ti(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Za(e,t,n=!1){let r,s;return ie(e)?r=e:(r=e.get,s=e.set),new Ga(r,s,n)}const nr={},rr=new WeakMap;let Et;function Ja(e,t=!1,n=Et){if(n){let r=rr.get(n);r||rr.set(n,r=[]),r.push(e)}}function Ya(e,t,n=ce){const{immediate:r,deep:s,once:i,scheduler:o,augmentJob:l,call:a}=n,c=T=>s?T:Fe(T)||s===!1||s===0?rt(T,1):rt(T);let u,f,p,b,m=!1,k=!1;if(ye(e)?(f=()=>e.value,m=Fe(e)):Vt(e)?(f=()=>c(e),m=!0):Z(e)?(k=!0,m=e.some(T=>Vt(T)||Fe(T)),f=()=>e.map(T=>{if(ye(T))return T.value;if(Vt(T))return c(T);if(ie(T))return a?a(T,2):T()})):ie(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){ht();try{p()}finally{pt()}}const T=Et;Et=u;try{return a?a(e,3,[b]):e(b)}finally{Et=T}}:f=Ct,t&&s){const T=f,P=s===!0?1/0:s;f=()=>rt(T(),P)}const I=_i(),A=()=>{u.stop(),I&&I.active&&pi(I.effects,u)};if(i&&t){const T=t;t=(...P)=>{T(...P),A()}}let _=k?new Array(e.length).fill(nr):nr;const F=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const P=u.run();if(s||m||(k?P.some((V,G)=>ft(V,_[G])):ft(P,_))){p&&p();const V=Et;Et=u;try{const G=[P,_===nr?void 0:k&&_[0]===nr?[]:_,b];_=P,a?a(t,3,G):t(...G)}finally{Et=V}}}else u.run()};return l&&l(F),u=new Ci(f),u.scheduler=o?()=>o(F,!1):F,b=T=>Ja(T,!1,u),p=u.onStop=()=>{const T=rr.get(u);if(T){if(a)a(T,4);else for(const P of T)P();rr.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 rt(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ye(e))rt(e.value,t,n);else if(Z(e))for(let r=0;r<e.length;r++)rt(e[r],t,n);else if(Ut(e)||Ht(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}/**
|
|
19
|
-
* @vue/runtime-core v3.5.
|
|
19
|
+
**/let ye;class Ca{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=ye,!t&&ye&&(this.index=(ye.scopes||(ye.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=ye;try{return ye=this,t()}finally{ye=n}}}on(){++this._on===1&&(this.prevScope=ye,ye=this)}off(){this._on>0&&--this._on===0&&(ye=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 ye}function $a(e,t=!1){ye&&ye.cleanups.push(e)}let ae;const Wr=new WeakSet;class Si{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,ye&&ye.active&&ye.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||Ai(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Mi(this),Ei(this);const t=ae,n=He;ae=this,He=!0;try{return this.fn()}finally{Ti(this),ae=t,He=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,Mi(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 Ri=0,hn,pn;function Ai(e,t=!1){if(e.flags|=8,t){e.next=pn,pn=e;return}e.next=hn,hn=e}function qr(){Ri++}function Kr(){if(--Ri>0)return;if(pn){let t=pn;for(pn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;hn;){let t=hn;for(hn=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 Ei(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ti(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Zr(r),Sa(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&&(Li(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Li(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===dn)||(e.globalVersion=dn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gr(e))))return;e.flags|=2;const t=e.dep,n=ae,r=He;ae=e,He=!0;try{Ei(e);const s=e.fn(e._value);(t.version===0||pt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ae=n,He=r,Ti(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 Sa(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let He=!0;const Ii=[];function gt(){Ii.push(He),He=!1}function mt(){const e=Ii.pop();He=e===void 0?!0:e}function Mi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ae;ae=void 0;try{t()}finally{ae=n}}}let dn=0;class Ra{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 Gn{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||!He||ae===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ae)n=this.activeLink=new Ra(ae,this),ae.deps?(n.prevDep=ae.depsTail,ae.depsTail.nextDep=n,ae.depsTail=n):ae.deps=ae.depsTail=n,Pi(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++,dn++,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 Pi(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)Pi(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Zn=new WeakMap,Et=Symbol(""),Yr=Symbol(""),gn=Symbol("");function we(e,t,n){if(He&&ae){let r=Zn.get(e);r||Zn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Gn),s.map=r,s.key=n),s.track()}}function Je(e,t,n,r,s,i){const l=Zn.get(e);if(!l){dn++;return}const o=a=>{a&&a.trigger()};if(qr(),t==="clear")l.forEach(o);else{const a=B(e),c=a&&Vn(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,p)=>{(p==="length"||p===gn||!Be(p)&&p>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(gn)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Et)),Vt(e)&&o(l.get(Yr)));break;case"delete":a||(o(l.get(Et)),Vt(e)&&o(l.get(Yr)));break;case"set":Vt(e)&&o(l.get(Et));break}}Kr()}function Aa(e,t){const n=Zn.get(e);return n&&n.get(t)}function qt(e){const t=J(e);return t===e?t:(we(t,"iterate",gn),Ee(e)?t:t.map(Ne))}function Yn(e){return we(e=J(e),"iterate",gn),e}function vt(e,t){return et(e)?Kt(Lt(e)?Ne(t):t):Ne(t)}const Ea={__proto__:null,[Symbol.iterator](){return Qr(this,Symbol.iterator,e=>vt(this,e))},concat(...e){return qt(this).concat(...e.map(t=>B(t)?qt(t):t))},entries(){return Qr(this,"entries",e=>(e[1]=vt(this,e[1]),e))},every(e,t){return Xe(this,"every",e,t,void 0,arguments)},filter(e,t){return Xe(this,"filter",e,t,n=>n.map(r=>vt(this,r)),arguments)},find(e,t){return Xe(this,"find",e,t,n=>vt(this,n),arguments)},findIndex(e,t){return Xe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Xe(this,"findLast",e,t,n=>vt(this,n),arguments)},findLastIndex(e,t){return Xe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Xe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Jr(this,"includes",e)},indexOf(...e){return Jr(this,"indexOf",e)},join(e){return qt(this).join(e)},lastIndexOf(...e){return Jr(this,"lastIndexOf",e)},map(e,t){return Xe(this,"map",e,t,void 0,arguments)},pop(){return mn(this,"pop")},push(...e){return mn(this,"push",e)},reduce(e,...t){return Oi(this,"reduce",e,t)},reduceRight(e,...t){return Oi(this,"reduceRight",e,t)},shift(){return mn(this,"shift")},some(e,t){return Xe(this,"some",e,t,void 0,arguments)},splice(...e){return mn(this,"splice",e)},toReversed(){return qt(this).toReversed()},toSorted(e){return qt(this).toSorted(e)},toSpliced(...e){return qt(this).toSpliced(...e)},unshift(...e){return mn(this,"unshift",e)},values(){return Qr(this,"values",e=>vt(this,e))}};function Qr(e,t,n){const r=Yn(e),s=r[t]();return r!==e&&!Ee(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Ta=Array.prototype;function Xe(e,t,n,r,s,i){const l=Yn(e),o=l!==e&&!Ee(e),a=l[t];if(a!==Ta[t]){const f=a.apply(e,i);return o?Ne(f):f}let c=n;l!==e&&(o?c=function(f,p){return n.call(this,vt(e,f),p,e)}:n.length>2&&(c=function(f,p){return n.call(this,f,p,e)}));const u=a.call(l,c,r);return o&&s?s(u):u}function Oi(e,t,n,r){const s=Yn(e);let i=n;return s!==e&&(Ee(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,vt(e,o),a,e)}),s[t](i,...r)}function Jr(e,t,n){const r=J(e);we(r,"iterate",gn);const s=r[t](...n);return(s===-1||s===!1)&&tr(n[0])?(n[0]=J(n[0]),r[t](...n)):s}function mn(e,t,n=[]){gt(),qr();const r=J(e)[t].apply(e,n);return Kr(),mt(),r}const La=Hr("__proto__,__v_isRef,__isVue"),ji=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Be));function Ia(e){Be(e)||(e=String(e));const t=J(this);return we(t,"has",e),t.hasOwnProperty(e)}class zi{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?Vi:Ui:i?Ni:Hi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=B(t);if(!s){let a;if(l&&(a=Ea[n]))return a;if(n==="hasOwnProperty")return Ia}const o=Reflect.get(t,n,ge(t)?t:r);if((Be(n)?ji.has(n):La(n))||(s||we(t,"get",n),i))return o;if(ge(o)){const a=l&&Vn(n)?o:o.value;return s&&oe(a)?Tt(a):a}return oe(o)?s?Tt(o):vn(o):o}}class Fi extends zi{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];const l=B(t)&&Vn(n);if(!this._isShallow){const c=et(i);if(!Ee(r)&&!et(r)&&(i=J(i),r=J(r)),!l&&ge(i)&&!ge(r))return c||(i.value=r),!0}const o=l?Number(n)<t.length:ie(t,n),a=Reflect.set(t,n,r,ge(t)?t:s);return t===J(s)&&(o?pt(r,i)&&Je(t,"set",n,r):Je(t,"add",n,r)),a}deleteProperty(t,n){const r=ie(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&Je(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Be(n)||!ji.has(n))&&we(t,"has",n),r}ownKeys(t){return we(t,"iterate",B(t)?"length":Et),Reflect.ownKeys(t)}}class Di extends zi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ma=new Fi,Pa=new Di,Oa=new Fi(!0),ja=new Di(!0),Xr=e=>e,Qn=e=>Reflect.getPrototypeOf(e);function za(e,t,n){return function(...r){const s=this.__v_raw,i=J(s),l=Vt(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Xr:t?Kt:Ne;return!t&&we(i,"iterate",a?Yr:Et),Ae(Object.create(c),{next(){const{value:f,done:p}=c.next();return p?{value:f,done:p}:{value:o?[u(f[0]),u(f[1])]:u(f),done:p}}})}}function Jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Fa(e,t){const n={get(s){const i=this.__v_raw,l=J(i),o=J(s);e||(pt(s,o)&&we(l,"get",s),we(l,"get",o));const{has:a}=Qn(l),c=t?Xr:e?Kt:Ne;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&&we(J(s),"iterate",Et),s.size},has(s){const i=this.__v_raw,l=J(i),o=J(s);return e||(pt(s,o)&&we(l,"has",s),we(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=J(o),c=t?Xr:e?Kt:Ne;return!e&&we(a,"iterate",Et),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return Ae(n,e?{add:Jn("add"),set:Jn("set"),delete:Jn("delete"),clear:Jn("clear")}:{add(s){!t&&!Ee(s)&&!et(s)&&(s=J(s));const i=J(this);return Qn(i).has.call(i,s)||(i.add(s),Je(i,"add",s,s)),this},set(s,i){!t&&!Ee(i)&&!et(i)&&(i=J(i));const l=J(this),{has:o,get:a}=Qn(l);let c=o.call(l,s);c||(s=J(s),c=o.call(l,s));const u=a.call(l,s);return l.set(s,i),c?pt(i,u)&&Je(l,"set",s,i):Je(l,"add",s,i),this},delete(s){const i=J(this),{has:l,get:o}=Qn(i);let a=l.call(i,s);a||(s=J(s),a=l.call(i,s)),o&&o.call(i,s);const c=i.delete(s);return a&&Je(i,"delete",s,void 0),c},clear(){const s=J(this),i=s.size!==0,l=s.clear();return i&&Je(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=za(s,e,t)}),n}function Xn(e,t){const n=Fa(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 Da={get:Xn(!1,!1)},Ha={get:Xn(!1,!0)},Na={get:Xn(!0,!1)},Ua={get:Xn(!0,!0)},Hi=new WeakMap,Ni=new WeakMap,Ui=new WeakMap,Vi=new WeakMap;function Va(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ba(e){return e.__v_skip||!Object.isExtensible(e)?0:Va(da(e))}function vn(e){return et(e)?e:er(e,!1,Ma,Da,Hi)}function Wa(e){return er(e,!1,Oa,Ha,Ni)}function Tt(e){return er(e,!0,Pa,Na,Ui)}function qa(e){return er(e,!0,ja,Ua,Vi)}function er(e,t,n,r,s){if(!oe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Ba(e);if(i===0)return e;const l=s.get(e);if(l)return l;const o=new Proxy(e,i===2?r:n);return s.set(e,o),o}function Lt(e){return et(e)?Lt(e.__v_raw):!!(e&&e.__v_isReactive)}function et(e){return!!(e&&e.__v_isReadonly)}function Ee(e){return!!(e&&e.__v_isShallow)}function tr(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Ka(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&wi(e,"__v_skip",!0),e}const Ne=e=>oe(e)?vn(e):e,Kt=e=>oe(e)?Tt(e):e;function ge(e){return e?e.__v_isRef===!0:!1}function X(e){return Bi(e,!1)}function It(e){return Bi(e,!0)}function Bi(e,t){return ge(e)?e:new Ga(e,t)}class Ga{constructor(t,n){this.dep=new Gn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:J(t),this._value=n?t:Ne(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ee(t)||et(t);t=r?t:J(t),pt(t,n)&&(this._rawValue=t,this._value=r?t:Ne(t),this.dep.trigger())}}function V(e){return ge(e)?e.value:e}function Te(e){return te(e)?e():V(e)}const Za={get:(e,t,n)=>t==="__v_raw"?e:V(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ge(s)&&!ge(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Wi(e){return Lt(e)?e:new Proxy(e,Za)}class Ya{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Gn,{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 Qa(e){return new Ya(e)}class Ja{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=J(t);let s=!0,i=t;if(!B(t)||!Vn(String(n)))do s=!tr(i)||Ee(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=V(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&ge(this._raw[this._key])){const n=this._object[this._key];if(ge(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Aa(this._raw,this._key)}}class Xa{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 ec(e,t,n){return ge(e)?e:te(e)?new Xa(e):oe(e)&&arguments.length>1?tc(e,t,n):X(e)}function tc(e,t,n){return new Ja(e,t,n)}class nc{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Gn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=dn-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 Ai(this,!0),!0}get value(){const t=this.dep.track();return Li(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function rc(e,t,n=!1){let r,s;return te(e)?r=e:(r=e.get,s=e.set),new nc(r,s,n)}const nr={},rr=new WeakMap;let Mt;function sc(e,t=!1,n=Mt){if(n){let r=rr.get(n);r||rr.set(n,r=[]),r.push(e)}}function ic(e,t,n=fe){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=R=>s?R:Ee(R)||s===!1||s===0?tt(R,1):tt(R);let u,f,p,v,x=!1,y=!1;if(ge(e)?(f=()=>e.value,x=Ee(e)):Lt(e)?(f=()=>c(e),x=!0):B(e)?(y=!0,x=e.some(R=>Lt(R)||Ee(R)),f=()=>e.map(R=>{if(ge(R))return R.value;if(Lt(R))return c(R);if(te(R))return a?a(R,2):R()})):te(e)?t?f=a?()=>a(e,2):e:f=()=>{if(p){gt();try{p()}finally{mt()}}const R=Mt;Mt=u;try{return a?a(e,3,[v]):e(v)}finally{Mt=R}}:f=Rt,t&&s){const R=f,D=s===!0?1/0:s;f=()=>tt(R(),D)}const A=$i(),S=()=>{u.stop(),A&&A.active&&gi(A.effects,u)};if(i&&t){const R=t;t=(...D)=>{R(...D),S()}}let I=y?new Array(e.length).fill(nr):nr;const z=R=>{if(!(!(u.flags&1)||!u.dirty&&!R))if(t){const D=u.run();if(s||x||(y?D.some((he,ue)=>pt(he,I[ue])):pt(D,I))){p&&p();const he=Mt;Mt=u;try{const ue=[D,I===nr?void 0:y&&I[0]===nr?[]:I,v];I=D,a?a(t,3,ue):t(...ue)}finally{Mt=he}}}else u.run()};return o&&o(z),u=new Si(f),u.scheduler=l?()=>l(z,!1):z,v=R=>sc(R,!1,u),p=u.onStop=()=>{const R=rr.get(u);if(R){if(a)a(R,4);else for(const D of R)D();rr.delete(u)}},t?r?z(!0):I=u.run():l?l(z.bind(null,!0),!0):u.run(),S.pause=u.pause.bind(u),S.resume=u.resume.bind(u),S.stop=S,S}function tt(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--,ge(e))tt(e.value,t,n);else if(B(e))for(let r=0;r<e.length;r++)tt(e[r],t,n);else if(Bt(e)||Vt(e))e.forEach(r=>{tt(r,t,n)});else if(yi(e)){for(const r in e)tt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&tt(e[r],t,n)}return e}/**
|
|
20
|
+
* @vue/runtime-core v3.5.28
|
|
20
21
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
21
22
|
* @license MIT
|
|
22
|
-
**/function gn(e,t,n,r){try{return r?e(...r):e()}catch(s){sr(s,t,n)}}function st(e,t,n,r){if(ie(e)){const s=gn(e,t,n,r);return s&&gi(s)&&s.catch(i=>{sr(i,t,n)}),s}if(Z(e)){const s=[];for(let i=0;i<e.length;i++)s.push(st(e[i],t,n,r));return s}}function sr(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||ce;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){ht(),gn(i,null,10,[e,a,c]),pt();return}}Xa(e,n,s,r,o)}function Xa(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Se=[];let qe=-1;const Bt=[];let gt=null,Wt=0;const Bi=Promise.resolve();let ir=null;function qt(e){const t=ir||Bi;return e?t.then(this?e.bind(this):e):t}function Qa(e){let t=qe+1,n=Se.length;for(;t<n;){const r=t+n>>>1,s=Se[r],i=mn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function es(e){if(!(e.flags&1)){const t=mn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=mn(n)?Se.push(e):Se.splice(Qa(t),0,e),e.flags|=1,Wi()}}function Wi(){ir||(ir=Bi.then(Gi))}function ec(e){Z(e)?Bt.push(...e):gt&&e.id===-1?gt.splice(Wt+1,0,e):e.flags&1||(Bt.push(e),e.flags|=1),Wi()}function qi(e,t,n=qe+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 Ki(e){if(Bt.length){const t=[...new Set(Bt)].sort((n,r)=>mn(n)-mn(r));if(Bt.length=0,gt){gt.push(...t);return}for(gt=t,Wt=0;Wt<gt.length;Wt++){const n=gt[Wt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}gt=null,Wt=0}}const mn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Gi(e){try{for(qe=0;qe<Se.length;qe++){const t=Se[qe];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),gn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;qe<Se.length;qe++){const t=Se[qe];t&&(t.flags&=-2)}qe=-1,Se.length=0,Ki(),ir=null,(Se.length||Bt.length)&&Gi()}}let Le=null,Zi=null;function lr(e){const t=Le;return Le=e,Zi=e&&e.type.__scopeId||null,t}function tc(e,t=Le,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&hr(-1);const i=lr(t);let o;try{o=e(...s)}finally{lr(i),r._d&&hr(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function or(e,t){if(Le===null)return e;const n=mr(Le),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,o,l,a=ce]=t[s];i&&(ie(i)&&(i={mounted:i,updated:i}),i.deep&&rt(o),r.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:a}))}return e}function Lt(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&&(ht(),st(a,n,8,[e.el,l,e,t]),pt())}}const nc=Symbol("_vte"),rc=e=>e.__isTeleport,sc=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 vn(e,t){return ie(e)?je({name:e.name},t,{setup:e}):e}function ic(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mt(e){const t=hs(),n=Tt(null);if(t){const s=t.refs===ce?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}const ar=new WeakMap;function bn(e,t,n,r,s=!1){if(Z(e)){e.forEach((m,k)=>bn(m,t&&(Z(t)?t[k]:t),n,r,s));return}if(yn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&bn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?mr(r.component):r.el,o=s?null:i,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ce?l.refs={}:l.refs,f=l.setupState,p=ne(f),b=f===ce?hi:m=>se(p,m);if(c!=null&&c!==a){if(Ji(t),we(c))u[c]=null,b(c)&&(f[c]=null);else if(ye(c)){c.value=null;const m=t;m.k&&(u[m.k]=null)}}if(ie(a))gn(a,l,12,[o,u]);else{const m=we(a),k=ye(a);if(m||k){const I=()=>{if(e.f){const A=m?b(a)?f[a]:u[a]:a.value;if(s)Z(A)&&pi(A,i);else if(Z(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=()=>{I(),ar.delete(e)};A.id=-1,ar.set(e,A),Ie(A,n)}else Ji(e),I()}}}function Ji(e){const t=ar.get(e);t&&(t.flags|=8,ar.delete(e))}on().requestIdleCallback,on().cancelIdleCallback;const yn=e=>!!e.type.__asyncLoader,lc=e=>e.type.__isKeepAlive;function oc(e,t,n=Ae,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ht();const l=ds(n),a=st(t,n,e,o);return l(),pt(),a});return r?s.unshift(i):s.push(i),i}}const ns=e=>(t,n=Ae)=>{(!$n||e==="sp")&&oc(e,(...r)=>t(...r),n)},wn=ns("m"),ac=ns("bum"),rs=ns("um"),cc="components";function uc(e,t){return hc(cc,e,!0,t)||e}const fc=Symbol.for("v-ndc");function hc(e,t,n=!0,r=!1){const s=Le||Ae;if(s){const i=s.type;{const l=Zc(i,!1);if(l&&(l===t||l===ze(t)||l===Wn(ze(t))))return i}const o=Yi(s[e]||i[e],t)||Yi(s.appContext[e],t);return!o&&r?i:o}}function Yi(e,t){return e&&(e[t]||e[ze(t)]||e[Wn(ze(t))])}function De(e,t,n,r){let s;const i=n,o=Z(e);if(o||we(e)){const l=o&&Vt(e);let a=!1,c=!1;l&&(a=!Fe(e),c=dt(e),e=Jn(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?tr(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(de(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?bl(e)?mr(e):ss(e.parent):null,kn=je(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!==ce&&!e.__isScriptSetup&&se(e,t),pc={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!==ce&&se(s,t))return o[t]=2,s[t];if((c=e.propsOptions[0])&&se(c,t))return o[t]=3,i[t];if(n!==ce&&se(n,t))return o[t]=4,n[t];o[t]=0}}const u=kn[t];let f,p;if(u)return t==="$attrs"&&Ce(e.attrs,"get",""),u(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==ce&&se(n,t))return o[t]=4,n[t];if(p=a.config.globalProperties,se(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!==ce&&se(r,t)?(r[t]=n,!0):se(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!==ce&&l[0]!=="$"&&se(e,l)||is(t,l)||(a=i[0])&&se(a,l)||se(r,l)||se(kn,l)||se(s.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:se(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Xi(){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 dc=0;function gc(e,t){return function(r,s=null){ie(r)||(r=je({},r)),s!=null&&!de(s)&&(s=null);const i=Xi(),o=new WeakSet,l=[];let a=!1;const c=i.app={_uid:dc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Yc,get config(){return i.config},set config(u){},use(u,...f){return o.has(u)||(u&&ie(u.install)?(o.add(u),u.install(c,...f)):ie(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||ue(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,mr(b.component)}},onUnmount(u){l.push(u)},unmount(){a&&(st(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 mc(e,t){if(Ae){let n=Ae.provides;const r=Ae.parent&&Ae.parent.provides;r===n&&(n=Ae.provides=Object.create(r)),n[e]=t}}function cr(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&&ie(t)?t.call(r&&r.proxy):t}}const Qi={},el=()=>Object.create(Qi),tl=e=>Object.getPrototypeOf(e)===Qi;function vc(e,t,n,r=!1){const s={},i=el();e.propsDefaults=Object.create(null),nl(e,t,s,i);for(const o in e.propsOptions[0])o in s||(s[o]=void 0);n?e.props=r?s:za(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function bc(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(ur(e.emitsOptions,p))continue;const b=t[p];if(a)if(se(i,p))b!==i[p]&&(i[p]=b,c=!0);else{const m=ze(p);s[m]=ls(a,l,m,b,e,!1)}else b!==i[p]&&(i[p]=b,c=!0)}}}else{nl(e,t,s,i)&&(c=!0);let u;for(const f in l)(!t||!se(t,f)&&((u=$t(f))===f||!se(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||!se(t,f))&&(delete i[f],c=!0)}c&&tt(e.attrs,"set","")}function nl(e,t,n,r){const[s,i]=e.propsOptions;let o=!1,l;if(t)for(let a in t){if(ln(a))continue;const c=t[a];let u;s&&se(s,u=ze(a))?!i||!i.includes(u)?n[u]=c:(l||(l={}))[u]=c:ur(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,o=!0)}if(i){const a=ne(n),c=l||ce;for(let u=0;u<i.length;u++){const f=i[u];n[f]=ls(s,a,f,c[f],e,!se(c,f))}}return o}function ls(e,t,n,r,s,i){const o=e[n];if(o!=null){const l=se(o,"default");if(l&&r===void 0){const a=o.default;if(o.type!==Function&&!o.skipFactory&&ie(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 yc(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 de(e)&&r.set(e,Dt),Dt;if(Z(i))for(let c=0;c<i.length;c++){const u=ze(i[c]);rl(u)&&(o[u]=ce)}else if(i)for(const c in i){const u=ze(c);if(rl(u)){const f=i[c],p=o[u]=Z(f)||ie(f)?{type:f}:je({},f),b=p.type;let m=!1,k=!0;if(Z(b))for(let I=0;I<b.length;++I){const A=b[I],_=ie(A)&&A.name;if(_==="Boolean"){m=!0;break}else _==="String"&&(k=!1)}else m=ie(b)&&b.name==="Boolean";p[0]=m,p[1]=k,(m||se(p,"default"))&&l.push(u)}}const a=[o,l];return de(e)&&r.set(e,a),a}function rl(e){return e[0]!=="$"&&!ln(e)}const os=e=>e==="_"||e==="_ctx"||e==="$stable",as=e=>Z(e)?e.map(Ge):[Ge(e)],wc=(e,t,n)=>{if(t._n)return t;const r=tc((...s)=>as(t(...s)),n);return r._c=!1,r},sl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(os(s))continue;const i=e[s];if(ie(i))t[s]=wc(s,i,r);else if(i!=null){const o=as(i);t[s]=()=>o}}},il=(e,t)=>{const n=as(t);e.slots.default=()=>n},ll=(e,t,n)=>{for(const r in t)(n||!os(r))&&(e[r]=t[r])},kc=(e,t,n)=>{const r=e.slots=el();if(e.vnode.shapeFlag&32){const s=t._;s?(ll(r,t,n),n&&bi(r,"_",s,!0)):sl(t,r)}else t&&il(e,t)},xc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,o=ce;if(r.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:ll(s,t,n):(i=!t.$stable,sl(t,s)),o=t}else t&&(il(e,t),o={default:1});if(i)for(const l in s)!os(l)&&o[l]==null&&delete s[l]};function _c(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(on().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ie=zc;function Cc(e){return $c(e)}function $c(e,t){_c();const n=on();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&&!Cn(h,d)&&(y=xt(h),Ue(h,w,v,!0),h=null),d.patchFlag===-2&&($=!1,d.dynamicChildren=null);const{type:x,ref:U,shapeFlag:L}=d;switch(x){case fr:I(h,d,g,y);break;case bt:A(h,d,g,y);break;case us:h==null&&_(d,g,y,R);break;case pe:X(h,d,g,y,w,v,R,C,$);break;default:L&1?P(h,d,g,y,w,v,R,C,$):L&6?N(h,d,g,y,w,v,R,C,$):(L&64||L&128)&&x.process(h,d,g,y,w,v,R,C,$,S)}U!=null&&w?bn(U,h&&h.ref,v,d||h,!d):U==null&&h&&h.ref!=null&&bn(h.ref,null,v,h,!0)},I=(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)},T=({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,$):ke(h,d,w,v,R,C,$)},V=(h,d,g,y,w,v,R,C)=>{let $,x;const{props:U,shapeFlag:L,transition:j,dirs:B}=h;if($=h.el=o(h.type,v,U&&U.is,U),L&8?u($,h.children):L&16&&W(h.children,$,null,y,w,cs(h,v),R,C),B&&Lt(h,null,y,"created"),G($,h,h.scopeId,R,y),U){for(const oe in U)oe!=="value"&&!ln(oe)&&i($,oe,null,U[oe],v,y);"value"in U&&i($,"value",null,U.value,v),(x=U.onVnodeBeforeMount)&&Ze(x,y,h)}B&&Lt(h,null,y,"beforeMount");const Y=Sc(w,j);Y&&j.beforeEnter($),r($,d,g),((x=U&&U.onVnodeMounted)||Y||B)&&Ie(()=>{x&&Ze(x,y,h),Y&&j.enter($),B&&Lt(h,null,y,"mounted")},w)},G=(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||dl(v.type)&&(v.ssContent===d||v.ssFallback===d)){const R=w.vnode;G(h,R,R.scopeId,R.slotScopeIds,w.parent)}}},W=(h,d,g,y,w,v,R,C,$=0)=>{for(let x=$;x<h.length;x++){const U=h[x]=C?yt(h[x]):Ge(h[x]);k(null,U,d,g,y,w,v,R,C)}},ke=(h,d,g,y,w,v,R)=>{const C=d.el=h.el;let{patchFlag:$,dynamicChildren:x,dirs:U}=d;$|=h.patchFlag&16;const L=h.props||ce,j=d.props||ce;let B;if(g&&It(g,!1),(B=j.onVnodeBeforeUpdate)&&Ze(B,g,d,h),U&&Lt(d,h,g,"beforeUpdate"),g&&It(g,!0),(L.innerHTML&&j.innerHTML==null||L.textContent&&j.textContent==null)&&u(C,""),x?me(h.dynamicChildren,x,C,g,y,cs(d,w),v):R||ut(h,d,C,null,g,y,cs(d,w),v,!1),$>0){if($&16)H(C,L,j,g,w);else if($&2&&L.class!==j.class&&i(C,"class",null,j.class,w),$&4&&i(C,"style",L.style,j.style,w),$&8){const Y=d.dynamicProps;for(let oe=0;oe<Y.length;oe++){const fe=Y[oe],Pe=L[fe],$e=j[fe];($e!==Pe||fe==="value")&&i(C,fe,Pe,$e,w,g)}}$&1&&h.children!==d.children&&u(C,d.children)}else!R&&x==null&&H(C,L,j,g,w);((B=j.onVnodeUpdated)||U)&&Ie(()=>{B&&Ze(B,g,d,h),U&&Lt(d,h,g,"updated")},y)},me=(h,d,g,y,w,v,R)=>{for(let C=0;C<d.length;C++){const $=h[C],x=d[C],U=$.el&&($.type===pe||!Cn($,x)||$.shapeFlag&198)?f($.el):g;k($,x,U,null,y,w,v,R,!0)}},H=(h,d,g,y,w)=>{if(d!==g){if(d!==ce)for(const v in d)!ln(v)&&!(v in g)&&i(h,v,d[v],null,w,y);for(const v in g){if(ln(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)}},X=(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:L,dynamicChildren:j,slotScopeIds:B}=d;B&&(C=C?C.concat(B):B),h==null?(r(x,g,y),r(U,g,y),W(d.children||[],g,U,w,v,R,C,$)):L>0&&L&64&&j&&h.dynamicChildren?(me(h.dynamicChildren,j,g,w,v,R,C),(d.key!=null||w&&d===w.subTree)&&ol(h,d,!0)):ut(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=Bc(h,y,w);if(lc(h)&&(C.ctx.renderer=S),Wc(C,!1,R),C.asyncDep){if(w&&w.registerDep(C,re,R),!h.el){const $=C.subTree=ue(bt);A(null,$,d,g),h.placeholder=$.el}}else re(C,h,d,g,w,v,R)},J=(h,d,g)=>{const y=d.component=h.component;if(Oc(h,d,g))if(y.asyncDep&&!y.asyncResolved){Qe(y,d,g);return}else y.next=d,y.update();else d.el=h.el,y.vnode=d},re=(h,d,g,y,w,v,R)=>{const C=()=>{if(h.isMounted){let{next:L,bu:j,u:B,parent:Y,vnode:oe}=h;{const en=al(h);if(en){L&&(L.el=oe.el,Qe(h,L,R)),en.asyncDep.then(()=>{h.isUnmounted||C()});return}}let fe=L,Pe;It(h,!1),L?(L.el=oe.el,Qe(h,L,R)):L=oe,j&&qn(j),(Pe=L.props&&L.props.onVnodeBeforeUpdate)&&Ze(Pe,Y,L,oe),It(h,!0);const $e=hl(h),Oe=h.subTree;h.subTree=$e,k(Oe,$e,f(Oe.el),xt(Oe),h,w,v),L.el=$e.el,fe===null&&jc(h,$e.el),B&&Ie(B,w),(Pe=L.props&&L.props.onVnodeUpdated)&&Ie(()=>Ze(Pe,Y,L,oe),w)}else{let L;const{props:j}=d,{bm:B,m:Y,parent:oe,root:fe,type:Pe}=h,$e=yn(d);It(h,!1),B&&qn(B),!$e&&(L=j&&j.onVnodeBeforeMount)&&Ze(L,oe,d),It(h,!0);{fe.ce&&fe.ce._def.shadowRoot!==!1&&fe.ce._injectChildStyle(Pe);const Oe=h.subTree=hl(h);k(null,Oe,g,y,h,w,v),d.el=Oe.el}if(Y&&Ie(Y,w),!$e&&(L=j&&j.onVnodeMounted)){const Oe=d;Ie(()=>Ze(L,oe,Oe),w)}(d.shapeFlag&256||oe&&yn(oe.vnode)&&oe.vnode.shapeFlag&256)&&h.a&&Ie(h.a,w),h.isMounted=!0,d=g=y=null}};h.scope.on();const $=h.effect=new Ci(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),It(h,!0),x()},Qe=(h,d,g)=>{d.component=h;const y=h.vnode.props;h.vnode=d,h.next=null,bc(h,d.props,y,g),xc(h,d.children,g),ht(),qi(h),pt()},ut=(h,d,g,y,w,v,R,C,$=!1)=>{const x=h&&h.children,U=h?h.shapeFlag:0,L=d.children,{patchFlag:j,shapeFlag:B}=d;if(j>0){if(j&128){jn(x,L,g,y,w,v,R,C,$);return}else if(j&256){Qt(x,L,g,y,w,v,R,C,$);return}}B&8?(U&16&&kt(x,w,v),L!==x&&u(g,L)):U&16?B&16?jn(x,L,g,y,w,v,R,C,$):kt(x,w,v,!0):(U&8&&u(g,""),B&16&&W(L,g,y,w,v,R,C,$))},Qt=(h,d,g,y,w,v,R,C,$)=>{h=h||Dt,d=d||Dt;const x=h.length,U=d.length,L=Math.min(x,U);let j;for(j=0;j<L;j++){const B=d[j]=$?yt(d[j]):Ge(d[j]);k(h[j],B,g,null,w,v,R,C,$)}x>U?kt(h,w,v,!0,!1,L):W(d,g,y,w,v,R,C,$,L)},jn=(h,d,g,y,w,v,R,C,$)=>{let x=0;const U=d.length;let L=h.length-1,j=U-1;for(;x<=L&&x<=j;){const B=h[x],Y=d[x]=$?yt(d[x]):Ge(d[x]);if(Cn(B,Y))k(B,Y,g,null,w,v,R,C,$);else break;x++}for(;x<=L&&x<=j;){const B=h[L],Y=d[j]=$?yt(d[j]):Ge(d[j]);if(Cn(B,Y))k(B,Y,g,null,w,v,R,C,$);else break;L--,j--}if(x>L){if(x<=j){const B=j+1,Y=B<U?d[B].el:y;for(;x<=j;)k(null,d[x]=$?yt(d[x]):Ge(d[x]),g,Y,w,v,R,C,$),x++}}else if(x>j)for(;x<=L;)Ue(h[x],w,v,!0),x++;else{const B=x,Y=x,oe=new Map;for(x=Y;x<=j;x++){const Te=d[x]=$?yt(d[x]):Ge(d[x]);Te.key!=null&&oe.set(Te.key,x)}let fe,Pe=0;const $e=j-Y+1;let Oe=!1,en=0;const tn=new Array($e);for(x=0;x<$e;x++)tn[x]=0;for(x=B;x<=L;x++){const Te=h[x];if(Pe>=$e){Ue(Te,w,v,!0);continue}let Ve;if(Te.key!=null)Ve=oe.get(Te.key);else for(fe=Y;fe<=j;fe++)if(tn[fe-Y]===0&&Cn(Te,d[fe])){Ve=fe;break}Ve===void 0?Ue(Te,w,v,!0):(tn[Ve-Y]=x+1,Ve>=en?en=Ve:Oe=!0,k(Te,d[Ve],g,null,w,v,R,C,$),Pe++)}const js=Oe?Rc(tn):Dt;for(fe=js.length-1,x=$e-1;x>=0;x--){const Te=Y+x,Ve=d[Te],zs=d[Te+1],Fs=Te+1<U?zs.el||zs.placeholder:y;tn[x]===0?k(null,Ve,g,Fs,w,v,R,C,$):Oe&&(fe<0||x!==js[fe]?jt(Ve,g,Fs,2):fe--)}}},jt=(h,d,g,y,w=null)=>{const{el:v,type:R,transition:C,children:$,shapeFlag:x}=h;if(x&6){jt(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===pe){r(v,d,g);for(let L=0;L<$.length;L++)jt($[L],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),Ie(()=>C.enter(v),w);else{const{leave:L,delayLeave:j,afterLeave:B}=C,Y=()=>{h.ctx.isUnmounted?s(v):r(v,d,g)},oe=()=>{v._isLeaving&&v[sc](!0),L(v,()=>{Y(),B&&B()})};j?j(v,Y,oe):oe()}else r(v,d,g)},Ue=(h,d,g,y=!1,w=!1)=>{const{type:v,props:R,ref:C,children:$,dynamicChildren:x,shapeFlag:U,patchFlag:L,dirs:j,cacheIndex:B}=h;if(L===-2&&(w=!1),C!=null&&(ht(),bn(C,null,g,h,!0),pt()),B!=null&&(d.renderCache[B]=void 0),U&256){d.ctx.deactivate(h);return}const Y=U&1&&j,oe=!yn(h);let fe;if(oe&&(fe=R&&R.onVnodeBeforeUnmount)&&Ze(fe,d,h),U&6)Fn(h.component,g,y);else{if(U&128){h.suspense.unmount(g,y);return}Y&&Lt(h,null,d,"beforeUnmount"),U&64?h.type.remove(h,d,g,S,y):x&&!x.hasOnce&&(v!==pe||L>0&&L&64)?kt(x,d,g,!1,!0):(v===pe&&L&384||!w&&U&16)&&kt($,d,g),y&&zn(h)}(oe&&(fe=R&&R.onVnodeUnmounted)||Y)&&Ie(()=>{fe&&Ze(fe,d,h),Y&&Lt(h,null,d,"unmounted")},g)},zn=h=>{const{type:d,el:g,anchor:y,transition:w}=h;if(d===pe){Ir(g,y);return}if(d===us){T(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()},Ir=(h,d)=>{let g;for(;h!==d;)g=p(h),s(h),h=g;s(d)},Fn=(h,d,g)=>{const{bum:y,scope:w,job:v,subTree:R,um:C,m:$,a:x}=h;cl($),cl(x),y&&qn(y),w.stop(),v&&(v.flags|=8,Ue(R,h,d,g)),C&&Ie(C,d),Ie(()=>{h.isUnmounted=!0},d)},kt=(h,d,g,y=!1,w=!1,v=0)=>{for(let R=v;R<h.length;R++)Ue(h[R],d,g,y,w)},xt=h=>{if(h.shapeFlag&6)return xt(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const d=p(h.anchor||h.el),g=d&&d[nc];return g?p(g):d};let zt=!1;const D=(h,d,g)=>{h==null?d._vnode&&Ue(d._vnode,null,null,!0):k(d._vnode||null,h,d,null,null,null,g),d._vnode=h,zt||(zt=!0,qi(),Ki(),zt=!1)},S={p:k,um:Ue,m:jt,r:zn,mt:z,mc:W,pc:ut,pbc:me,n:xt,o:e};return{render:D,hydrate:void 0,createApp:gc(D)}}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 It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Sc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ol(e,t,n=!1){const r=e.children,s=t.children;if(Z(r)&&Z(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]=yt(s[i]),l.el=o.el),!n&&l.patchFlag!==-2&&ol(o,l)),l.type===fr&&l.patchFlag!==-1&&(l.el=o.el),l.type===bt&&!l.el&&(l.el=o.el)}}function Rc(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 al(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:al(t)}function cl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Ac=Symbol.for("v-scx"),Tc=()=>cr(Ac);function ul(e,t){return fl(e,null,t)}function vt(e,t,n){return fl(e,t,n)}function fl(e,t,n=ce){const{immediate:r,flush:s}=n,i=je({},n),o=t&&r||!t&&s!=="post";let l;if($n){if(s==="sync"){const f=Tc();l=f.__watcherHandles||(f.__watcherHandles=[])}else if(!o){const f=()=>{};return f.stop=Ct,f.resume=Ct,f.pause=Ct,f}}const a=Ae;i.call=(f,p,b)=>st(f,a,p,b);let c=!1;s==="post"?i.scheduler=f=>{Ie(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=Ya(e,t,i);return $n&&(l?l.push(u):o&&u()),u}const Ec=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function Lc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ce;let s=n;const i=t.startsWith("update:"),o=i&&Ec(r,t.slice(7));o&&(o.trim&&(s=n.map(u=>we(u)?u.trim():u)),o.number&&(s=n.map(Kn)));let l,a=r[l=Ur(t)]||r[l=Ur(ze(t))];!a&&i&&(a=r[l=Ur($t(t))]),a&&st(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,st(c,e,6,s)}}function Ic(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let o={};return i?(Z(i)?i.forEach(l=>o[l]=null):je(o,i),de(e)&&r.set(e,o),o):(de(e)&&r.set(e,null),null)}function ur(e,t){return!e||!Vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),se(e,t[0].toLowerCase()+t.slice(1))||se(e,$t(t))||se(e,t))}function hl(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,I=lr(e);let A,_;try{if(n.shapeFlag&4){const T=s||r,P=T;A=Ge(c.call(P,T,u,f,b,p,m)),_=l}else{const T=t;A=Ge(T.length>1?T(f,{attrs:l,slots:o,emit:a}):T(f,null)),_=t.props?l:Mc(l)}}catch(T){xn.length=0,sr(T,e,1),A=ue(bt)}let F=A;if(_&&k!==!1){const T=Object.keys(_),{shapeFlag:P}=F;T.length&&P&7&&(i&&T.some(Dr)&&(_=Pc(_,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,lr(I),A}const Mc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vn(n))&&((t||(t={}))[n]=e[n]);return t},Pc=(e,t)=>{const n={};for(const r in e)(!Dr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Oc(e,t,n){const{props:r,children:s,component:i}=e,{props: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?pl(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]&&!ur(c,p))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:r===o?!1:r?o?pl(r,o,c):!0:!!o;return!1}function pl(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]&&!ur(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 dl=e=>e.__isSuspense;function zc(e,t){t&&t.pendingBranch?Z(e)?t.effects.push(...e):t.effects.push(e):ec(e)}const pe=Symbol.for("v-fgt"),fr=Symbol.for("v-txt"),bt=Symbol.for("v-cmt"),us=Symbol.for("v-stc"),xn=[];let Me=null;function E(e=!1){xn.push(Me=e?null:[])}function Fc(){xn.pop(),Me=xn[xn.length-1]||null}let _n=1;function hr(e,t=!1){_n+=e,e<0&&Me&&t&&(Me.hasOnce=!0)}function gl(e){return e.dynamicChildren=_n>0?Me||Dt:null,Fc(),_n>0&&Me&&Me.push(e),e}function M(e,t,n,r,s,i){return gl(O(e,t,n,r,s,i,!0))}function Ke(e,t,n,r,s){return gl(ue(e,t,n,r,s,!0))}function pr(e){return e?e.__v_isVNode===!0:!1}function Cn(e,t){return e.type===t.type&&e.key===t.key}const ml=({key:e})=>e??null,dr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||ye(e)||ie(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,r=0,s=null,i=e===pe?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ml(t),ref:t&&dr(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:Le};return l?(fs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),_n>0&&!o&&Me&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Me.push(a),a}const ue=Dc;function Dc(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===fc)&&(e=bt),pr(e)){const l=Gt(e,t,!0);return n&&fs(l,n),_n>0&&!i&&Me&&(l.shapeFlag&6?Me[Me.indexOf(e)]=l:Me.push(l)),l.patchFlag=-2,l}if(Jc(e)&&(e=e.__vccOpts),t){t=Hc(t);let{class:l,style:a}=t;l&&!we(l)&&(t.class=be(l)),de(a)&&(Qr(a)&&!Z(a)&&(a=je({},a)),t.style=an(a))}const o=we(e)?1:dl(e)?128:rc(e)?64:de(e)?4:ie(e)?2:0;return O(e,t,n,r,s,o,i,!0)}function Hc(e){return e?Qr(e)||tl(e)?je({},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?Uc(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ml(c),ref:t&&t.ref?n&&i?Z(i)?i.concat(dr(t)):[i,dr(t)]:dr(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!==pe?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 it(e=" ",t=0){return ue(fr,null,e,t)}function Q(e="",t=!1){return t?(E(),Ke(bt,null,e)):ue(bt,null,e)}function Ge(e){return e==null||typeof e=="boolean"?ue(bt):Z(e)?ue(pe,null,e.slice()):pr(e)?yt(e):ue(fr,null,String(e))}function yt(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(Z(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&&!tl(t)?t._ctx=Le:s===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ie(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),r&64?(n=16,t=[it(t)]):n=8);e.children=t,e.shapeFlag|=n}function Uc(...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=be([t.class,r.class]));else if(s==="style")t.style=an([t.style,r.style]);else if(Vn(s)){const i=t[s],o=r[s];o&&i!==o&&!(Z(i)&&i.includes(o))&&(t[s]=i?[].concat(i,o):o)}else s!==""&&(t[s]=r[s])}return t}function Ze(e,t,n,r=null){st(e,t,7,[n,r])}const Nc=Xi();let Vc=0;function Bc(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Nc,i={uid:Vc++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ma(!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:yc(r,s),emitsOptions:Ic(r,s),emit:null,emitted:null,propsDefaults:ce,inheritAttrs:r.inheritAttrs,ctx:ce,data:ce,props:ce,attrs:ce,slots:ce,refs:ce,setupState:ce,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Lc.bind(null,i),e.ce&&e.ce(i),i}let Ae=null;const hs=()=>Ae||Le;let gr,ps;{const e=on(),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)}};gr=t("__VUE_INSTANCE_SETTERS__",n=>Ae=n),ps=t("__VUE_SSR_SETTERS__",n=>$n=n)}const ds=e=>{const t=Ae;return gr(e),e.scope.on(),()=>{e.scope.off(),gr(t)}},vl=()=>{Ae&&Ae.scope.off(),gr(null)};function bl(e){return e.vnode.shapeFlag&4}let $n=!1;function Wc(e,t=!1,n=!1){t&&ps(t);const{props:r,children:s}=e.vnode,i=bl(e);vc(e,r,i,t),kc(e,s,n||t);const o=i?qc(e,t):void 0;return t&&ps(!1),o}function qc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pc);const{setup:r}=n;if(r){ht();const s=e.setupContext=r.length>1?Gc(e):null,i=ds(e),o=gn(r,e,0,[e.props,s]),l=gi(o);if(pt(),i(),(l||e.sp)&&!yn(e)&&ic(e),l){if(o.then(vl,vl),t)return o.then(a=>{yl(e,a,t)}).catch(a=>{sr(a,e,0)});e.asyncDep=o}else yl(e,o,t)}else kl(e,t)}function yl(e,t,n){ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Vi(t)),kl(e,n)}let wl;function kl(e,t,n){const r=e.type;if(!e.render){if(!t&&wl&&!r.render){const s=r.template||!1;if(s){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:a}=r,c=je(je({isCustomElement:i,delimiters:l},o),a);r.render=wl(s,c)}}e.render=r.render||Ct}}const Kc={get(e,t){return Ce(e,"get",""),e[t]}};function Gc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Kc),slots:e.slots,emit:e.emit,expose:t}}function mr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vi(Da(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kn)return kn[n](e)},has(t,n){return n in t||n in kn}})):e.proxy}function Zc(e,t=!0){return ie(e)?e.displayName||e.name:e.name||t&&e.__name}function Jc(e){return ie(e)&&"__vccOpts"in e}const ve=(e,t)=>Za(e,t,$n);function ee(e,t,n){try{hr(-1);const r=arguments.length;return r===2?de(t)&&!Z(t)?pr(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pr(n)&&(n=[n]),ue(e,t,n))}finally{hr(1)}}const Yc="3.5.22";/**
|
|
23
|
-
* @vue/runtime-dom v3.5.
|
|
23
|
+
**/function bn(e,t,n,r){try{return r?e(...r):e()}catch(s){sr(s,t,n)}}function nt(e,t,n,r){if(te(e)){const s=bn(e,t,n,r);return s&&vi(s)&&s.catch(i=>{sr(i,t,n)}),s}if(B(e)){const s=[];for(let i=0;i<e.length;i++)s.push(nt(e[i],t,n,r));return s}}function sr(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){gt(),bn(i,null,10,[e,a,c]),mt();return}}lc(e,n,s,r,l)}function lc(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const _e=[];let We=-1;const Gt=[];let bt=null,Zt=0;const qi=Promise.resolve();let ir=null;function Yt(e){const t=ir||qi;return e?t.then(this?e.bind(this):e):t}function oc(e){let t=We+1,n=_e.length;for(;t<n;){const r=t+n>>>1,s=_e[r],i=yn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function es(e){if(!(e.flags&1)){const t=yn(e),n=_e[_e.length-1];!n||!(e.flags&2)&&t>=yn(n)?_e.push(e):_e.splice(oc(t),0,e),e.flags|=1,Ki()}}function Ki(){ir||(ir=qi.then(Yi))}function ac(e){B(e)?Gt.push(...e):bt&&e.id===-1?bt.splice(Zt+1,0,e):e.flags&1||(Gt.push(e),e.flags|=1),Ki()}function Gi(e,t,n=We+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 Zi(e){if(Gt.length){const t=[...new Set(Gt)].sort((n,r)=>yn(n)-yn(r));if(Gt.length=0,bt){bt.push(...t);return}for(bt=t,Zt=0;Zt<bt.length;Zt++){const n=bt[Zt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}bt=null,Zt=0}}const yn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Yi(e){try{for(We=0;We<_e.length;We++){const t=_e[We];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),bn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;We<_e.length;We++){const t=_e[We];t&&(t.flags&=-2)}We=-1,_e.length=0,Zi(),ir=null,(_e.length||Gt.length)&&Yi()}}let Le=null,Qi=null;function lr(e){const t=Le;return Le=e,Qi=e&&e.type.__scopeId||null,t}function cc(e,t=Le,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&hr(-1);const i=lr(t);let l;try{l=e(...s)}finally{lr(i),r._d&&hr(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function or(e,t){if(Le===null)return e;const n=mr(Le),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&&tt(l),r.push({dir:i,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Pt(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let l=0;l<s.length;l++){const o=s[l];i&&(o.oldValue=i[l].value);let a=o.dir[r];a&&(gt(),nt(a,n,8,[e.el,o,e,t]),mt())}}function uc(e,t){if(Se){let n=Se.provides;const r=Se.parent&&Se.parent.provides;r===n&&(n=Se.provides=Object.create(r)),n[e]=t}}function ar(e,t,n=!1){const r=hs();if(r||Qt){let s=Qt?Qt._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 fc=Symbol.for("v-scx"),hc=()=>ar(fc);function Ji(e,t){return Xi(e,null,t)}function yt(e,t,n){return Xi(e,t,n)}function Xi(e,t,n=fe){const{immediate:r,flush:s}=n,i=Ae({},n),l=t&&r||!t&&s!=="post";let o;if(An){if(s==="sync"){const f=hc();o=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=Rt,f.resume=Rt,f.pause=Rt,f}}const a=Se;i.call=(f,p,v)=>nt(f,a,p,v);let c=!1;s==="post"?i.scheduler=f=>{$e(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=ic(e,t,i);return An&&(o?o.push(u):l&&u()),u}const pc=Symbol("_vte"),dc=e=>e.__isTeleport,gc=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 wn(e,t){return te(e)?Ae({name:e.name},t,{setup:e}):e}function mc(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function wt(e){const t=hs(),n=It(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 el(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const cr=new WeakMap;function kn(e,t,n,r,s=!1){if(B(e)){e.forEach((y,A)=>kn(y,t&&(B(t)?t[A]:t),n,r,s));return}if(xn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&kn(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?mr(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,p=J(f),v=f===fe?di:y=>el(u,y)?!1:ie(p,y),x=(y,A)=>!(A&&el(u,A));if(c!=null&&c!==a){if(tl(t),be(c))u[c]=null,v(c)&&(f[c]=null);else if(ge(c)){const y=t;x(c,y.k)&&(c.value=null),y.k&&(u[y.k]=null)}}if(te(a))bn(a,o,12,[l,u]);else{const y=be(a),A=ge(a);if(y||A){const S=()=>{if(e.f){const I=y?v(a)?f[a]:u[a]:x()||!e.k?a.value:u[e.k];if(s)B(I)&&gi(I,i);else if(B(I))I.includes(i)||I.push(i);else if(y)u[a]=[i],v(a)&&(f[a]=u[a]);else{const z=[i];x(a,e.k)&&(a.value=z),e.k&&(u[e.k]=z)}}else y?(u[a]=l,v(a)&&(f[a]=l)):A&&(x(a,e.k)&&(a.value=l),e.k&&(u[e.k]=l))};if(l){const I=()=>{S(),cr.delete(e)};I.id=-1,cr.set(e,I),$e(I,n)}else tl(e),S()}}}function tl(e){const t=cr.get(e);t&&(t.flags|=8,cr.delete(e))}fn().requestIdleCallback,fn().cancelIdleCallback;const xn=e=>!!e.type.__asyncLoader,vc=e=>e.type.__isKeepAlive;function bc(e,t,n=Se,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{gt();const o=ds(n),a=nt(t,n,e,l);return o(),mt(),a});return r?s.unshift(i):s.push(i),i}}const ns=e=>(t,n=Se)=>{(!An||e==="sp")&&bc(e,(...r)=>t(...r),n)},_n=ns("m"),yc=ns("bum"),rs=ns("um"),wc="components";function kc(e,t){return _c(wc,e,!0,t)||e}const xc=Symbol.for("v-ndc");function _c(e,t,n=!0,r=!1){const s=Le||Se;if(s){const i=s.type;{const o=ru(i,!1);if(o&&(o===t||o===Oe(t)||o===Wn(Oe(t))))return i}const l=nl(s[e]||i[e],t)||nl(s.appContext[e],t);return!l&&r?i:l}}function nl(e,t){return e&&(e[t]||e[Oe(t)]||e[Wn(Oe(t))])}function je(e,t,n,r){let s;const i=n,l=B(e);if(l||be(e)){const o=l&&Lt(e);let a=!1,c=!1;o&&(a=!Ee(e),c=et(e),e=Yn(e)),s=new Array(e.length);for(let u=0,f=e.length;u<f;u++)s[u]=t(a?c?Kt(Ne(e[u])):Ne(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?_l(e)?mr(e):ss(e.parent):null,Cn=Ae(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=Yt.bind(e.proxy)),$watch:e=>Rt}),is=(e,t)=>e!==fe&&!e.__isScriptSetup&&ie(e,t),Cc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:o,appContext:a}=e;if(t[0]!=="$"){const p=l[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(is(r,t))return l[t]=1,r[t];if(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"&&we(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 rl(){return{app:null,config:{isNativeTag:di,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 $c=0;function Sc(e,t){return function(r,s=null){te(r)||(r=Ae({},r)),s!=null&&!oe(s)&&(s=null);const i=rl(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:$c++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:iu,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&te(u.install)?(l.add(u),u.install(c,...f)):te(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,p){if(!a){const v=c._ceVNode||re(r,s);return v.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),e(v,u,p),a=!0,c._container=u,u.__vue_app__=c,mr(v.component)}},onUnmount(u){o.push(u)},unmount(){a&&(nt(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=Qt;Qt=c;try{return u()}finally{Qt=f}}};return c}}let Qt=null;const Rc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Oe(t)}Modifiers`]||e[`${At(t)}Modifiers`];function Ac(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||fe;let s=n;const i=t.startsWith("update:"),l=i&&Rc(r,t.slice(7));l&&(l.trim&&(s=n.map(u=>be(u)?u.trim():u)),l.number&&(s=n.map(Kn)));let o,a=r[o=Ur(t)]||r[o=Ur(Oe(t))];!a&&i&&(a=r[o=Ur(At(t))]),a&&nt(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,nt(c,e,6,s)}}function Ec(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?(B(i)?i.forEach(o=>l[o]=null):Ae(l,i),oe(e)&&r.set(e,l),l):(oe(e)&&r.set(e,null),null)}function ur(e,t){return!e||!Un(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,At(t))||ie(e,t))}function sl(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:f,data:p,setupState:v,ctx:x,inheritAttrs:y}=e,A=lr(e);let S,I;try{if(n.shapeFlag&4){const R=s||r,D=R;S=Ke(c.call(D,R,u,f,v,p,x)),I=o}else{const R=t;S=Ke(R.length>1?R(f,{attrs:o,slots:l,emit:a}):R(f,null)),I=t.props?o:Tc(o)}}catch(R){$n.length=0,sr(R,e,1),S=re(kt)}let z=S;if(I&&y!==!1){const R=Object.keys(I),{shapeFlag:D}=z;R.length&&D&7&&(i&&R.some(Nr)&&(I=Lc(I,i)),z=Jt(z,I,!1,!0))}return n.dirs&&(z=Jt(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(n.dirs):n.dirs),n.transition&&ts(z,n.transition),S=z,lr(A),S}const Tc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Un(n))&&((t||(t={}))[n]=e[n]);return t},Lc=(e,t)=>{const n={};for(const r in e)(!Nr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Ic(e,t,n){const{props:r,children:s,component:i}=e,{props:l,children:o,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?il(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const p=u[f];if(ll(l,r,p)&&!ur(c,p))return!0}}}else return(s||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?il(r,l,c):!0:!!l;return!1}function il(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(ll(t,e,i)&&!ur(n,i))return!0}return!1}function ll(e,t,n){const r=e[n],s=t[n];return n==="style"&&oe(r)&&oe(s)?!dt(r,s):r!==s}function Mc({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const ol={},al=()=>Object.create(ol),cl=e=>Object.getPrototypeOf(e)===ol;function Pc(e,t,n,r=!1){const s={},i=al();e.propsDefaults=Object.create(null),ul(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Wa(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Oc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,o=J(s),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let p=u[f];if(ur(e.emitsOptions,p))continue;const v=t[p];if(a)if(ie(i,p))v!==i[p]&&(i[p]=v,c=!0);else{const x=Oe(p);s[x]=ls(a,o,x,v,e,!1)}else v!==i[p]&&(i[p]=v,c=!0)}}}else{ul(e,t,s,i)&&(c=!0);let u;for(const f in o)(!t||!ie(t,f)&&((u=At(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&&Je(e.attrs,"set","")}function ul(e,t,n,r){const[s,i]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(un(a))continue;const c=t[a];let u;s&&ie(s,u=Oe(a))?!i||!i.includes(u)?n[u]=c:(o||(o={}))[u]=c:ur(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(i){const a=J(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===At(n))&&(r=!0))}return r}function jc(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,Ut),Ut;if(B(i))for(let c=0;c<i.length;c++){const u=Oe(i[c]);fl(u)&&(l[u]=fe)}else if(i)for(const c in i){const u=Oe(c);if(fl(u)){const f=i[c],p=l[u]=B(f)||te(f)?{type:f}:Ae({},f),v=p.type;let x=!1,y=!0;if(B(v))for(let A=0;A<v.length;++A){const S=v[A],I=te(S)&&S.name;if(I==="Boolean"){x=!0;break}else I==="String"&&(y=!1)}else x=te(v)&&v.name==="Boolean";p[0]=x,p[1]=y,(x||ie(p,"default"))&&o.push(u)}}const a=[l,o];return oe(e)&&r.set(e,a),a}function fl(e){return e[0]!=="$"&&!un(e)}const os=e=>e==="_"||e==="_ctx"||e==="$stable",as=e=>B(e)?e.map(Ke):[Ke(e)],zc=(e,t,n)=>{if(t._n)return t;const r=cc((...s)=>as(t(...s)),n);return r._c=!1,r},hl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(os(s))continue;const i=e[s];if(te(i))t[s]=zc(s,i,r);else if(i!=null){const l=as(i);t[s]=()=>l}}},pl=(e,t)=>{const n=as(t);e.slots.default=()=>n},dl=(e,t,n)=>{for(const r in t)(n||!os(r))&&(e[r]=t[r])},Fc=(e,t,n)=>{const r=e.slots=al();if(e.vnode.shapeFlag&32){const s=t._;s?(dl(r,t,n),n&&wi(r,"_",s,!0)):hl(t,r)}else t&&pl(e,t)},Dc=(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:dl(s,t,n):(i=!t.$stable,hl(t,s)),l=t}else t&&(pl(e,t),l={default:1});if(i)for(const o in s)!os(o)&&l[o]==null&&delete s[o]};function Hc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(fn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const $e=Wc;function Nc(e){return Uc(e)}function Uc(e,t){Hc();const n=fn();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:p,setScopeId:v=Rt,insertStaticContent:x}=e,y=(h,d,g,m=null,b=null,w=null,k=void 0,$=null,C=!!d.dynamicChildren)=>{if(h===d)return;h&&!Rn(h,d)&&(m=$t(h),Ue(h,b,w,!0),h=null),d.patchFlag===-2&&(C=!1,d.dynamicChildren=null);const{type:_,ref:T,shapeFlag:E}=d;switch(_){case fr:A(h,d,g,m);break;case kt:S(h,d,g,m);break;case us:h==null&&I(d,g,m,k);break;case ce:N(h,d,g,m,b,w,k,$,C);break;default:E&1?D(h,d,g,m,b,w,k,$,C):E&6?ee(h,d,g,m,b,w,k,$,C):(E&64||E&128)&&_.process(h,d,g,m,b,w,k,$,C,ht)}T!=null&&b?kn(T,h&&h.ref,w,d||h,!d):T==null&&h&&h.ref!=null&&kn(h.ref,null,w,h,!0)},A=(h,d,g,m)=>{if(h==null)r(d.el=o(d.children),g,m);else{const b=d.el=h.el;d.children!==h.children&&c(b,d.children)}},S=(h,d,g,m)=>{h==null?r(d.el=a(d.children||""),g,m):d.el=h.el},I=(h,d,g,m)=>{[h.el,h.anchor]=x(h.children,d,g,m,h.el,h.anchor)},z=({el:h,anchor:d},g,m)=>{let b;for(;h&&h!==d;)b=p(h),r(h,g,m),h=b;r(d,g,m)},R=({el:h,anchor:d})=>{let g;for(;h&&h!==d;)g=p(h),s(h),h=g;s(d)},D=(h,d,g,m,b,w,k,$,C)=>{if(d.type==="svg"?k="svg":d.type==="math"&&(k="mathml"),h==null)he(d,g,m,b,w,k,$,C);else{const _=h.el&&h.el._isVueCE?h.el:null;try{_&&_._beginPatch(),ke(h,d,b,w,k,$,C)}finally{_&&_._endPatch()}}},he=(h,d,g,m,b,w,k,$)=>{let C,_;const{props:T,shapeFlag:E,transition:P,dirs:U}=h;if(C=h.el=l(h.type,w,T&&T.is,T),E&8?u(C,h.children):E&16&&F(h.children,C,null,m,b,cs(h,w),k,$),U&&Pt(h,null,m,"created"),ue(C,h,h.scopeId,k,m),T){for(const ne in T)ne!=="value"&&!un(ne)&&i(C,ne,null,T[ne],w,m);"value"in T&&i(C,"value",null,T.value,w),(_=T.onVnodeBeforeMount)&&Ge(_,m,h)}U&&Pt(h,null,m,"beforeMount");const K=Vc(b,P);K&&P.beforeEnter(C),r(C,d,g),((_=T&&T.onVnodeMounted)||K||U)&&$e(()=>{_&&Ge(_,m,h),K&&P.enter(C),U&&Pt(h,null,m,"mounted")},b)},ue=(h,d,g,m,b)=>{if(g&&v(h,g),m)for(let w=0;w<m.length;w++)v(h,m[w]);if(b){let w=b.subTree;if(d===w||yl(w.type)&&(w.ssContent===d||w.ssFallback===d)){const k=b.vnode;ue(h,k,k.scopeId,k.slotScopeIds,b.parent)}}},F=(h,d,g,m,b,w,k,$,C=0)=>{for(let _=C;_<h.length;_++){const T=h[_]=$?st(h[_]):Ke(h[_]);y(null,T,d,g,m,b,w,k,$)}},ke=(h,d,g,m,b,w,k)=>{const $=d.el=h.el;let{patchFlag:C,dynamicChildren:_,dirs:T}=d;C|=h.patchFlag&16;const E=h.props||fe,P=d.props||fe;let U;if(g&&Ot(g,!1),(U=P.onVnodeBeforeUpdate)&&Ge(U,g,d,h),T&&Pt(d,h,g,"beforeUpdate"),g&&Ot(g,!0),(E.innerHTML&&P.innerHTML==null||E.textContent&&P.textContent==null)&&u($,""),_?de(h.dynamicChildren,_,$,g,m,cs(d,b),w):k||le(h,d,$,null,g,m,cs(d,b),w,!1),C>0){if(C&16)H($,E,P,g,b);else if(C&2&&E.class!==P.class&&i($,"class",null,P.class,b),C&4&&i($,"style",E.style,P.style,b),C&8){const K=d.dynamicProps;for(let ne=0;ne<K.length;ne++){const se=K[ne],Me=E[se],xe=P[se];(xe!==Me||se==="value")&&i($,se,Me,xe,b,g)}}C&1&&h.children!==d.children&&u($,d.children)}else!k&&_==null&&H($,E,P,g,b);((U=P.onVnodeUpdated)||T)&&$e(()=>{U&&Ge(U,g,d,h),T&&Pt(d,h,g,"updated")},m)},de=(h,d,g,m,b,w,k)=>{for(let $=0;$<d.length;$++){const C=h[$],_=d[$],T=C.el&&(C.type===ce||!Rn(C,_)||C.shapeFlag&198)?f(C.el):g;y(C,_,T,null,m,b,w,k,!0)}},H=(h,d,g,m,b)=>{if(d!==g){if(d!==fe)for(const w in d)!un(w)&&!(w in g)&&i(h,w,d[w],null,b,m);for(const w in g){if(un(w))continue;const k=g[w],$=d[w];k!==$&&w!=="value"&&i(h,w,$,k,b,m)}"value"in g&&i(h,"value",d.value,g.value,b)}},N=(h,d,g,m,b,w,k,$,C)=>{const _=d.el=h?h.el:o(""),T=d.anchor=h?h.anchor:o("");let{patchFlag:E,dynamicChildren:P,slotScopeIds:U}=d;U&&($=$?$.concat(U):U),h==null?(r(_,g,m),r(T,g,m),F(d.children||[],g,T,b,w,k,$,C)):E>0&&E&64&&P&&h.dynamicChildren&&h.dynamicChildren.length===P.length?(de(h.dynamicChildren,P,g,b,w,k,$),(d.key!=null||b&&d===b.subTree)&&gl(h,d,!0)):le(h,d,g,T,b,w,k,$,C)},ee=(h,d,g,m,b,w,k,$,C)=>{d.slotScopeIds=$,h==null?d.shapeFlag&512?b.ctx.activate(d,g,m,k,C):j(d,g,m,b,w,k,C):Z(h,d,C)},j=(h,d,g,m,b,w,k)=>{const $=h.component=Jc(h,m,b);if(vc(h)&&($.ctx.renderer=ht),Xc($,!1,k),$.asyncDep){if(b&&b.registerDep($,W,k),!h.el){const C=$.subTree=re(kt);S(null,C,d,g),h.placeholder=C.el}}else W($,h,d,g,b,w,k)},Z=(h,d,g)=>{const m=d.component=h.component;if(Ic(h,d,g))if(m.asyncDep&&!m.asyncResolved){Fe(m,d,g);return}else m.next=d,m.update();else d.el=h.el,m.vnode=d},W=(h,d,g,m,b,w,k)=>{const $=()=>{if(h.isMounted){let{next:E,bu:P,u:U,parent:K,vnode:ne}=h;{const sn=ml(h);if(sn){E&&(E.el=ne.el,Fe(h,E,k)),sn.asyncDep.then(()=>{$e(()=>{h.isUnmounted||_()},b)});return}}let se=E,Me;Ot(h,!1),E?(E.el=ne.el,Fe(h,E,k)):E=ne,P&&qn(P),(Me=E.props&&E.props.onVnodeBeforeUpdate)&&Ge(Me,K,E,ne),Ot(h,!0);const xe=sl(h),Pe=h.subTree;h.subTree=xe,y(Pe,xe,f(Pe.el),$t(Pe),h,b,w),E.el=xe.el,se===null&&Mc(h,xe.el),U&&$e(U,b),(Me=E.props&&E.props.onVnodeUpdated)&&$e(()=>Ge(Me,K,E,ne),b)}else{let E;const{props:P}=d,{bm:U,m:K,parent:ne,root:se,type:Me}=h,xe=xn(d);Ot(h,!1),U&&qn(U),!xe&&(E=P&&P.onVnodeBeforeMount)&&Ge(E,ne,d),Ot(h,!0);{se.ce&&se.ce._hasShadowRoot()&&se.ce._injectChildStyle(Me);const Pe=h.subTree=sl(h);y(null,Pe,g,m,h,b,w),d.el=Pe.el}if(K&&$e(K,b),!xe&&(E=P&&P.onVnodeMounted)){const Pe=d;$e(()=>Ge(E,ne,Pe),b)}(d.shapeFlag&256||ne&&xn(ne.vnode)&&ne.vnode.shapeFlag&256)&&h.a&&$e(h.a,b),h.isMounted=!0,d=g=m=null}};h.scope.on();const C=h.effect=new Si($);h.scope.off();const _=h.update=C.run.bind(C),T=h.job=C.runIfDirty.bind(C);T.i=h,T.id=h.uid,C.scheduler=()=>es(T),Ot(h,!0),_()},Fe=(h,d,g)=>{d.component=h;const m=h.vnode.props;h.vnode=d,h.next=null,Oc(h,d.props,m,g),Dc(h,d.children,g),gt(),Gi(h),mt()},le=(h,d,g,m,b,w,k,$,C=!1)=>{const _=h&&h.children,T=h?h.shapeFlag:0,E=d.children,{patchFlag:P,shapeFlag:U}=d;if(P>0){if(P&128){_t(_,E,g,m,b,w,k,$,C);return}else if(P&256){ut(_,E,g,m,b,w,k,$,C);return}}U&8?(T&16&&Ct(_,b,w),E!==_&&u(g,E)):T&16?U&16?_t(_,E,g,m,b,w,k,$,C):Ct(_,b,w,!0):(T&8&&u(g,""),U&16&&F(E,g,m,b,w,k,$,C))},ut=(h,d,g,m,b,w,k,$,C)=>{h=h||Ut,d=d||Ut;const _=h.length,T=d.length,E=Math.min(_,T);let P;for(P=0;P<E;P++){const U=d[P]=C?st(d[P]):Ke(d[P]);y(h[P],U,g,null,b,w,k,$,C)}_>T?Ct(h,b,w,!0,!1,E):F(d,g,m,b,w,k,$,C,E)},_t=(h,d,g,m,b,w,k,$,C)=>{let _=0;const T=d.length;let E=h.length-1,P=T-1;for(;_<=E&&_<=P;){const U=h[_],K=d[_]=C?st(d[_]):Ke(d[_]);if(Rn(U,K))y(U,K,g,null,b,w,k,$,C);else break;_++}for(;_<=E&&_<=P;){const U=h[E],K=d[P]=C?st(d[P]):Ke(d[P]);if(Rn(U,K))y(U,K,g,null,b,w,k,$,C);else break;E--,P--}if(_>E){if(_<=P){const U=P+1,K=U<T?d[U].el:m;for(;_<=P;)y(null,d[_]=C?st(d[_]):Ke(d[_]),g,K,b,w,k,$,C),_++}}else if(_>P)for(;_<=E;)Ue(h[_],b,w,!0),_++;else{const U=_,K=_,ne=new Map;for(_=K;_<=P;_++){const Re=d[_]=C?st(d[_]):Ke(d[_]);Re.key!=null&&ne.set(Re.key,_)}let se,Me=0;const xe=P-K+1;let Pe=!1,sn=0;const ln=new Array(xe);for(_=0;_<xe;_++)ln[_]=0;for(_=U;_<=E;_++){const Re=h[_];if(Me>=xe){Ue(Re,b,w,!0);continue}let Ve;if(Re.key!=null)Ve=ne.get(Re.key);else for(se=K;se<=P;se++)if(ln[se-K]===0&&Rn(Re,d[se])){Ve=se;break}Ve===void 0?Ue(Re,b,w,!0):(ln[Ve-K]=_+1,Ve>=sn?sn=Ve:Pe=!0,y(Re,d[Ve],g,null,b,w,k,$,C),Me++)}const zs=Pe?Bc(ln):Ut;for(se=zs.length-1,_=xe-1;_>=0;_--){const Re=K+_,Ve=d[Re],Fs=d[Re+1],Ds=Re+1<T?Fs.el||bl(Fs):m;ln[_]===0?y(null,Ve,g,Ds,b,w,k,$,C):Pe&&(se<0||_!==zs[se]?ft(Ve,g,Ds,2):se--)}}},ft=(h,d,g,m,b=null)=>{const{el:w,type:k,transition:$,children:C,shapeFlag:_}=h;if(_&6){ft(h.component.subTree,d,g,m);return}if(_&128){h.suspense.move(d,g,m);return}if(_&64){k.move(h,d,g,ht);return}if(k===ce){r(w,d,g);for(let E=0;E<C.length;E++)ft(C[E],d,g,m);r(h.anchor,d,g);return}if(k===us){z(h,d,g);return}if(m!==2&&_&1&&$)if(m===0)$.beforeEnter(w),r(w,d,g),$e(()=>$.enter(w),b);else{const{leave:E,delayLeave:P,afterLeave:U}=$,K=()=>{h.ctx.isUnmounted?s(w):r(w,d,g)},ne=()=>{w._isLeaving&&w[gc](!0),E(w,()=>{K(),U&&U()})};P?P(w,K,ne):ne()}else r(w,d,g)},Ue=(h,d,g,m=!1,b=!1)=>{const{type:w,props:k,ref:$,children:C,dynamicChildren:_,shapeFlag:T,patchFlag:E,dirs:P,cacheIndex:U}=h;if(E===-2&&(b=!1),$!=null&&(gt(),kn($,null,g,h,!0),mt()),U!=null&&(d.renderCache[U]=void 0),T&256){d.ctx.deactivate(h);return}const K=T&1&&P,ne=!xn(h);let se;if(ne&&(se=k&&k.onVnodeBeforeUnmount)&&Ge(se,d,h),T&6)Pr(h.component,g,m);else{if(T&128){h.suspense.unmount(g,m);return}K&&Pt(h,null,d,"beforeUnmount"),T&64?h.type.remove(h,d,g,ht,m):_&&!_.hasOnce&&(w!==ce||E>0&&E&64)?Ct(_,d,g,!1,!0):(w===ce&&E&384||!b&&T&16)&&Ct(C,d,g),m&&Ht(h)}(ne&&(se=k&&k.onVnodeUnmounted)||K)&&$e(()=>{se&&Ge(se,d,h),K&&Pt(h,null,d,"unmounted")},g)},Ht=h=>{const{type:d,el:g,anchor:m,transition:b}=h;if(d===ce){Mr(g,m);return}if(d===us){R(h);return}const w=()=>{s(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(h.shapeFlag&1&&b&&!b.persisted){const{leave:k,delayLeave:$}=b,C=()=>k(g,w);$?$(h.el,w,C):C()}else w()},Mr=(h,d)=>{let g;for(;h!==d;)g=p(h),s(h),h=g;s(d)},Pr=(h,d,g)=>{const{bum:m,scope:b,job:w,subTree:k,um:$,m:C,a:_}=h;vl(C),vl(_),m&&qn(m),b.stop(),w&&(w.flags|=8,Ue(k,h,d,g)),$&&$e($,d),$e(()=>{h.isUnmounted=!0},d)},Ct=(h,d,g,m=!1,b=!1,w=0)=>{for(let k=w;k<h.length;k++)Ue(h[k],d,g,m,b)},$t=h=>{if(h.shapeFlag&6)return $t(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const d=p(h.anchor||h.el),g=d&&d[pc];return g?p(g):d};let rn=!1;const zn=(h,d,g)=>{let m;h==null?d._vnode&&(Ue(d._vnode,null,null,!0),m=d._vnode.component):y(d._vnode||null,h,d,null,null,null,g),d._vnode=h,rn||(rn=!0,Gi(m),Zi(),rn=!1)},ht={p:y,um:Ue,m:ft,r:Ht,mt:j,mc:F,pc:le,pbc:de,n:$t,o:e};return{render:zn,hydrate:void 0,createApp:Sc(zn)}}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 Vc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gl(e,t,n=!1){const r=e.children,s=t.children;if(B(r)&&B(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]=st(s[i]),o.el=l.el),!n&&o.patchFlag!==-2&&gl(l,o)),o.type===fr&&(o.patchFlag===-1&&(o=s[i]=st(o)),o.el=l.el),o.type===kt&&!o.el&&(o.el=l.el)}}function Bc(e){const t=e.slice(),n=[0];let r,s,i,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(i=0,l=n.length-1;i<l;)o=i+l>>1,e[n[o]]<c?i=o+1:l=o;c<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}function ml(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ml(t)}function vl(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function bl(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?bl(t.subTree):null}const yl=e=>e.__isSuspense;function Wc(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):ac(e)}const ce=Symbol.for("v-fgt"),fr=Symbol.for("v-txt"),kt=Symbol.for("v-cmt"),us=Symbol.for("v-stc"),$n=[];let Ie=null;function L(e=!1){$n.push(Ie=e?null:[])}function qc(){$n.pop(),Ie=$n[$n.length-1]||null}let Sn=1;function hr(e,t=!1){Sn+=e,e<0&&Ie&&t&&(Ie.hasOnce=!0)}function wl(e){return e.dynamicChildren=Sn>0?Ie||Ut:null,qc(),Sn>0&&Ie&&Ie.push(e),e}function M(e,t,n,r,s,i){return wl(O(e,t,n,r,s,i,!0))}function qe(e,t,n,r,s){return wl(re(e,t,n,r,s,!0))}function pr(e){return e?e.__v_isVNode===!0:!1}function Rn(e,t){return e.type===t.type&&e.key===t.key}const kl=({key:e})=>e??null,dr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||ge(e)||te(e)?{i:Le,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&&kl(t),ref:t&&dr(t),scopeId:Qi,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:Le};return o?(fs(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),Sn>0&&!l&&Ie&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&Ie.push(a),a}const re=Kc;function Kc(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===xc)&&(e=kt),pr(e)){const o=Jt(e,t,!0);return n&&fs(o,n),Sn>0&&!i&&Ie&&(o.shapeFlag&6?Ie[Ie.indexOf(e)]=o:Ie.push(o)),o.patchFlag=-2,o}if(su(e)&&(e=e.__vccOpts),t){t=Gc(t);let{class:o,style:a}=t;o&&!be(o)&&(t.class=ve(o)),oe(a)&&(tr(a)&&!B(a)&&(a=Ae({},a)),t.style=Wt(a))}const l=be(e)?1:yl(e)?128:dc(e)?64:oe(e)?4:te(e)?2:0;return O(e,t,n,r,s,l,i,!0)}function Gc(e){return e?tr(e)||cl(e)?Ae({},e):e:null}function Jt(e,t,n=!1,r=!1){const{props:s,ref:i,patchFlag:l,children:o,transition:a}=e,c=t?Zc(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&kl(c),ref:t&&t.ref?n&&i?B(i)?i.concat(dr(t)):[i,dr(t)]:dr(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&&Jt(e.ssContent),ssFallback:e.ssFallback&&Jt(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 rt(e=" ",t=0){return re(fr,null,e,t)}function q(e="",t=!1){return t?(L(),qe(kt,null,e)):re(kt,null,e)}function Ke(e){return e==null||typeof e=="boolean"?re(kt):B(e)?re(ce,null,e.slice()):pr(e)?st(e):re(fr,null,String(e))}function st(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Jt(e)}function fs(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),fs(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!cl(t)?t._ctx=Le:s===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else te(t)?(t={default:t,_ctx:Le},n=32):(t=String(t),r&64?(n=16,t=[rt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(s==="style")t.style=Wt([t.style,r.style]);else if(Un(s)){const i=t[s],l=r[s];l&&i!==l&&!(B(i)&&i.includes(l))&&(t[s]=i?[].concat(i,l):l)}else s!==""&&(t[s]=r[s])}return t}function Ge(e,t,n,r=null){nt(e,t,7,[n,r])}const Yc=rl();let Qc=0;function Jc(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Yc,i={uid:Qc++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ca(!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:jc(r,s),emitsOptions:Ec(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=Ac.bind(null,i),e.ce&&e.ce(i),i}let Se=null;const hs=()=>Se||Le;let gr,ps;{const e=fn(),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)}};gr=t("__VUE_INSTANCE_SETTERS__",n=>Se=n),ps=t("__VUE_SSR_SETTERS__",n=>An=n)}const ds=e=>{const t=Se;return gr(e),e.scope.on(),()=>{e.scope.off(),gr(t)}},xl=()=>{Se&&Se.scope.off(),gr(null)};function _l(e){return e.vnode.shapeFlag&4}let An=!1;function Xc(e,t=!1,n=!1){t&&ps(t);const{props:r,children:s}=e.vnode,i=_l(e);Pc(e,r,i,t),Fc(e,s,n||t);const l=i?eu(e,t):void 0;return t&&ps(!1),l}function eu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Cc);const{setup:r}=n;if(r){gt();const s=e.setupContext=r.length>1?nu(e):null,i=ds(e),l=bn(r,e,0,[e.props,s]),o=vi(l);if(mt(),i(),(o||e.sp)&&!xn(e)&&mc(e),o){if(l.then(xl,xl),t)return l.then(a=>{Cl(e,a,t)}).catch(a=>{sr(a,e,0)});e.asyncDep=l}else Cl(e,l,t)}else Sl(e,t)}function Cl(e,t,n){te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:oe(t)&&(e.setupState=Wi(t)),Sl(e,n)}let $l;function Sl(e,t,n){const r=e.type;if(!e.render){if(!t&&$l&&!r.render){const s=r.template||!1;if(s){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Ae(Ae({isCustomElement:i,delimiters:o},l),a);r.render=$l(s,c)}}e.render=r.render||Rt}}const tu={get(e,t){return we(e,"get",""),e[t]}};function nu(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,tu),slots:e.slots,emit:e.emit,expose:t}}function mr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Wi(Ka(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 ru(e,t=!0){return te(e)?e.displayName||e.name:e.name||t&&e.__name}function su(e){return te(e)&&"__vccOpts"in e}const me=(e,t)=>rc(e,t,An);function Y(e,t,n){try{hr(-1);const r=arguments.length;return r===2?oe(t)&&!B(t)?pr(t)?re(e,null,[t]):re(e,t):re(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pr(n)&&(n=[n]),re(e,t,n))}finally{hr(1)}}const iu="3.5.28";/**
|
|
24
|
+
* @vue/runtime-dom v3.5.28
|
|
24
25
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
25
26
|
* @license MIT
|
|
26
|
-
**/let gs;const xl=typeof window<"u"&&window.trustedTypes;if(xl)try{gs=xl.createPolicy("vue",{createHTML:e=>e})}catch{}const _l=gs?e=>gs.createHTML(e):e=>e,Xc="http://www.w3.org/2000/svg",Qc="http://www.w3.org/1998/Math/MathML",lt=typeof document<"u"?document:null,Cl=lt&<.createElement("template"),eu={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"?lt.createElementNS(Xc,e):t==="mathml"?lt.createElementNS(Qc,e):n?lt.createElement(e,{is:n}):lt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>lt.createTextNode(e),createComment:e=>lt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>lt.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{Cl.innerHTML=_l(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=Cl.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]}},tu=Symbol("_vtc");function nu(e,t,n){const r=e[tu];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const vr=Symbol("_vod"),$l=Symbol("_vsh"),Sl={name:"show",beforeMount(e,{value:t},{transition:n}){e[vr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Sn(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),Sn(e,!0),r.enter(e)):r.leave(e,()=>{Sn(e,!1)}):Sn(e,t))},beforeUnmount(e,{value:t}){Sn(e,t)}};function Sn(e,t){e.style.display=t?e[vr]:"none",e[$l]=!t}const ru=Symbol(""),su=/(?:^|;)\s*display\s*:/;function iu(e,t,n){const r=e.style,s=we(n);let i=!1;if(n&&!s){if(t)if(we(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&br(r,l,"")}else for(const o in t)n[o]==null&&br(r,o,"");for(const o in n)o==="display"&&(i=!0),br(r,o,n[o])}else if(s){if(t!==n){const o=r[ru];o&&(n+=";"+o),r.cssText=n,i=su.test(n)}}else t&&e.removeAttribute("style");vr in e&&(e[vr]=i?r.display:"",e[$l]&&(r.display="none"))}const Rl=/\s*!important$/;function br(e,t,n){if(Z(n))n.forEach(r=>br(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=lu(e,t);Rl.test(n)?e.setProperty($t(r),n.replace(Rl,""),"important"):e[r]=n}}const Al=["Webkit","Moz","ms"],ms={};function lu(e,t){const n=ms[t];if(n)return n;let r=ze(t);if(r!=="filter"&&r in e)return ms[t]=r;r=Wn(r);for(let s=0;s<Al.length;s++){const i=Al[s]+r;if(i in e)return ms[t]=i}return t}const Tl="http://www.w3.org/1999/xlink";function El(e,t,n,r,s,i=da(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Tl,t.slice(6,t.length)):e.setAttributeNS(Tl,t,n):n==null||i&&!wi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":We(n)?String(n):n)}function Ll(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?_l(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=wi(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 ot(e,t,n,r){e.addEventListener(t,n,r)}function ou(e,t,n,r){e.removeEventListener(t,n,r)}const Il=Symbol("_vei");function au(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]=cu(t);if(r){const c=i[t]=hu(r,s);ot(e,l,c,a)}else o&&(ou(e,l,o,a),i[t]=void 0)}}const Ml=/(?:Once|Passive|Capture)$/;function cu(e){let t;if(Ml.test(e)){t={};let r;for(;r=e.match(Ml);)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 uu=Promise.resolve(),fu=()=>vs||(uu.then(()=>vs=0),vs=Date.now());function hu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;st(pu(r,n.value),t,5,[r])};return n.value=e,n.attached=fu(),n}function pu(e,t){if(Z(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 Pl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,du=(e,t,n,r,s,i)=>{const o=s==="svg";t==="class"?nu(e,r,o):t==="style"?iu(e,n,r):Vn(t)?Dr(t)||au(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gu(e,t,r,o))?(Ll(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)||!we(r))?Ll(e,ze(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),El(e,t,r,o))};function gu(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Pl(t)&&ie(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 Pl(t)&&we(n)?!1:t in e}const wt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Z(t)?n=>qn(t,n):t};function mu(e){e.target.composing=!0}function Ol(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const He=Symbol("_assign"),bs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[He]=wt(s);const i=r||s.props&&s.props.type==="number";ot(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Kn(l)),e[He](l)}),n&&ot(e,"change",()=>{e.value=e.value.trim()}),t||(ot(e,"compositionstart",mu),ot(e,"compositionend",Ol),ot(e,"change",Ol))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},o){if(e[He]=wt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(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))}},vu={deep:!0,created(e,t,n){e[He]=wt(n),ot(e,"change",()=>{const r=e._modelValue,s=Zt(e),i=e.checked,o=e[He];if(Z(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(Fl(e,i))})},mounted:jl,beforeUpdate(e,t,n){e[He]=wt(n),jl(e,t,n)}};function jl(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(Z(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,Fl(e,!0))}e.checked!==s&&(e.checked=s)}const bu={created(e,{value:t},n){e.checked=St(t,n.props.value),e[He]=wt(n),ot(e,"change",()=>{e[He](Zt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[He]=wt(r),t!==n&&(e.checked=St(t,r.props.value))}},yu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Ut(t);ot(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Kn(Zt(o)):Zt(o));e[He](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,qt(()=>{e._assigning=!1})}),e[He]=wt(r)},mounted(e,{value:t}){zl(e,t)},beforeUpdate(e,t,n){e[He]=wt(n)},updated(e,{value:t}){e._assigning||zl(e,t)}};function zl(e,t){const n=e.multiple,r=Z(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 Fl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const wu={created(e,t,n){yr(e,t,n,null,"created")},mounted(e,t,n){yr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){yr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){yr(e,t,n,r,"updated")}};function ku(e,t){switch(e){case"SELECT":return yu;case"TEXTAREA":return bs;default:switch(t){case"checkbox":return vu;case"radio":return bu;default:return bs}}}function yr(e,t,n,r,s){const o=ku(e.tagName,n.props&&n.props.type)[s];o&&o(e,t,n,r)}const xu=je({patchProp:du},eu);let Dl;function _u(){return Dl||(Dl=Cc(xu))}const Cu=((...e)=>{const t=_u().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Su(r);if(!s)return;const i=t._component;!ie(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const o=n(s,!1,$u(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),o},t});function $u(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Su(e){return we(e)?document.querySelector(e):e}function Rn(e,t){return _i()?(va(e,t),!0):!1}const wr=typeof window<"u"&&typeof document<"u",Ru=Object.prototype.toString,Au=e=>Ru.call(e)==="[object Object]",kr=()=>{};function Tu(...e){if(e.length!==1)return qa(...e);const t=e[0];return typeof t=="function"?At(Va(()=>({get:t,set:kr}))):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 Ul=e=>e();function Eu(e,t={}){let n,r,s=kr;const i=a=>{clearTimeout(a),s(),s=kr};let o;return a=>{const c=Ee(e),u=Ee(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 Lu(e=Ul,t={}){const{initialState:n="active"}=t,r=Tu(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 Nl(e){return hs()}function Iu(e,t=200,n={}){return Hl(Eu(t,n),e)}function Mu(e,t,n={}){const{eventFilter:r=Ul,...s}=n;return vt(e,Hl(r,t),s)}function Pu(e,t,n={}){const{eventFilter:r,initialState:s="active",...i}=n,{eventFilter:o,pause:l,resume:a,isActive:c}=Lu(r,{initialState:s});return{stop:Mu(e,t,{...i,eventFilter:o}),pause:l,resume:a,isActive:c}}const Ou=Pu;function ws(e,t=!0,n){Nl()?wn(e,n):t?e():qt(e)}function ju(e,t){Nl()&&rs(e,t)}function zu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const o=Tt(!1);function l(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,l()}function c(){const u=Ee(t);u<=0||(o.value=!0,s&&e(),l(),o.value&&(i=setInterval(e,u)))}return r&&wr&&c(),(ye(t)||typeof t=="function")&&Rn(vt(t,()=>{o.value&&wr&&c()})),Rn(a),{isActive:Fa(o),pause:a,resume:c}}function Jt(e,t,n){return vt(e,t,{...n,immediate:!0})}const Yt=wr?window:void 0,Vl=wr?window.document:void 0;function Fu(e){var t;const n=Ee(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(Ee(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=>Fu(c)))!==null&&l!==void 0?l:[Yt].filter(c=>c!=null),ys(Ee(s.value?e[1]:e[0])),ys(K(s.value?e[2]:e[1])),Ee(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=Au(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 Rn(n),o}function Du(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:s=Yt,once:i=!1}=t,o=Tt(!1),l=ve(()=>r?1e3/Ee(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(),Rn(p),{isActive:At(o),pause:p,resume:f}}const xr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_r="__vueuse_ssr_handlers__",Hu=Uu();function Uu(){return _r in xr||(xr[_r]=xr[_r]||{}),xr[_r]}function Nu(e,t){return Hu[e]||t}function Vu(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 Bu={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()}},Bl="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?Tt:ae)(typeof t=="function"?t():t),I=ve(()=>Ee(e));if(!n)try{n=Nu("getDefaultStorage",()=>Yt==null?void 0:Yt.localStorage)()}catch(z){b(z)}if(!n)return k;const A=Ee(t),_=Vu(A),F=(s=r.serializer)!==null&&s!==void 0?s:Bu[_],{pause:T,resume:P}=Ou(k,z=>me(z),{flush:i,deep:o,eventFilter:p});vt(I,()=>X(),{flush:i});let V=!1;const G=z=>{m&&!V||X(z)},W=z=>{m&&!V||N(z)};f&&l&&(n instanceof Storage?Mt(f,"storage",G,{passive:!0}):Mt(f,Bl,W)),m?ws(()=>{V=!0,X()}):X();function ke(z,J){if(f){const re={key:I.value,oldValue:z,newValue:J,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",re):new CustomEvent(Bl,{detail:re}))}}function me(z){try{const J=n.getItem(I.value);if(z==null)ke(J,null),n.removeItem(I.value);else{const re=F.write(z);J!==re&&(n.setItem(I.value,re),ke(J,re))}}catch(J){b(J)}}function H(z){const J=z?z.newValue:n.getItem(I.value);if(J==null)return a&&A!=null&&n.setItem(I.value,F.write(A)),A;if(!z&&c){const re=F.read(J);return typeof c=="function"?c(re,A):_==="object"&&!Array.isArray(re)?{...A,...re}:re}else return typeof J!="string"?J:F.read(J)}function X(z){if(!(z&&z.storageArea!==n)){if(z&&z.key==null){k.value=A;return}if(!(z&&z.key!==I.value)){T();try{const J=F.write(k.value);(z===void 0||(z==null?void 0:z.newValue)!==J)&&(k.value=H(z))}catch(J){b(J)}finally{z?qt(P):P()}}}}function N(z){X(z.detail)}return k}function Wu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame",immediate:r=!0}=e,s=ae(new Date),i=()=>s.value=new Date,o=n==="requestAnimationFrame"?Du(i,{immediate:r}):zu(i,n,{immediate:r});return t?{now:s,...o}:s}function qu(e,t=kr,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=Vl,attrs:p={},nonce:b=void 0}=n,m=Tt(null);let k=null;const I=F=>new Promise((T,P)=>{const V=me=>(m.value=me,T(me),me);if(!f){T(!1);return}let G=!1,W=f.querySelector(`script[src="${Ee(e)}"]`);W?W.hasAttribute("data-loaded")&&V(W):(W=f.createElement("script"),W.type=i,W.async=o,W.src=Ee(e),u&&(W.defer=u),l&&(W.crossOrigin=l),c&&(W.noModule=c),a&&(W.referrerPolicy=a),b&&(W.nonce=b),Object.entries(p).forEach(([me,H])=>W==null?void 0:W.setAttribute(me,H)),G=!0);const ke={passive:!0};Mt(W,"error",me=>P(me),ke),Mt(W,"abort",me=>P(me),ke),Mt(W,"load",()=>{W.setAttribute("data-loaded","true"),t(W),V(W)},ke),G&&(W=f.head.appendChild(W)),F||V(W)}),A=(F=!0)=>(k||(k=I(F)),k),_=()=>{if(!f)return;k=null,m.value&&(m.value=null);const F=f.querySelector(`script[src="${Ee(e)}"]`);F&&f.head.removeChild(F)};return r&&!s&&ws(A),s||ju(_),{scriptTag:m,load:A,unload:_}}let Ku=0;function Gu(e,t={}){const n=Tt(!1),{document:r=Vl,immediate:s=!0,manual:i=!1,id:o=`vueuse_styletag_${++Ku}`}=t,l=Tt(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=vt(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||Rn(u),{id:o,css:l,unload:u,load:c,isLoaded:At(n)}}const Zu="WALINE_EMOJI",Wl=Xt(Zu,{}),Ju=e=>/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Yu=e=>{const t=Ju(e);if(t){const n=Wl.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&&(Wl.value[e]=r),r})},ql=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Xu=e=>Promise.all(e?e.map(t=>Ft(t)?Yu(ui(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:ql(o,i,l,a),items:c.map(u=>{const f=`${l}${u}`;return n.map[f]=ql(u,i,l,a),f})})}),n}),Kl=e=>{e.name!=="AbortError"&&console.error(e.message)},ks=e=>e instanceof HTMLElement?e:Ft(e)?document.querySelector(e):null,Qu=e=>e.type.includes("image"),Gl=e=>{const t=Array.from(e).find(Qu);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 Zl(e){Pt=e}var An={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")},ef=/^(?:[ \t]*(?:\n|$))+/,tf=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,nf=/^ {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+|$)/,rf=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_s=/(?:[*+-]|\d{1,9}[.)])/,Jl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Yl=te(Jl).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(),sf=te(Jl).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]+)*)/,lf=/^[^\n]+/,$s=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,of=te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$s).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),af=te(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,_s).getRegex(),Cr="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]*?(?:-->|$))/,cf=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",Cr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xl=te(Cs).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Cr).getRegex(),uf=te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xl).getRegex(),Rs={blockquote:uf,code:tf,def:of,fences:nf,heading:rf,hr:Tn,html:cf,lheading:Yl,list:af,newline:ef,paragraph:Xl,table:An,text:lf},Ql=te("^ *([^\\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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Cr).getRegex(),ff={...Rs,lheading:sf,table:Ql,paragraph:te(Cs).replace("hr",Tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ql).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",Cr).getRegex()},hf={...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:An,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:te(Cs).replace("hr",Tn).replace("heading",` *#{1,6} *[^
|
|
27
|
-
]`).replace("lheading",
|
|
28
|
-
`).map(i=>{let
|
|
29
|
-
`)}var
|
|
30
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=
|
|
31
|
-
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=
|
|
27
|
+
**/let gs;const Rl=typeof window<"u"&&window.trustedTypes;if(Rl)try{gs=Rl.createPolicy("vue",{createHTML:e=>e})}catch{}const Al=gs?e=>gs.createHTML(e):e=>e,lu="http://www.w3.org/2000/svg",ou="http://www.w3.org/1998/Math/MathML",it=typeof document<"u"?document:null,El=it&&it.createElement("template"),au={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"?it.createElementNS(lu,e):t==="mathml"?it.createElementNS(ou,e):n?it.createElement(e,{is:n}):it.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>it.createTextNode(e),createComment:e=>it.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>it.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,i){const l=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{El.innerHTML=Al(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=El.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},cu=Symbol("_vtc");function uu(e,t,n){const r=e[cu];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const vr=Symbol("_vod"),Tl=Symbol("_vsh"),Ll={name:"show",beforeMount(e,{value:t},{transition:n}){e[vr]=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[vr]:"none",e[Tl]=!t}const fu=Symbol(""),hu=/(?:^|;)\s*display\s*:/;function pu(e,t,n){const r=e.style,s=be(n);let i=!1;if(n&&!s){if(t)if(be(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&br(r,o,"")}else for(const l in t)n[l]==null&&br(r,l,"");for(const l in n)l==="display"&&(i=!0),br(r,l,n[l])}else if(s){if(t!==n){const l=r[fu];l&&(n+=";"+l),r.cssText=n,i=hu.test(n)}}else t&&e.removeAttribute("style");vr in e&&(e[vr]=i?r.display:"",e[Tl]&&(r.display="none"))}const Il=/\s*!important$/;function br(e,t,n){if(B(n))n.forEach(r=>br(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=du(e,t);Il.test(n)?e.setProperty(At(r),n.replace(Il,""),"important"):e[r]=n}}const Ml=["Webkit","Moz","ms"],ms={};function du(e,t){const n=ms[t];if(n)return n;let r=Oe(t);if(r!=="filter"&&r in e)return ms[t]=r;r=Wn(r);for(let s=0;s<Ml.length;s++){const i=Ml[s]+r;if(i in e)return ms[t]=i}return t}const Pl="http://www.w3.org/1999/xlink";function Ol(e,t,n,r,s,i=xa(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Pl,t.slice(6,t.length)):e.setAttributeNS(Pl,t,n):n==null||i&&!xi(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Be(n)?String(n):n)}function jl(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Al(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const o=i==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=xi(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 lt(e,t,n,r){e.addEventListener(t,n,r)}function gu(e,t,n,r){e.removeEventListener(t,n,r)}const zl=Symbol("_vei");function mu(e,t,n,r,s=null){const i=e[zl]||(e[zl]={}),l=i[t];if(r&&l)l.value=r;else{const[o,a]=vu(t);if(r){const c=i[t]=wu(r,s);lt(e,o,c,a)}else l&&(gu(e,o,l,a),i[t]=void 0)}}const Fl=/(?:Once|Passive|Capture)$/;function vu(e){let t;if(Fl.test(e)){t={};let r;for(;r=e.match(Fl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):At(e.slice(2)),t]}let vs=0;const bu=Promise.resolve(),yu=()=>vs||(bu.then(()=>vs=0),vs=Date.now());function wu(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;nt(ku(r,n.value),t,5,[r])};return n.value=e,n.attached=yu(),n}function ku(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Dl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,xu=(e,t,n,r,s,i)=>{const l=s==="svg";t==="class"?uu(e,r,l):t==="style"?pu(e,n,r):Un(t)?Nr(t)||mu(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_u(e,t,r,l))?(jl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ol(e,t,r,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!be(r))?jl(e,Oe(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ol(e,t,r,l))};function _u(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Dl(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 Dl(t)&&be(n)?!1:t in e}const xt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>qn(t,n):t};function Cu(e){e.target.composing=!0}function Hl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ze=Symbol("_assign");function Nl(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const bs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[ze]=xt(s);const i=r||s.props&&s.props.type==="number";lt(e,t?"change":"input",l=>{l.target.composing||e[ze](Nl(e.value,n,i))}),(n||i)&<(e,"change",()=>{e.value=Nl(e.value,n,i)}),t||(lt(e,"compositionstart",Cu),lt(e,"compositionend",Hl),lt(e,"change",Hl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:i}},l){if(e[ze]=xt(l),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(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))}},$u={deep:!0,created(e,t,n){e[ze]=xt(n),lt(e,"change",()=>{const r=e._modelValue,s=Xt(e),i=e.checked,l=e[ze];if(B(r)){const o=Vr(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(Bt(r)){const o=new Set(r);i?o.add(s):o.delete(s),l(o)}else l(Bl(e,i))})},mounted:Ul,beforeUpdate(e,t,n){e[ze]=xt(n),Ul(e,t,n)}};function Ul(e,{value:t,oldValue:n},r){e._modelValue=t;let s;if(B(t))s=Vr(t,r.props.value)>-1;else if(Bt(t))s=t.has(r.props.value);else{if(t===n)return;s=dt(t,Bl(e,!0))}e.checked!==s&&(e.checked=s)}const Su={created(e,{value:t},n){e.checked=dt(t,n.props.value),e[ze]=xt(n),lt(e,"change",()=>{e[ze](Xt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ze]=xt(r),t!==n&&(e.checked=dt(t,r.props.value))}},Ru={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Bt(t);lt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Kn(Xt(l)):Xt(l));e[ze](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,Yt(()=>{e._assigning=!1})}),e[ze]=xt(r)},mounted(e,{value:t}){Vl(e,t)},beforeUpdate(e,t,n){e[ze]=xt(n)},updated(e,{value:t}){e._assigning||Vl(e,t)}};function Vl(e,t){const n=e.multiple,r=B(t);if(!(n&&!r&&!Bt(t))){for(let s=0,i=e.options.length;s<i;s++){const l=e.options[s],o=Xt(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Vr(t,o)>-1}else l.selected=t.has(o);else if(dt(Xt(l),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xt(e){return"_value"in e?e._value:e.value}function Bl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Au={created(e,t,n){yr(e,t,n,null,"created")},mounted(e,t,n){yr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){yr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){yr(e,t,n,r,"updated")}};function Eu(e,t){switch(e){case"SELECT":return Ru;case"TEXTAREA":return bs;default:switch(t){case"checkbox":return $u;case"radio":return Su;default:return bs}}}function yr(e,t,n,r,s){const l=Eu(e.tagName,n.props&&n.props.type)[s];l&&l(e,t,n,r)}const Tu=Ae({patchProp:xu},au);let Wl;function Lu(){return Wl||(Wl=Nc(Tu))}const Iu=((...e)=>{const t=Lu().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Pu(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,Mu(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t});function Mu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Pu(e){return be(e)?document.querySelector(e):e}function wr(e,t){return $i()?($a(e,t),!0):!1}const kr=typeof window<"u"&&typeof document<"u",Ou=Object.prototype.toString,ju=e=>Ou.call(e)==="[object Object]",xr=()=>{};function zu(...e){if(e.length!==1)return ec(...e);const t=e[0];return typeof t=="function"?Tt(Qa(()=>({get:t,set:xr}))):X(t)}function ql(e,t){function n(...r){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(s).catch(i)})}return n}const Kl=e=>e();function Fu(e,t={}){let n,r,s=xr;const i=a=>{clearTimeout(a),s(),s=xr};let l;return a=>{const c=Te(e),u=Te(t.maxWait);return n&&i(n),c<=0||u!==void 0&&u<=0?(r&&(i(r),r=void 0),Promise.resolve(a())):new Promise((f,p)=>{s=t.rejectOnCancel?p:f,l=a,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=void 0,f(l())},u)),n=setTimeout(()=>{r&&i(r),r=void 0,f(a())},c)})}}function Du(e=Kl,t={}){const{initialState:n="active"}=t,r=zu(n==="active");function s(){r.value=!1}function i(){r.value=!0}return{isActive:Tt(r),pause:s,resume:i,eventFilter:(...o)=>{r.value&&e(...o)}}}function ys(e){return Array.isArray(e)?e:[e]}function Gl(e){return hs()}function Hu(e,t=200,n={}){return ql(Fu(t,n),e)}function Nu(e,t,n={}){const{eventFilter:r=Kl,...s}=n;return yt(e,ql(r,t),s)}function Uu(e,t,n={}){const{eventFilter:r,initialState:s="active",...i}=n,{eventFilter:l,pause:o,resume:a,isActive:c}=Du(r,{initialState:s});return{stop:Nu(e,t,{...i,eventFilter:l}),pause:o,resume:a,isActive:c}}function ws(e,t=!0,n){Gl()?_n(e,n):t?e():Yt(e)}function Vu(e,t){Gl()&&rs(e,t)}function Bu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:s=!1}=n;let i=null;const l=It(!1);function o(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,o()}function c(){const u=Te(t);u<=0||(l.value=!0,s&&e(),o(),l.value&&(i=setInterval(e,u)))}return r&&kr&&c(),(ge(t)||typeof t=="function")&&wr(yt(t,()=>{l.value&&kr&&c()})),wr(a),{isActive:qa(l),pause:a,resume:c}}function en(e,t,n){return yt(e,t,{...n,immediate:!0})}const tn=kr?window:void 0,Zl=kr?window.document:void 0;function Wu(e){var t;const n=Te(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function jt(...e){const t=(r,s,i,l)=>(r.addEventListener(s,i,l),()=>r.removeEventListener(s,i,l)),n=me(()=>{const r=ys(Te(e[0])).filter(s=>s!=null);return r.every(s=>typeof s!="string")?r:void 0});return en(()=>{var r,s;return[(r=(s=n.value)===null||s===void 0?void 0:s.map(i=>Wu(i)))!==null&&r!==void 0?r:[tn].filter(i=>i!=null),ys(Te(n.value?e[1]:e[0])),ys(V(n.value?e[2]:e[1])),Te(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=ju(l)?{...l}:l,u=r.flatMap(f=>s.flatMap(p=>i.map(v=>t(f,p,v,c))));a(()=>{u.forEach(f=>f())})},{flush:"post"})}function Yl(e,t={}){const{immediate:n=!0,fpsLimit:r=null,window:s=tn,once:i=!1}=t,l=It(!1),o=me(()=>{const v=Te(r);return v?1e3/v:null});let a=0,c=null;function u(v){if(!l.value||!s)return;a||(a=v);const x=v-a;if(o.value&&x<o.value){c=s.requestAnimationFrame(u);return}if(a=v,e({delta:x,timestamp:v}),i){l.value=!1,c=null;return}c=s.requestAnimationFrame(u)}function f(){!l.value&&s&&(l.value=!0,a=0,c=s.requestAnimationFrame(u))}function p(){l.value=!1,c!=null&&s&&(s.cancelAnimationFrame(c),c=null)}return n&&f(),wr(p),{isActive:Tt(l),pause:p,resume:f}}const _r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cr="__vueuse_ssr_handlers__",qu=Ku();function Ku(){return Cr in _r||(_r[Cr]=_r[Cr]||{}),_r[Cr]}function Gu(e,t){return qu[e]||t}function Zu(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 Yu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ql="vueuse-storage";function nn(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=tn,eventFilter:p,onError:v=j=>{console.error(j)},initOnMounted:x}=r,y=(u?It:X)(typeof t=="function"?t():t),A=me(()=>Te(e));if(!n)try{n=Gu("getDefaultStorage",()=>tn==null?void 0:tn.localStorage)()}catch(j){v(j)}if(!n)return y;const S=Te(t),I=Zu(S),z=(s=r.serializer)!==null&&s!==void 0?s:Yu[I],{pause:R,resume:D}=Uu(y,j=>de(j),{flush:i,deep:l,eventFilter:p});yt(A,()=>N(),{flush:i});let he=!1;const ue=j=>{x&&!he||N(j)},F=j=>{x&&!he||ee(j)};f&&o&&(n instanceof Storage?jt(f,"storage",ue,{passive:!0}):jt(f,Ql,F)),x?ws(()=>{he=!0,N()}):N();function ke(j,Z){if(f){const W={key:A.value,oldValue:j,newValue:Z,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",W):new CustomEvent(Ql,{detail:W}))}}function de(j){try{const Z=n.getItem(A.value);if(j==null)ke(Z,null),n.removeItem(A.value);else{const W=z.write(j);Z!==W&&(n.setItem(A.value,W),ke(Z,W))}}catch(Z){v(Z)}}function H(j){const Z=j?j.newValue:n.getItem(A.value);if(Z==null)return a&&S!=null&&n.setItem(A.value,z.write(S)),S;if(!j&&c){const W=z.read(Z);return typeof c=="function"?c(W,S):I==="object"&&!Array.isArray(W)?{...S,...W}:W}else return typeof Z!="string"?Z:z.read(Z)}function N(j){if(!(j&&j.storageArea!==n)){if(j&&j.key==null){y.value=S;return}if(!(j&&j.key!==A.value)){R();try{const Z=z.write(y.value);(j===void 0||(j==null?void 0:j.newValue)!==Z)&&(y.value=H(j))}catch(Z){v(Z)}finally{j?Yt(D):D()}}}}function ee(j){N(j.detail)}return y}function Qu(e){if("interval"in e||"immediate"in e){const{interval:t="requestAnimationFrame",immediate:n=!0}=e;return t==="requestAnimationFrame"?r=>Yl(r,{immediate:n}):r=>Bu(r,t,e)}return Yl}function Ju(e={}){const{controls:t=!1,scheduler:n=Qu(e)}=e,r=X(new Date),i=n(()=>r.value=new Date);return t?{now:r,...i}:r}function Xu(e,t=xr,n={}){const{immediate:r=!0,manual:s=!1,type:i="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:f=Zl,attrs:p={},nonce:v=void 0}=n,x=It(null);let y=null;const A=z=>new Promise((R,D)=>{const he=de=>(x.value=de,R(de),de);if(!f){R(!1);return}let ue=!1,F=f.querySelector(`script[src="${Te(e)}"]`);F?F.hasAttribute("data-loaded")&&he(F):(F=f.createElement("script"),F.type=i,F.async=l,F.src=Te(e),u&&(F.defer=u),o&&(F.crossOrigin=o),c&&(F.noModule=c),a&&(F.referrerPolicy=a),v&&(F.nonce=v),Object.entries(p).forEach(([de,H])=>F==null?void 0:F.setAttribute(de,H)),ue=!0);const ke={passive:!0};jt(F,"error",de=>D(de),ke),jt(F,"abort",de=>D(de),ke),jt(F,"load",()=>{F.setAttribute("data-loaded","true"),t(F),he(F)},ke),ue&&(F=f.head.appendChild(F)),z||he(F)}),S=(z=!0)=>(y||(y=A(z)),y),I=()=>{if(!f)return;y=null,x.value&&(x.value=null);const z=f.querySelector(`script[src="${Te(e)}"]`);z&&f.head.removeChild(z)};return r&&!s&&ws(S),s||Vu(I),{scriptTag:x,load:S,unload:I}}let ef=0;function tf(e,t={}){const n=It(!1),{document:r=Zl,immediate:s=!0,manual:i=!1,id:l=`vueuse_styletag_${++ef}`}=t,o=It(e);let a=()=>{};const c=()=>{if(!r)return;const f=r.getElementById(l)||r.createElement("style");f.isConnected||(f.id=l,t.nonce&&(f.nonce=t.nonce),t.media&&(f.media=t.media),r.head.appendChild(f)),!n.value&&(a=yt(o,p=>{f.textContent=p},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return s&&!i&&ws(c),i||wr(u),{id:l,css:o,unload:u,load:c,isLoaded:Tt(n)}}const nf="WALINE_EMOJI",Jl=nn(nf,{}),rf=e=>/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),sf=e=>{const t=rf(e);if(t){const n=Jl.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then(n=>n.json()).then(n=>{const r={folder:e,...n};return t&&(Jl.value[e]=r),r})},Xl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,lf=e=>Promise.all(e?e.map(t=>Nt(t)?sf(hi(t)):Promise.resolve(t)):[]).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:s,folder:i,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:s,icon:Xl(l,i,o,a),items:c.map(u=>{const f=`${o}${u}`;return n.map[f]=Xl(u,i,o,a),f})})}),n}),eo=e=>{e.name!=="AbortError"&&console.error(e.message)},ks=e=>e instanceof HTMLElement?e:Nt(e)?document.querySelector(e):null,to=e=>{const t=[...e].find(n=>n.type.includes("image"));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 zt=xs();function no(e){zt=e}var Ft={exec:()=>null};function G(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(s,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(Ce.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,t)};return r}var of=(()=>{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)}}>`)},af=/^(?:[ \t]*(?:\n|$))+/,cf=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,uf=/^ {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+|$)/,ff=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,_s=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ro=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,so=G(ro).replace(/bull/g,_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(),hf=G(ro).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]+)*)/,pf=/^[^\n]+/,$s=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,df=G(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",$s).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gf=G(/^(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]*?(?:-->|$))/,mf=G("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ss).replace("tag",$r).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),io=G(Cs).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",$r).getRegex(),vf=G(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",io).getRegex(),Rs={blockquote:vf,code:cf,def:df,fences:uf,heading:ff,hr:Tn,html:mf,lheading:so,list:gf,newline:af,paragraph:io,table:Ft,text:pf},lo=G("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$r).getRegex(),bf={...Rs,lheading:hf,table:lo,paragraph:G(Cs).replace("hr",Tn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",lo).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$r).getRegex()},yf={...Rs,html:G(`^ *(?: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:Ft,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:G(Cs).replace("hr",Tn).replace("heading",` *#{1,6} *[^
|
|
28
|
+
]`).replace("lheading",so).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},wf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,kf=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,oo=/^( {2,}|\\)\n(?!\s*$)/,xf=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Sr=/[\p{P}\p{S}]/u,As=/[\s\p{P}\p{S}]/u,ao=/[^\s\p{P}\p{S}]/u,_f=G(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,As).getRegex(),co=/(?!~)[\p{P}\p{S}]/u,Cf=/(?!~)[\s\p{P}\p{S}]/u,$f=/(?:[^\s\p{P}\p{S}]|~)/u,uo=/(?![*_])[\p{P}\p{S}]/u,Sf=/(?![*_])[\s\p{P}\p{S}]/u,Rf=/(?:[^\s\p{P}\p{S}]|[*_])/u,Af=G(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",of?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),fo=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ef=G(fo,"u").replace(/punct/g,Sr).getRegex(),Tf=G(fo,"u").replace(/punct/g,co).getRegex(),ho="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Lf=G(ho,"gu").replace(/notPunctSpace/g,ao).replace(/punctSpace/g,As).replace(/punct/g,Sr).getRegex(),If=G(ho,"gu").replace(/notPunctSpace/g,$f).replace(/punctSpace/g,Cf).replace(/punct/g,co).getRegex(),Mf=G("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ao).replace(/punctSpace/g,As).replace(/punct/g,Sr).getRegex(),Pf=G(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,uo).getRegex(),Of="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",jf=G(Of,"gu").replace(/notPunctSpace/g,Rf).replace(/punctSpace/g,Sf).replace(/punct/g,uo).getRegex(),zf=G(/\\(punct)/,"gu").replace(/punct/g,Sr).getRegex(),Ff=G(/^<(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(),Df=G(Ss).replace("(?:-->|$)","-->").getRegex(),Hf=G("^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",Df).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Rr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Nf=G(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Rr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),po=G(/^!?\[(label)\]\[(ref)\]/).replace("label",Rr).replace("ref",$s).getRegex(),go=G(/^!?\[(ref)\](?:\[\])?/).replace("ref",$s).getRegex(),Uf=G("reflink|nolink(?!\\()","g").replace("reflink",po).replace("nolink",go).getRegex(),mo=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Es={_backpedal:Ft,anyPunctuation:zf,autolink:Ff,blockSkip:Af,br:oo,code:kf,del:Ft,delLDelim:Ft,delRDelim:Ft,emStrongLDelim:Ef,emStrongRDelimAst:Lf,emStrongRDelimUnd:Mf,escape:wf,link:Nf,nolink:go,punctuation:_f,reflink:po,reflinkSearch:Uf,tag:Hf,text:xf,url:Ft},Vf={...Es,link:G(/^!?\[(label)\]\((.*?)\)/).replace("label",Rr).getRegex(),reflink:G(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Rr).getRegex()},Ts={...Es,emStrongRDelimAst:If,emStrongLDelim:Tf,delLDelim:Pf,delRDelim:jf,url:G(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",mo).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:G(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",mo).getRegex()},Bf={...Ts,br:G(oo).replace("{2,}","*").getRegex(),text:G(Ts.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ar={normal:Rs,gfm:bf,pedantic:yf},Ln={normal:Es,gfm:Ts,breaks:Bf,pedantic:Vf},Wf={"&":"&","<":"<",">":">",'"':""","'":"'"},vo=e=>Wf[e];function ot(e,t){if(t){if(Ce.escapeTest.test(e))return e.replace(Ce.escapeReplace,vo)}else if(Ce.escapeTestNoEncode.test(e))return e.replace(Ce.escapeReplaceNoEncode,vo);return e}function bo(e){try{e=encodeURI(e).replace(Ce.percentDecode,"%")}catch{return null}return e}function yo(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 qf(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 Kf(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 wo(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 Gf(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 Er=class{options;rules;lexer;constructor(e){this.options=e||zt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:In(n,`
|
|
31
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=Gf(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=In(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:In(t[0],`
|
|
32
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=In(t[0],`
|
|
32
33
|
`).split(`
|
|
33
|
-
`),r="",s="",i=[];for(;n.length>0;){let
|
|
34
|
+
`),r="",s="",i=[];for(;n.length>0;){let l=!1,o=[],a;for(a=0;a<n.length;a++)if(this.rules.other.blockquoteStart.test(n[a]))o.push(n[a]),l=!0;else if(!l)o.push(n[a]);else break;n=n.slice(a);let c=o.join(`
|
|
34
35
|
`),u=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
35
36
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
36
37
|
${c}`:c,s=s?`${s}
|
|
37
|
-
${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,i,!0),this.lexer.state.top=f,n.length===0)break;let p=i.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let
|
|
38
|
+
${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,i,!0),this.lexer.state.top=f,n.length===0)break;let p=i.at(-1);if((p==null?void 0:p.type)==="code")break;if((p==null?void 0:p.type)==="blockquote"){let v=p,x=v.raw+`
|
|
38
39
|
`+n.join(`
|
|
39
|
-
`),
|
|
40
|
+
`),y=this.blockquote(x);i[i.length-1]=y,r=r.substring(0,r.length-v.raw.length)+y.raw,s=s.substring(0,s.length-v.text.length)+y.text;break}else if((p==null?void 0:p.type)==="list"){let v=p,x=v.raw+`
|
|
40
41
|
`+n.join(`
|
|
41
|
-
`),
|
|
42
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let
|
|
43
|
-
`,1)[0]
|
|
44
|
-
`,1)[0],
|
|
45
|
-
`,e=e.substring(
|
|
46
|
-
`,1)[0],
|
|
47
|
-
`+
|
|
48
|
-
`+
|
|
49
|
-
`,e=e.substring(
|
|
50
|
-
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let
|
|
51
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=
|
|
52
|
-
`),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,
|
|
53
|
-
`:n.push(
|
|
42
|
+
`),y=this.list(x);i[i.length-1]=y,r=r.substring(0,r.length-p.raw.length)+y.raw,s=s.substring(0,s.length-v.raw.length)+y.raw,n=x.substring(i.at(-1).raw.length).split(`
|
|
43
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:s}}}list(e){var n,r;let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim(),i=s.length>1,l={type:"list",raw:"",ordered:i,start:i?+s.slice(0,-1):"",loose:!1,items:[]};s=i?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=i?s:"[*+-]");let o=this.rules.other.listItemRegex(s),a=!1;for(;e;){let u=!1,f="",p="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;f=t[0],e=e.substring(f.length);let v=Kf(t[2].split(`
|
|
44
|
+
`,1)[0],t[1].length),x=e.split(`
|
|
45
|
+
`,1)[0],y=!v.trim(),A=0;if(this.options.pedantic?(A=2,p=v.trimStart()):y?A=t[1].length+1:(A=v.search(this.rules.other.nonSpaceChar),A=A>4?1:A,p=v.slice(A),A+=t[1].length),y&&this.rules.other.blankLine.test(x)&&(f+=x+`
|
|
46
|
+
`,e=e.substring(x.length+1),u=!0),!u){let S=this.rules.other.nextBulletRegex(A),I=this.rules.other.hrRegex(A),z=this.rules.other.fencesBeginRegex(A),R=this.rules.other.headingBeginRegex(A),D=this.rules.other.htmlBeginRegex(A),he=this.rules.other.blockquoteBeginRegex(A);for(;e;){let ue=e.split(`
|
|
47
|
+
`,1)[0],F;if(x=ue,this.options.pedantic?(x=x.replace(this.rules.other.listReplaceNesting," "),F=x):F=x.replace(this.rules.other.tabCharGlobal," "),z.test(x)||R.test(x)||D.test(x)||he.test(x)||S.test(x)||I.test(x))break;if(F.search(this.rules.other.nonSpaceChar)>=A||!x.trim())p+=`
|
|
48
|
+
`+F.slice(A);else{if(y||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||z.test(v)||R.test(v)||I.test(v))break;p+=`
|
|
49
|
+
`+x}y=!x.trim(),f+=ue+`
|
|
50
|
+
`,e=e.substring(ue.length+1),v=F.slice(A)}}l.loose||(a?l.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(a=!0)),l.items.push({type:"list_item",raw:f,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),l.raw+=f}let c=l.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let u of l.items){if(this.lexer.state.top=!1,u.tokens=this.lexer.blockTokens(u.text,[]),u.task){if(u.text=u.text.replace(this.rules.other.listReplaceTask,""),((n=u.tokens[0])==null?void 0:n.type)==="text"||((r=u.tokens[0])==null?void 0:r.type)==="paragraph"){u.tokens[0].raw=u.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),u.tokens[0].text=u.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let f=this.rules.other.listTaskCheckbox.exec(u.raw);if(f){let p={type:"checkbox",raw:f[0]+" ",checked:f[0]!=="[ ]"};u.checked=p.checked,l.loose?u.tokens[0]&&["paragraph","text"].includes(u.tokens[0].type)&&"tokens"in u.tokens[0]&&u.tokens[0].tokens?(u.tokens[0].raw=p.raw+u.tokens[0].raw,u.tokens[0].text=p.raw+u.tokens[0].text,u.tokens[0].tokens.unshift(p)):u.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):u.tokens.unshift(p)}}if(!l.loose){let f=u.tokens.filter(v=>v.type==="space"),p=f.length>0&&f.some(v=>this.rules.other.anyLine.test(v.raw));l.loose=p}}if(l.loose)for(let u of l.items){u.loose=!0;for(let f of u.tokens)f.type==="text"&&(f.type="paragraph")}return l}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:s}}}table(e){var l;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=yo(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(l=t[3])!=null&&l.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
51
|
+
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let o of r)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<n.length;o++)i.header.push({text:n[o],tokens:this.lexer.inline(n[o]),header:!0,align:i.align[o]});for(let o of s)i.rows.push(yo(o,i.header.length).map((a,c)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:i.align[c]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
52
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=In(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=qf(t[2],"()");if(i===-2)return;if(i>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let r=t[2],s="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],s=i[3])}else s=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),wo(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=t[r.toLowerCase()];if(!s){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return wo(n,s,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,i,l,o=s,a=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(l=[...i].length,r[3]||r[4]){o+=l;continue}else if((r[5]||r[6])&&s%3&&!((s+l)%3)){a+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o+a);let u=[...r[0]][0].length,f=e.slice(0,s+r.index+u+l);if(Math.min(s,l)%2){let v=f.slice(1,-1);return{type:"em",raw:f,text:v,tokens:this.lexer.inlineTokens(v)}}let p=f.slice(2,-2);return{type:"strong",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,i,l,o=s,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+s);(r=a.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(l=[...i].length,l!==s))continue;if(r[3]||r[4]){o+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o);let c=[...r[0]][0].length,u=e.slice(0,s+r.index+c+l),f=u.slice(s,-s);return{type:"del",raw:u,text:f,tokens:this.lexer.inlineTokens(f)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,s;if(t[2]==="@")r=t[0],s="mailto:"+r;else{let i;do i=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(i!==t[0]);r=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},Ze=class Ps{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||zt,this.options.tokenizer=this.options.tokenizer||new Er,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:Ar.normal,inline:Ln.normal};this.options.pedantic?(n.block=Ar.pedantic,n.inline=Ln.pedantic):this.options.gfm&&(n.block=Ar.gfm,this.options.breaks?n.inline=Ln.breaks:n.inline=Ln.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ar,inline:Ln}}static lex(t,n){return new Ps(n).lex(t)}static lexInline(t,n){return new Ps(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(`
|
|
54
55
|
`)?"":`
|
|
55
|
-
`)+
|
|
56
|
-
`+
|
|
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(`
|
|
57
58
|
`)?"":`
|
|
58
|
-
`)+
|
|
59
|
-
`+
|
|
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(p=>{f=p.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(`
|
|
60
61
|
`)?"":`
|
|
61
|
-
`)+
|
|
62
|
-
`+
|
|
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(`
|
|
63
64
|
`)?"":`
|
|
64
|
-
`)+
|
|
65
|
-
`+
|
|
66
|
-
`;return
|
|
67
|
-
`:"<pre><code>"+(
|
|
68
|
-
`}blockquote({tokens:
|
|
69
|
-
${this.parser.parse(
|
|
70
|
-
`}html({text:
|
|
71
|
-
`}hr(
|
|
72
|
-
`}list(
|
|
73
|
-
`+
|
|
74
|
-
`}listitem(
|
|
75
|
-
`}checkbox({checked:
|
|
76
|
-
`}table(
|
|
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,p;let r=t,s=null;if(this.tokens.links){let v=Object.keys(this.tokens.links);if(v.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)v.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 v;if((f=(u=this.options.extensions)==null?void 0:u.inline)!=null&&f.some(y=>(v=y.call({lexer:this},t,n))?(t=t.substring(v.raw.length),n.push(v),!0):!1))continue;if(v=this.tokenizer.escape(t)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.tag(t)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.link(t)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(v.raw.length);let y=n.at(-1);v.type==="text"&&(y==null?void 0:y.type)==="text"?(y.raw+=v.raw,y.text+=v.text):n.push(v);continue}if(v=this.tokenizer.emStrong(t,r,o)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.codespan(t)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.br(t)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.del(t,r,o)){t=t.substring(v.raw.length),n.push(v);continue}if(v=this.tokenizer.autolink(t)){t=t.substring(v.raw.length),n.push(v);continue}if(!this.state.inLink&&(v=this.tokenizer.url(t))){t=t.substring(v.raw.length),n.push(v);continue}let x=t;if((p=this.options.extensions)!=null&&p.startInline){let y=1/0,A=t.slice(1),S;this.options.extensions.startInline.forEach(I=>{S=I.call({lexer:this},A),typeof S=="number"&&S>=0&&(y=Math.min(y,S))}),y<1/0&&y>=0&&(x=t.substring(0,y+1))}if(v=this.tokenizer.inlineText(x)){t=t.substring(v.raw.length),v.raw.slice(-1)!=="_"&&(o=v.raw.slice(-1)),l=!0;let y=n.at(-1);(y==null?void 0:y.type)==="text"?(y.raw+=v.raw,y.text+=v.text):n.push(v);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}},Tr=class{options;parser;constructor(e){this.options=e||zt}space(e){return""}code({text:e,lang:t,escaped:n}){var i;let r=(i=(t||"").match(Ce.notSpaceStart))==null?void 0:i[0],s=e.replace(Ce.endingNewline,"")+`
|
|
67
|
+
`;return r?'<pre><code class="language-'+ot(r)+'">'+(n?s:ot(s,!0))+`</code></pre>
|
|
68
|
+
`:"<pre><code>"+(n?s:ot(s,!0))+`</code></pre>
|
|
69
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
70
|
+
${this.parser.parse(e)}</blockquote>
|
|
71
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
72
|
+
`}hr(e){return`<hr>
|
|
73
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let l=0;l<e.items.length;l++){let o=e.items[l];r+=this.listitem(o)}let s=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+s+i+`>
|
|
74
|
+
`+r+"</"+s+`>
|
|
75
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
76
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
77
|
+
`}table(e){let t="",n="";for(let s=0;s<e.header.length;s++)n+=this.tablecell(e.header[s]);t+=this.tablerow({text:n});let r="";for(let s=0;s<e.rows.length;s++){let i=e.rows[s];n="";for(let l=0;l<i.length;l++)n+=this.tablecell(i[l]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
77
78
|
<thead>
|
|
78
|
-
`+
|
|
79
|
-
`+
|
|
80
|
-
`}tablerow({text:
|
|
81
|
-
${
|
|
82
|
-
`}tablecell(
|
|
83
|
-
`}strong({tokens:
|
|
84
|
-
|
|
85
|
-
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+Je(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Ot=new ho;function ge(e,t){return Ot.parse(e,t)}ge.options=ge.setOptions=function(e){return Ot.setOptions(e),ge.defaults=Ot.defaults,Zl(ge.defaults),ge},ge.getDefaults=xs,ge.defaults=Pt,ge.use=function(...e){return Ot.use(...e),ge.defaults=Ot.defaults,Zl(ge.defaults),ge},ge.walkTokens=function(e,t){return Ot.walkTokens(e,t)},ge.parseInline=Ot.parseInline,ge.Parser=Xe,ge.parser=Xe.parse,ge.Renderer=Tr,ge.TextRenderer=Ls,ge.Lexer=Ye,ge.lexer=Ye.lex,ge.Tokenizer=Ar,ge.Hooks=In,ge.parse=ge;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=po(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(go(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.");go(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const s=po(n),i=s?e.langPrefix+yo(s):e.emptyLangClass,o=i?` class="${i}"`:"";return t=t.replace(/\n$/,""),`<pre><code${o}>${r?t:yo(t,!0)}
|
|
86
|
-
</code></pre>`}}}}function po(e){return(e||"").match(/\S*/)[0]}function go(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const mo=/[&<>"']/,zf=new RegExp(mo.source,"g"),vo=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ff=new RegExp(vo.source,"g"),Df={"&":"&","<":"<",">":">",'"':""","'":"'"},bo=e=>Df[e];function yo(e,t){if(t){if(mo.test(e))return e.replace(zf,bo)}else if(vo.test(e))return e.replace(Ff,bo);return e}const Hf=/\$.*?\$/,Uf=/^\$(.*?)\$/,Nf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Vf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Nf.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=Uf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],wo=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),Bf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new ho;if(s.setOptions({breaks:!0}),n&&s.use(jf({highlight:n})),r){const i=Vf(r);s.use({extensions:i})}return s.parse(wo(e,t))},Is=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},Wf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),qf=e=>e.match(/[\u4E00-\u9FD5]/gu),Kf=e=>{var t,n;return(((t=Wf(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=qf(e))==null?void 0:n.length)??0)},Gf=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},ko=({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&&Vs({serverURL:Nn(e),paths:Array.from(i).map(o=>ci(Is(o)??t)),lang:r,signal:s.signal}).then(o=>{i.forEach((l,a)=>{l.innerText=o[a].toString()})}).catch(Kl),s.abort.bind(s)},xo=({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"})]),Zf=()=>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"})),Jf=()=>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"})),Yf=()=>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"})]),Xf=({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"})]),Qf=()=>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"})]),eh=()=>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"})),th=()=>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"})),nh=()=>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"})),rh=()=>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"})),sh=()=>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"})]),Mn=({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"}))),ih=()=>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"})]),lh=()=>Xt("WALINE_USER_META",{nick:"",mail:"",link:""}),oh=()=>Xt("WALINE_COMMENT_BOX_EDITOR",""),ah="WALINE_LIKE",ch=Xt(ah,[]),_o=()=>ch,uh="WALINE_REACTION",fh=Xt(uh,{}),hh=()=>fh;var Ms={},at={},ct={},Co;function $o(){if(Co)return ct;Co=1;var e=ct&&ct.__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=ct&&ct.__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(ct,"__esModule",{value:!0}),ct.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 ct.ReCaptchaInstance=n,ct}var So;function ph(){if(So)return at;So=1;var e=at&&at.__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(at,"__esModule",{value:!0}),at.getInstance=at.load=void 0;var t=$o(),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(I){s.setLoadingState(n.NOT_LOADED),k(I)},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 at.load=r.load,at.getInstance=r.getInstance,at}var Ro;function dh(){return Ro||(Ro=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=ph();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=$o();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})})(Ms)),Ms}var gh=dh();const Ao={},mh=e=>{const t=Ao[e]??(Ao[e]=gh.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},vh=e=>({execute:async t=>{const{load:n}=qu("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})})})}}),bh="WALINE_USER",yh=Xt(bh,{}),Er=()=>yh,wh={key:0,class:"wl-reaction"},kh=["textContent"],xh={class:"wl-reaction-list"},_h=["onClick"],Ch={class:"wl-reaction-img"},$h=["src","alt"],Sh=["textContent"],Rh=["textContent"];var Ah=vn({__name:"ArticleReaction",setup(e){const t=hh(),n=cr(Un),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((I,A)=>`reaction${A}`),signal:m.signal});s.value=o.value.map((I,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 Dn({serverURL:p,lang:b,path:m,type:`reaction${k}`,action:"desc"}),s.value[k]=Math.max(s.value[k]-1,0)),k!==f&&(await Dn({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 wn(()=>{Jt(()=>[n.value.serverURL,n.value.path],()=>c())}),rs(()=>{a==null||a()}),(f,p)=>l.value?(E(),M("div",wh,[O("div",{class:"wl-reaction-title",textContent:le(i.value.reactionTitle)},null,8,kh),O("ul",xh,[(E(!0),M(pe,null,De(l.value,({active:b,icon:m,desc:k},I)=>(E(),M("li",{key:I,class:be(["wl-reaction-item",{active:b}]),onClick:A=>u(I)},[O("div",Ch,[O("img",{src:m,alt:k},null,8,$h),r.value===I?(E(),Ke(K(Mn),{key:0,class:"wl-reaction-loading"})):(E(),M("div",{key:1,class:"wl-reaction-votes",textContent:le(s.value[I]||0)},null,8,Sh))]),O("div",{class:"wl-reaction-text",textContent:le(k)},null,8,Rh)],10,_h))),128))])])):Q("v-if",!0)}}),Pn=new Map;function Th(e){var t=Pn.get(e);t&&t.destroy()}function Eh(e){var t=Pn.get(e);t&&t.update()}var On=null;typeof window>"u"?((On=function(e){return e}).destroy=function(e){return e},On.update=function(e){return e}):((On=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"&&!Pn.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]}),Pn.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",Pn.set(r,{destroy:a,update:u}),u()}function c(f){var p,b,m=f.restoreTextAlign,k=m===void 0?null:m,I=f.testForHeightReduction,A=I===void 0||I,_=o.overflowY;if(r.scrollHeight!==0&&(o.resize==="vertical"?r.style.resize="none":o.resize==="both"&&(r.style.resize="horizontal"),A&&(p=(function(T){for(var P=[];T&&T.parentNode&&T.parentNode instanceof Element;)T.parentNode.scrollTop&&P.push([T.parentNode,T.parentNode.scrollTop]),T=T.parentNode;return function(){return P.forEach(function(V){var G=V[0],W=V[1];G.style.scrollBehavior="auto",G.scrollTop=W,G.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],Th),e},On.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Eh),e});var To=On;const Lh=["data-index"],Ih=["src","title","onClick"];var Mh=vn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){const t=e;let n=null;const r=mt("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 wn(()=>{c(!0),n=new ResizeObserver(()=>{c()}),n.observe(r.value),vt(()=>[t.items],()=>{s.value={},c(!0)}),vt(()=>[t.columnWidth,t.gap],()=>{c()})}),ac(()=>{n.unobserve(r.value)}),(f,p)=>(E(),M("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:an({gap:`${e.gap}px`})},[(E(!0),M(pe,null,De(i.value,(b,m)=>(E(),M("div",{key:m,class:"wl-gallery-column","data-index":m,style:an({gap:`${e.gap}px`})},[(E(!0),M(pe,null,De(b,k=>(E(),M(pe,{key:k},[s.value[e.items[k].src]?Q("v-if",!0):(E(),Ke(K(Mn),{key:0,size:36,style:{margin:"20px auto"}})),O("img",{class:"wl-gallery-item",src:e.items[k].src,title:e.items[k].title,loading:"lazy",onLoad:u,onClick:I=>f.$emit("insert",``)},null,40,Ih)],64))),128))],12,Lh))),128))],4))}});const Ph={key:0,class:"wl-login-info"},Oh={class:"wl-avatar"},jh=["title"],zh=["title"],Fh=["src"],Dh=["title","textContent"],Hh={class:"wl-panel"},Uh=["for","textContent"],Nh=["id","onUpdate:modelValue","name","type"],Vh=["placeholder"],Bh={class:"wl-preview"},Wh=["innerHTML"],qh={class:"wl-footer"},Kh={class:"wl-actions"},Gh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Zh=["title"],Jh=["title"],Yh=["title","aria-label"],Xh=["title"],Qh={class:"wl-info"},ep={class:"wl-text-number"},tp={key:0},np=["textContent"],rp=["textContent"],sp=["disabled"],ip=["placeholder"],lp={key:1,class:"wl-loading"},op={key:0,class:"wl-tab-wrapper"},ap=["title","onClick"],cp=["src","alt"],up={key:0,class:"wl-tabs"},fp=["onClick"],hp=["src","alt","title"],pp=["title"];var Eo=vn({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,s=cr(Un),i=oh(),o=lh(),l=Er(),a=ae({}),c=mt("textarea"),u=mt("image-uploader"),f=mt("emoji-button"),p=mt("emoji-popup"),b=mt("gif-button"),m=mt("gif-popup"),k=mt("gif-search"),I=ae({tabs:[],map:{}}),A=ae(0),_=ae(!1),F=ae(!1),T=ae(!1),P=ae(""),V=ae(0),G=dn({loading:!0,list:[]}),W=ae(0),ke=ae(!1),me=ae(""),H=ae(!1),X=ae(!1),N=ve(()=>s.value.locale),z=ve(()=>!!l.value.token),J=ve(()=>s.value.imageUploader!==null),re=D=>{const S=c.value,q=S.selectionStart,h=S.selectionEnd||0,d=S.scrollTop;i.value=S.value.substring(0,q)+D+S.value.substring(h,S.value.length),S.focus(),S.selectionStart=q+D.length,S.selectionEnd=q+D.length,S.scrollTop=d},Qe=({key:D,ctrlKey:S,metaKey:q})=>{H.value||(S||q)&&D==="Enter"&&Ue()},ut=async D=>{const S=`![${s.value.locale.uploading} ${D.name}]()`;re(S),H.value=!0;try{const q=await s.value.imageUploader(D);i.value=i.value.replace(S,`\r
|
|
87
|
-
`)}catch(q){alert(q.message),i.value=i.value.replace(S,"")}finally{H.value=!1}},Qt=D=>{var S;if((S=D.dataTransfer)!=null&&S.items){const q=Gl(D.dataTransfer.items);q&&J.value&&(ut(q),D.preventDefault())}},jn=D=>{if(D.clipboardData){const S=Gl(D.clipboardData.items);S&&J.value&&ut(S)}},jt=()=>{const D=u.value;D.files&&J.value&&ut(D.files[0]).then(()=>{D.value=""})},Ue=async()=>{var D;const{serverURL:S,lang:q,login:h,wordLimit:d,requiredMeta:g,recaptchaV3Key:y,turnstileKey:w}=s.value,v={comment:me.value,nick:o.value.nick,mail:o.value.mail,link:o.value.link,url:s.value.path,ua:await Gf()};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(!ke.value){alert(N.value.wordHint.replace("$0",d[0].toString()).replace("$1",d[1].toString()).replace("$2",V.value.toString()));return}v.comment=wo(v.comment,I.value.map),n.replyId&&n.rootId&&(v.pid=n.replyId,v.rid=n.rootId,v.at=n.replyUser),H.value=!0;try{y&&(v.recaptchaV3=await mh(y).execute("social")),w&&(v.turnstile=await vh(w).execute("social"));const R={serverURL:S,lang:q,token:l.value.token,comment:v},C=await(n.edit?nn({objectId:n.edit.objectId,...R}):Us(R));if(H.value=!1,C.errmsg){alert(C.errmsg);return}r("submit",C.data),i.value="",P.value="",await qt(),n.replyId&&r("cancelReply"),(D=n.edit)!=null&&D.objectId&&r("cancelEdit")}catch(R){H.value=!1,alert(R.message)}},zn=D=>{D.preventDefault();const{lang:S,serverURL:q}=s.value;Bs({serverURL:q,lang:S}).then(h=>{l.value=h,(h.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(h)),r("log")})},Ir=()=>{l.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Fn=D=>{D.preventDefault();const{lang:S,serverURL:q}=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(`${q}/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},"*")},kt=D=>{var S,q,h,d;!((S=f.value)!=null&&S.contains(D.target))&&!((q=p.value)!=null&&q.contains(D.target))&&(_.value=!1),!((h=b.value)!=null&&h.contains(D.target))&&!((d=m.value)!=null&&d.contains(D.target))&&(F.value=!1)},xt=async D=>{var S;const{scrollTop:q,clientHeight:h,scrollHeight:d}=D.target,g=(h+q)/d,y=s.value.search,w=((S=k.value)==null?void 0:S.value)??"";g<.9||G.loading||X.value||(G.loading=!0,(y.more&&G.list.length?await y.more(w,G.list.length):await y.search(w)).length?G.list=[...G.list,...y.more&&G.list.length?await y.more(w,G.list.length):await y.search(w)]:X.value=!0,G.loading=!1,setTimeout(()=>{D.target.scrollTop=q},50))},zt=Iu(D=>{G.list=[],X.value=!1,xt(D)},300);return Mt("click",kt),Mt("message",({data:D})=>{(D==null?void 0:D.type)==="profile"&&(l.value={...l.value,...D.data},[localStorage,sessionStorage].filter(S=>S.getItem("WALINE_USER")).forEach(S=>{S.setItem("WALINE_USER",JSON.stringify(l))}))}),Jt([s,V],([D,S])=>{const{wordLimit:q}=D;q?S<q[0]&&q[0]!==0?(W.value=q[0],ke.value=!1):S>q[1]?(W.value=q[1],ke.value=!1):(W.value=q[1],ke.value=!0):(W.value=0,ke.value=!0)}),vt(F,async D=>{var S;if(!D)return;const q=s.value.search;k.value&&(k.value.value=""),G.loading=!0,G.list=await(((S=q.default)==null?void 0:S.call(q))??q.search("")),G.loading=!1}),wn(()=>{var D;(D=n.edit)!=null&&D.objectId&&(i.value=n.edit.orig),Jt(()=>i.value,S=>{const{highlighter:q,texRenderer:h}=s.value;me.value=S,P.value=Bf(S,{emojiMap:I.value.map,highlighter:q,texRenderer:h}),V.value=Kf(S),S?To(c.value):To.destroy(c.value)}),Jt(()=>s.value.emoji,async S=>{I.value=await Xu(S)})}),(D,S)=>{var q,h;return E(),M("div",{key:K(l).token,class:"wl-comment"},[K(s).login!=="disable"&&z.value&&!((q=e.edit)!=null&&q.objectId)?(E(),M("div",Ph,[O("div",Oh,[O("button",{type:"submit",class:"wl-logout-btn",title:N.value.logout,onClick:Ir},[ue(K(xo),{size:14})],8,jh),O("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:N.value.profile,onClick:Fn},[O("img",{src:K(l).avatar,alt:"avatar"},null,8,Fh)],8,zh)]),O("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:N.value.profile,onClick:Fn,textContent:le(K(l).display_name)},null,8,Dh)])):Q("v-if",!0),O("div",Hh,[K(s).login!=="force"&&K(s).meta.length&&!z.value?(E(),M("div",{key:0,class:be(["wl-header",`item${K(s).meta.length}`])},[(E(!0),M(pe,null,De(K(s).meta,d=>(E(),M("div",{key:d,class:"wl-header-item"},[O("label",{for:`wl-${d}`,textContent:le(N.value[d]+(K(s).requiredMeta.includes(d)||!K(s).requiredMeta.length?"":`(${N.value.optional})`))},null,8,Uh),or(O("input",{id:`wl-${d}`,ref_for:!0,ref:g=>{g&&(a.value[d]=g)},"onUpdate:modelValue":g=>K(o)[d]=g,class:be(["wl-input",`wl-${d}`]),name:d,type:d==="mail"?"email":"text"},null,10,Nh),[[wu,K(o)[d]]])]))),128))],2)):Q("v-if",!0),or(O("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":S[0]||(S[0]=d=>ye(i)?i.value=d:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:N.value.placeholder,onKeydown:Qe,onDrop:Qt,onPaste:jn},null,40,Vh),[[bs,K(i)]]),or(O("div",Bh,[S[7]||(S[7]=O("hr",null,null,-1)),O("h4",null,le(N.value.preview)+":",1),O("div",{class:"wl-content",innerHTML:P.value},null,8,Wh)],512),[[Sl,T.value]]),O("div",qh,[O("div",Kh,[O("a",Gh,[ue(K(eh))]),or(O("button",{ref:"emoji-button",type:"button",class:be(["wl-action",{active:_.value}]),title:N.value.emoji,onClick:S[1]||(S[1]=d=>_.value=!_.value)},[ue(K(Jf))],10,Zh),[[Sl,I.value.tabs.length]]),K(s).search?(E(),M("button",{key:0,ref:"gif-button",type:"button",class:be(["wl-action",{active:F.value}]),title:N.value.gif,onClick:S[2]||(S[2]=d=>F.value=!F.value)},[ue(K(ih))],10,Jh)):Q("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:jt},null,544),J.value?(E(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:N.value.uploadImage,"aria-label":N.value.uploadImage},[ue(K(Yf))],8,Yh)):Q("v-if",!0),O("button",{type:"button",class:be(["wl-action",{active:T.value}]),title:N.value.preview,onClick:S[3]||(S[3]=d=>T.value=!T.value)},[ue(K(Qf))],10,Xh)]),O("div",Qh,[S[9]||(S[9]=O("div",{class:"wl-captcha-container"},null,-1)),O("div",ep,[it(le(V.value)+" ",1),K(s).wordLimit?(E(),M("span",tp,[S[8]||(S[8]=it(" / ",-1)),O("span",{class:be({illegal:!ke.value}),textContent:le(W.value)},null,10,np)])):Q("v-if",!0),it(" "+le(N.value.word),1)]),K(s).login!=="disable"&&!z.value?(E(),M("button",{key:0,type:"button",class:"wl-btn",onClick:zn,textContent:le(N.value.login)},null,8,rp)):Q("v-if",!0),K(s).login!=="force"||z.value?(E(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:H.value,onClick:Ue},[H.value?(E(),Ke(K(Mn),{key:0,size:16})):(E(),M(pe,{key:1},[it(le(N.value.submit),1)],64))],8,sp)):Q("v-if",!0)]),O("div",{ref:"gif-popup",class:be(["wl-gif-popup",{display:F.value}])},[O("input",{ref:"gif-search",type:"text",placeholder:N.value.gifSearchPlaceholder,onInput:S[4]||(S[4]=(...d)=>K(zt)&&K(zt)(...d))},null,40,ip),G.list.length?(E(),Ke(Mh,{key:0,items:G.list,"column-width":200,gap:6,onInsert:S[5]||(S[5]=d=>re(d)),onScroll:xt},null,8,["items"])):Q("v-if",!0),G.loading?(E(),M("div",lp,[ue(K(Mn),{size:30})])):Q("v-if",!0)],2),O("div",{ref:"emoji-popup",class:be(["wl-emoji-popup",{display:_.value}])},[(E(!0),M(pe,null,De(I.value.tabs,(d,g)=>(E(),M(pe,{key:d.name},[g===A.value?(E(),M("div",op,[(E(!0),M(pe,null,De(d.items,y=>(E(),M("button",{key:y,type:"button",title:y,onClick:w=>re(`:${y}:`)},[_.value?(E(),M("img",{key:0,class:"wl-emoji",src:I.value.map[y],alt:y,loading:"lazy",referrerPolicy:"no-referrer"},null,8,cp)):Q("v-if",!0)],8,ap))),128))])):Q("v-if",!0)],64))),128)),I.value.tabs.length>1?(E(),M("div",up,[(E(!0),M(pe,null,De(I.value.tabs,(d,g)=>(E(),M("button",{key:d.name,type:"button",class:be(["wl-tab",{active:A.value===g}]),onClick:y=>A.value=g},[O("img",{class:"wl-emoji",src:d.icon,alt:d.name,title:d.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,hp)],10,fp))),128))])):Q("v-if",!0)],2)])]),e.replyId||(h=e.edit)!=null&&h.objectId?(E(),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"))},[ue(K(xo),{size:24})],8,pp)):Q("v-if",!0)])}}});const dp=["id"],gp={class:"wl-user","aria-hidden":"true"},mp=["src"],vp={class:"wl-card"},bp={class:"wl-head"},yp=["href"],wp={key:1,class:"wl-nick"},kp=["textContent"],xp=["textContent"],_p=["textContent"],Cp=["textContent"],$p={class:"wl-comment-actions"},Sp=["title"],Rp=["title"],Ap={class:"wl-meta","aria-hidden":"true"},Tp=["data-value","textContent"],Ep={key:0,class:"wl-content"},Lp={key:0},Ip=["href"],Mp=["innerHTML"],Pp={key:1,class:"wl-admin-actions"},Op={class:"wl-comment-status"},jp=["disabled","onClick","textContent"],zp={key:3,class:"wl-quote"};var Fp=vn({__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=cr(Un),o=_o(),l=Wu(),a=Er(),c=ve(()=>i.value.locale),u=ve(()=>{const{link:A}=n.comment;return A?fi(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)}),I=ve(()=>{var A;return n.comment.objectId===((A=n.edit)==null?void 0:A.objectId)});return(A,_)=>{var F;const T=uc("CommentCard",!0);return E(),M("div",{id:e.comment.objectId.toString(),class:"wl-card-item"},[O("div",gp,[e.comment.avatar?(E(),M("img",{key:0,class:"wl-user-avatar",src:e.comment.avatar,alt:""},null,8,mp)):Q("v-if",!0),e.comment.type==="guest"?(E(),Ke(K(rh),{key:1})):Q("v-if",!0),e.comment.type==="administrator"?(E(),Ke(K(sh),{key:2})):Q("v-if",!0)]),O("div",vp,[O("div",bp,[u.value?(E(),M("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},le(e.comment.nick),9,yp)):(E(),M("span",wp,le(e.comment.nick),1)),e.comment.label?(E(),M("span",{key:2,class:"wl-badge",textContent:le(e.comment.label)},null,8,kp)):Q("v-if",!0),e.comment.sticky?(E(),M("span",{key:3,class:"wl-badge",textContent:le(c.value.sticky)},null,8,xp)):Q("v-if",!0),typeof e.comment.level=="number"?(E(),M("span",{key:4,class:be(`wl-badge level${e.comment.level}`),textContent:le(c.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,_p)):Q("v-if",!0),O("span",{class:"wl-time",textContent:le(p.value)},null,8,Cp),O("div",$p,[b.value||m.value?(E(),M(pe,{key:0},[O("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=P=>r("edit",e.comment))},[ue(K(nh))]),O("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=P=>r("delete",e.comment))},[ue(K(Zf))])],64)):Q("v-if",!0),O("button",{type:"button",class:"wl-like",title:f.value?c.value.cancelLike:c.value.like,onClick:_[2]||(_[2]=P=>r("like",e.comment))},[ue(K(Xf),{active:f.value},null,8,["active"]),it(" "+le("like"in e.comment?e.comment.like:""),1)],8,Sp),O("button",{type:"button",class:be(["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))},[ue(K(th))],10,Rp)])]),O("div",Ap,[(E(),M(pe,null,De(["addr","browser","os"],P=>(E(),M(pe,null,[e.comment[P]?(E(),M("span",{key:P,class:be(`wl-${P}`),"data-value":e.comment[P],textContent:le(e.comment[P])},null,10,Tp)):Q("v-if",!0)],64))),64))]),I.value?Q("v-if",!0):(E(),M("div",Ep,["reply_user"in e.comment&&e.comment.reply_user?(E(),M("p",Lp,[O("a",{href:"#"+e.comment.pid},"@"+le(e.comment.reply_user.nick),9,Ip),_[17]||(_[17]=O("span",null,": ",-1))])):Q("v-if",!0),O("div",{innerHTML:e.comment.comment},null,8,Mp)])),b.value&&!I.value?(E(),M("div",Pp,[O("span",Op,[(E(),M(pe,null,De(s,P=>O("button",{key:P,type:"submit",class:be(`wl-btn wl-${P}`),disabled:e.comment.status===P,onClick:V=>r("status",{status:P,comment:e.comment}),textContent:le(c.value[P])},null,10,jp)),64))]),b.value&&!("rid"in e.comment)?(E(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=P=>r("sticky",e.comment))},le(e.comment.sticky?c.value.unsticky:c.value.sticky),1)):Q("v-if",!0)])):Q("v-if",!0),k.value||I.value?(E(),M("div",{key:2,class:be({"wl-reply-wrapper":k.value,"wl-edit-wrapper":I.value})},[ue(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)):Q("v-if",!0),"children"in e.comment?(E(),M("div",zp,[(E(!0),M(pe,null,De(e.comment.children,P=>(E(),Ke(T,{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))])):Q("v-if",!0)])],8,dp)}}});const Lo="3.7.1",Dp={"data-waline":""},Hp={class:"wl-meta-head"},Up={class:"wl-count"},Np=["textContent"],Vp={class:"wl-sort"},Bp=["onClick"],Wp={class:"wl-cards"},qp={key:1,class:"wl-operation"},Kp=["textContent"],Gp={key:2,class:"wl-loading"},Zp=["textContent"],Jp={key:4,class:"wl-operation"},Yp=["textContent"],Xp={key:5,class:"wl-power"};var Qp=vn({__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=_o(),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);Gu(b,{id:"waline-darkmode"});let k=null;const I=H=>{const{serverURL:X,path:N,pageSize:z}=a.value,J=new AbortController;s.value="loading",k==null||k(),Hs({serverURL:X,lang:a.value.lang,path:N,pageSize:z,sortBy:ai[c.value],page:H,signal:J.signal,token:n.value.token}).then(re=>{s.value="success",i.value=re.count,u.value.push(...re.data),o.value=H,l.value=re.totalPages}).catch(re=>{re.name!=="AbortError"&&(console.error(re.message),s.value="error")}),k=J.abort.bind(J)},A=()=>{I(o.value+1)},_=()=>{i.value=0,u.value=[],I(1)},F=H=>{c.value!==H&&(c.value=H,_())},T=H=>{f.value=H},P=H=>{p.value=H},V=H=>{if(p.value)p.value.comment=H.comment,p.value.orig=H.orig;else if("rid"in H){const X=u.value.find(({objectId:N})=>N===H.rid);if(!X)return;Array.isArray(X.children)||(X.children=[]),X.children.push(H)}else u.value.unshift(H),i.value+=1},G=async({comment:H,status:X})=>{if(H.status===X)return;const{serverURL:N,lang:z}=a.value;await nn({serverURL:N,lang:z,token:n.value.token,objectId:H.objectId,comment:{status:X}}),H.status=X},W=async H=>{if("rid"in H)return;const{serverURL:X,lang:N}=a.value;await nn({serverURL:X,lang:N,token:n.value.token,objectId:H.objectId,comment:{sticky:H.sticky?0:1}}),H.sticky=!H.sticky},ke=async({objectId:H})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:X,lang:N}=a.value;await Ns({serverURL:X,lang:N,token:n.value.token,objectId:H}),u.value.some((z,J)=>z.objectId===H?(u.value=u.value.filter((re,Qe)=>Qe!==J),!0):z.children.some((re,Qe)=>re.objectId===H?(u.value[J].children=z.children.filter((ut,Qt)=>Qt!==Qe),!0):!1))},me=async H=>{const{serverURL:X,lang:N}=a.value,{objectId:z}=H,J=r.value.includes(z);await nn({serverURL:X,lang:N,objectId:z,token:n.value.token,comment:{like:!J}}),J?r.value=r.value.filter(re=>re!==z):(r.value=[...r.value,z],r.value.length>50&&(r.value=r.value.slice(-50))),H.like=Math.max(0,(H.like||0)+(J?-1:1))};return mc(Un,a),wn(()=>{Jt(()=>[t.serverURL,t.path],()=>{_()})}),rs(()=>{k==null||k()}),(H,X)=>(E(),M("div",Dp,[ue(Ah),!f.value&&!p.value?(E(),Ke(Eo,{key:0,onLog:_,onSubmit:V})):Q("v-if",!0),O("div",Hp,[O("div",Up,[i.value?(E(),M("span",{key:0,class:"wl-num",textContent:le(i.value)},null,8,Np)):Q("v-if",!0),it(" "+le(m.value.comment),1)]),O("ul",Vp,[(E(!0),M(pe,null,De(K(Yo),N=>(E(),M("li",{key:N,class:be([N===c.value?"active":""]),onClick:z=>F(N)},le(m.value[N]),11,Bp))),128))])]),O("div",Wp,[(E(!0),M(pe,null,De(u.value,N=>(E(),Ke(Fp,{key:N.objectId,"root-id":N.objectId,comment:N,reply:f.value,edit:p.value,onLog:_,onReply:T,onEdit:P,onSubmit:V,onStatus:G,onDelete:ke,onSticky:W,onLike:me},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(E(),M("div",qp,[O("button",{type:"button",class:"wl-btn",onClick:_,textContent:le(m.value.refresh)},null,8,Kp)])):s.value==="loading"?(E(),M("div",Gp,[ue(K(Mn),{size:30})])):u.value.length?o.value<l.value?(E(),M("div",Jp,[O("button",{type:"button",class:"wl-btn",onClick:A,textContent:le(m.value.more)},null,8,Yp)])):Q("v-if",!0):(E(),M("div",{key:3,class:"wl-empty",textContent:le(m.value.sofa)},null,8,Zp)),a.value.noCopyright?Q("v-if",!0):(E(),M("div",Xp,[X[0]||(X[0]=it(" Powered by ",-1)),X[1]||(X[1]=O("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),it(" v"+le(K(Lo)),1)]))]))}});const Io=(e,t)=>{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.innerText=s.toString())})},Mo=({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=Is(c);return u!==null&&t!==u},a=c=>Ws({serverURL:Nn(e),paths:c.map(u=>Is(u)??t),lang:s,signal:i.signal}).then(u=>Io(u,c)).catch(Kl);if(r){const c=o.filter(f=>!l(f)),u=o.filter(l);qs({serverURL:Nn(e),path:t,lang:s}).then(f=>Io(f,c)),u.length&&a(u)}else a(o);return i.abort.bind(i)},ed=({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=dn({...s}),l=dn({comment:n,pageview:r,path:t}),a=()=>{l.comment&&ko({serverURL:o.serverURL,path:l.path,...Ft(l.comment)?{selector:l.comment}:{}})},c=()=>{l.pageview&&Mo({serverURL:o.serverURL,path:l.path,...Ft(l.pageview)?{selector:l.pageview}:{}})};let u=null;i&&(u=Cu(()=>ee(Qp,{path:l.path,...o})),u.mount(i));const f=ul(a),p=ul(c);return{el:i,update:({comment:b,pageview:m,path:k=window.location.pathname,...I}={})=>{Object.entries(I).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()}}},td=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const s=Er(),i=ks(e),o=new AbortController;return Ks({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()})},nd=({el:e,serverURL:t,count:n,locale:r,lang:s=navigator.language,mode:i="list"})=>{const o=ks(e),l=new AbortController;return Gs({serverURL:t,pageSize:n,lang:s,signal:l.signal}).then(a=>!o||!a.length?{users:a,destroy:()=>l.abort()}:(r={...li(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=""}}))};export{td as RecentComments,nd as UserList,Us as addComment,ko as commentCount,Hn as defaultLocales,Ns as deleteComment,Vs as fetchCommentCount,Pr as getArticleCounter,Hs as getComment,Ws as getPageview,Ks as getRecentComment,Gs as getUserList,ed as init,Bs as login,Mo as pageviewCount,Dn as updateArticleCounter,nn as updateComment,qs as updatePageview,Lo as version};
|
|
79
|
+
`+t+`</thead>
|
|
80
|
+
`+r+`</table>
|
|
81
|
+
`}tablerow({text:e}){return`<tr>
|
|
82
|
+
${e}</tr>
|
|
83
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
84
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ot(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),s=bo(e);if(s===null)return r;e=s;let i='<a href="'+e+'"';return t&&(i+=' title="'+ot(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=bo(e);if(s===null)return ot(n);e=s;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${ot(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ot(e.text)}},Ls=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}},Ye=class Os{options;renderer;textRenderer;constructor(t){this.options=t||zt,this.options.renderer=this.options.renderer||new Tr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ls}static parse(t,n){return new Os(n).parse(t)}static parseInline(t,n){return new Os(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=(Ir=class{options;block;constructor(t){this.options=t||zt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Ze.lex:Ze.lexInline}provideParser(){return this.block?Ye.parse:Ye.parseInline}},Or(Ir,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Or(Ir,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ir),ko=class{defaults=xs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ye;Renderer=Tr;TextRenderer=Ls;Lexer=Ze;Tokenizer=Er;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 Tr(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 Er(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 Ze.lex(e,t??this.defaults)}parser(e,t){return Ye.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?Ze.lex:Ze.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?Ye.parse:Ye.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?Ze.lex:Ze.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?Ye.parse:Ye.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>"+ot(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},Dt=new ko;function pe(e,t){return Dt.parse(e,t)}pe.options=pe.setOptions=function(e){return Dt.setOptions(e),pe.defaults=Dt.defaults,no(pe.defaults),pe},pe.getDefaults=xs,pe.defaults=zt,pe.use=function(...e){return Dt.use(...e),pe.defaults=Dt.defaults,no(pe.defaults),pe},pe.walkTokens=function(e,t){return Dt.walkTokens(e,t)},pe.parseInline=Dt.parseInline,pe.Parser=Ye,pe.parser=Ye.parse,pe.Renderer=Tr,pe.TextRenderer=Ls,pe.Lexer=Ze,pe.lexer=Ze.lex,pe.Tokenizer=Er,pe.Hooks=Mn,pe.parse=pe;function Zf(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=xo(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(_o(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.");_o(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const s=xo(n),i=s?e.langPrefix+Ro(s):e.emptyLangClass,l=i?` class="${i}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:Ro(t,!0)}
|
|
86
|
+
</code></pre>`}}}}function xo(e){return(e||"").match(/\S*/)[0]}function _o(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Co=/[&<>"']/,Yf=new RegExp(Co.source,"g"),$o=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Qf=new RegExp($o.source,"g"),Jf={"&":"&","<":"<",">":">",'"':""","'":"'"},So=e=>Jf[e];function Ro(e,t){if(t){if(Co.test(e))return e.replace(Yf,So)}else if($o.test(e))return e.replace(Qf,So);return e}const Xf=/\$.*?\$/,eh=/^\$(.*?)\$/,th=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,nh=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=th.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(Xf);return n===-1?t.length:n},tokenizer(t){const n=eh.exec(t);if(n!=null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Ao=(e="",t={})=>e.replaceAll(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),rh=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const s=new ko;if(s.setOptions({breaks:!0}),n&&s.use(Zf({highlight:n})),r){const i=nh(r);s.use({extensions:i})}return s.parse(Ao(e,t))},Is=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},sh=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),ih=e=>e.match(/[\u4E00-\u9FD5]/gu),lh=e=>{var t,n;return(((t=sh(e))==null?void 0:t.reduce((r,s)=>r+(["",",","."].includes(s.trim())?0:s.trim().split(/\s+/u).length),0))??0)+(((n=ih(e))==null?void 0:n.length)??0)},oh=async()=>{const{userAgentData:e}=navigator;let t=navigator.userAgent;if((e==null?void 0:e.platform)!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&Number.parseInt(n.split(".")[0],10)>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},Eo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const s=new AbortController,i=document.querySelectorAll(n);return i.length>0&&Bs({serverURL:Nn(e),paths:Array.from(i,l=>fi(Is(l)??t)),lang:r,signal:s.signal}).then(l=>{i.forEach((o,a)=>{o.textContent=l[a].toString()})}).catch(eo),s.abort.bind(s)},To=({size:e})=>Y("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Y("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"}),Y("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"})]),ah=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Y("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"})),ch=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Y("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"})),uh=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Y("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"}),Y("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"})]),fh=({active:e=!1})=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Y("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"})]),hh=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Y("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"}),Y("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"})]),ph=()=>Y("svg",{width:"16",height:"16",ariaHidden:"true"},Y("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"})),dh=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Y("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"})),gh=()=>Y("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Y("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"})),mh=()=>Y("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Y("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"})),vh=()=>Y("svg",{class:"administrator-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},[Y("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})=>Y("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Y("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Y("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),bh=()=>Y("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[Y("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"}),Y("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"})]),yh=()=>nn("WALINE_USER_META",{nick:"",mail:"",link:""}),wh=()=>nn("WALINE_COMMENT_BOX_EDITOR",""),kh="WALINE_LIKE",xh=nn(kh,[]),Lo=()=>xh,_h="WALINE_REACTION",Ch=nn(_h,{}),$h=()=>Ch;var Ms={},at={},ct={},Io;function Mo(){if(Io)return ct;Io=1;var e=ct&&ct.__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(v){try{p(l.next(v))}catch(x){c(x)}}function f(v){try{p(l.throw(v))}catch(x){c(x)}}function p(v){v.done?a(v.value):o(v.value).then(u,f)}p((l=l.apply(r,s||[])).next())})},t=ct&&ct.__generator||function(r,s){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(p){return function(v){return f([p,v])}}function f(p){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,p[0]&&(i=0)),i;)try{if(l=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return i.label++,{value:p[1],done:!1};case 5:i.label++,o=p[1],p=[0];continue;case 7:p=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){i=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){i.label=p[1];break}if(p[0]===6&&i.label<a[1]){i.label=a[1],a=p;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(p);break}a[2]&&i.ops.pop(),i.trys.pop();continue}p=s.call(r,i)}catch(v){p=[6,v],o=0}finally{l=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};Object.defineProperty(ct,"__esModule",{value:!0}),ct.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 ct.ReCaptchaInstance=n,ct}var Po;function Sh(){if(Po)return at;Po=1;var e=at&&at.__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(at,"__esModule",{value:!0}),at.getInstance=at.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(p){return p(f)}),s.successfulLoadingConsumers=[],l.autoHideBadge&&f.hideBadge(),s.instance=f,a(f)}).catch(function(u){s.errorLoadingRunnable.forEach(function(f){return f(u)}),s.errorLoadingRunnable=[],c(u)})})},s.getInstance=function(){return s.instance},s.setLoadingState=function(i){s.loadingState=i},s.getLoadingState=function(){return s.loadingState===null?n.NOT_LOADED:s.loadingState},s.prototype.loadScript=function(i,l,o,a,c){var u=this;l===void 0&&(l=!1),o===void 0&&(o=!1),a===void 0&&(a={}),c===void 0&&(c="");var f=document.createElement("script");f.setAttribute("recaptcha-v3-script",""),f.setAttribute("async",""),f.setAttribute("defer","");var p="https://www.google.com/recaptcha/api.js";l?o?p="https://recaptcha.net/recaptcha/enterprise.js":p="https://recaptcha.net/recaptcha/api.js":o&&(p="https://www.google.com/recaptcha/enterprise.js"),c&&(p=c),a.render&&(a.render=void 0);var v=this.buildQueryString(a);return f.src=p+"?render=explicit"+v,new Promise(function(x,y){f.addEventListener("load",u.waitForScriptToLoad(function(){x(f)},o),!1),f.onerror=function(A){s.setLoadingState(n.NOT_LOADED),y(A)},document.head.appendChild(f)})},s.prototype.buildQueryString=function(i){var l=Object.keys(i);return l.length<1?"":"&"+Object.keys(i).filter(function(o){return!!i[o]}).map(function(o){return o+"="+i[o]}).join("&")},s.prototype.waitForScriptToLoad=function(i,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(i,l)},s.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){i()}):window.grecaptcha.ready(function(){i()})}},s.prototype.doExplicitRender=function(i,l,o,a){var c=e({sitekey:l},o);return o.container?a?i.enterprise.render(o.container,c):i.render(o.container,c):a?i.enterprise.render(c):i.render(c)},s.loadingState=null,s.instance=null,s.instanceSiteKey=null,s.successfulLoadingConsumers=[],s.errorLoadingRunnable=[],s.SCRIPT_LOAD_DELAY=25,s})();return at.load=r.load,at.getInstance=r.getInstance,at}var Oo;function Rh(){return Oo||(Oo=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Sh();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}})})(Ms)),Ms}var Ah=Rh();const jo={},Eh=e=>{const t=jo[e]??(jo[e]=Ah.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Th=e=>({execute:async t=>{const{load:n}=Xu("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})})})}}),Lh="WALINE_USER",Ih=nn(Lh,{}),Lr=()=>Ih,Mh={key:0,class:"wl-reaction"},Ph=["textContent"],Oh={class:"wl-reaction-list"},jh=["onClick"],zh={class:"wl-reaction-img"},Fh=["src","alt"],Dh=["textContent"],Hh=["textContent"];var Nh=wn({__name:"ArticleReaction",setup(e){const t=$h(),n=ar(Hn),r=X(-1),s=X([]),i=me(()=>n.value.locale),l=me(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),o=me(()=>{var f;const{path:p}=n.value;return((f=l.value)==null?void 0:f.map((v,x)=>({icon:v,desc:i.value[`reaction${x}`],active:t.value[p]===x})))??null});let a;const c=async()=>{const{serverURL:f,lang:p,path:v}=n.value;if(!l.value)return;const x=new AbortController;a=x.abort.bind(x);const[y]=await jr({serverURL:f,lang:p,paths:[v],type:l.value.map((A,S)=>`reaction${S}`),signal:x.signal});s.value=l.value.map((A,S)=>y[`reaction${S}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:p,lang:v,path:x}=n.value,y=t.value[x];r.value=f,y!=null&&(await Fn({serverURL:p,lang:v,path:x,type:`reaction${y}`,action:"desc"}),s.value[y]=Math.max(s.value[y]-1,0)),y!==f&&(await Fn({serverURL:p,lang:v,path:x,type:`reaction${f}`}),s.value[f]=(s.value[f]||0)+1),y===f?delete t.value[x]:t.value[x]=f,r.value=-1};return _n(()=>{en(()=>[n.value.serverURL,n.value.path],()=>c())}),rs(()=>{a==null||a()}),(f,p)=>o.value?(L(),M("div",Mh,[O("div",{class:"wl-reaction-title",textContent:Q(i.value.reactionTitle)},null,8,Ph),O("ul",Oh,[(L(!0),M(ce,null,je(o.value,({active:v,icon:x,desc:y},A)=>(L(),M("li",{key:A,class:ve(["wl-reaction-item",{active:v}]),onClick:S=>u(A)},[O("div",zh,[O("img",{src:x,alt:y},null,8,Fh),r.value===A?(L(),qe(V(Pn),{key:0,class:"wl-reaction-loading"})):(L(),M("div",{key:1,class:"wl-reaction-votes",textContent:Q(s.value[A]||0)},null,8,Dh))]),O("div",{class:"wl-reaction-text",textContent:Q(y)},null,8,Hh)],10,jh))),128))])])):q("v-if",!0)}}),On=new Map;function Uh(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(p){return r.style[p]=f[p]}),On.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",u),r.addEventListener("input",o),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",On.set(r,{destroy:a,update:u}),u()}function c(f){var p,v,x=f.restoreTextAlign,y=x===void 0?null:x,A=f.testForHeightReduction,S=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"),S&&(p=(function(R){for(var D=[];R&&R.parentNode&&R.parentNode instanceof Element;)R.parentNode.scrollTop&&D.push([R.parentNode,R.parentNode.scrollTop]),R=R.parentNode;return function(){return D.forEach(function(he){var ue=he[0],F=he[1];ue.style.scrollBehavior="auto",ue.scrollTop=F,ue.style.scrollBehavior=null})}})(r),r.style.height=""),v=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&v>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),v=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=v+"px",y&&(r.style.textAlign=y),p&&p(),i!==v&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),i=v),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],Uh),e},jn.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Vh),e});var zo=jn;const Bh=["data-index"],Wh=["src","title","onClick"];var qh=wn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){let t=null;const n=wt("wall"),r=X({}),s=X([]),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 Yt();const p=[...((f=n.value)==null?void 0:f.children)??[]].reduce((v,x)=>x.getBoundingClientRect().height<v.getBoundingClientRect().height?x:v);s.value[Number(p.dataset.index)].push(u),await o(u+1)},a=async(u=!1)=>{if(s.value.length===i()&&!u)return;s.value=l(i());const{scrollY:f}=window;await o(0),window.scrollTo({top:f})},c=u=>{r.value[u.target.src]=!0};return _n(()=>{a(!0),t=new ResizeObserver(()=>{a()}),t.observe(n.value),yt(()=>[e.items],()=>{r.value={},a(!0)}),yt(()=>[e.columnWidth,e.gap],()=>{a()})}),yc(()=>{t.unobserve(n.value)}),(u,f)=>(L(),M("div",{ref_key:"wall",ref:n,class:"wl-gallery",style:Wt({gap:`${e.gap}px`})},[(L(!0),M(ce,null,je(s.value,(p,v)=>(L(),M("div",{key:v,class:"wl-gallery-column","data-index":v,style:Wt({gap:`${e.gap}px`})},[(L(!0),M(ce,null,je(p,x=>(L(),M(ce,{key:x},[r.value[e.items[x].src]?q("v-if",!0):(L(),qe(V(Pn),{key:0,size:36,style:{margin:"20px auto"}})),O("img",{class:"wl-gallery-item",src:e.items[x].src,title:e.items[x].title,loading:"lazy",onLoad:c,onClick:y=>u.$emit("insert",``)},null,40,Wh)],64))),128))],12,Bh))),128))],4))}});const Kh={key:0,class:"wl-login-info"},Gh={class:"wl-avatar"},Zh=["title"],Yh=["title"],Qh=["src"],Jh=["title","textContent"],Xh={class:"wl-panel"},ep=["for","textContent"],tp=["id","onUpdate:modelValue","name","type"],np=["placeholder"],rp={class:"wl-preview"},sp=["innerHTML"],ip={class:"wl-footer"},lp={class:"wl-actions"},op={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},ap=["title"],cp=["title"],up=["title","aria-label"],fp=["title"],hp={class:"wl-info"},pp={class:"wl-text-number"},dp={key:0},gp=["textContent"],mp=["textContent"],vp=["disabled"],bp=["placeholder"],yp={key:1,class:"wl-loading"},wp=["title","onClick","onMouseenter"],kp=["src","alt"],xp=["src"],_p={key:0,class:"wl-tabs"},Cp=["onClick"],$p=["src","alt","title"],Sp=["title"];var Fo=wn({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,s=ar(Hn),i=wh(),l=yh(),o=Lr(),a=X({}),c=wt("textarea"),u=wt("image-uploader"),f=wt("emoji-button"),p=wt("emoji-popup"),v=wt("gif-button"),x=wt("gif-popup"),y=wt("gif-search"),A=X({tabs:[],map:{}}),S=X(0),I=X(!1),z=X(""),R=X({});let D;const he=(g,m)=>{clearTimeout(D),z.value=m;const b=g.currentTarget,w=p.value;if(b&&w){const k=b.getBoundingClientRect(),$=w.getBoundingClientRect();R.value={left:`${k.left-$.left+k.width/2}px`,top:`${k.top-$.top}px`,transform:"translate(-50%, -100%)"}}},ue=()=>{D=setTimeout(()=>{z.value=""},50)},F=X(!1),ke=X(!1),de=X(""),H=X(0),N=vn({loading:!0,list:[]}),ee=X(0),j=X(!1),Z=X(""),W=X(!1),Fe=X(!1),le=me(()=>s.value.locale),ut=me(()=>!!o.value.token),_t=me(()=>s.value.imageUploader!=null),ft=g=>{const m=c.value,b=m.selectionStart,w=m.selectionEnd||0,{scrollTop:k}=m;i.value=m.value.slice(0,b)+g+m.value.slice(w),m.focus(),m.selectionStart=b+g.length,m.selectionEnd=b+g.length,m.scrollTop=k},Ue=({key:g,ctrlKey:m,metaKey:b})=>{W.value||(m||b)&&g==="Enter"&&$t()},Ht=async g=>{const m=`![${s.value.locale.uploading} ${g.name}]()`;ft(m),W.value=!0;try{const b=await s.value.imageUploader(g);i.value=i.value.replace(m,`\r
|
|
87
|
+
`)}catch(b){alert(b.message),i.value=i.value.replace(m,"")}finally{W.value=!1}},Mr=g=>{var m;if((m=g.dataTransfer)!=null&&m.items){const b=to(g.dataTransfer.items);b&&_t.value&&(Ht(b),g.preventDefault())}},Pr=g=>{if(g.clipboardData){const m=to(g.clipboardData.items);m&&_t.value&&Ht(m)}},Ct=()=>{const g=u.value;g.files&&_t.value&&Ht(g.files[0]).then(()=>{g.value=""})},$t=async()=>{var g;const{serverURL:m,lang:b,login:w,wordLimit:k,requiredMeta:$,recaptchaV3Key:C,turnstileKey:_}=s.value,T={comment:Z.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:s.value.path,ua:await oh()};if(!n.edit)if(o.value.token)T.nick=o.value.display_name,T.mail=o.value.email,T.link=o.value.url;else{if(w==="force")return;if($.includes("nick")&&!T.nick){a.value.nick.focus(),alert(le.value.nickError);return}if($.includes("mail")&&!T.mail||T.mail&&!ha(T.mail)){a.value.mail.focus(),alert(le.value.mailError);return}T.nick||(T.nick=le.value.anonymous)}if(!T.comment){c.value.focus();return}if(!j.value){alert(le.value.wordHint.replace("$0",k[0].toString()).replace("$1",k[1].toString()).replace("$2",H.value.toString()));return}T.comment=Ao(T.comment,A.value.map),n.replyId&&n.rootId&&(T.pid=n.replyId,T.rid=n.rootId,T.at=n.replyUser),W.value=!0;try{C&&(T.recaptchaV3=await Eh(C).execute("social")),_&&(T.turnstile=await Th(_).execute("social"));const E={serverURL:m,lang:b,token:o.value.token,comment:T},P=await(n.edit?on({objectId:n.edit.objectId,...E}):Us(E));if(W.value=!1,P.errmsg){alert(P.errmsg);return}r("submit",P.data),i.value="",de.value="",await Yt(),n.replyId&&r("cancelReply"),(g=n.edit)!=null&&g.objectId&&r("cancelEdit")}catch(E){W.value=!1,alert(E.message)}},rn=g=>{g.preventDefault();const{lang:m,serverURL:b}=s.value;Ws({serverURL:b,lang:m}).then(w=>{o.value=w,(w.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(w)),r("log")})},zn=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},ht=g=>{g.preventDefault();const{lang:m,serverURL:b}=s.value,w=800,k=800,$=(window.innerWidth-w)/2,C=(window.innerHeight-k)/2,_=new URLSearchParams({lng:m,token:o.value.token}),T=window.open(`${b}/ui/profile?${_.toString()}`,"_blank",`width=${w},height=${k},left=${$},top=${C},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);T==null||T.postMessage({type:"TOKEN",data:o.value.token},"*")},js=g=>{var m,b,w,k;!((m=f.value)!=null&&m.contains(g.target))&&!((b=p.value)!=null&&b.contains(g.target))&&(I.value=!1),!((w=v.value)!=null&&w.contains(g.target))&&!((k=x.value)!=null&&k.contains(g.target))&&(F.value=!1)},h=async g=>{var m;const{scrollTop:b,clientHeight:w,scrollHeight:k}=g.target,$=(w+b)/k,C=s.value.search,_=((m=y.value)==null?void 0:m.value)??"";$<.9||N.loading||Fe.value||(N.loading=!0,(C.more&&N.list.length>0?await C.more(_,N.list.length):await C.search(_)).length>0?N.list=[...N.list,...C.more&&N.list.length>0?await C.more(_,N.list.length):await C.search(_)]:Fe.value=!0,N.loading=!1,setTimeout(()=>{g.target.scrollTop=b},50))},d=Hu(g=>{N.list=[],Fe.value=!1,h(g)},300);return jt("click",js),jt("message",({data:g})=>{(g==null?void 0:g.type)==="profile"&&(o.value={...o.value,...g.data},[localStorage,sessionStorage].filter(m=>m.getItem("WALINE_USER")).forEach(m=>{m.setItem("WALINE_USER",JSON.stringify(o))}))}),en([s,H],([g,m])=>{const{wordLimit:b}=g;b?m<b[0]&&b[0]!==0?([ee.value]=b,j.value=!1):m>b[1]?([,ee.value]=b,j.value=!1):([,ee.value]=b,j.value=!0):(ee.value=0,j.value=!0)}),yt(F,async g=>{var m;if(!g)return;const b=s.value.search;y.value&&(y.value.value=""),N.loading=!0,N.list=await(((m=b.default)==null?void 0:m.call(b))??b.search("")),N.loading=!1}),_n(()=>{var g;(g=n.edit)!=null&&g.objectId&&(i.value=n.edit.orig),en(()=>i.value,m=>{const{highlighter:b,texRenderer:w}=s.value;Z.value=m,de.value=rh(m,{emojiMap:A.value.map,highlighter:b,texRenderer:w}),H.value=lh(m),m?zo(c.value):zo.destroy(c.value)}),en(()=>s.value.emoji,async m=>{A.value=await lf(m)})}),(g,m)=>{var b,w;return L(),M("div",{key:V(o).token,class:"wl-comment"},[V(s).login!=="disable"&&ut.value&&!((b=e.edit)!=null&&b.objectId)?(L(),M("div",Kh,[O("div",Gh,[O("button",{type:"submit",class:"wl-logout-btn",title:le.value.logout,onClick:zn},[re(V(To),{size:14})],8,Zh),O("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:le.value.profile,onClick:ht},[O("img",{src:V(o).avatar,alt:"avatar"},null,8,Qh)],8,Yh)]),O("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:le.value.profile,onClick:ht,textContent:Q(V(o).display_name)},null,8,Jh)])):q("v-if",!0),O("div",Xh,[V(s).login!=="force"&&V(s).meta.length&&!ut.value?(L(),M("div",{key:0,class:ve(["wl-header",`item${V(s).meta.length}`])},[(L(!0),M(ce,null,je(V(s).meta,k=>(L(),M("div",{key:k,class:"wl-header-item"},[O("label",{for:`wl-${k}`,textContent:Q(le.value[k]+(V(s).requiredMeta.includes(k)||!V(s).requiredMeta.length?"":`(${le.value.optional})`))},null,8,ep),or(O("input",{id:`wl-${k}`,ref_for:!0,ref:$=>{$&&(a.value[k]=$)},"onUpdate:modelValue":$=>V(l)[k]=$,class:ve(["wl-input",`wl-${k}`]),name:k,type:k==="mail"?"email":"text"},null,10,tp),[[Au,V(l)[k]]])]))),128))],2)):q("v-if",!0),or(O("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":m[0]||(m[0]=k=>ge(i)?i.value=k:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:le.value.placeholder,onKeydown:Ue,onDrop:Mr,onPaste:Pr},null,40,np),[[bs,V(i)]]),or(O("div",rp,[m[7]||(m[7]=O("hr",null,null,-1)),O("h4",null,Q(le.value.preview)+":",1),O("div",{class:"wl-content",innerHTML:de.value},null,8,sp)],512),[[Ll,ke.value]]),O("div",ip,[O("div",lp,[O("a",op,[re(V(ph))]),or(O("button",{ref:"emoji-button",type:"button",class:ve(["wl-action",{active:I.value}]),title:le.value.emoji,onClick:m[1]||(m[1]=k=>I.value=!I.value)},[re(V(ch))],10,ap),[[Ll,A.value.tabs.length]]),V(s).search?(L(),M("button",{key:0,ref:"gif-button",type:"button",class:ve(["wl-action",{active:F.value}]),title:le.value.gif,onClick:m[2]||(m[2]=k=>F.value=!F.value)},[re(V(bh))],10,cp)):q("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:Ct},null,544),_t.value?(L(),M("label",{key:1,for:"wl-image-upload",class:"wl-action",title:le.value.uploadImage,"aria-label":le.value.uploadImage},[re(V(uh))],8,up)):q("v-if",!0),O("button",{type:"button",class:ve(["wl-action",{active:ke.value}]),title:le.value.preview,onClick:m[3]||(m[3]=k=>ke.value=!ke.value)},[re(V(hh))],10,fp)]),O("div",hp,[m[9]||(m[9]=O("div",{class:"wl-captcha-container"},null,-1)),O("div",pp,[rt(Q(H.value)+" ",1),V(s).wordLimit?(L(),M("span",dp,[m[8]||(m[8]=rt(" / ",-1)),O("span",{class:ve({illegal:!j.value}),textContent:Q(ee.value)},null,10,gp)])):q("v-if",!0),rt(" "+Q(le.value.word),1)]),V(s).login!=="disable"&&!ut.value?(L(),M("button",{key:0,type:"button",class:"wl-btn",onClick:rn,textContent:Q(le.value.login)},null,8,mp)):q("v-if",!0),V(s).login!=="force"||ut.value?(L(),M("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:W.value,onClick:$t},[W.value?(L(),qe(V(Pn),{key:0,size:16})):(L(),M(ce,{key:1},[rt(Q(le.value.submit),1)],64))],8,vp)):q("v-if",!0)]),O("div",{ref:"gif-popup",class:ve(["wl-gif-popup",{display:F.value}])},[O("input",{ref:"gif-search",type:"text",placeholder:le.value.gifSearchPlaceholder,onInput:m[4]||(m[4]=(...k)=>V(d)&&V(d)(...k))},null,40,bp),N.list.length?(L(),qe(qh,{key:0,items:N.list,"column-width":200,gap:6,onInsert:m[5]||(m[5]=k=>ft(k)),onScroll:h},null,8,["items"])):q("v-if",!0),N.loading?(L(),M("div",yp,[re(V(Pn),{size:30})])):q("v-if",!0)],2),O("div",{ref:"emoji-popup",class:ve(["wl-emoji-popup",{display:I.value}])},[(L(!0),M(ce,null,je(A.value.tabs,(k,$)=>(L(),M(ce,{key:k.name},[$===S.value?(L(),M("div",{key:0,class:"wl-tab-wrapper",onScroll:ue},[(L(!0),M(ce,null,je(k.items,C=>(L(),M("button",{key:C,type:"button",title:C,onClick:_=>ft(`:${C}:`),onMouseenter:_=>he(_,C),onMouseleave:ue},[I.value?(L(),M("img",{key:0,class:"wl-emoji",src:A.value.map[C],alt:C,loading:"lazy",referrerPolicy:"no-referrer"},null,8,kp)):q("v-if",!0)],40,wp))),128))],32)):q("v-if",!0)],64))),128)),O("div",null,[z.value?(L(),M("img",{key:0,class:"wl-emoji-preview",src:A.value.map[z.value],alt:"preview",loading:"lazy",referrerPolicy:"no-referrer",style:Wt(R.value)},null,12,xp)):q("v-if",!0)]),A.value.tabs.length>1?(L(),M("div",_p,[(L(!0),M(ce,null,je(A.value.tabs,(k,$)=>(L(),M("button",{key:k.name,type:"button",class:ve(["wl-tab",{active:S.value===$}]),onClick:C=>S.value=$},[O("img",{class:"wl-emoji",src:k.icon,alt:k.name,title:k.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,$p)],10,Cp))),128))])):q("v-if",!0)],2)])]),e.replyId||(w=e.edit)!=null&&w.objectId?(L(),M("button",{key:1,type:"button",class:"wl-close",title:le.value.cancelReply,onClick:m[6]||(m[6]=k=>e.replyId?r("cancelReply"):r("cancelEdit"))},[re(V(To),{size:24})],8,Sp)):q("v-if",!0)])}}});const Rp=["id"],Ap={class:"wl-user","aria-hidden":"true"},Ep=["src"],Tp={class:"wl-card"},Lp={class:"wl-head"},Ip=["href"],Mp={key:1,class:"wl-nick"},Pp=["textContent"],Op=["textContent"],jp=["textContent"],zp=["textContent"],Fp={class:"wl-comment-actions"},Dp=["title"],Hp=["title"],Np={class:"wl-meta","aria-hidden":"true"},Up=["data-value","textContent"],Vp={key:0,class:"wl-warning","aria-hidden":"true"},Bp={key:1,class:"wl-content"},Wp={key:0},qp=["href"],Kp=["innerHTML"],Gp={key:2,class:"wl-admin-actions"},Zp={class:"wl-comment-status"},Yp=["disabled","onClick","textContent"],Qp={key:4,class:"wl-quote"};var Jp=wn({__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=ar(Hn),i=Lo(),l=Ju(),o=Lr(),a=me(()=>s.value.locale),c=me(()=>{const{link:A}=e.comment;return A?pi(A)?A:`https://${A}`:""}),u=me(()=>i.value.includes(e.comment.objectId)),f=me(()=>ua(new Date(e.comment.time),l.value,a.value)),p=me(()=>o.value.type==="administrator"),v=me(()=>e.comment.user_id&&o.value.objectId===e.comment.user_id),x=me(()=>{var A;return e.comment.objectId===((A=e.reply)==null?void 0:A.objectId)}),y=me(()=>{var A;return e.comment.objectId===((A=e.edit)==null?void 0:A.objectId)});return(A,S)=>{var I;const z=kc("CommentCard",!0);return L(),M("div",{id:e.comment.objectId.toString(),class:"wl-card-item"},[O("div",Ap,[e.comment.avatar?(L(),M("img",{key:0,class:"wl-user-avatar",src:e.comment.avatar,alt:""},null,8,Ep)):q("v-if",!0),e.comment.type==="guest"?(L(),qe(V(mh),{key:1})):q("v-if",!0),e.comment.type==="administrator"?(L(),qe(V(vh),{key:2})):q("v-if",!0)]),O("div",Tp,[O("div",Lp,[c.value?(L(),M("a",{key:0,class:"wl-nick",href:c.value,target:"_blank",rel:"nofollow noopener noreferrer"},Q(e.comment.nick),9,Ip)):(L(),M("span",Mp,Q(e.comment.nick),1)),e.comment.label?(L(),M("span",{key:2,class:"wl-badge",textContent:Q(e.comment.label)},null,8,Pp)):q("v-if",!0),e.comment.sticky?(L(),M("span",{key:3,class:"wl-badge",textContent:Q(a.value.sticky)},null,8,Op)):q("v-if",!0),typeof e.comment.level=="number"?(L(),M("span",{key:4,class:ve(`wl-badge level${e.comment.level}`),textContent:Q(a.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,jp)):q("v-if",!0),O("span",{class:"wl-time",textContent:Q(f.value)},null,8,zp),O("div",Fp,[p.value||v.value?(L(),M(ce,{key:0},[O("button",{type:"button",class:"wl-edit",onClick:S[0]||(S[0]=R=>n("edit",e.comment))},[re(V(gh))]),O("button",{type:"button",class:"wl-delete",onClick:S[1]||(S[1]=R=>n("delete",e.comment))},[re(V(ah))])],64)):q("v-if",!0),O("button",{type:"button",class:"wl-like",title:u.value?a.value.cancelLike:a.value.like,onClick:S[2]||(S[2]=R=>n("like",e.comment))},[re(V(fh),{active:u.value},null,8,["active"]),rt(" "+Q("like"in e.comment?e.comment.like:""),1)],8,Dp),O("button",{type:"button",class:ve(["wl-reply",{active:x.value}]),title:x.value?a.value.cancelReply:a.value.reply,onClick:S[3]||(S[3]=R=>n("reply",x.value?null:e.comment))},[re(V(dh))],10,Hp)])]),O("div",Np,[(L(),M(ce,null,je(["addr","browser","os"],R=>(L(),M(ce,null,[e.comment[R]?(L(),M("span",{key:R,class:ve(`wl-${R}`),"data-value":e.comment[R],textContent:Q(e.comment[R])},null,10,Up)):q("v-if",!0)],64))),64))]),e.comment.status==="waiting"&&!p.value?(L(),M("div",Vp,Q(a.value.commentUnderReview),1)):q("v-if",!0),y.value?q("v-if",!0):(L(),M("div",Bp,["reply_user"in e.comment&&e.comment.reply_user?(L(),M("p",Wp,[O("a",{href:"#"+e.comment.pid},"@"+Q(e.comment.reply_user.nick),9,qp),S[17]||(S[17]=O("span",null,": ",-1))])):q("v-if",!0),O("div",{innerHTML:e.comment.comment},null,8,Kp)])),p.value&&!y.value?(L(),M("div",Gp,[O("span",Zp,[(L(),M(ce,null,je(r,R=>O("button",{key:R,type:"submit",class:ve(`wl-btn wl-${R}`),disabled:e.comment.status===R,onClick:D=>n("status",{status:R,comment:e.comment}),textContent:Q(a.value[R])},null,10,Yp)),64))]),p.value&&!("rid"in e.comment)?(L(),M("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:S[4]||(S[4]=R=>n("sticky",e.comment))},Q(e.comment.sticky?a.value.unsticky:a.value.sticky),1)):q("v-if",!0)])):q("v-if",!0),x.value||y.value?(L(),M("div",{key:3,class:ve({"wl-reply-wrapper":x.value,"wl-edit-wrapper":y.value})},[re(Fo,{edit:e.edit,"reply-id":(I=e.reply)==null?void 0:I.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:S[5]||(S[5]=R=>n("log")),onCancelReply:S[6]||(S[6]=R=>n("reply",null)),onCancelEdit:S[7]||(S[7]=R=>n("edit",null)),onSubmit:S[8]||(S[8]=R=>n("submit",R))},null,8,["edit","reply-id","reply-user","root-id"])],2)):q("v-if",!0),"children"in e.comment?(L(),M("div",Qp,[(L(!0),M(ce,null,je(e.comment.children,R=>(L(),qe(z,{key:R.objectId,comment:R,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:S[9]||(S[9]=D=>n("log")),onDelete:S[10]||(S[10]=D=>n("delete",D)),onEdit:S[11]||(S[11]=D=>n("edit",D)),onLike:S[12]||(S[12]=D=>n("like",D)),onReply:S[13]||(S[13]=D=>n("reply",D)),onStatus:S[14]||(S[14]=D=>n("status",D)),onSticky:S[15]||(S[15]=D=>n("sticky",D)),onSubmit:S[16]||(S[16]=D=>n("submit",D))},null,8,["comment","reply","edit","root-id"]))),128))])):q("v-if",!0)])],8,Rp)}}});const Do="3.9.0",Xp={"data-waline":""},ed={class:"wl-meta-head"},td={class:"wl-count"},nd=["textContent"],rd={class:"wl-sort"},sd=["onClick"],id={class:"wl-cards"},ld={key:1,class:"wl-operation"},od=["textContent"],ad={key:2,class:"wl-loading"},cd=["textContent"],ud={key:4,class:"wl-operation"},fd=["textContent"],hd={key:5,class:"wl-power"};var pd=wn({__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=Lr(),r=Lo(),s=X("loading"),i=X(0),l=X(1),o=X(0),a=me(()=>oa(t)),c=X(a.value.commentSorting),u=X([]),f=X(null),p=X(null),v=me(()=>aa(a.value.dark)),x=me(()=>a.value.locale);tf(v,{id:"waline-darkmode"});let y=null;const A=H=>{const{serverURL:N,path:ee,pageSize:j}=a.value,Z=new AbortController;s.value="loading",y==null||y(),Ns({serverURL:N,lang:a.value.lang,path:ee,pageSize:j,sortBy:ui[c.value],page:H,signal:Z.signal,token:n.value.token}).then(W=>{s.value="success",i.value=W.count,u.value.push(...W.data),l.value=H,o.value=W.totalPages}).catch(W=>{W.name!=="AbortError"&&(console.error(W.message),s.value="error")}),y=Z.abort.bind(Z)},S=()=>{A(l.value+1)},I=()=>{i.value=0,u.value=[],A(1)},z=H=>{c.value!==H&&(c.value=H,I())},R=H=>{f.value=H},D=H=>{p.value=H},he=H=>{if(p.value)p.value.comment=H.comment,p.value.orig=H.orig;else if("rid"in H){const N=u.value.find(({objectId:ee})=>ee===H.rid);if(!N)return;Array.isArray(N.children)||(N.children=[]),N.children.push(H)}else u.value.unshift(H),i.value+=1},ue=async({comment:H,status:N})=>{if(H.status===N)return;const{serverURL:ee,lang:j}=a.value;await on({serverURL:ee,lang:j,token:n.value.token,objectId:H.objectId,comment:{status:N}}),H.status=N},F=async H=>{if("rid"in H)return;const{serverURL:N,lang:ee}=a.value;await on({serverURL:N,lang:ee,token:n.value.token,objectId:H.objectId,comment:{sticky:H.sticky?0:1}}),H.sticky=!H.sticky},ke=async({objectId:H})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:N,lang:ee}=a.value;await Vs({serverURL:N,lang:ee,token:n.value.token,objectId:H}),u.value.some((j,Z)=>j.objectId===H?(u.value=u.value.filter((W,Fe)=>Fe!==Z),!0):j.children.some((W,Fe)=>W.objectId===H?(u.value[Z].children=j.children.filter((le,ut)=>ut!==Fe),!0):!1))},de=async H=>{const{serverURL:N,lang:ee}=a.value,{objectId:j}=H,Z=r.value.includes(j);await on({serverURL:N,lang:ee,objectId:j,token:n.value.token,comment:{like:!Z}}),Z?r.value=r.value.filter(W=>W!==j):(r.value=[...r.value,j],r.value.length>50&&(r.value=r.value.slice(-50))),H.like=Math.max(0,(H.like||0)+(Z?-1:1))};return uc(Hn,a),_n(()=>{en(()=>[t.serverURL,t.path],()=>{I()})}),rs(()=>{y==null||y()}),(H,N)=>(L(),M("div",Xp,[re(Nh),!f.value&&!p.value?(L(),qe(Fo,{key:0,onLog:I,onSubmit:he})):q("v-if",!0),O("div",ed,[O("div",td,[i.value?(L(),M("span",{key:0,class:"wl-num",textContent:Q(i.value)},null,8,nd)):q("v-if",!0),rt(" "+Q(x.value.comment),1)]),O("ul",rd,[(L(!0),M(ce,null,je(V(ia),ee=>(L(),M("li",{key:ee,class:ve([ee===c.value?"active":""]),onClick:j=>z(ee)},Q(x.value[ee]),11,sd))),128))])]),O("div",id,[(L(!0),M(ce,null,je(u.value,ee=>(L(),qe(Jp,{key:ee.objectId,"root-id":ee.objectId,comment:ee,reply:f.value,edit:p.value,onLog:I,onReply:R,onEdit:D,onSubmit:he,onStatus:ue,onDelete:ke,onSticky:F,onLike:de},null,8,["root-id","comment","reply","edit"]))),128))]),s.value==="error"?(L(),M("div",ld,[O("button",{type:"button",class:"wl-btn",onClick:I,textContent:Q(x.value.refresh)},null,8,od)])):s.value==="loading"?(L(),M("div",ad,[re(V(Pn),{size:30})])):u.value.length?l.value<o.value?(L(),M("div",ud,[O("button",{type:"button",class:"wl-btn",onClick:S,textContent:Q(x.value.more)},null,8,fd)])):q("v-if",!0):(L(),M("div",{key:3,class:"wl-empty",textContent:Q(x.value.sofa)},null,8,cd)),a.value.noCopyright?q("v-if",!0):(L(),M("div",hd,[N[0]||(N[0]=rt(" Powered by ",-1)),N[1]||(N[1]=O("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),rt(" v"+Q(V(Do)),1)]))]))}});const Ho=(e,t)=>{t.forEach((n,r)=>{const s=e[r].time;typeof s=="number"&&(n.textContent=s.toString())})},No=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:s=navigator.language})=>{const i=new AbortController,l=[...document.querySelectorAll(n)],o=c=>{const u=Is(c);return u!=null&&t!==u},a=c=>qs({serverURL:Nn(e),paths:c.map(u=>Is(u)??t),lang:s,signal:i.signal}).then(u=>{Ho(u,c)}).catch(eo);if(r){const c=l.filter(f=>!o(f)),u=l.filter(f=>o(f));Ks({serverURL:Nn(e),path:t,lang:s}).then(f=>{Ho(f,c)}),u.length>0&&a(u)}else a(l);return i.abort.bind(i)},dd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...s})=>{const i=e?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 l=vn({...s}),o=vn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&Eo({serverURL:l.serverURL,path:o.path,...Nt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&No({serverURL:l.serverURL,path:o.path,...Nt(o.pageview)?{selector:o.pageview}:{}})};let u=null;i&&(u=Iu(()=>Y(pd,{path:o.path,...l})),u.mount(i));const f=Ji(a),p=Ji(c);return{el:i,update:({comment:v,pageview:x,path:y=window.location.pathname,...A}={})=>{Object.entries(A).forEach(([S,I])=>{l[S]=I}),o.path=y,v!=null&&(o.comment=v),x!=null&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),f(),p()}}},gd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const s=Lr(),i=ks(e),l=new AbortController;return Gs({serverURL:t,count:n,lang:r,signal:l.signal,token:s.value.token}).then(o=>i&&o.length>0?(i.innerHTML=`<ul class="wl-recent-list">${o.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:o,destroy:()=>{l.abort(),i.innerHTML=""}}):{comments:o,destroy:()=>{l.abort()}})},md=({el:e,serverURL:t,count:n,locale:r,lang:s=navigator.language,mode:i="list"})=>{const l=ks(e),o=new AbortController;return Zs({serverURL:t,pageSize:n,lang:s,signal:o.signal}).then(a=>{if(!l||a.length===0)return{users:a,destroy:()=>{o.abort()}};const c={...ai(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=""}}})};export{gd as RecentComments,md as UserList,Us as addComment,Eo as commentCount,Dn as defaultLocales,Vs as deleteComment,Bs as fetchCommentCount,jr as getArticleCounter,Ns as getComment,qs as getPageview,Gs as getRecentComment,Zs as getUserList,dd as init,Ws as login,No as pageviewCount,Fn as updateArticleCounter,on as updateComment,Ks as updatePageview,Do as version};
|
|
88
88
|
//# sourceMappingURL=waline.js.map
|