@waline/client 3.3.2 → 3.4.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.
@@ -1,73 +1,73 @@
1
- var Vd=Object.defineProperty;var Bd=(re,Oe,je)=>Oe in re?Vd(re,Oe,{enumerable:!0,configurable:!0,writable:!0,value:je}):re[Oe]=je;var Io=(re,Oe,je)=>Bd(re,typeof Oe!="symbol"?Oe+"":Oe,je);(function(re,Oe){typeof exports=="object"&&typeof module<"u"?Oe(exports):typeof define=="function"&&define.amd?define(["exports"],Oe):(re=typeof globalThis<"u"?globalThis:re||self,Oe(re.Waline={}))})(this,function(re){"use strict";const Oe={"Content-Type":"application/json"},je=e=>`${e.replace(/\/?$/,"/")}api/`,xt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Er=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${je(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>xt(s,"Get counter").data),zn=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${je(e)}article?lang=${t}`,{method:"POST",headers:Oe,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>xt(s,"Update counter").data),ji=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:s,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${je(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(u=>u.json()).then(u=>xt(u,"Get comment data").data)},zi=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${je(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Pi=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${je(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>xt(i,"Delete comment")),tn=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${je(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Oe,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>xt(s,"Update comment")),Fi=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${je(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>xt(i,"Get comment count").data),Di=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=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 i==null||i.postMessage({type:"TOKEN",data:null},"*"),new Promise(s=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(i==null||i.close(),window.removeEventListener("message",l),s(o.data))};window.addEventListener("message",l)})},Ui=({serverURL:e,lang:t,paths:n,signal:r})=>Er({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Hi=e=>zn({...e,type:"time",action:"inc"}),Ni=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${je(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Vi=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${je(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>xt(i,"user list")).then(i=>i.data),Lo=["nick","mail","link"],Bi=e=>e.filter(t=>Lo.includes(t)),Wi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Mo=["//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"],Oo=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var i;return t(((i=r.result)==null?void 0:i.toString())??"")},r.onerror=n}),jo=e=>e===!0?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',zo=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(i=>i.json()).then(({data:i})=>i.map(s=>({title:s.title,src:s.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},Po=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Fo=/</,Do=/(?:^|\s)\/\/(.+?)$/gm,Uo=/\/\*([\S\s]*?)\*\//gm,Ho=new RegExp(`(${Po.source}|${Fo.source})|((?:${Do.source})|(?:${Uo.source}))`,"gmi"),qi=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Tr={},No=e=>{let t=0;return e.replace(Ho,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"&lt;";let s;Tr[r]?s=Tr[r]:(s=qi[t],Tr[r]=s);const l=`<span style="color: #${s}">${r}</span>`;return t=++t%qi.length,l})},Vo=["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"],et=e=>Object.fromEntries(e.map((t,n)=>[Vo[n],t]));var Bo=et(["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?"]),Ki=et(["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?"]),Gi=et(["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?"]),Zi=et(["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 ?"]),Qi=et(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
5
- 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Wo=et(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
6
- 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?"]),Ji=et(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
7
- Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Yi=et(["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ừ!
8
- 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?"]),Xi=et(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
9
- 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),qo=et(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
10
- 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const es="en-US",Pn={zh:Xi,"zh-cn":Xi,"zh-tw":qo,en:Ki,"en-us":Ki,fr:Zi,"fr-fr":Zi,jp:Qi,"jp-jp":Qi,"pt-br":Wo,ru:Ji,"ru-ru":Ji,vi:Yi,"vi-vn":Yi,de:Bo,es:Gi,"es-mx":Gi},ts=e=>Pn[e.toLowerCase()]||Pn[es.toLowerCase()],ns=e=>Object.keys(Pn).includes(e.toLowerCase())?e:es,rs=e=>{try{e=decodeURI(e)}catch{}return e},is=(e="")=>e.replace(/\/$/u,""),ss=e=>/^(https?:)?\/\//.test(e),Fn=e=>{const t=is(e);return ss(t)?t:`https://${t}`},Ko=e=>Array.isArray(e)?e:e?[0,e]:!1,Ar=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Go=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=Wi,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:u,imageUploader:c,highlighter:h,texRenderer:p,copyright:m=!0,login:w="enable",search:x,reaction:C,recaptchaV3Key:v="",turnstileKey:$="",commentSorting:H="latest",...A})=>({serverURL:Fn(e),path:rs(t),lang:ns(n),locale:{...ts(ns(n)),...typeof r=="object"?r:{}},wordLimit:Ko(u),meta:Bi(s),requiredMeta:Bi(l),imageUploader:Ar(c,Oo),highlighter:Ar(h,No),texRenderer:Ar(p,jo),dark:o,emoji:typeof i=="boolean"?i?Wi:[]:i,pageSize:a,login:w,copyright:m,search:x===!1?!1:typeof x=="object"?x:zo(n),recaptchaV3Key:v,turnstileKey:$,reaction:Array.isArray(C)?C:C===!0?Mo:[],commentSorting:H,...A}),Dt=e=>typeof e=="string",Rr="{--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}",Zo=e=>Dt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Rr}}`:`${e}${Rr}`:e===!0?`:root${Rr}`:"",Ir=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Qo=e=>{const t=Ir(e.getDate(),2),n=Ir(e.getMonth()+1,2);return`${Ir(e.getFullYear(),2)}-${n}-${t}`},Jo=(e,t,n)=>{if(!e)return"";const r=Dt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),s=Math.floor(i/(24*3600*1e3));if(s===0){const l=i%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,u=Math.floor(a/(60*1e3));if(u===0){const c=a%6e4;return`${Math.round(c/1e3)} ${n.seconds}`}return`${u} ${n.minutes}`}return`${o} ${n.hours}`}return s<0?n.now:s<8?`${s} ${n.days}`:Qo(r)},Yo=/^[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])?)*$/,Xo=e=>Yo.test(e);/**
11
- * @vue/shared v3.5.3
1
+ var md=Object.defineProperty;var vd=(re,Me,Oe)=>Me in re?md(re,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):re[Me]=Oe;var go=(re,Me,Oe)=>vd(re,typeof Me!="symbol"?Me+"":Me,Oe);(function(re,Me){typeof exports=="object"&&typeof module<"u"?Me(exports):typeof define=="function"&&define.amd?define(["exports"],Me):(re=typeof globalThis<"u"?globalThis:re||self,Me(re.Waline={}))})(this,function(re){"use strict";const Me={"Content-Type":"application/json"},Oe=e=>`${e.replace(/\/?$/,"/")}api/`,xt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},xr=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${Oe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>xt(s,"Get counter").data),On=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${Oe(e)}article?lang=${t}`,{method:"POST",headers:Me,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>xt(s,"Update counter").data),$i=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:s,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Oe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>xt(c,"Get comment data").data)},Si=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${Oe(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Ri=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Oe(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>xt(i,"Delete comment")),Xt=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${Oe(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Me,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>xt(s,"Update comment")),Ai=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Oe(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>xt(i,"Get comment count").data),Ti=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=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 i==null||i.postMessage({type:"TOKEN",data:null},"*"),new Promise(s=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(i==null||i.close(),window.removeEventListener("message",l),s(o.data))};window.addEventListener("message",l)})},Ei=({serverURL:e,lang:t,paths:n,signal:r})=>xr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Li=e=>On({...e,type:"time",action:"inc"}),Ii=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${Oe(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Mi=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Oe(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>xt(i,"user list")).then(i=>i.data),mo=["nick","mail","link"],Oi=e=>e.filter(t=>mo.includes(t)),Pi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],vo=["//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"],bo=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var i;return t(((i=r.result)==null?void 0:i.toString())??"")},r.onerror=n}),yo=e=>e===!0?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',wo=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(i=>i.json()).then(({data:i})=>i.map(s=>({title:s.title,src:s.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},ko=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,xo=/</,_o=/(?:^|\s)\/\/(.+?)$/gm,Co=/\/\*([\S\s]*?)\*\//gm,$o=new RegExp(`(${ko.source}|${xo.source})|((?:${_o.source})|(?:${Co.source}))`,"gmi"),ji=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],_r={},So=e=>{let t=0;return e.replace($o,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"&lt;";let s;_r[r]?s=_r[r]:(s=ji[t],_r[r]=s);const l=`<span style="color: #${s}">${r}</span>`;return t=++t%ji.length,l})},Ro=["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"],Xe=e=>Object.fromEntries(e.map((t,n)=>[Ro[n],t]));var Ao=Xe(["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?"]),zi=Xe(["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?"]),Fi=Xe(["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?"]),Di=Xe(["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 ?"]),Hi=Xe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
5
+ 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),To=Xe(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
6
+ 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?"]),Ui=Xe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
7
+ Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Ni=Xe(["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ừ!
8
+ 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?"]),Bi=Xe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
9
+ 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Eo=Xe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
10
+ 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Vi="en-US",Pn={zh:Bi,"zh-cn":Bi,"zh-tw":Eo,en:zi,"en-us":zi,fr:Di,"fr-fr":Di,jp:Hi,"jp-jp":Hi,"pt-br":To,ru:Ui,"ru-ru":Ui,vi:Ni,"vi-vn":Ni,de:Ao,es:Fi,"es-mx":Fi},Wi=e=>Pn[e.toLowerCase()]||Pn[Vi.toLowerCase()],qi=e=>Object.keys(Pn).includes(e.toLowerCase())?e:Vi,Ki=e=>{try{e=decodeURI(e)}catch{}return e},Gi=(e="")=>e.replace(/\/$/u,""),Zi=e=>/^(https?:)?\/\//.test(e),jn=e=>{const t=Gi(e);return Zi(t)?t:`https://${t}`},Lo=e=>Array.isArray(e)?e:e?[0,e]:!1,Cr=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Io=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=Pi,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:h,texRenderer:d,copyright:g=!0,login:k="enable",search:v,reaction:$,recaptchaV3Key:b="",turnstileKey:C="",commentSorting:U="latest",...T})=>({serverURL:jn(e),path:Ki(t),lang:qi(n),locale:{...Wi(qi(n)),...typeof r=="object"?r:{}},wordLimit:Lo(c),meta:Oi(s),requiredMeta:Oi(l),imageUploader:Cr(u,bo),highlighter:Cr(h,So),texRenderer:Cr(d,yo),dark:o,emoji:typeof i=="boolean"?i?Pi:[]:i,pageSize:a,login:k,copyright:g,search:v===!1?!1:typeof v=="object"?v:wo(n),recaptchaV3Key:b,turnstileKey:C,reaction:Array.isArray($)?$:$===!0?vo:[],commentSorting:U,...T}),Dt=e=>typeof e=="string",$r="{--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}",Mo=e=>Dt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${$r}}`:`${e}${$r}`:e===!0?`:root${$r}`:"",Sr=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Oo=e=>{const t=Sr(e.getDate(),2),n=Sr(e.getMonth()+1,2);return`${Sr(e.getFullYear(),2)}-${n}-${t}`},Po=(e,t,n)=>{if(!e)return"";const r=Dt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),s=Math.floor(i/(24*3600*1e3));if(s===0){const l=i%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 s<0?n.now:s<8?`${s} ${n.days}`:Oo(r)},jo=/^[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])?)*$/,zo=e=>jo.test(e);/**
11
+ * @vue/shared v3.5.13
12
12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
13
  * @license MIT
14
- **//*! #__NO_SIDE_EFFECTS__ */function Lr(e,t){const n=new Set(e.split(","));return r=>n.has(r)}const ue={},Ut=[],_t=()=>{},ea=()=>!1,Dn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mr=e=>e.startsWith("onUpdate:"),Te=Object.assign,ls=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ta=Object.prototype.hasOwnProperty,ie=(e,t)=>ta.call(e,t),N=Array.isArray,Ht=e=>nn(e)==="[object Map]",Nt=e=>nn(e)==="[object Set]",os=e=>nn(e)==="[object Date]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",tt=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",as=e=>(ge(e)||ee(e))&&ee(e.then)&&ee(e.catch),cs=Object.prototype.toString,nn=e=>cs.call(e),na=e=>nn(e).slice(8,-1),us=e=>nn(e)==="[object Object]",Or=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=Lr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ra=/-(\w)/g,Ge=Un(e=>e.replace(ra,(t,n)=>n?n.toUpperCase():"")),ia=/\B([A-Z])/g,$t=Un(e=>e.replace(ia,"-$1").toLowerCase()),Hn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),jr=Un(e=>e?`on${Hn(e)}`:""),gt=(e,t)=>!Object.is(e,t),Nn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fs=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let hs;const zr=()=>hs||(hs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function sn(e){if(N(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ye(r)?aa(r):sn(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ye(e)||ge(e))return e}const sa=/;(?![^(]*\))/g,la=/:([^]+)/,oa=/\/\*[^]*?\*\//g;function aa(e){const t={};return e.replace(oa,"").split(sa).forEach(n=>{if(n){const r=n.split(la);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(N(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ca=Lr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ds(e){return!!e||e===""}function ua(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Ct(e[r],t[r]);return n}function Ct(e,t){if(e===t)return!0;let n=os(e),r=os(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=tt(e),r=tt(t),n||r)return e===t;if(n=N(e),r=N(t),n||r)return n&&r?ua(e,t):!1;if(n=ge(e),r=ge(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!Ct(e[l],t[l]))return!1}}return String(e)===String(t)}function Pr(e,t){return e.findIndex(n=>Ct(n,t))}const ps=e=>!!(e&&e.__v_isRef===!0),Y=e=>ye(e)?e:e==null?"":N(e)||ge(e)&&(e.toString===cs||!ee(e.toString))?ps(e)?Y(e.value):JSON.stringify(e,gs,2):String(e),gs=(e,t)=>ps(t)?gs(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Fr(r,s)+" =>"]=i,n),{})}:Nt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Fr(n))}:tt(t)?Fr(t):ge(t)&&!N(t)&&!us(t)?String(t):t,Fr=(e,t="")=>{var n;return tt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
15
- * @vue/reactivity v3.5.3
14
+ **//*! #__NO_SIDE_EFFECTS__ */function Rr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},Ht=[],_t=()=>{},Fo=()=>!1,zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ar=e=>e.startsWith("onUpdate:"),Be=Object.assign,Ji=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Do=Object.prototype.hasOwnProperty,ee=(e,t)=>Do.call(e,t),V=Array.isArray,Ut=e=>en(e)==="[object Map]",Nt=e=>en(e)==="[object Set]",Yi=e=>en(e)==="[object Date]",le=e=>typeof e=="function",ye=e=>typeof e=="string",et=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",Qi=e=>(me(e)||le(e))&&le(e.then)&&le(e.catch),Xi=Object.prototype.toString,en=e=>Xi.call(e),Ho=e=>en(e).slice(8,-1),es=e=>en(e)==="[object Object]",Tr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tn=Rr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Uo=/-(\w)/g,Ve=Fn(e=>e.replace(Uo,(t,n)=>n?n.toUpperCase():"")),No=/\B([A-Z])/g,Ct=Fn(e=>e.replace(No,"-$1").toLowerCase()),Dn=Fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Er=Fn(e=>e?`on${Dn(e)}`:""),vt=(e,t)=>!Object.is(e,t),Hn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ts=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Un=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ns;const nn=()=>ns||(ns=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rn(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ye(r)?qo(r):rn(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ye(e)||me(e))return e}const Bo=/;(?![^(]*\))/g,Vo=/:([^]+)/,Wo=/\/\*[^]*?\*\//g;function qo(e){const t={};return e.replace(Wo,"").split(Bo).forEach(n=>{if(n){const r=n.split(Vo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(me(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ko=Rr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function rs(e){return!!e||e===""}function Go(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=$t(e[r],t[r]);return n}function $t(e,t){if(e===t)return!0;let n=Yi(e),r=Yi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=et(e),r=et(t),n||r)return e===t;if(n=V(e),r=V(t),n||r)return n&&r?Go(e,t):!1;if(n=me(e),r=me(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!$t(e[l],t[l]))return!1}}return String(e)===String(t)}function Lr(e,t){return e.findIndex(n=>$t(n,t))}const is=e=>!!(e&&e.__v_isRef===!0),X=e=>ye(e)?e:e==null?"":V(e)||me(e)&&(e.toString===Xi||!le(e.toString))?is(e)?X(e.value):JSON.stringify(e,ss,2):String(e),ss=(e,t)=>is(t)?ss(e,t.value):Ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Ir(r,s)+" =>"]=i,n),{})}:Nt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ir(n))}:et(t)?Ir(t):me(t)&&!V(t)&&!es(t)?String(t):t,Ir=(e,t="")=>{var n;return et(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
15
+ * @vue/reactivity v3.5.13
16
16
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
17
17
  * @license MIT
18
- **/let Ae;class fa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.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=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){Ae=this}off(){Ae=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function ms(){return Ae}function ha(e,t=!1){Ae&&Ae.cleanups.push(e)}let fe;const Dr=new WeakSet;class vs{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,Ae&&Ae.active&&Ae.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Dr.has(this)&&(Dr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=ln,ln=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_s(this),ys(this);const t=fe,n=Ze;fe=this,Ze=!0;try{return this.fn()}finally{ws(this),fe=t,Ze=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Vr(t);this.deps=this.depsTail=void 0,_s(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Dr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Nr(this)&&this.run()}get dirty(){return Nr(this)}}let bs=0,ln;function Ur(){bs++}function Hr(){if(--bs>0)return;let e;for(;ln;){let t=ln;for(ln=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function ys(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ws(e){let t,n=e.depsTail;for(let r=n;r;r=r.prevDep)r.version===-1?(r===n&&(n=r.prevDep),Vr(r),da(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function Nr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&ks(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function ks(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===on))return;e.globalVersion=on;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!Nr(e)){e.flags&=-3;return}const n=fe,r=Ze;fe=e,Ze=!0;try{ys(e);const i=e.fn(e._value);(t.version===0||gt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{fe=n,Ze=r,ws(e),e.flags&=-3}}function Vr(e){const{dep:t,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let i=t.computed.deps;i;i=i.nextDep)Vr(i)}}function da(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const xs=[];function St(){xs.push(Ze),Ze=!1}function Et(){const e=xs.pop();Ze=e===void 0?!0:e}function _s(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let on=0;class Br{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!fe||!Ze||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink={dep:this,sub:fe,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,fe.flags&4&&$s(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=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=r)}return n}trigger(t){this.version++,on++,this.notify(t)}notify(t){Ur();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{Hr()}}}function $s(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)$s(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const Wr=new WeakMap,Tt=Symbol(""),qr=Symbol(""),an=Symbol("");function Ce(e,t,n){if(Ze&&fe){let r=Wr.get(e);r||Wr.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=new Br),i.track()}}function lt(e,t,n,r,i,s){const l=Wr.get(e);if(!l){on++;return}let o=[];if(t==="clear")o=[...l.values()];else{const a=N(e),u=a&&Or(n);if(a&&n==="length"){const c=Number(r);l.forEach((h,p)=>{(p==="length"||p===an||!tt(p)&&p>=c)&&o.push(h)})}else{const c=h=>h&&o.push(h);switch(n!==void 0&&c(l.get(n)),u&&c(l.get(an)),t){case"add":a?u&&c(l.get("length")):(c(l.get(Tt)),Ht(e)&&c(l.get(qr)));break;case"delete":a||(c(l.get(Tt)),Ht(e)&&c(l.get(qr)));break;case"set":Ht(e)&&c(l.get(Tt));break}}}Ur();for(const a of o)a.trigger();Hr()}function Vt(e){const t=te(e);return t===e?t:(Ce(t,"iterate",an),Qe(e)?t:t.map(Se))}function Bn(e){return Ce(e=te(e),"iterate",an),e}const pa={__proto__:null,[Symbol.iterator](){return Kr(this,Symbol.iterator,Se)},concat(...e){return Vt(this).concat(...e.map(t=>N(t)?Vt(t):t))},entries(){return Kr(this,"entries",e=>(e[1]=Se(e[1]),e))},every(e,t){return ot(this,"every",e,t,void 0,arguments)},filter(e,t){return ot(this,"filter",e,t,n=>n.map(Se),arguments)},find(e,t){return ot(this,"find",e,t,Se,arguments)},findIndex(e,t){return ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ot(this,"findLast",e,t,Se,arguments)},findLastIndex(e,t){return ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gr(this,"includes",e)},indexOf(...e){return Gr(this,"indexOf",e)},join(e){return Vt(this).join(e)},lastIndexOf(...e){return Gr(this,"lastIndexOf",e)},map(e,t){return ot(this,"map",e,t,void 0,arguments)},pop(){return cn(this,"pop")},push(...e){return cn(this,"push",e)},reduce(e,...t){return Cs(this,"reduce",e,t)},reduceRight(e,...t){return Cs(this,"reduceRight",e,t)},shift(){return cn(this,"shift")},some(e,t){return ot(this,"some",e,t,void 0,arguments)},splice(...e){return cn(this,"splice",e)},toReversed(){return Vt(this).toReversed()},toSorted(e){return Vt(this).toSorted(e)},toSpliced(...e){return Vt(this).toSpliced(...e)},unshift(...e){return cn(this,"unshift",e)},values(){return Kr(this,"values",Se)}};function Kr(e,t,n){const r=Bn(e),i=r[t]();return r!==e&&!Qe(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const ga=Array.prototype;function ot(e,t,n,r,i,s){const l=Bn(e),o=l!==e&&!Qe(e),a=l[t];if(a!==ga[t]){const h=a.apply(e,s);return o?Se(h):h}let u=n;l!==e&&(o?u=function(h,p){return n.call(this,Se(h),p,e)}:n.length>2&&(u=function(h,p){return n.call(this,h,p,e)}));const c=a.call(l,u,r);return o&&i?i(c):c}function Cs(e,t,n,r){const i=Bn(e);let s=n;return i!==e&&(Qe(e)?n.length>3&&(s=function(l,o,a){return n.call(this,l,o,a,e)}):s=function(l,o,a){return n.call(this,l,Se(o),a,e)}),i[t](s,...r)}function Gr(e,t,n){const r=te(e);Ce(r,"iterate",an);const i=r[t](...n);return(i===-1||i===!1)&&Yr(n[0])?(n[0]=te(n[0]),r[t](...n)):i}function cn(e,t,n=[]){St(),Ur();const r=te(e)[t].apply(e,n);return Hr(),Et(),r}const ma=Lr("__proto__,__v_isRef,__isVue"),Ss=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(tt));function va(e){tt(e)||(e=String(e));const t=te(this);return Ce(t,"has",e),t.hasOwnProperty(e)}class Es{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?Ra:js:s?Os:Ms).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=N(t);if(!i){let a;if(l&&(a=pa[n]))return a;if(n==="hasOwnProperty")return va}const o=Reflect.get(t,n,xe(t)?t:r);return(tt(n)?Ss.has(n):ma(n))||(i||Ce(t,"get",n),s)?o:xe(o)?l&&Or(n)?o:o.value:ge(o)?i?fn(o):un(o):o}}class Ts extends Es{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=At(s);if(!Qe(r)&&!At(r)&&(s=te(s),r=te(r)),!N(t)&&xe(s)&&!xe(r))return a?!1:(s.value=r,!0)}const l=N(t)&&Or(n)?Number(n)<t.length:ie(t,n),o=Reflect.set(t,n,r,xe(t)?t:i);return t===te(i)&&(l?gt(r,s)&&lt(t,"set",n,r):lt(t,"add",n,r)),o}deleteProperty(t,n){const r=ie(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&lt(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!tt(n)||!Ss.has(n))&&Ce(t,"has",n),r}ownKeys(t){return Ce(t,"iterate",N(t)?"length":Tt),Reflect.ownKeys(t)}}class ba extends Es{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ya=new Ts,wa=new ba,ka=new Ts(!0),Zr=e=>e,Wn=e=>Reflect.getPrototypeOf(e);function qn(e,t,n=!1,r=!1){e=e.__v_raw;const i=te(e),s=te(t);n||(gt(t,s)&&Ce(i,"get",t),Ce(i,"get",s));const{has:l}=Wn(i),o=r?Zr:n?Xr:Se;if(l.call(i,t))return o(e.get(t));if(l.call(i,s))return o(e.get(s));e!==i&&e.get(t)}function Kn(e,t=!1){const n=this.__v_raw,r=te(n),i=te(e);return t||(gt(e,i)&&Ce(r,"has",e),Ce(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Gn(e,t=!1){return e=e.__v_raw,!t&&Ce(te(e),"iterate",Tt),Reflect.get(e,"size",e)}function As(e,t=!1){!t&&!Qe(e)&&!At(e)&&(e=te(e));const n=te(this);return Wn(n).has.call(n,e)||(n.add(e),lt(n,"add",e,e)),this}function Rs(e,t,n=!1){!n&&!Qe(t)&&!At(t)&&(t=te(t));const r=te(this),{has:i,get:s}=Wn(r);let l=i.call(r,e);l||(e=te(e),l=i.call(r,e));const o=s.call(r,e);return r.set(e,t),l?gt(t,o)&&lt(r,"set",e,t):lt(r,"add",e,t),this}function Is(e){const t=te(this),{has:n,get:r}=Wn(t);let i=n.call(t,e);i||(e=te(e),i=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return i&&lt(t,"delete",e,void 0),s}function Ls(){const e=te(this),t=e.size!==0,n=e.clear();return t&&lt(e,"clear",void 0,void 0),n}function Zn(e,t){return function(r,i){const s=this,l=s.__v_raw,o=te(l),a=t?Zr:e?Xr:Se;return!e&&Ce(o,"iterate",Tt),l.forEach((u,c)=>r.call(i,a(u),a(c),s))}}function Qn(e,t,n){return function(...r){const i=this.__v_raw,s=te(i),l=Ht(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,u=i[e](...r),c=n?Zr:t?Xr:Se;return!t&&Ce(s,"iterate",a?qr:Tt),{next(){const{value:h,done:p}=u.next();return p?{value:h,done:p}:{value:o?[c(h[0]),c(h[1])]:c(h),done:p}},[Symbol.iterator](){return this}}}}function mt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function xa(){const e={get(s){return qn(this,s)},get size(){return Gn(this)},has:Kn,add:As,set:Rs,delete:Is,clear:Ls,forEach:Zn(!1,!1)},t={get(s){return qn(this,s,!1,!0)},get size(){return Gn(this)},has:Kn,add(s){return As.call(this,s,!0)},set(s,l){return Rs.call(this,s,l,!0)},delete:Is,clear:Ls,forEach:Zn(!1,!0)},n={get(s){return qn(this,s,!0)},get size(){return Gn(this,!0)},has(s){return Kn.call(this,s,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Zn(!0,!1)},r={get(s){return qn(this,s,!0,!0)},get size(){return Gn(this,!0)},has(s){return Kn.call(this,s,!0)},add:mt("add"),set:mt("set"),delete:mt("delete"),clear:mt("clear"),forEach:Zn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=Qn(s,!1,!1),n[s]=Qn(s,!0,!1),t[s]=Qn(s,!1,!0),r[s]=Qn(s,!0,!0)}),[e,n,t,r]}const[_a,$a,Ca,Sa]=xa();function Qr(e,t){const n=t?e?Sa:Ca:e?$a:_a;return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ie(n,i)&&i in r?n:r,i,s)}const Ea={get:Qr(!1,!1)},Ta={get:Qr(!1,!0)},Aa={get:Qr(!0,!1)},Ms=new WeakMap,Os=new WeakMap,js=new WeakMap,Ra=new WeakMap;function Ia(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function La(e){return e.__v_skip||!Object.isExtensible(e)?0:Ia(na(e))}function un(e){return At(e)?e:Jr(e,!1,ya,Ea,Ms)}function Ma(e){return Jr(e,!1,ka,Ta,Os)}function fn(e){return Jr(e,!0,wa,Aa,js)}function Jr(e,t,n,r,i){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=La(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Bt(e){return At(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function At(e){return!!(e&&e.__v_isReadonly)}function Qe(e){return!!(e&&e.__v_isShallow)}function Yr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function Oa(e){return Object.isExtensible(e)&&fs(e,"__v_skip",!0),e}const Se=e=>ge(e)?un(e):e,Xr=e=>ge(e)?fn(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function q(e){return zs(e,!1)}function ja(e){return zs(e,!0)}function zs(e,t){return xe(e)?e:new za(e,t)}class za{constructor(t,n){this.dep=new Br,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:Se(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Qe(t)||At(t);t=r?t:te(t),gt(t,n)&&(this._rawValue=t,this._value=r?t:Se(t),this.dep.trigger())}}function K(e){return xe(e)?e.value:e}const Pa={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return xe(i)&&!xe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ps(e){return Bt(e)?e:new Proxy(e,Pa)}class Fa{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Br(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=on-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){fe!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return ks(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Da(e,t,n=!1){let r,i;return ee(e)?r=e:(r=e.get,i=e.set),new Fa(r,i,n)}const Jn={},Yn=new WeakMap;let Rt;function Ua(e,t=!1,n=Rt){if(n){let r=Yn.get(n);r||Yn.set(n,r=[]),r.push(e)}}function Ha(e,t,n=ue){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,u=A=>i?A:Qe(A)||i===!1||i===0?at(A,1):at(A);let c,h,p,m,w=!1,x=!1;if(xe(e)?(h=()=>e.value,w=Qe(e)):Bt(e)?(h=()=>u(e),w=!0):N(e)?(x=!0,w=e.some(A=>Bt(A)||Qe(A)),h=()=>e.map(A=>{if(xe(A))return A.value;if(Bt(A))return u(A);if(ee(A))return a?a(A,2):A()})):ee(e)?t?h=a?()=>a(e,2):e:h=()=>{if(p){St();try{p()}finally{Et()}}const A=Rt;Rt=c;try{return a?a(e,3,[m]):e(m)}finally{Rt=A}}:h=_t,t&&i){const A=h,z=i===!0?1/0:i;h=()=>at(A(),z)}const C=ms(),v=()=>{c.stop(),C&&ls(C.effects,c)};if(s)if(t){const A=t;t=(...z)=>{A(...z),v()}}else{const A=h;h=()=>{A(),v()}}let $=x?new Array(e.length).fill(Jn):Jn;const H=A=>{if(!(!(c.flags&1)||!c.dirty&&!A))if(t){const z=c.run();if(i||w||(x?z.some((W,U)=>gt(W,$[U])):gt(z,$))){p&&p();const W=Rt;Rt=c;try{const U=[z,$===Jn?void 0:x&&$[0]===Jn?[]:$,m];a?a(t,3,U):t(...U),$=z}finally{Rt=W}}}else c.run()};return o&&o(H),c=new vs(h),c.scheduler=l?()=>l(H,!1):H,m=A=>Ua(A,!1,c),p=c.onStop=()=>{const A=Yn.get(c);if(A){if(a)a(A,4);else for(const z of A)z();Yn.delete(c)}},t?r?H(!0):$=c.run():l?l(H.bind(null,!0),!0):c.run(),v.pause=c.pause.bind(c),v.resume=c.resume.bind(c),v.stop=v,v}function at(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,xe(e))at(e.value,t,n);else if(N(e))for(let r=0;r<e.length;r++)at(e[r],t,n);else if(Nt(e)||Ht(e))e.forEach(r=>{at(r,t,n)});else if(us(e)){for(const r in e)at(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&at(e[r],t,n)}return e}/**
19
- * @vue/runtime-core v3.5.3
18
+ **/let Ae;class Zo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.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=Ae;try{return Ae=this,t()}finally{Ae=n}}}on(){Ae=this}off(){Ae=this.parent}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 i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function ls(){return Ae}function Jo(e,t=!1){Ae&&Ae.cleanups.push(e)}let fe;const Mr=new WeakSet;class os{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,Ae&&Ae.active&&Ae.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Mr.has(this)&&(Mr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||cs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ps(this),us(this);const t=fe,n=Ze;fe=this,Ze=!0;try{return this.fn()}finally{fs(this),fe=t,Ze=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,ps(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Mr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){jr(this)&&this.run()}get dirty(){return jr(this)}}let as=0,sn,ln;function cs(e,t=!1){if(e.flags|=8,t){e.next=ln,ln=e;return}e.next=sn,sn=e}function Or(){as++}function Pr(){if(--as>0)return;if(ln){let t=ln;for(ln=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;sn;){let t=sn;for(sn=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 us(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fs(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),zr(r),Yo(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function jr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(hs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function hs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===on))return;e.globalVersion=on;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!jr(e)){e.flags&=-3;return}const n=fe,r=Ze;fe=e,Ze=!0;try{us(e);const i=e.fn(e._value);(t.version===0||vt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{fe=n,Ze=r,fs(e),e.flags&=-3}}function zr(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)zr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const ds=[];function St(){ds.push(Ze),Ze=!1}function Rt(){const e=ds.pop();Ze=e===void 0?!0:e}function ps(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let on=0;class Qo{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 Fr{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}track(t){if(!fe||!Ze||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new Qo(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,gs(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=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=r)}return n}trigger(t){this.version++,on++,this.notify(t)}notify(t){Or();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pr()}}}function gs(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)gs(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Dr=new WeakMap,At=Symbol(""),Hr=Symbol(""),an=Symbol("");function $e(e,t,n){if(Ze&&fe){let r=Dr.get(e);r||Dr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Fr),i.map=r,i.key=n),i.track()}}function lt(e,t,n,r,i,s){const l=Dr.get(e);if(!l){on++;return}const o=a=>{a&&a.trigger()};if(Or(),t==="clear")l.forEach(o);else{const a=V(e),c=a&&Tr(n);if(a&&n==="length"){const u=Number(r);l.forEach((h,d)=>{(d==="length"||d===an||!et(d)&&d>=u)&&o(h)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(an)),t){case"add":a?c&&o(l.get("length")):(o(l.get(At)),Ut(e)&&o(l.get(Hr)));break;case"delete":a||(o(l.get(At)),Ut(e)&&o(l.get(Hr)));break;case"set":Ut(e)&&o(l.get(At));break}}Pr()}function Bt(e){const t=te(e);return t===e?t:($e(t,"iterate",an),We(e)?t:t.map(Se))}function Nn(e){return $e(e=te(e),"iterate",an),e}const Xo={__proto__:null,[Symbol.iterator](){return Ur(this,Symbol.iterator,Se)},concat(...e){return Bt(this).concat(...e.map(t=>V(t)?Bt(t):t))},entries(){return Ur(this,"entries",e=>(e[1]=Se(e[1]),e))},every(e,t){return ot(this,"every",e,t,void 0,arguments)},filter(e,t){return ot(this,"filter",e,t,n=>n.map(Se),arguments)},find(e,t){return ot(this,"find",e,t,Se,arguments)},findIndex(e,t){return ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ot(this,"findLast",e,t,Se,arguments)},findLastIndex(e,t){return ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return Nr(this,"includes",e)},indexOf(...e){return Nr(this,"indexOf",e)},join(e){return Bt(this).join(e)},lastIndexOf(...e){return Nr(this,"lastIndexOf",e)},map(e,t){return ot(this,"map",e,t,void 0,arguments)},pop(){return cn(this,"pop")},push(...e){return cn(this,"push",e)},reduce(e,...t){return ms(this,"reduce",e,t)},reduceRight(e,...t){return ms(this,"reduceRight",e,t)},shift(){return cn(this,"shift")},some(e,t){return ot(this,"some",e,t,void 0,arguments)},splice(...e){return cn(this,"splice",e)},toReversed(){return Bt(this).toReversed()},toSorted(e){return Bt(this).toSorted(e)},toSpliced(...e){return Bt(this).toSpliced(...e)},unshift(...e){return cn(this,"unshift",e)},values(){return Ur(this,"values",Se)}};function Ur(e,t,n){const r=Nn(e),i=r[t]();return r!==e&&!We(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const ea=Array.prototype;function ot(e,t,n,r,i,s){const l=Nn(e),o=l!==e&&!We(e),a=l[t];if(a!==ea[t]){const h=a.apply(e,s);return o?Se(h):h}let c=n;l!==e&&(o?c=function(h,d){return n.call(this,Se(h),d,e)}:n.length>2&&(c=function(h,d){return n.call(this,h,d,e)}));const u=a.call(l,c,r);return o&&i?i(u):u}function ms(e,t,n,r){const i=Nn(e);let s=n;return i!==e&&(We(e)?n.length>3&&(s=function(l,o,a){return n.call(this,l,o,a,e)}):s=function(l,o,a){return n.call(this,l,Se(o),a,e)}),i[t](s,...r)}function Nr(e,t,n){const r=te(e);$e(r,"iterate",an);const i=r[t](...n);return(i===-1||i===!1)&&qr(n[0])?(n[0]=te(n[0]),r[t](...n)):i}function cn(e,t,n=[]){St(),Or();const r=te(e)[t].apply(e,n);return Pr(),Rt(),r}const ta=Rr("__proto__,__v_isRef,__isVue"),vs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(et));function na(e){et(e)||(e=String(e));const t=te(this);return $e(t,"has",e),t.hasOwnProperty(e)}class bs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?ha:xs:s?ks:ws).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=V(t);if(!i){let a;if(l&&(a=Xo[n]))return a;if(n==="hasOwnProperty")return na}const o=Reflect.get(t,n,xe(t)?t:r);return(et(n)?vs.has(n):ta(n))||(i||$e(t,"get",n),s)?o:xe(o)?l&&Tr(n)?o:o.value:me(o)?i?fn(o):un(o):o}}class ys extends bs{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=Tt(s);if(!We(r)&&!Tt(r)&&(s=te(s),r=te(r)),!V(t)&&xe(s)&&!xe(r))return a?!1:(s.value=r,!0)}const l=V(t)&&Tr(n)?Number(n)<t.length:ee(t,n),o=Reflect.set(t,n,r,xe(t)?t:i);return t===te(i)&&(l?vt(r,s)&&lt(t,"set",n,r):lt(t,"add",n,r)),o}deleteProperty(t,n){const r=ee(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&lt(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!et(n)||!vs.has(n))&&$e(t,"has",n),r}ownKeys(t){return $e(t,"iterate",V(t)?"length":At),Reflect.ownKeys(t)}}class ra extends bs{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ia=new ys,sa=new ra,la=new ys(!0),Br=e=>e,Bn=e=>Reflect.getPrototypeOf(e);function oa(e,t,n){return function(...r){const i=this.__v_raw,s=te(i),l=Ut(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=i[e](...r),u=n?Br:t?Kr:Se;return!t&&$e(s,"iterate",a?Hr:At),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:o?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function Vn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function aa(e,t){const n={get(i){const s=this.__v_raw,l=te(s),o=te(i);e||(vt(i,o)&&$e(l,"get",i),$e(l,"get",o));const{has:a}=Bn(l),c=t?Br:e?Kr:Se;if(a.call(l,i))return c(s.get(i));if(a.call(l,o))return c(s.get(o));s!==l&&s.get(i)},get size(){const i=this.__v_raw;return!e&&$e(te(i),"iterate",At),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=te(s),o=te(i);return e||(vt(i,o)&&$e(l,"has",i),$e(l,"has",o)),i===o?s.has(i):s.has(i)||s.has(o)},forEach(i,s){const l=this,o=l.__v_raw,a=te(o),c=t?Br:e?Kr:Se;return!e&&$e(a,"iterate",At),o.forEach((u,h)=>i.call(s,c(u),c(h),l))}};return Be(n,e?{add:Vn("add"),set:Vn("set"),delete:Vn("delete"),clear:Vn("clear")}:{add(i){!t&&!We(i)&&!Tt(i)&&(i=te(i));const s=te(this);return Bn(s).has.call(s,i)||(s.add(i),lt(s,"add",i,i)),this},set(i,s){!t&&!We(s)&&!Tt(s)&&(s=te(s));const l=te(this),{has:o,get:a}=Bn(l);let c=o.call(l,i);c||(i=te(i),c=o.call(l,i));const u=a.call(l,i);return l.set(i,s),c?vt(s,u)&&lt(l,"set",i,s):lt(l,"add",i,s),this},delete(i){const s=te(this),{has:l,get:o}=Bn(s);let a=l.call(s,i);a||(i=te(i),a=l.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return a&&lt(s,"delete",i,void 0),c},clear(){const i=te(this),s=i.size!==0,l=i.clear();return s&&lt(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=oa(i,e,t)}),n}function Vr(e,t){const n=aa(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ee(n,i)&&i in r?n:r,i,s)}const ca={get:Vr(!1,!1)},ua={get:Vr(!1,!0)},fa={get:Vr(!0,!1)},ws=new WeakMap,ks=new WeakMap,xs=new WeakMap,ha=new WeakMap;function da(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pa(e){return e.__v_skip||!Object.isExtensible(e)?0:da(Ho(e))}function un(e){return Tt(e)?e:Wr(e,!1,ia,ca,ws)}function ga(e){return Wr(e,!1,la,ua,ks)}function fn(e){return Wr(e,!0,sa,fa,xs)}function Wr(e,t,n,r,i){if(!me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=pa(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Vt(e){return Tt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function We(e){return!!(e&&e.__v_isShallow)}function qr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function ma(e){return!ee(e,"__v_skip")&&Object.isExtensible(e)&&ts(e,"__v_skip",!0),e}const Se=e=>me(e)?un(e):e,Kr=e=>me(e)?fn(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function W(e){return _s(e,!1)}function va(e){return _s(e,!0)}function _s(e,t){return xe(e)?e:new ba(e,t)}class ba{constructor(t,n){this.dep=new Fr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:Se(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||We(t)||Tt(t);t=r?t:te(t),vt(t,n)&&(this._rawValue=t,this._value=r?t:Se(t),this.dep.trigger())}}function q(e){return xe(e)?e.value:e}const ya={get:(e,t,n)=>t==="__v_raw"?e:q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return xe(i)&&!xe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Cs(e){return Vt(e)?e:new Proxy(e,ya)}class wa{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Fr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=on-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return cs(this,!0),!0}get value(){const t=this.dep.track();return hs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ka(e,t,n=!1){let r,i;return le(e)?r=e:(r=e.get,i=e.set),new wa(r,i,n)}const Wn={},qn=new WeakMap;let Et;function xa(e,t=!1,n=Et){if(n){let r=qn.get(n);r||qn.set(n,r=[]),r.push(e)}}function _a(e,t,n=ue){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=T=>i?T:We(T)||i===!1||i===0?at(T,1):at(T);let u,h,d,g,k=!1,v=!1;if(xe(e)?(h=()=>e.value,k=We(e)):Vt(e)?(h=()=>c(e),k=!0):V(e)?(v=!0,k=e.some(T=>Vt(T)||We(T)),h=()=>e.map(T=>{if(xe(T))return T.value;if(Vt(T))return c(T);if(le(T))return a?a(T,2):T()})):le(e)?t?h=a?()=>a(e,2):e:h=()=>{if(d){St();try{d()}finally{Rt()}}const T=Et;Et=u;try{return a?a(e,3,[g]):e(g)}finally{Et=T}}:h=_t,t&&i){const T=h,j=i===!0?1/0:i;h=()=>at(T(),j)}const $=ls(),b=()=>{u.stop(),$&&$.active&&Ji($.effects,u)};if(s&&t){const T=t;t=(...j)=>{T(...j),b()}}let C=v?new Array(e.length).fill(Wn):Wn;const U=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const j=u.run();if(i||k||(v?j.some((K,z)=>vt(K,C[z])):vt(j,C))){d&&d();const K=Et;Et=u;try{const z=[j,C===Wn?void 0:v&&C[0]===Wn?[]:C,g];a?a(t,3,z):t(...z),C=j}finally{Et=K}}}else u.run()};return o&&o(U),u=new os(h),u.scheduler=l?()=>l(U,!1):U,g=T=>xa(T,!1,u),d=u.onStop=()=>{const T=qn.get(u);if(T){if(a)a(T,4);else for(const j of T)j();qn.delete(u)}},t?r?U(!0):C=u.run():l?l(U.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function at(e,t=1/0,n){if(t<=0||!me(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,xe(e))at(e.value,t,n);else if(V(e))for(let r=0;r<e.length;r++)at(e[r],t,n);else if(Nt(e)||Ut(e))e.forEach(r=>{at(r,t,n)});else if(es(e)){for(const r in e)at(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&at(e[r],t,n)}return e}/**
19
+ * @vue/runtime-core v3.5.13
20
20
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
21
21
  * @license MIT
22
- **/function hn(e,t,n,r){try{return r?e(...r):e()}catch(i){Xn(i,t,n)}}function ct(e,t,n,r){if(ee(e)){const i=hn(e,t,n,r);return i&&as(i)&&i.catch(s=>{Xn(s,t,n)}),i}if(N(e)){const i=[];for(let s=0;s<e.length;s++)i.push(ct(e[s],t,n,r));return i}}function Xn(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ue;if(t){let o=t.parent;const a=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const c=o.ec;if(c){for(let h=0;h<c.length;h++)if(c[h](e,a,u)===!1)return}o=o.parent}if(s){St(),hn(s,null,10,[e,a,u]),Et();return}}Na(e,n,i,r,l)}function Na(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}let dn=!1,ei=!1;const Re=[];let nt=0;const Wt=[];let vt=null,qt=0;const Fs=Promise.resolve();let ti=null;function Kt(e){const t=ti||Fs;return e?t.then(this?e.bind(this):e):t}function Va(e){let t=dn?nt+1:0,n=Re.length;for(;t<n;){const r=t+n>>>1,i=Re[r],s=pn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function ni(e){if(!(e.flags&1)){const t=pn(e),n=Re[Re.length-1];!n||!(e.flags&2)&&t>=pn(n)?Re.push(e):Re.splice(Va(t),0,e),e.flags|=1,Ds()}}function Ds(){!dn&&!ei&&(ei=!0,ti=Fs.then(Ns))}function Ba(e){N(e)?Wt.push(...e):vt&&e.id===-1?vt.splice(qt+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Ds()}function Us(e,t,n=dn?nt+1:0){for(;n<Re.length;n++){const r=Re[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Re.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&=-2}}}function Hs(e){if(Wt.length){const t=[...new Set(Wt)].sort((n,r)=>pn(n)-pn(r));if(Wt.length=0,vt){vt.push(...t);return}for(vt=t,qt=0;qt<vt.length;qt++){const n=vt[qt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}vt=null,qt=0}}const pn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ns(e){ei=!1,dn=!0;try{for(nt=0;nt<Re.length;nt++){const t=Re[nt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),hn(t,t.i,t.i?15:14),t.flags&=-2)}}finally{for(;nt<Re.length;nt++){const t=Re[nt];t&&(t.flags&=-2)}nt=0,Re.length=0,Hs(),dn=!1,ti=null,(Re.length||Wt.length)&&Ns()}}let ze=null,Vs=null;function er(e){const t=ze;return ze=e,Vs=e&&e.type.__scopeId||null,t}function Wa(e,t=ze,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&hl(-1);const s=er(t);let l;try{l=e(...i)}finally{er(s),r._d&&hl(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function tr(e,t){if(ze===null)return e;const n=cr(ze),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=ue]=t[i];s&&(ee(s)&&(s={mounted:s,updated:s}),s.deep&&at(l),r.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function It(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let l=0;l<i.length;l++){const o=i[l];s&&(o.oldValue=s[l].value);let a=o.dir[r];a&&(St(),ct(a,n,8,[e.el,o,e,t]),Et())}}const qa=Symbol("_vte"),Ka=e=>e.__isTeleport;function ri(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ri(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function gn(e,t){return ee(e)?Te({name:e.name},t,{setup:e}):e}function Ga(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ii(e,t,n,r,i=!1){if(N(e)){e.forEach((w,x)=>ii(w,t&&(N(t)?t[x]:t),n,r,i));return}if(mn(r)&&!i)return;const s=r.shapeFlag&4?cr(r.component):r.el,l=i?null:s,{i:o,r:a}=e,u=t&&t.r,c=o.refs===ue?o.refs={}:o.refs,h=o.setupState,p=te(h),m=h===ue?()=>!1:w=>ie(p,w);if(u!=null&&u!==a&&(ye(u)?(c[u]=null,m(u)&&(h[u]=null)):xe(u)&&(u.value=null)),ee(a))hn(a,o,12,[l,c]);else{const w=ye(a),x=xe(a);if(w||x){const C=()=>{if(e.f){const v=w?m(a)?h[a]:c[a]:a.value;i?N(v)&&ls(v,s):N(v)?v.includes(s)||v.push(s):w?(c[a]=[s],m(a)&&(h[a]=c[a])):(a.value=[s],e.k&&(c[e.k]=a.value))}else w?(c[a]=l,m(a)&&(h[a]=l)):x&&(a.value=l,e.k&&(c[e.k]=l))};l?(C.id=-1,Fe(C,n)):C()}}}const mn=e=>!!e.type.__asyncLoader,Za=e=>e.type.__isKeepAlive;function Qa(e,t,n=Le,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{St();const o=vi(n),a=ct(t,n,e,l);return o(),Et(),a});return r?i.unshift(s):i.push(s),s}}const si=e=>(t,n=Le)=>{(!ar||e==="sp")&&Qa(e,(...r)=>t(...r),n)},vn=si("m"),Ja=si("bum"),li=si("um"),Ya="components";function Xa(e,t){return tc(Ya,e,!0,t)||e}const ec=Symbol.for("v-ndc");function tc(e,t,n=!0,r=!1){const i=ze||Le;if(i){const s=i.type;{const o=Vc(s,!1);if(o&&(o===t||o===Ge(t)||o===Hn(Ge(t))))return s}const l=Bs(i[e]||s[e],t)||Bs(i.appContext[e],t);return!l&&r?s:l}}function Bs(e,t){return e&&(e[t]||e[Ge(t)]||e[Hn(Ge(t))])}function We(e,t,n,r){let i;const s=n,l=N(e);if(l||ye(e)){const o=l&&Bt(e);o&&(e=Bn(e)),i=new Array(e.length);for(let a=0,u=e.length;a<u;a++)i[a]=t(o?Se(e[a]):e[a],a,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,s)}else if(ge(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,u=o.length;a<u;a++){const c=o[a];i[a]=t(e[c],c,a,s)}}else i=[];return i}const oi=e=>e?ml(e)?cr(e):oi(e.parent):null,bn=Te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>oi(e.parent),$root:e=>oi(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{ni(e.update)}),$nextTick:e=>e.n||(e.n=Kt.bind(e.proxy)),$watch:e=>_t}),ai=(e,t)=>e!==ue&&!e.__isScriptSetup&&ie(e,t),nc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:o,appContext:a}=e;let u;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ai(r,t))return l[t]=1,r[t];if(i!==ue&&ie(i,t))return l[t]=2,i[t];if((u=e.propsOptions[0])&&ie(u,t))return l[t]=3,s[t];if(n!==ue&&ie(n,t))return l[t]=4,n[t];l[t]=0}}const c=bn[t];let h,p;if(c)return t==="$attrs"&&Ce(e.attrs,"get",""),c(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ue&&ie(n,t))return l[t]=4,n[t];if(p=a.config.globalProperties,ie(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return ai(i,t)?(i[t]=n,!0):r!==ue&&ie(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:i,propsOptions:s}},l){let o;return!!n[l]||e!==ue&&ie(e,l)||ai(t,l)||(o=s[0])&&ie(o,l)||ie(r,l)||ie(bn,l)||ie(i.config.globalProperties,l)},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 Ws(e){return N(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function rc(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:l}}=e.appContext,o=s.get(t);let a;return o?a=o:!i.length&&!n&&!r?a=t:(a={},i.length&&i.forEach(u=>nr(a,u,l,!0)),nr(a,t,l)),ge(t)&&s.set(t,a),a}function nr(e,t,n,r=!1){const{mixins:i,extends:s}=t;s&&nr(e,s,n,!0),i&&i.forEach(l=>nr(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const o=ic[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const ic={data:qs,props:Gs,emits:Gs,methods:yn,computed:yn,beforeCreate:Ie,created:Ie,beforeMount:Ie,mounted:Ie,beforeUpdate:Ie,updated:Ie,beforeDestroy:Ie,beforeUnmount:Ie,destroyed:Ie,unmounted:Ie,activated:Ie,deactivated:Ie,errorCaptured:Ie,serverPrefetch:Ie,components:yn,directives:yn,watch:lc,provide:qs,inject:sc};function qs(e,t){return t?e?function(){return Te(ee(e)?e.call(this,this):e,ee(t)?t.call(this,this):t)}:t:e}function sc(e,t){return yn(Ks(e),Ks(t))}function Ks(e){if(N(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ie(e,t){return e?[...new Set([].concat(e,t))]:t}function yn(e,t){return e?Te(Object.create(null),e,t):t}function Gs(e,t){return e?N(e)&&N(t)?[...new Set([...e,...t])]:Te(Object.create(null),Ws(e),Ws(t??{})):t}function lc(e,t){if(!e)return t;if(!t)return e;const n=Te(Object.create(null),e);for(const r in t)n[r]=Ie(e[r],t[r]);return n}function Zs(){return{app:null,config:{isNativeTag:ea,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 oc=0;function ac(e,t){return function(r,i=null){ee(r)||(r=Te({},r)),i!=null&&!ge(i)&&(i=null);const s=Zs(),l=new WeakSet,o=[];let a=!1;const u=s.app={_uid:oc++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Wc,get config(){return s.config},set config(c){},use(c,...h){return l.has(c)||(c&&ee(c.install)?(l.add(c),c.install(u,...h)):ee(c)&&(l.add(c),c(u,...h))),u},mixin(c){return u},component(c,h){return h?(s.components[c]=h,u):s.components[c]},directive(c,h){return h?(s.directives[c]=h,u):s.directives[c]},mount(c,h,p){if(!a){const m=u._ceVNode||oe(r,i);return m.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),h&&t?t(m,c):e(m,c,p),a=!0,u._container=c,c.__vue_app__=u,cr(m.component)}},onUnmount(c){o.push(c)},unmount(){a&&(ct(o,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(c,h){return s.provides[c]=h,u},runWithContext(c){const h=Gt;Gt=u;try{return c()}finally{Gt=h}}};return u}}let Gt=null;function cc(e,t){if(Le){let n=Le.provides;const r=Le.parent&&Le.parent.provides;r===n&&(n=Le.provides=Object.create(r)),n[e]=t}}function rr(e,t,n=!1){const r=Le||ze;if(r||Gt){const i=Gt?Gt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ee(t)?t.call(r&&r.proxy):t}}const Qs={},Js=()=>Object.create(Qs),Ys=e=>Object.getPrototypeOf(e)===Qs;function uc(e,t,n,r=!1){const i={},s=Js();e.propsDefaults=Object.create(null),Xs(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:Ma(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function fc(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=te(i),[a]=e.propsOptions;let u=!1;if((r||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let h=0;h<c.length;h++){let p=c[h];if(ir(e.emitsOptions,p))continue;const m=t[p];if(a)if(ie(s,p))m!==s[p]&&(s[p]=m,u=!0);else{const w=Ge(p);i[w]=ci(a,o,w,m,e,!1)}else m!==s[p]&&(s[p]=m,u=!0)}}}else{Xs(e,t,i,s)&&(u=!0);let c;for(const h in o)(!t||!ie(t,h)&&((c=$t(h))===h||!ie(t,c)))&&(a?n&&(n[h]!==void 0||n[c]!==void 0)&&(i[h]=ci(a,o,h,void 0,e,!0)):delete i[h]);if(s!==o)for(const h in s)(!t||!ie(t,h))&&(delete s[h],u=!0)}u&&lt(e.attrs,"set","")}function Xs(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(rn(a))continue;const u=t[a];let c;i&&ie(i,c=Ge(a))?!s||!s.includes(c)?n[c]=u:(o||(o={}))[c]=u:ir(e.emitsOptions,a)||(!(a in r)||u!==r[a])&&(r[a]=u,l=!0)}if(s){const a=te(n),u=o||ue;for(let c=0;c<s.length;c++){const h=s[c];n[h]=ci(i,a,h,u[h],e,!ie(u,h))}}return l}function ci(e,t,n,r,i,s){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&&ee(a)){const{propsDefaults:u}=i;if(n in u)r=u[n];else{const c=vi(i);r=u[n]=a.call(null,t),c()}}else r=a;i.ce&&i.ce._setProp(n,r)}l[0]&&(s&&!o?r=!1:l[1]&&(r===""||r===$t(n))&&(r=!0))}return r}function hc(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s&&!!1)return ge(e)&&r.set(e,Ut),Ut;if(N(s))for(let c=0;c<s.length;c++){const h=Ge(s[c]);el(h)&&(l[h]=ue)}else if(s)for(const c in s){const h=Ge(c);if(el(h)){const p=s[c],m=l[h]=N(p)||ee(p)?{type:p}:Te({},p),w=m.type;let x=!1,C=!0;if(N(w))for(let v=0;v<w.length;++v){const $=w[v],H=ee($)&&$.name;if(H==="Boolean"){x=!0;break}else H==="String"&&(C=!1)}else x=ee(w)&&w.name==="Boolean";m[0]=x,m[1]=C,(x||ie(m,"default"))&&o.push(h)}}const u=[l,o];return ge(e)&&r.set(e,u),u}function el(e){return e[0]!=="$"&&!rn(e)}const tl=e=>e[0]==="_"||e==="$stable",ui=e=>N(e)?e.map(rt):[rt(e)],dc=(e,t,n)=>{if(t._n)return t;const r=Wa((...i)=>ui(t(...i)),n);return r._c=!1,r},nl=(e,t,n)=>{const r=e._ctx;for(const i in e){if(tl(i))continue;const s=e[i];if(ee(s))t[i]=dc(i,s,r);else if(s!=null){const l=ui(s);t[i]=()=>l}}},rl=(e,t)=>{const n=ui(t);e.slots.default=()=>n},il=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},pc=(e,t,n)=>{const r=e.slots=Js();if(e.vnode.shapeFlag&32){const i=t._;i?(il(r,t,n),n&&fs(r,"_",i,!0)):nl(t,r)}else t&&rl(e,t)},gc=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=ue;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:il(i,t,n):(s=!t.$stable,nl(t,i)),l=t}else t&&(rl(e,t),l={default:1});if(s)for(const o in i)!tl(o)&&l[o]==null&&delete i[o]};function mc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(zr().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Fe=Rc;function vc(e){return bc(e)}function bc(e,t){mc();const n=zr();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:u,setElementText:c,parentNode:h,nextSibling:p,setScopeId:m=_t,insertStaticContent:w}=e,x=(f,d,g,y=null,b=null,k=null,R=void 0,E=null,S=!!d.dynamicChildren)=>{if(f===d)return;f&&!xn(f,d)&&(y=Ft(f),He(f,b,k,!0),f=null),d.patchFlag===-2&&(S=!1,d.dynamicChildren=null);const{type:_,ref:M,shapeFlag:I}=d;switch(_){case sr:C(f,d,g,y);break;case Mt:v(f,d,g,y);break;case di:f==null&&$(d,g,y,R);break;case he:be(f,d,g,y,b,k,R,E,S);break;default:I&1?z(f,d,g,y,b,k,R,E,S):I&6?P(f,d,g,y,b,k,R,E,S):(I&64||I&128)&&_.process(f,d,g,y,b,k,R,E,S,T)}M!=null&&b&&ii(M,f&&f.ref,k,d||f,!d)},C=(f,d,g,y)=>{if(f==null)r(d.el=o(d.children),g,y);else{const b=d.el=f.el;d.children!==f.children&&u(b,d.children)}},v=(f,d,g,y)=>{f==null?r(d.el=a(d.children||""),g,y):d.el=f.el},$=(f,d,g,y)=>{[f.el,f.anchor]=w(f.children,d,g,y,f.el,f.anchor)},H=({el:f,anchor:d},g,y)=>{let b;for(;f&&f!==d;)b=p(f),r(f,g,y),f=b;r(d,g,y)},A=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=p(f),i(f),f=g;i(d)},z=(f,d,g,y,b,k,R,E,S)=>{d.type==="svg"?R="svg":d.type==="math"&&(R="mathml"),f==null?W(d,g,y,b,k,R,E,S):Pe(f,d,b,k,R,E,S)},W=(f,d,g,y,b,k,R,E)=>{let S,_;const{props:M,shapeFlag:I,transition:F,dirs:B}=f;if(S=f.el=l(f.type,k,M&&M.is,M),I&8?c(S,f.children):I&16&&X(f.children,S,null,y,b,fi(f,k),R,E),B&&It(f,null,y,"created"),U(S,f,f.scopeId,R,y),M){for(const de in M)de!=="value"&&!rn(de)&&s(S,de,null,M[de],k,y);"value"in M&&s(S,"value",null,M.value,k),(_=M.onVnodeBeforeMount)&&it(_,y,f)}B&&It(f,null,y,"beforeMount");const Z=yc(b,F);Z&&F.beforeEnter(S),r(S,d,g),((_=M&&M.onVnodeMounted)||Z||B)&&Fe(()=>{_&&it(_,y,f),Z&&F.enter(S),B&&It(f,null,y,"mounted")},b)},U=(f,d,g,y,b)=>{if(g&&m(f,g),y)for(let k=0;k<y.length;k++)m(f,y[k]);if(b){let k=b.subTree;if(d===k||fl(k.type)&&(k.ssContent===d||k.ssFallback===d)){const R=b.vnode;U(f,R,R.scopeId,R.slotScopeIds,b.parent)}}},X=(f,d,g,y,b,k,R,E,S=0)=>{for(let _=S;_<f.length;_++){const M=f[_]=E?bt(f[_]):rt(f[_]);x(null,M,d,g,y,b,k,R,E)}},Pe=(f,d,g,y,b,k,R)=>{const E=d.el=f.el;let{patchFlag:S,dynamicChildren:_,dirs:M}=d;S|=f.patchFlag&16;const I=f.props||ue,F=d.props||ue;let B;if(g&&Lt(g,!1),(B=F.onVnodeBeforeUpdate)&&it(B,g,d,f),M&&It(d,f,g,"beforeUpdate"),g&&Lt(g,!0),(I.innerHTML&&F.innerHTML==null||I.textContent&&F.textContent==null)&&c(E,""),_?G(f.dynamicChildren,_,E,g,y,fi(d,b),k):R||ke(f,d,E,null,g,y,fi(d,b),k,!1),S>0){if(S&16)se(E,I,F,g,b);else if(S&2&&I.class!==F.class&&s(E,"class",null,F.class,b),S&4&&s(E,"style",I.style,F.style,b),S&8){const Z=d.dynamicProps;for(let de=0;de<Z.length;de++){const le=Z[de],Ne=I[le],Ee=F[le];(Ee!==Ne||le==="value")&&s(E,le,Ne,Ee,b,g)}}S&1&&f.children!==d.children&&c(E,d.children)}else!R&&_==null&&se(E,I,F,g,b);((B=F.onVnodeUpdated)||M)&&Fe(()=>{B&&it(B,g,d,f),M&&It(d,f,g,"updated")},y)},G=(f,d,g,y,b,k,R)=>{for(let E=0;E<d.length;E++){const S=f[E],_=d[E],M=S.el&&(S.type===he||!xn(S,_)||S.shapeFlag&70)?h(S.el):g;x(S,_,M,null,y,b,k,R,!0)}},se=(f,d,g,y,b)=>{if(d!==g){if(d!==ue)for(const k in d)!rn(k)&&!(k in g)&&s(f,k,d[k],null,b,y);for(const k in g){if(rn(k))continue;const R=g[k],E=d[k];R!==E&&k!=="value"&&s(f,k,E,R,b,y)}"value"in g&&s(f,"value",d.value,g.value,b)}},be=(f,d,g,y,b,k,R,E,S)=>{const _=d.el=f?f.el:o(""),M=d.anchor=f?f.anchor:o("");let{patchFlag:I,dynamicChildren:F,slotScopeIds:B}=d;B&&(E=E?E.concat(B):B),f==null?(r(_,g,y),r(M,g,y),X(d.children||[],g,M,b,k,R,E,S)):I>0&&I&64&&F&&f.dynamicChildren?(G(f.dynamicChildren,F,g,b,k,R,E),(d.key!=null||b&&d===b.subTree)&&sl(f,d,!0)):ke(f,d,g,M,b,k,R,E,S)},P=(f,d,g,y,b,k,R,E,S)=>{d.slotScopeIds=E,f==null?d.shapeFlag&512?b.ctx.activate(d,g,y,R,S):J(d,g,y,b,k,R,S):ce(f,d,S)},J=(f,d,g,y,b,k,R)=>{const E=f.component=Pc(f,y,b);if(Za(f)&&(E.ctx.renderer=T),Dc(E,!1,R),E.asyncDep){if(b&&b.registerDep(E,$e,R),!f.el){const S=E.subTree=oe(Mt);v(null,S,d,g)}}else $e(E,f,d,g,b,k,R)},ce=(f,d,g)=>{const y=d.component=f.component;if(Tc(f,d,g))if(y.asyncDep&&!y.asyncResolved){we(y,d,g);return}else y.next=d,y.update();else d.el=f.el,y.vnode=d},$e=(f,d,g,y,b,k,R)=>{const E=()=>{if(f.isMounted){let{next:I,bu:F,u:B,parent:Z,vnode:de}=f;{const Ve=ll(f);if(Ve){I&&(I.el=de.el,we(f,I,R)),Ve.asyncDep.then(()=>{f.isUnmounted||E()});return}}let le=I,Ne;Lt(f,!1),I?(I.el=de.el,we(f,I,R)):I=de,F&&Nn(F),(Ne=I.props&&I.props.onVnodeBeforeUpdate)&&it(Ne,Z,I,de),Lt(f,!0);const Ee=hi(f),Xe=f.subTree;f.subTree=Ee,x(Xe,Ee,h(Xe.el),Ft(Xe),f,b,k),I.el=Ee.el,le===null&&Ac(f,Ee.el),B&&Fe(B,b),(Ne=I.props&&I.props.onVnodeUpdated)&&Fe(()=>it(Ne,Z,I,de),b)}else{let I;const{el:F,props:B}=d,{bm:Z,m:de,parent:le,root:Ne,type:Ee}=f,Xe=mn(d);if(Lt(f,!1),Z&&Nn(Z),!Xe&&(I=B&&B.onVnodeBeforeMount)&&it(I,le,d),Lt(f,!0),F&&pe){const Ve=()=>{f.subTree=hi(f),pe(F,f.subTree,f,b,null)};Xe&&Ee.__asyncHydrate?Ee.__asyncHydrate(F,f,Ve):Ve()}else{Ne.ce&&Ne.ce._injectChildStyle(Ee);const Ve=f.subTree=hi(f);x(null,Ve,g,y,f,b,k),d.el=Ve.el}if(de&&Fe(de,b),!Xe&&(I=B&&B.onVnodeMounted)){const Ve=d;Fe(()=>it(I,le,Ve),b)}(d.shapeFlag&256||le&&mn(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&Fe(f.a,b),f.isMounted=!0,d=g=y=null}};f.scope.on();const S=f.effect=new vs(E);f.scope.off();const _=f.update=S.run.bind(S),M=f.job=S.runIfDirty.bind(S);M.i=f,M.id=f.uid,S.scheduler=()=>ni(M),Lt(f,!0),_()},we=(f,d,g)=>{d.component=f;const y=f.vnode.props;f.vnode=d,f.next=null,fc(f,d.props,y,g),gc(f,d.children,g),St(),Us(f),Et()},ke=(f,d,g,y,b,k,R,E,S=!1)=>{const _=f&&f.children,M=f?f.shapeFlag:0,I=d.children,{patchFlag:F,shapeFlag:B}=d;if(F>0){if(F&128){kt(_,I,g,y,b,k,R,E,S);return}else if(F&256){Me(_,I,g,y,b,k,R,E,S);return}}B&8?(M&16&&Pt(_,b,k),I!==_&&c(g,I)):M&16?B&16?kt(_,I,g,y,b,k,R,E,S):Pt(_,b,k,!0):(M&8&&c(g,""),B&16&&X(I,g,y,b,k,R,E,S))},Me=(f,d,g,y,b,k,R,E,S)=>{f=f||Ut,d=d||Ut;const _=f.length,M=d.length,I=Math.min(_,M);let F;for(F=0;F<I;F++){const B=d[F]=S?bt(d[F]):rt(d[F]);x(f[F],B,g,null,b,k,R,E,S)}_>M?Pt(f,b,k,!0,!1,I):X(d,g,y,b,k,R,E,S,I)},kt=(f,d,g,y,b,k,R,E,S)=>{let _=0;const M=d.length;let I=f.length-1,F=M-1;for(;_<=I&&_<=F;){const B=f[_],Z=d[_]=S?bt(d[_]):rt(d[_]);if(xn(B,Z))x(B,Z,g,null,b,k,R,E,S);else break;_++}for(;_<=I&&_<=F;){const B=f[I],Z=d[F]=S?bt(d[F]):rt(d[F]);if(xn(B,Z))x(B,Z,g,null,b,k,R,E,S);else break;I--,F--}if(_>I){if(_<=F){const B=F+1,Z=B<M?d[B].el:y;for(;_<=F;)x(null,d[_]=S?bt(d[_]):rt(d[_]),g,Z,b,k,R,E,S),_++}}else if(_>F)for(;_<=I;)He(f[_],b,k,!0),_++;else{const B=_,Z=_,de=new Map;for(_=Z;_<=F;_++){const Be=d[_]=S?bt(d[_]):rt(d[_]);Be.key!=null&&de.set(Be.key,_)}let le,Ne=0;const Ee=F-Z+1;let Xe=!1,Ve=0;const jn=new Array(Ee);for(_=0;_<Ee;_++)jn[_]=0;for(_=B;_<=I;_++){const Be=f[_];if(Ne>=Ee){He(Be,b,k,!0);continue}let st;if(Be.key!=null)st=de.get(Be.key);else for(le=Z;le<=F;le++)if(jn[le-Z]===0&&xn(Be,d[le])){st=le;break}st===void 0?He(Be,b,k,!0):(jn[st-Z]=_+1,st>=Ve?Ve=st:Xe=!0,x(Be,d[st],g,null,b,k,R,E,S),Ne++)}const Ao=Xe?wc(jn):Ut;for(le=Ao.length-1,_=Ee-1;_>=0;_--){const Be=Z+_,st=d[Be],Ro=Be+1<M?d[Be+1].el:y;jn[_]===0?x(null,st,g,Ro,b,k,R,E,S):Xe&&(le<0||_!==Ao[le]?zt(st,g,Ro,2):le--)}}},zt=(f,d,g,y,b=null)=>{const{el:k,type:R,transition:E,children:S,shapeFlag:_}=f;if(_&6){zt(f.component.subTree,d,g,y);return}if(_&128){f.suspense.move(d,g,y);return}if(_&64){R.move(f,d,g,T);return}if(R===he){r(k,d,g);for(let I=0;I<S.length;I++)zt(S[I],d,g,y);r(f.anchor,d,g);return}if(R===di){H(f,d,g);return}if(y!==2&&_&1&&E)if(y===0)E.beforeEnter(k),r(k,d,g),Fe(()=>E.enter(k),b);else{const{leave:I,delayLeave:F,afterLeave:B}=E,Z=()=>r(k,d,g),de=()=>{I(k,()=>{Z(),B&&B()})};F?F(k,Z,de):de()}else r(k,d,g)},He=(f,d,g,y=!1,b=!1)=>{const{type:k,props:R,ref:E,children:S,dynamicChildren:_,shapeFlag:M,patchFlag:I,dirs:F,cacheIndex:B}=f;if(I===-2&&(b=!1),E!=null&&ii(E,null,g,f,!0),B!=null&&(d.renderCache[B]=void 0),M&256){d.ctx.deactivate(f);return}const Z=M&1&&F,de=!mn(f);let le;if(de&&(le=R&&R.onVnodeBeforeUnmount)&&it(le,d,f),M&6)Sr(f.component,g,y);else{if(M&128){f.suspense.unmount(g,y);return}Z&&It(f,null,d,"beforeUnmount"),M&64?f.type.remove(f,d,g,T,y):_&&!_.hasOnce&&(k!==he||I>0&&I&64)?Pt(_,d,g,!1,!0):(k===he&&I&384||!b&&M&16)&&Pt(S,d,g),y&&Cr(f)}(de&&(le=R&&R.onVnodeUnmounted)||Z)&&Fe(()=>{le&&it(le,d,f),Z&&It(f,null,d,"unmounted")},g)},Cr=f=>{const{type:d,el:g,anchor:y,transition:b}=f;if(d===he){Oi(g,y);return}if(d===di){A(f);return}const k=()=>{i(g),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(f.shapeFlag&1&&b&&!b.persisted){const{leave:R,delayLeave:E}=b,S=()=>R(g,k);E?E(f.el,k,S):S()}else k()},Oi=(f,d)=>{let g;for(;f!==d;)g=p(f),i(f),f=g;i(d)},Sr=(f,d,g)=>{const{bum:y,scope:b,job:k,subTree:R,um:E,m:S,a:_}=f;ol(S),ol(_),y&&Nn(y),b.stop(),k&&(k.flags|=8,He(R,f,d,g)),E&&Fe(E,d),Fe(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},Pt=(f,d,g,y=!1,b=!1,k=0)=>{for(let R=k;R<f.length;R++)He(f[R],d,g,y,b)},Ft=f=>{if(f.shapeFlag&6)return Ft(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=p(f.anchor||f.el),g=d&&d[qa];return g?p(g):d};let en=!1;const O=(f,d,g)=>{f==null?d._vnode&&He(d._vnode,null,null,!0):x(d._vnode||null,f,d,null,null,null,g),d._vnode=f,en||(en=!0,Us(),Hs(),en=!1)},T={p:x,um:He,m:zt,r:Cr,mt:J,mc:X,pc:ke,pbc:G,n:Ft,o:e};let V,pe;return{render:O,hydrate:V,createApp:ac(O,V)}}function fi({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Lt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function yc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function sl(e,t,n=!1){const r=e.children,i=t.children;if(N(r)&&N(i))for(let s=0;s<r.length;s++){const l=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=bt(i[s]),o.el=l.el),!n&&o.patchFlag!==-2&&sl(l,o)),o.type===sr&&(o.el=l.el)}}function wc(e){const t=e.slice(),n=[0];let r,i,s,l,o;const a=e.length;for(r=0;r<a;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<u?s=o+1:l=o;u<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function ll(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ll(t)}function ol(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const kc=Symbol.for("v-scx"),xc=()=>rr(kc);function al(e,t){return cl(e,null,t)}function qe(e,t,n){return cl(e,t,n)}function cl(e,t,n=ue){const{immediate:r,deep:i,flush:s,once:l}=n,o=Te({},n);let a;if(ar)if(s==="sync"){const p=xc();a=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||r)o.once=!0;else return{stop:_t,resume:_t,pause:_t};const u=Le;o.call=(p,m,w)=>ct(p,u,m,w);let c=!1;s==="post"?o.scheduler=p=>{Fe(p,u&&u.suspense)}:s!=="sync"&&(c=!0,o.scheduler=(p,m)=>{m?p():ni(p)}),o.augmentJob=p=>{t&&(p.flags|=4),c&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=Ha(e,t,o);return a&&a.push(h),h}const _c=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ge(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function $c(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let i=n;const s=t.startsWith("update:"),l=s&&_c(r,t.slice(7));l&&(l.trim&&(i=n.map(c=>ye(c)?c.trim():c)),l.number&&(i=n.map(Vn)));let o,a=r[o=jr(t)]||r[o=jr(Ge(t))];!a&&s&&(a=r[o=jr($t(t))]),a&&ct(a,e,6,i);const u=r[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ct(u,e,6,i)}}function Cc(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let l={};return!s&&!!1?(ge(e)&&r.set(e,null),null):(N(s)?s.forEach(a=>l[a]=null):Te(l,s),ge(e)&&r.set(e,l),l)}function ir(e,t){return!e||!Dn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,$t(t))||ie(e,t))}function hi(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:u,renderCache:c,props:h,data:p,setupState:m,ctx:w,inheritAttrs:x}=e,C=er(e);let v,$;try{if(n.shapeFlag&4){const A=i||r,z=A;v=rt(u.call(z,A,c,h,m,p,w)),$=o}else{const A=t;v=rt(A.length>1?A(h,{attrs:o,slots:l,emit:a}):A(h,null)),$=t.props?o:Sc(o)}}catch(A){wn.length=0,Xn(A,e,1),v=oe(Mt)}let H=v;if($&&x!==!1){const A=Object.keys($),{shapeFlag:z}=H;A.length&&z&7&&(s&&A.some(Mr)&&($=Ec($,s)),H=Zt(H,$,!1,!0))}return n.dirs&&(H=Zt(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&ri(H,n.transition),v=H,er(C),v}const Sc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Dn(n))&&((t||(t={}))[n]=e[n]);return t},Ec=(e,t)=>{const n={};for(const r in e)(!Mr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Tc(e,t,n){const{props:r,children:i,component:s}=e,{props:l,children:o,patchFlag:a}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?ul(r,l,u):!!l;if(a&8){const c=t.dynamicProps;for(let h=0;h<c.length;h++){const p=c[h];if(l[p]!==r[p]&&!ir(u,p))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?ul(r,l,u):!0:!!l;return!1}function ul(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!ir(n,s))return!0}return!1}function Ac({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 fl=e=>e.__isSuspense;function Rc(e,t){t&&t.pendingBranch?N(e)?t.effects.push(...e):t.effects.push(e):Ba(e)}const he=Symbol.for("v-fgt"),sr=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),di=Symbol.for("v-stc"),wn=[];let De=null;function L(e=!1){wn.push(De=e?null:[])}function Ic(){wn.pop(),De=wn[wn.length-1]||null}let kn=1;function hl(e){kn+=e,e<0&&De&&(De.hasOnce=!0)}function dl(e){return e.dynamicChildren=kn>0?De||Ut:null,Ic(),kn>0&&De&&De.push(e),e}function j(e,t,n,r,i,s){return dl(D(e,t,n,r,i,s,!0))}function ut(e,t,n,r,i){return dl(oe(e,t,n,r,i,!0))}function pi(e){return e?e.__v_isVNode===!0:!1}function xn(e,t){return e.type===t.type&&e.key===t.key}const pl=({key:e})=>e??null,lr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||xe(e)||ee(e)?{i:ze,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,i=null,s=e===he?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&pl(t),ref:t&&lr(t),scopeId:Vs,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ze};return o?(gi(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),kn>0&&!l&&De&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&De.push(a),a}const oe=Lc;function Lc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===ec)&&(e=Mt),pi(e)){const o=Zt(e,t,!0);return n&&gi(o,n),kn>0&&!s&&De&&(o.shapeFlag&6?De[De.indexOf(e)]=o:De.push(o)),o.patchFlag=-2,o}if(Bc(e)&&(e=e.__vccOpts),t){t=Mc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=ve(o)),ge(a)&&(Yr(a)&&!N(a)&&(a=Te({},a)),t.style=sn(a))}const l=ye(e)?1:fl(e)?128:Ka(e)?64:ge(e)?4:ee(e)?2:0;return D(e,t,n,r,i,l,s,!0)}function Mc(e){return e?Yr(e)||Ys(e)?Te({},e):e:null}function Zt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,u=t?Oc(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&pl(u),ref:t&&t.ref?n&&s?N(s)?s.concat(lr(t)):[s,lr(t)]:lr(t):s,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!==he?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&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&ri(c,a.clone(c)),c}function ft(e=" ",t=0){return oe(sr,null,e,t)}function Q(e="",t=!1){return t?(L(),ut(Mt,null,e)):oe(Mt,null,e)}function rt(e){return e==null||typeof e=="boolean"?oe(Mt):N(e)?oe(he,null,e.slice()):typeof e=="object"?bt(e):oe(sr,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function gi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(N(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),gi(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Ys(t)?t._ctx=ze:i===3&&ze&&(ze.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:ze},n=32):(t=String(t),r&64?(n=16,t=[ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function Oc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(i==="style")t.style=sn([t.style,r.style]);else if(Dn(i)){const s=t[i],l=r[i];l&&s!==l&&!(N(s)&&s.includes(l))&&(t[i]=s?[].concat(s,l):l)}else i!==""&&(t[i]=r[i])}return t}function it(e,t,n,r=null){ct(e,t,7,[n,r])}const jc=Zs();let zc=0;function Pc(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||jc,s={uid:zc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new fa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:hc(r,i),emitsOptions:Cc(r,i),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=$c.bind(null,s),e.ce&&e.ce(s),s}let Le=null;const Fc=()=>Le||ze;let or,mi;{const e=zr(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(l=>l(s)):i[0](s)}};or=t("__VUE_INSTANCE_SETTERS__",n=>Le=n),mi=t("__VUE_SSR_SETTERS__",n=>ar=n)}const vi=e=>{const t=Le;return or(e),e.scope.on(),()=>{e.scope.off(),or(t)}},gl=()=>{Le&&Le.scope.off(),or(null)};function ml(e){return e.vnode.shapeFlag&4}let ar=!1;function Dc(e,t=!1,n=!1){t&&mi(t);const{props:r,children:i}=e.vnode,s=ml(e);uc(e,r,s,t),pc(e,i,n);const l=s?Uc(e,t):void 0;return t&&mi(!1),l}function Uc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nc);const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Nc(e):null,s=vi(e);St();const l=hn(r,e,0,[e.props,i]);if(Et(),s(),as(l)){if(mn(e)||Ga(e),l.then(gl,gl),t)return l.then(o=>{vl(e,o,t)}).catch(o=>{Xn(o,e,0)});e.asyncDep=l}else vl(e,l,t)}else yl(e,t)}function vl(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ps(t)),yl(e,n)}let bl;function yl(e,t,n){const r=e.type;if(!e.render){if(!t&&bl&&!r.render){const i=r.template||rc(e).template;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,u=Te(Te({isCustomElement:s,delimiters:o},l),a);r.render=bl(i,u)}}e.render=r.render||_t}}const Hc={get(e,t){return Ce(e,"get",""),e[t]}};function Nc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Hc),slots:e.slots,emit:e.emit,expose:t}}function cr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ps(Oa(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bn)return bn[n](e)},has(t,n){return n in t||n in bn}})):e.proxy}function Vc(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function Bc(e){return ee(e)&&"__vccOpts"in e}const _e=(e,t)=>Da(e,t,ar);function ne(e,t,n){const r=arguments.length;return r===2?ge(t)&&!N(t)?pi(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&pi(n)&&(n=[n]),oe(e,t,n))}const Wc="3.5.3";/**
23
- * @vue/runtime-dom v3.5.3
22
+ **/function hn(e,t,n,r){try{return r?e(...r):e()}catch(i){Kn(i,t,n)}}function ct(e,t,n,r){if(le(e)){const i=hn(e,t,n,r);return i&&Qi(i)&&i.catch(s=>{Kn(s,t,n)}),i}if(V(e)){const i=[];for(let s=0;s<e.length;s++)i.push(ct(e[s],t,n,r));return i}}function Kn(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ue;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 h=0;h<u.length;h++)if(u[h](e,a,c)===!1)return}o=o.parent}if(s){St(),hn(s,null,10,[e,a,c]),Rt();return}}Ca(e,n,i,r,l)}function Ca(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Te=[];let tt=-1;const Wt=[];let bt=null,qt=0;const $s=Promise.resolve();let Gn=null;function Kt(e){const t=Gn||$s;return e?t.then(this?e.bind(this):e):t}function $a(e){let t=tt+1,n=Te.length;for(;t<n;){const r=t+n>>>1,i=Te[r],s=dn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Gr(e){if(!(e.flags&1)){const t=dn(e),n=Te[Te.length-1];!n||!(e.flags&2)&&t>=dn(n)?Te.push(e):Te.splice($a(t),0,e),e.flags|=1,Ss()}}function Ss(){Gn||(Gn=$s.then(Ts))}function Sa(e){V(e)?Wt.push(...e):bt&&e.id===-1?bt.splice(qt+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Ss()}function Rs(e,t,n=tt+1){for(;n<Te.length;n++){const r=Te[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Te.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function As(e){if(Wt.length){const t=[...new Set(Wt)].sort((n,r)=>dn(n)-dn(r));if(Wt.length=0,bt){bt.push(...t);return}for(bt=t,qt=0;qt<bt.length;qt++){const n=bt[qt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}bt=null,qt=0}}const dn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ts(e){try{for(tt=0;tt<Te.length;tt++){const t=Te[tt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),hn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;tt<Te.length;tt++){const t=Te[tt];t&&(t.flags&=-2)}tt=-1,Te.length=0,As(),Gn=null,(Te.length||Wt.length)&&Ts()}}let Pe=null,Es=null;function Zn(e){const t=Pe;return Pe=e,Es=e&&e.type.__scopeId||null,t}function Ra(e,t=Pe,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Zs(-1);const s=Zn(t);let l;try{l=e(...i)}finally{Zn(s),r._d&&Zs(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Jn(e,t){if(Pe===null)return e;const n=ir(Pe),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=ue]=t[i];s&&(le(s)&&(s={mounted:s,updated:s}),s.deep&&at(l),r.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Lt(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let l=0;l<i.length;l++){const o=i[l];s&&(o.oldValue=s[l].value);let a=o.dir[r];a&&(St(),ct(a,n,8,[e.el,o,e,t]),Rt())}}const Aa=Symbol("_vte"),Ta=e=>e.__isTeleport;function Zr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Zr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function pn(e,t){return le(e)?Be({name:e.name},t,{setup:e}):e}function Ea(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yn(e,t,n,r,i=!1){if(V(e)){e.forEach((k,v)=>Yn(k,t&&(V(t)?t[v]:t),n,r,i));return}if(gn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Yn(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?ir(r.component):r.el,l=i?null:s,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ue?o.refs={}:o.refs,h=o.setupState,d=te(h),g=h===ue?()=>!1:k=>ee(d,k);if(c!=null&&c!==a&&(ye(c)?(u[c]=null,g(c)&&(h[c]=null)):xe(c)&&(c.value=null)),le(a))hn(a,o,12,[l,u]);else{const k=ye(a),v=xe(a);if(k||v){const $=()=>{if(e.f){const b=k?g(a)?h[a]:u[a]:a.value;i?V(b)&&Ji(b,s):V(b)?b.includes(s)||b.push(s):k?(u[a]=[s],g(a)&&(h[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else k?(u[a]=l,g(a)&&(h[a]=l)):v&&(a.value=l,e.k&&(u[e.k]=l))};l?($.id=-1,ze($,n)):$()}}}nn().requestIdleCallback,nn().cancelIdleCallback;const gn=e=>!!e.type.__asyncLoader,La=e=>e.type.__isKeepAlive;function Ia(e,t,n=Ee,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{St();const o=oi(n),a=ct(t,n,e,l);return o(),Rt(),a});return r?i.unshift(s):i.push(s),s}}const Jr=e=>(t,n=Ee)=>{(!kn||e==="sp")&&Ia(e,(...r)=>t(...r),n)},mn=Jr("m"),Ma=Jr("bum"),Yr=Jr("um"),Oa="components";function Pa(e,t){return za(Oa,e,!0,t)||e}const ja=Symbol.for("v-ndc");function za(e,t,n=!0,r=!1){const i=Pe||Ee;if(i){const s=i.type;{const o=kc(s,!1);if(o&&(o===t||o===Ve(t)||o===Dn(Ve(t))))return s}const l=Ls(i[e]||s[e],t)||Ls(i.appContext[e],t);return!l&&r?s:l}}function Ls(e,t){return e&&(e[t]||e[Ve(t)]||e[Dn(Ve(t))])}function qe(e,t,n,r){let i;const s=n,l=V(e);if(l||ye(e)){const o=l&&Vt(e);let a=!1;o&&(a=!We(e),e=Nn(e)),i=new Array(e.length);for(let c=0,u=e.length;c<u;c++)i[c]=t(a?Se(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,s)}else if(me(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];i[a]=t(e[u],u,a,s)}}else i=[];return i}const Qr=e=>e?Xs(e)?ir(e):Qr(e.parent):null,vn=Be(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=>Qr(e.parent),$root:e=>Qr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Gr(e.update)}),$nextTick:e=>e.n||(e.n=Kt.bind(e.proxy)),$watch:e=>_t}),Xr=(e,t)=>e!==ue&&!e.__isScriptSetup&&ee(e,t),Fa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const g=l[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Xr(r,t))return l[t]=1,r[t];if(i!==ue&&ee(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&ee(c,t))return l[t]=3,s[t];if(n!==ue&&ee(n,t))return l[t]=4,n[t];l[t]=0}}const u=vn[t];let h,d;if(u)return t==="$attrs"&&$e(e.attrs,"get",""),u(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ue&&ee(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,ee(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Xr(i,t)?(i[t]=n,!0):r!==ue&&ee(r,t)?(r[t]=n,!0):ee(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:i,propsOptions:s}},l){let o;return!!n[l]||e!==ue&&ee(e,l)||Xr(t,l)||(o=s[0])&&ee(o,l)||ee(r,l)||ee(vn,l)||ee(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Is(){return{app:null,config:{isNativeTag:Fo,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 Da=0;function Ha(e,t){return function(r,i=null){le(r)||(r=Be({},r)),i!=null&&!me(i)&&(i=null);const s=Is(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:Da++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:_c,get config(){return s.config},set config(u){},use(u,...h){return l.has(u)||(u&&le(u.install)?(l.add(u),u.install(c,...h)):le(u)&&(l.add(u),u(c,...h))),c},mixin(u){return c},component(u,h){return h?(s.components[u]=h,c):s.components[u]},directive(u,h){return h?(s.directives[u]=h,c):s.directives[u]},mount(u,h,d){if(!a){const g=c._ceVNode||oe(r,i);return g.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),h&&t?t(g,u):e(g,u,d),a=!0,c._container=u,u.__vue_app__=c,ir(g.component)}},onUnmount(u){o.push(u)},unmount(){a&&(ct(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return s.provides[u]=h,c},runWithContext(u){const h=Gt;Gt=c;try{return u()}finally{Gt=h}}};return c}}let Gt=null;function Ua(e,t){if(Ee){let n=Ee.provides;const r=Ee.parent&&Ee.parent.provides;r===n&&(n=Ee.provides=Object.create(r)),n[e]=t}}function Qn(e,t,n=!1){const r=Ee||Pe;if(r||Gt){const i=Gt?Gt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&le(t)?t.call(r&&r.proxy):t}}const Ms={},Os=()=>Object.create(Ms),Ps=e=>Object.getPrototypeOf(e)===Ms;function Na(e,t,n,r=!1){const i={},s=Os();e.propsDefaults=Object.create(null),js(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:ga(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Ba(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=te(i),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(Xn(e.emitsOptions,d))continue;const g=t[d];if(a)if(ee(s,d))g!==s[d]&&(s[d]=g,c=!0);else{const k=Ve(d);i[k]=ei(a,o,k,g,e,!1)}else g!==s[d]&&(s[d]=g,c=!0)}}}else{js(e,t,i,s)&&(c=!0);let u;for(const h in o)(!t||!ee(t,h)&&((u=Ct(h))===h||!ee(t,u)))&&(a?n&&(n[h]!==void 0||n[u]!==void 0)&&(i[h]=ei(a,o,h,void 0,e,!0)):delete i[h]);if(s!==o)for(const h in s)(!t||!ee(t,h))&&(delete s[h],c=!0)}c&&lt(e.attrs,"set","")}function js(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(tn(a))continue;const c=t[a];let u;i&&ee(i,u=Ve(a))?!s||!s.includes(u)?n[u]=c:(o||(o={}))[u]=c:Xn(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(s){const a=te(n),c=o||ue;for(let u=0;u<s.length;u++){const h=s[u];n[h]=ei(i,a,h,c[h],e,!ee(c,h))}}return l}function ei(e,t,n,r,i,s){const l=e[n];if(l!=null){const o=ee(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&le(a)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=oi(i);r=c[n]=a.call(null,t),u()}}else r=a;i.ce&&i.ce._setProp(n,r)}l[0]&&(s&&!o?r=!1:l[1]&&(r===""||r===Ct(n))&&(r=!0))}return r}function Va(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s&&!!1)return me(e)&&r.set(e,Ht),Ht;if(V(s))for(let u=0;u<s.length;u++){const h=Ve(s[u]);zs(h)&&(l[h]=ue)}else if(s)for(const u in s){const h=Ve(u);if(zs(h)){const d=s[u],g=l[h]=V(d)||le(d)?{type:d}:Be({},d),k=g.type;let v=!1,$=!0;if(V(k))for(let b=0;b<k.length;++b){const C=k[b],U=le(C)&&C.name;if(U==="Boolean"){v=!0;break}else U==="String"&&($=!1)}else v=le(k)&&k.name==="Boolean";g[0]=v,g[1]=$,(v||ee(g,"default"))&&o.push(h)}}const c=[l,o];return me(e)&&r.set(e,c),c}function zs(e){return e[0]!=="$"&&!tn(e)}const Fs=e=>e[0]==="_"||e==="$stable",ti=e=>V(e)?e.map(nt):[nt(e)],Wa=(e,t,n)=>{if(t._n)return t;const r=Ra((...i)=>ti(t(...i)),n);return r._c=!1,r},Ds=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Fs(i))continue;const s=e[i];if(le(s))t[i]=Wa(i,s,r);else if(s!=null){const l=ti(s);t[i]=()=>l}}},Hs=(e,t)=>{const n=ti(t);e.slots.default=()=>n},Us=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},qa=(e,t,n)=>{const r=e.slots=Os();if(e.vnode.shapeFlag&32){const i=t._;i?(Us(r,t,n),n&&ts(r,"_",i,!0)):Ds(t,r)}else t&&Hs(e,t)},Ka=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=ue;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:Us(i,t,n):(s=!t.$stable,Ds(t,i)),l=t}else t&&(Hs(e,t),l={default:1});if(s)for(const o in i)!Fs(o)&&l[o]==null&&delete i[o]};function Ga(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(nn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const ze=ac;function Za(e){return Ja(e)}function Ja(e,t){Ga();const n=nn();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:g=_t,insertStaticContent:k}=e,v=(f,p,m,w=null,y=null,x=null,E=void 0,R=null,S=!!p.dynamicChildren)=>{if(f===p)return;f&&!wn(f,p)&&(w=Ft(f),De(f,y,x,!0),f=null),p.patchFlag===-2&&(S=!1,p.dynamicChildren=null);const{type:_,ref:M,shapeFlag:L}=p;switch(_){case er:$(f,p,m,w);break;case Mt:b(f,p,m,w);break;case ii:f==null&&C(p,m,w,E);break;case he:be(f,p,m,w,y,x,E,R,S);break;default:L&1?j(f,p,m,w,y,x,E,R,S):L&6?F(f,p,m,w,y,x,E,R,S):(L&64||L&128)&&_.process(f,p,m,w,y,x,E,R,S,A)}M!=null&&y&&Yn(M,f&&f.ref,x,p||f,!p)},$=(f,p,m,w)=>{if(f==null)r(p.el=o(p.children),m,w);else{const y=p.el=f.el;p.children!==f.children&&c(y,p.children)}},b=(f,p,m,w)=>{f==null?r(p.el=a(p.children||""),m,w):p.el=f.el},C=(f,p,m,w)=>{[f.el,f.anchor]=k(f.children,p,m,w,f.el,f.anchor)},U=({el:f,anchor:p},m,w)=>{let y;for(;f&&f!==p;)y=d(f),r(f,m,w),f=y;r(p,m,w)},T=({el:f,anchor:p})=>{let m;for(;f&&f!==p;)m=d(f),i(f),f=m;i(p)},j=(f,p,m,w,y,x,E,R,S)=>{p.type==="svg"?E="svg":p.type==="math"&&(E="mathml"),f==null?K(p,m,w,y,x,E,R,S):je(f,p,y,x,E,R,S)},K=(f,p,m,w,y,x,E,R)=>{let S,_;const{props:M,shapeFlag:L,transition:D,dirs:B}=f;if(S=f.el=l(f.type,x,M&&M.is,M),L&8?u(S,f.children):L&16&&G(f.children,S,null,w,y,ni(f,x),E,R),B&&Lt(f,null,w,"created"),z(S,f,f.scopeId,E,w),M){for(const de in M)de!=="value"&&!tn(de)&&s(S,de,null,M[de],x,w);"value"in M&&s(S,"value",null,M.value,x),(_=M.onVnodeBeforeMount)&&rt(_,w,f)}B&&Lt(f,null,w,"beforeMount");const J=Ya(y,D);J&&D.beforeEnter(S),r(S,p,m),((_=M&&M.onVnodeMounted)||J||B)&&ze(()=>{_&&rt(_,w,f),J&&D.enter(S),B&&Lt(f,null,w,"mounted")},y)},z=(f,p,m,w,y)=>{if(m&&g(f,m),w)for(let x=0;x<w.length;x++)g(f,w[x]);if(y){let x=y.subTree;if(p===x||Gs(x.type)&&(x.ssContent===p||x.ssFallback===p)){const E=y.vnode;z(f,E,E.scopeId,E.slotScopeIds,y.parent)}}},G=(f,p,m,w,y,x,E,R,S=0)=>{for(let _=S;_<f.length;_++){const M=f[_]=R?yt(f[_]):nt(f[_]);v(null,M,p,m,w,y,x,E,R)}},je=(f,p,m,w,y,x,E)=>{const R=p.el=f.el;let{patchFlag:S,dynamicChildren:_,dirs:M}=p;S|=f.patchFlag&16;const L=f.props||ue,D=p.props||ue;let B;if(m&&It(m,!1),(B=D.onVnodeBeforeUpdate)&&rt(B,m,p,f),M&&Lt(p,f,m,"beforeUpdate"),m&&It(m,!0),(L.innerHTML&&D.innerHTML==null||L.textContent&&D.textContent==null)&&u(R,""),_?Z(f.dynamicChildren,_,R,m,w,ni(p,y),x):E||ke(f,p,R,null,m,w,ni(p,y),x,!1),S>0){if(S&16)ie(R,L,D,m,y);else if(S&2&&L.class!==D.class&&s(R,"class",null,D.class,y),S&4&&s(R,"style",L.style,D.style,y),S&8){const J=p.dynamicProps;for(let de=0;de<J.length;de++){const se=J[de],He=L[se],Re=D[se];(Re!==He||se==="value")&&s(R,se,He,Re,y,m)}}S&1&&f.children!==p.children&&u(R,p.children)}else!E&&_==null&&ie(R,L,D,m,y);((B=D.onVnodeUpdated)||M)&&ze(()=>{B&&rt(B,m,p,f),M&&Lt(p,f,m,"updated")},w)},Z=(f,p,m,w,y,x,E)=>{for(let R=0;R<p.length;R++){const S=f[R],_=p[R],M=S.el&&(S.type===he||!wn(S,_)||S.shapeFlag&70)?h(S.el):m;v(S,_,M,null,w,y,x,E,!0)}},ie=(f,p,m,w,y)=>{if(p!==m){if(p!==ue)for(const x in p)!tn(x)&&!(x in m)&&s(f,x,p[x],null,y,w);for(const x in m){if(tn(x))continue;const E=m[x],R=p[x];E!==R&&x!=="value"&&s(f,x,R,E,y,w)}"value"in m&&s(f,"value",p.value,m.value,y)}},be=(f,p,m,w,y,x,E,R,S)=>{const _=p.el=f?f.el:o(""),M=p.anchor=f?f.anchor:o("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:B}=p;B&&(R=R?R.concat(B):B),f==null?(r(_,m,w),r(M,m,w),G(p.children||[],m,M,y,x,E,R,S)):L>0&&L&64&&D&&f.dynamicChildren?(Z(f.dynamicChildren,D,m,y,x,E,R),(p.key!=null||y&&p===y.subTree)&&Ns(f,p,!0)):ke(f,p,m,M,y,x,E,R,S)},F=(f,p,m,w,y,x,E,R,S)=>{p.slotScopeIds=R,f==null?p.shapeFlag&512?y.ctx.activate(p,m,w,E,S):Q(p,m,w,y,x,E,S):ce(f,p,S)},Q=(f,p,m,w,y,x,E)=>{const R=f.component=gc(f,w,y);if(La(f)&&(R.ctx.renderer=A),vc(R,!1,E),R.asyncDep){if(y&&y.registerDep(R,Ce,E),!f.el){const S=R.subTree=oe(Mt);b(null,S,p,m)}}else Ce(R,f,p,m,y,x,E)},ce=(f,p,m)=>{const w=p.component=f.component;if(lc(f,p,m))if(w.asyncDep&&!w.asyncResolved){we(w,p,m);return}else w.next=p,w.update();else p.el=f.el,w.vnode=p},Ce=(f,p,m,w,y,x,E)=>{const R=()=>{if(f.isMounted){let{next:L,bu:D,u:B,parent:J,vnode:de}=f;{const Ue=Bs(f);if(Ue){L&&(L.el=de.el,we(f,L,E)),Ue.asyncDep.then(()=>{f.isUnmounted||R()});return}}let se=L,He;It(f,!1),L?(L.el=de.el,we(f,L,E)):L=de,D&&Hn(D),(He=L.props&&L.props.onVnodeBeforeUpdate)&&rt(He,J,L,de),It(f,!0);const Re=ri(f),Qe=f.subTree;f.subTree=Re,v(Qe,Re,h(Qe.el),Ft(Qe),f,y,x),L.el=Re.el,se===null&&oc(f,Re.el),B&&ze(B,y),(He=L.props&&L.props.onVnodeUpdated)&&ze(()=>rt(He,J,L,de),y)}else{let L;const{el:D,props:B}=p,{bm:J,m:de,parent:se,root:He,type:Re}=f,Qe=gn(p);if(It(f,!1),J&&Hn(J),!Qe&&(L=B&&B.onVnodeBeforeMount)&&rt(L,se,p),It(f,!0),D&&pe){const Ue=()=>{f.subTree=ri(f),pe(D,f.subTree,f,y,null)};Qe&&Re.__asyncHydrate?Re.__asyncHydrate(D,f,Ue):Ue()}else{He.ce&&He.ce._injectChildStyle(Re);const Ue=f.subTree=ri(f);v(null,Ue,m,w,f,y,x),p.el=Ue.el}if(de&&ze(de,y),!Qe&&(L=B&&B.onVnodeMounted)){const Ue=p;ze(()=>rt(L,se,Ue),y)}(p.shapeFlag&256||se&&gn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&ze(f.a,y),f.isMounted=!0,p=m=w=null}};f.scope.on();const S=f.effect=new os(R);f.scope.off();const _=f.update=S.run.bind(S),M=f.job=S.runIfDirty.bind(S);M.i=f,M.id=f.uid,S.scheduler=()=>Gr(M),It(f,!0),_()},we=(f,p,m)=>{p.component=f;const w=f.vnode.props;f.vnode=p,f.next=null,Ba(f,p.props,w,m),Ka(f,p.children,m),St(),Rs(f),Rt()},ke=(f,p,m,w,y,x,E,R,S=!1)=>{const _=f&&f.children,M=f?f.shapeFlag:0,L=p.children,{patchFlag:D,shapeFlag:B}=p;if(D>0){if(D&128){kt(_,L,m,w,y,x,E,R,S);return}else if(D&256){Ie(_,L,m,w,y,x,E,R,S);return}}B&8?(M&16&&zt(_,y,x),L!==_&&u(m,L)):M&16?B&16?kt(_,L,m,w,y,x,E,R,S):zt(_,y,x,!0):(M&8&&u(m,""),B&16&&G(L,m,w,y,x,E,R,S))},Ie=(f,p,m,w,y,x,E,R,S)=>{f=f||Ht,p=p||Ht;const _=f.length,M=p.length,L=Math.min(_,M);let D;for(D=0;D<L;D++){const B=p[D]=S?yt(p[D]):nt(p[D]);v(f[D],B,m,null,y,x,E,R,S)}_>M?zt(f,y,x,!0,!1,L):G(p,m,w,y,x,E,R,S,L)},kt=(f,p,m,w,y,x,E,R,S)=>{let _=0;const M=p.length;let L=f.length-1,D=M-1;for(;_<=L&&_<=D;){const B=f[_],J=p[_]=S?yt(p[_]):nt(p[_]);if(wn(B,J))v(B,J,m,null,y,x,E,R,S);else break;_++}for(;_<=L&&_<=D;){const B=f[L],J=p[D]=S?yt(p[D]):nt(p[D]);if(wn(B,J))v(B,J,m,null,y,x,E,R,S);else break;L--,D--}if(_>L){if(_<=D){const B=D+1,J=B<M?p[B].el:w;for(;_<=D;)v(null,p[_]=S?yt(p[_]):nt(p[_]),m,J,y,x,E,R,S),_++}}else if(_>D)for(;_<=L;)De(f[_],y,x,!0),_++;else{const B=_,J=_,de=new Map;for(_=J;_<=D;_++){const Ne=p[_]=S?yt(p[_]):nt(p[_]);Ne.key!=null&&de.set(Ne.key,_)}let se,He=0;const Re=D-J+1;let Qe=!1,Ue=0;const Mn=new Array(Re);for(_=0;_<Re;_++)Mn[_]=0;for(_=B;_<=L;_++){const Ne=f[_];if(He>=Re){De(Ne,y,x,!0);continue}let st;if(Ne.key!=null)st=de.get(Ne.key);else for(se=J;se<=D;se++)if(Mn[se-J]===0&&wn(Ne,p[se])){st=se;break}st===void 0?De(Ne,y,x,!0):(Mn[st-J]=_+1,st>=Ue?Ue=st:Qe=!0,v(Ne,p[st],m,null,y,x,E,R,S),He++)}const ho=Qe?Qa(Mn):Ht;for(se=ho.length-1,_=Re-1;_>=0;_--){const Ne=J+_,st=p[Ne],po=Ne+1<M?p[Ne+1].el:w;Mn[_]===0?v(null,st,m,po,y,x,E,R,S):Qe&&(se<0||_!==ho[se]?jt(st,m,po,2):se--)}}},jt=(f,p,m,w,y=null)=>{const{el:x,type:E,transition:R,children:S,shapeFlag:_}=f;if(_&6){jt(f.component.subTree,p,m,w);return}if(_&128){f.suspense.move(p,m,w);return}if(_&64){E.move(f,p,m,A);return}if(E===he){r(x,p,m);for(let L=0;L<S.length;L++)jt(S[L],p,m,w);r(f.anchor,p,m);return}if(E===ii){U(f,p,m);return}if(w!==2&&_&1&&R)if(w===0)R.beforeEnter(x),r(x,p,m),ze(()=>R.enter(x),y);else{const{leave:L,delayLeave:D,afterLeave:B}=R,J=()=>r(x,p,m),de=()=>{L(x,()=>{J(),B&&B()})};D?D(x,J,de):de()}else r(x,p,m)},De=(f,p,m,w=!1,y=!1)=>{const{type:x,props:E,ref:R,children:S,dynamicChildren:_,shapeFlag:M,patchFlag:L,dirs:D,cacheIndex:B}=f;if(L===-2&&(y=!1),R!=null&&Yn(R,null,m,f,!0),B!=null&&(p.renderCache[B]=void 0),M&256){p.ctx.deactivate(f);return}const J=M&1&&D,de=!gn(f);let se;if(de&&(se=E&&E.onVnodeBeforeUnmount)&&rt(se,p,f),M&6)kr(f.component,m,w);else{if(M&128){f.suspense.unmount(m,w);return}J&&Lt(f,null,p,"beforeUnmount"),M&64?f.type.remove(f,p,m,A,w):_&&!_.hasOnce&&(x!==he||L>0&&L&64)?zt(_,p,m,!1,!0):(x===he&&L&384||!y&&M&16)&&zt(S,p,m),w&&wr(f)}(de&&(se=E&&E.onVnodeUnmounted)||J)&&ze(()=>{se&&rt(se,p,f),J&&Lt(f,null,p,"unmounted")},m)},wr=f=>{const{type:p,el:m,anchor:w,transition:y}=f;if(p===he){Ci(m,w);return}if(p===ii){T(f);return}const x=()=>{i(m),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:E,delayLeave:R}=y,S=()=>E(m,x);R?R(f.el,x,S):S()}else x()},Ci=(f,p)=>{let m;for(;f!==p;)m=d(f),i(f),f=m;i(p)},kr=(f,p,m)=>{const{bum:w,scope:y,job:x,subTree:E,um:R,m:S,a:_}=f;Vs(S),Vs(_),w&&Hn(w),y.stop(),x&&(x.flags|=8,De(E,f,p,m)),R&&ze(R,p),ze(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},zt=(f,p,m,w=!1,y=!1,x=0)=>{for(let E=x;E<f.length;E++)De(f[E],p,m,w,y)},Ft=f=>{if(f.shapeFlag&6)return Ft(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const p=d(f.anchor||f.el),m=p&&p[Aa];return m?d(m):p};let Qt=!1;const O=(f,p,m)=>{f==null?p._vnode&&De(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,m),p._vnode=f,Qt||(Qt=!0,Rs(),As(),Qt=!1)},A={p:v,um:De,m:jt,r:wr,mt:Q,mc:G,pc:ke,pbc:Z,n:Ft,o:e};let N,pe;return{render:O,hydrate:N,createApp:Ha(O,N)}}function ni({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 Ya(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ns(e,t,n=!1){const r=e.children,i=t.children;if(V(r)&&V(i))for(let s=0;s<r.length;s++){const l=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=yt(i[s]),o.el=l.el),!n&&o.patchFlag!==-2&&Ns(l,o)),o.type===er&&(o.el=l.el)}}function Qa(e){const t=e.slice(),n=[0];let r,i,s,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<c?s=o+1:l=o;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function Bs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bs(t)}function Vs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Xa=Symbol.for("v-scx"),ec=()=>Qn(Xa);function Ws(e,t){return qs(e,null,t)}function Ke(e,t,n){return qs(e,t,n)}function qs(e,t,n=ue){const{immediate:r,deep:i,flush:s,once:l}=n,o=Be({},n),a=t&&r||!t&&s!=="post";let c;if(kn){if(s==="sync"){const g=ec();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=_t,g.resume=_t,g.pause=_t,g}}const u=Ee;o.call=(g,k,v)=>ct(g,u,k,v);let h=!1;s==="post"?o.scheduler=g=>{ze(g,u&&u.suspense)}:s!=="sync"&&(h=!0,o.scheduler=(g,k)=>{k?g():Gr(g)}),o.augmentJob=g=>{t&&(g.flags|=4),h&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const d=_a(e,t,o);return kn&&(c?c.push(d):a&&d()),d}const tc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ve(t)}Modifiers`]||e[`${Ct(t)}Modifiers`];function nc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let i=n;const s=t.startsWith("update:"),l=s&&tc(r,t.slice(7));l&&(l.trim&&(i=n.map(u=>ye(u)?u.trim():u)),l.number&&(i=n.map(Un)));let o,a=r[o=Er(t)]||r[o=Er(Ve(t))];!a&&s&&(a=r[o=Er(Ct(t))]),a&&ct(a,e,6,i);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ct(c,e,6,i)}}function rc(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let l={};return!s&&!!1?(me(e)&&r.set(e,null),null):(V(s)?s.forEach(a=>l[a]=null):Be(l,s),me(e)&&r.set(e,l),l)}function Xn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,Ct(t))||ee(e,t))}function ri(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:h,data:d,setupState:g,ctx:k,inheritAttrs:v}=e,$=Zn(e);let b,C;try{if(n.shapeFlag&4){const T=i||r,j=T;b=nt(c.call(j,T,u,h,g,d,k)),C=o}else{const T=t;b=nt(T.length>1?T(h,{attrs:o,slots:l,emit:a}):T(h,null)),C=t.props?o:ic(o)}}catch(T){bn.length=0,Kn(T,e,1),b=oe(Mt)}let U=b;if(C&&v!==!1){const T=Object.keys(C),{shapeFlag:j}=U;T.length&&j&7&&(s&&T.some(Ar)&&(C=sc(C,s)),U=Zt(U,C,!1,!0))}return n.dirs&&(U=Zt(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&Zr(U,n.transition),b=U,Zn($),b}const ic=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},sc=(e,t)=>{const n={};for(const r in e)(!Ar(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lc(e,t,n){const{props:r,children:i,component:s}=e,{props:l,children:o,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Ks(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(l[d]!==r[d]&&!Xn(c,d))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?Ks(r,l,c):!0:!!l;return!1}function Ks(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!Xn(n,s))return!0}return!1}function oc({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 Gs=e=>e.__isSuspense;function ac(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Sa(e)}const he=Symbol.for("v-fgt"),er=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),ii=Symbol.for("v-stc"),bn=[];let Fe=null;function I(e=!1){bn.push(Fe=e?null:[])}function cc(){bn.pop(),Fe=bn[bn.length-1]||null}let yn=1;function Zs(e,t=!1){yn+=e,e<0&&Fe&&t&&(Fe.hasOnce=!0)}function Js(e){return e.dynamicChildren=yn>0?Fe||Ht:null,cc(),yn>0&&Fe&&Fe.push(e),e}function P(e,t,n,r,i,s){return Js(H(e,t,n,r,i,s,!0))}function ut(e,t,n,r,i){return Js(oe(e,t,n,r,i,!0))}function tr(e){return e?e.__v_isVNode===!0:!1}function wn(e,t){return e.type===t.type&&e.key===t.key}const Ys=({key:e})=>e??null,nr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||xe(e)||le(e)?{i:Pe,r:e,k:t,f:!!n}:e:null);function H(e,t=null,n=null,r=0,i=null,s=e===he?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ys(t),ref:t&&nr(t),scopeId:Es,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Pe};return o?(si(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),yn>0&&!l&&Fe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Fe.push(a),a}const oe=uc;function uc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===ja)&&(e=Mt),tr(e)){const o=Zt(e,t,!0);return n&&si(o,n),yn>0&&!s&&Fe&&(o.shapeFlag&6?Fe[Fe.indexOf(e)]=o:Fe.push(o)),o.patchFlag=-2,o}if(xc(e)&&(e=e.__vccOpts),t){t=fc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=ve(o)),me(a)&&(qr(a)&&!V(a)&&(a=Be({},a)),t.style=rn(a))}const l=ye(e)?1:Gs(e)?128:Ta(e)?64:me(e)?4:le(e)?2:0;return H(e,t,n,r,i,l,s,!0)}function fc(e){return e?qr(e)||Ps(e)?Be({},e):e:null}function Zt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?hc(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ys(c),ref:t&&t.ref?n&&s?V(s)?s.concat(nr(t)):[s,nr(t)]:nr(t):s,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!==he?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&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Zr(u,a.clone(u)),u}function ft(e=" ",t=0){return oe(er,null,e,t)}function Y(e="",t=!1){return t?(I(),ut(Mt,null,e)):oe(Mt,null,e)}function nt(e){return e==null||typeof e=="boolean"?oe(Mt):V(e)?oe(he,null,e.slice()):tr(e)?yt(e):oe(er,null,String(e))}function yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function si(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),si(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Ps(t)?t._ctx=Pe:i===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),r&64?(n=16,t=[ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function hc(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(i==="style")t.style=rn([t.style,r.style]);else if(zn(i)){const s=t[i],l=r[i];l&&s!==l&&!(V(s)&&s.includes(l))&&(t[i]=s?[].concat(s,l):l)}else i!==""&&(t[i]=r[i])}return t}function rt(e,t,n,r=null){ct(e,t,7,[n,r])}const dc=Is();let pc=0;function gc(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||dc,s={uid:pc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Zo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Va(r,i),emitsOptions:rc(r,i),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=nc.bind(null,s),e.ce&&e.ce(s),s}let Ee=null;const mc=()=>Ee||Pe;let rr,li;{const e=nn(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(l=>l(s)):i[0](s)}};rr=t("__VUE_INSTANCE_SETTERS__",n=>Ee=n),li=t("__VUE_SSR_SETTERS__",n=>kn=n)}const oi=e=>{const t=Ee;return rr(e),e.scope.on(),()=>{e.scope.off(),rr(t)}},Qs=()=>{Ee&&Ee.scope.off(),rr(null)};function Xs(e){return e.vnode.shapeFlag&4}let kn=!1;function vc(e,t=!1,n=!1){t&&li(t);const{props:r,children:i}=e.vnode,s=Xs(e);Na(e,r,s,t),qa(e,i,n);const l=s?bc(e,t):void 0;return t&&li(!1),l}function bc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fa);const{setup:r}=n;if(r){St();const i=e.setupContext=r.length>1?wc(e):null,s=oi(e),l=hn(r,e,0,[e.props,i]),o=Qi(l);if(Rt(),s(),(o||e.sp)&&!gn(e)&&Ea(e),o){if(l.then(Qs,Qs),t)return l.then(a=>{el(e,a,t)}).catch(a=>{Kn(a,e,0)});e.asyncDep=l}else el(e,l,t)}else nl(e,t)}function el(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:me(t)&&(e.setupState=Cs(t)),nl(e,n)}let tl;function nl(e,t,n){const r=e.type;if(!e.render){if(!t&&tl&&!r.render){const i=r.template||!1;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Be(Be({isCustomElement:s,delimiters:o},l),a);r.render=tl(i,c)}}e.render=r.render||_t}}const yc={get(e,t){return $e(e,"get",""),e[t]}};function wc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,yc),slots:e.slots,emit:e.emit,expose:t}}function ir(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Cs(ma(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}})):e.proxy}function kc(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function xc(e){return le(e)&&"__vccOpts"in e}const _e=(e,t)=>ka(e,t,kn);function ne(e,t,n){const r=arguments.length;return r===2?me(t)&&!V(t)?tr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&tr(n)&&(n=[n]),oe(e,t,n))}const _c="3.5.13";/**
23
+ * @vue/runtime-dom v3.5.13
24
24
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
25
25
  * @license MIT
26
- **/let bi;const wl=typeof window<"u"&&window.trustedTypes;if(wl)try{bi=wl.createPolicy("vue",{createHTML:e=>e})}catch{}const kl=bi?e=>bi.createHTML(e):e=>e,qc="http://www.w3.org/2000/svg",Kc="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,xl=ht&&ht.createElement("template"),Gc={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 i=t==="svg"?ht.createElementNS(qc,e):t==="mathml"?ht.createElementNS(Kc,e):n?ht.createElement(e,{is:n}):ht.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ht.createTextNode(e),createComment:e=>ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const l=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{xl.innerHTML=kl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=xl.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]}},Zc=Symbol("_vtc");function Qc(e,t,n){const r=e[Zc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ur=Symbol("_vod"),_l=Symbol("_vsh"),$l={beforeMount(e,{value:t},{transition:n}){e[ur]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),_n(e,!0),r.enter(e)):r.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e[ur]:"none",e[_l]=!t}const Jc=Symbol(""),Yc=/(^|;)\s*display\s*:/;function Xc(e,t,n){const r=e.style,i=ye(n);let s=!1;if(n&&!i){if(t)if(ye(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&fr(r,o,"")}else for(const l in t)n[l]==null&&fr(r,l,"");for(const l in n)l==="display"&&(s=!0),fr(r,l,n[l])}else if(i){if(t!==n){const l=r[Jc];l&&(n+=";"+l),r.cssText=n,s=Yc.test(n)}}else t&&e.removeAttribute("style");ur in e&&(e[ur]=s?r.display:"",e[_l]&&(r.display="none"))}const Cl=/\s*!important$/;function fr(e,t,n){if(N(n))n.forEach(r=>fr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=eu(e,t);Cl.test(n)?e.setProperty($t(r),n.replace(Cl,""),"important"):e[r]=n}}const Sl=["Webkit","Moz","ms"],yi={};function eu(e,t){const n=yi[t];if(n)return n;let r=Ge(t);if(r!=="filter"&&r in e)return yi[t]=r;r=Hn(r);for(let i=0;i<Sl.length;i++){const s=Sl[i]+r;if(s in e)return yi[t]=s}return t}const El="http://www.w3.org/1999/xlink";function Tl(e,t,n,r,i,s=ca(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(El,t.slice(6,t.length)):e.setAttributeNS(El,t,n):n==null||s&&!ds(n)?e.removeAttribute(t):e.setAttribute(t,s?"":tt(n)?String(n):n)}function tu(e,t,n,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?kl(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,o=n==null?e.type==="checkbox"?"on":"":String(n);(l!==o||!("_value"in e))&&(e.value=o),n==null&&e.removeAttribute(t),e._value=n;return}let s=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=ds(n):n==null&&l==="string"?(n="",s=!0):l==="number"&&(n=0,s=!0)}try{e[t]=n}catch{}s&&e.removeAttribute(t)}function dt(e,t,n,r){e.addEventListener(t,n,r)}function nu(e,t,n,r){e.removeEventListener(t,n,r)}const Al=Symbol("_vei");function ru(e,t,n,r,i=null){const s=e[Al]||(e[Al]={}),l=s[t];if(r&&l)l.value=r;else{const[o,a]=iu(t);if(r){const u=s[t]=ou(r,i);dt(e,o,u,a)}else l&&(nu(e,o,l,a),s[t]=void 0)}}const Rl=/(?:Once|Passive|Capture)$/;function iu(e){let t;if(Rl.test(e)){t={};let r;for(;r=e.match(Rl);)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 wi=0;const su=Promise.resolve(),lu=()=>wi||(su.then(()=>wi=0),wi=Date.now());function ou(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ct(au(r,n.value),t,5,[r])};return n.value=e,n.attached=lu(),n}function au(e,t){if(N(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Il=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cu=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Qc(e,r,l):t==="style"?Xc(e,n,r):Dn(t)?Mr(t)||ru(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uu(e,t,r,l))?(tu(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Tl(e,t,r,l,s,t!=="value")):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Tl(e,t,r,l))};function uu(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Il(t)&&ee(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Il(t)&&ye(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!ye(n)))}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return N(t)?n=>Nn(t,n):t};function fu(e){e.target.composing=!0}function Ll(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ke=Symbol("_assign"),ki={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ke]=yt(i);const s=r||i.props&&i.props.type==="number";dt(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Vn(o)),e[Ke](o)}),n&&dt(e,"change",()=>{e.value=e.value.trim()}),t||(dt(e,"compositionstart",fu),dt(e,"compositionend",Ll),dt(e,"change",Ll))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[Ke]=yt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Vn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},hu={deep:!0,created(e,t,n){e[Ke]=yt(n),dt(e,"change",()=>{const r=e._modelValue,i=Qt(e),s=e.checked,l=e[Ke];if(N(r)){const o=Pr(r,i),a=o!==-1;if(s&&!a)l(r.concat(i));else if(!s&&a){const u=[...r];u.splice(o,1),l(u)}}else if(Nt(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(jl(e,s))})},mounted:Ml,beforeUpdate(e,t,n){e[Ke]=yt(n),Ml(e,t,n)}};function Ml(e,{value:t,oldValue:n},r){e._modelValue=t;let i;N(t)?i=Pr(t,r.props.value)>-1:Nt(t)?i=t.has(r.props.value):i=Ct(t,jl(e,!0)),e.checked!==i&&(e.checked=i)}const du={created(e,{value:t},n){e.checked=Ct(t,n.props.value),e[Ke]=yt(n),dt(e,"change",()=>{e[Ke](Qt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ke]=yt(r),t!==n&&(e.checked=Ct(t,r.props.value))}},pu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Nt(t);dt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Vn(Qt(l)):Qt(l));e[Ke](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Kt(()=>{e._assigning=!1})}),e[Ke]=yt(r)},mounted(e,{value:t,modifiers:{number:n}}){Ol(e,t)},beforeUpdate(e,t,n){e[Ke]=yt(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Ol(e,t)}};function Ol(e,t,n){const r=e.multiple,i=N(t);if(!(r&&!i&&!Nt(t))){for(let s=0,l=e.options.length;s<l;s++){const o=e.options[s],a=Qt(o);if(r)if(i){const u=typeof a;u==="string"||u==="number"?o.selected=t.some(c=>String(c)===String(a)):o.selected=Pr(t,a)>-1}else o.selected=t.has(a);else if(Ct(Qt(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Qt(e){return"_value"in e?e._value:e.value}function jl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gu={created(e,t,n){hr(e,t,n,null,"created")},mounted(e,t,n){hr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){hr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){hr(e,t,n,r,"updated")}};function mu(e,t){switch(e){case"SELECT":return pu;case"TEXTAREA":return ki;default:switch(t){case"checkbox":return hu;case"radio":return du;default:return ki}}}function hr(e,t,n,r,i){const l=mu(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const vu=Te({patchProp:cu},Gc);let zl;function bu(){return zl||(zl=vc(vu))}const yu=(...e)=>{const t=bu().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=ku(r);if(!i)return;const s=t._component;!ee(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,wu(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function wu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ku(e){return ye(e)?document.querySelector(e):e}function $n(e){return ms()?(ha(e),!0):!1}function pt(e){return typeof e=="function"?e():K(e)}const dr=typeof window<"u"&&typeof document<"u",xu=Object.prototype.toString,_u=e=>xu.call(e)==="[object Object]",pr=()=>{};function Pl(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const Fl=e=>e();function $u(e,t={}){let n,r,i=pr;const s=o=>{clearTimeout(o),i(),i=pr};return o=>{const a=pt(e),u=pt(t.maxWait);return n&&s(n),a<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(o())):new Promise((c,h)=>{i=t.rejectOnCancel?h:c,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,c(o())},u)),n=setTimeout(()=>{r&&s(r),r=null,c(o())},a)})}}function Cu(e=Fl){const t=q(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:fn(t),pause:n,resume:r,eventFilter:i}}function Dl(e){return Fc()}function Su(e,t=200,n={}){return Pl($u(t,n),e)}function Eu(e,t,n={}){const{eventFilter:r=Fl,...i}=n;return qe(e,Pl(r,t),i)}function Tu(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=Cu(r);return{stop:Eu(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function xi(e,t=!0,n){Dl()?vn(e,n):t?e():Kt(e)}function Au(e,t){Dl()&&li(e,t)}function Ru(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=q(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function u(){const c=pt(t);c<=0||(l.value=!0,i&&e(),o(),s=setInterval(e,c))}if(r&&dr&&u(),xe(t)||typeof t=="function"){const c=qe(t,()=>{l.value&&dr&&u()});$n(c)}return $n(a),{isActive:l,pause:a,resume:u}}function Iu(e){var t;const n=pt(e);return(t=n==null?void 0:n.$el)!=null?t:n}const gr=dr?window:void 0,Ul=dr?window.document:void 0;function mr(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=gr):[t,n,r,i]=e,!t)return pr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],l=()=>{s.forEach(c=>c()),s.length=0},o=(c,h,p,m)=>(c.addEventListener(h,p,m),()=>c.removeEventListener(h,p,m)),a=qe(()=>[Iu(t),pt(i)],([c,h])=>{if(l(),!c)return;const p=_u(h)?{...h}:h;s.push(...n.flatMap(m=>r.map(w=>o(c,m,w,p))))},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return $n(u),u}function Lu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=gr}=t,s=q(!1),l=r?1e3/r:null;let o=0,a=null;function u(p){if(!s.value||!i)return;o||(o=p);const m=p-o;if(l&&m<l){a=i.requestAnimationFrame(u);return}o=p,e({delta:m,timestamp:p}),a=i.requestAnimationFrame(u)}function c(){!s.value&&i&&(s.value=!0,o=0,a=i.requestAnimationFrame(u))}function h(){s.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&c(),$n(h),{isActive:fn(s),pause:h,resume:c}}const vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},br="__vueuse_ssr_handlers__",Mu=Ou();function Ou(){return br in vr||(vr[br]=vr[br]||{}),vr[br]}function ju(e,t){return Mu[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 Pu={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()}},Hl="vueuse-storage";function Jt(e,t,n,r={}){var i;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:c,window:h=gr,eventFilter:p,onError:m=G=>{console.error(G)},initOnMounted:w}=r,x=(c?ja:q)(typeof t=="function"?t():t);if(!n)try{n=ju("getDefaultStorage",()=>{var G;return(G=gr)==null?void 0:G.localStorage})()}catch(G){m(G)}if(!n)return x;const C=pt(t),v=zu(C),$=(i=r.serializer)!=null?i:Pu[v],{pause:H,resume:A}=Tu(x,()=>W(x.value),{flush:s,deep:l,eventFilter:p});h&&o&&xi(()=>{n instanceof Storage?mr(h,"storage",X):mr(h,Hl,Pe),w&&X()}),w||X();function z(G,se){if(h){const be={key:e,oldValue:G,newValue:se,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",be):new CustomEvent(Hl,{detail:be}))}}function W(G){try{const se=n.getItem(e);if(G==null)z(se,null),n.removeItem(e);else{const be=$.write(G);se!==be&&(n.setItem(e,be),z(se,be))}}catch(se){m(se)}}function U(G){const se=G?G.newValue:n.getItem(e);if(se==null)return a&&C!=null&&n.setItem(e,$.write(C)),C;if(!G&&u){const be=$.read(se);return typeof u=="function"?u(be,C):v==="object"&&!Array.isArray(be)?{...C,...be}:be}else return typeof se!="string"?se:$.read(se)}function X(G){if(!(G&&G.storageArea!==n)){if(G&&G.key==null){x.value=C;return}if(!(G&&G.key!==e)){H();try{(G==null?void 0:G.newValue)!==$.write(x.value)&&(x.value=U(G))}catch(se){m(se)}finally{G?Kt(A):A()}}}}function Pe(G){X(G.detail)}return x}function Fu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=q(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?Lu(i,{immediate:!0}):Ru(i,n,{immediate:!0});return t?{now:r,...s}:r}function Du(e,t=pr,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:u,defer:c,document:h=Ul,attrs:p={}}=n,m=q(null);let w=null;const x=$=>new Promise((H,A)=>{const z=X=>(m.value=X,H(X),X);if(!h){H(!1);return}let W=!1,U=h.querySelector(`script[src="${pt(e)}"]`);U?U.hasAttribute("data-loaded")&&z(U):(U=h.createElement("script"),U.type=s,U.async=l,U.src=pt(e),c&&(U.defer=c),o&&(U.crossOrigin=o),u&&(U.noModule=u),a&&(U.referrerPolicy=a),Object.entries(p).forEach(([X,Pe])=>U==null?void 0:U.setAttribute(X,Pe)),W=!0),U.addEventListener("error",X=>A(X)),U.addEventListener("abort",X=>A(X)),U.addEventListener("load",()=>{U.setAttribute("data-loaded","true"),t(U),z(U)}),W&&(U=h.head.appendChild(U)),$||z(U)}),C=($=!0)=>(w||(w=x($)),w),v=()=>{if(!h)return;w=null,m.value&&(m.value=null);const $=h.querySelector(`script[src="${pt(e)}"]`);$&&h.head.removeChild($)};return r&&!i&&xi(C),i||Au(v),{scriptTag:m,load:C,unload:v}}let Uu=0;function Hu(e,t={}){const n=q(!1),{document:r=Ul,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++Uu}`}=t,o=q(e);let a=()=>{};const u=()=>{if(!r)return;const h=r.getElementById(l)||r.createElement("style");h.isConnected||(h.id=l,t.media&&(h.media=t.media),r.head.appendChild(h)),!n.value&&(a=qe(o,p=>{h.textContent=p},{immediate:!0}),n.value=!0)},c=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return i&&!s&&xi(u),s||$n(c),{id:l,css:o,unload:c,load:u,isLoaded:fn(n)}}const Nu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Vu=e=>{const t=Jt("WALINE_EMOJI",{}),n=Nu(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i})},Nl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Bu=e=>Promise.all(e.map(t=>Dt(t)?Vu(is(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:i,folder:s,icon:l,prefix:o="",type:a,items:u}=r;n.tabs.push({name:i,icon:Nl(l,s,o,a),items:u.map(c=>{const h=`${o}${c}`;return n.map[h]=Nl(c,s,o,a),h})})}),n}),Vl=e=>{e.name!=="AbortError"&&console.error(e.message)},_i=e=>e instanceof HTMLElement?e:Dt(e)?document.querySelector(e):null,Wu=e=>e.type.includes("image"),Bl=e=>{const t=Array.from(e).find(Wu);return t?t.getAsFile():null};function $i(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Ot=$i();function Wl(e){Ot=e}const ql=/[&<>"']/,qu=new RegExp(ql.source,"g"),Kl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Ku=new RegExp(Kl.source,"g"),Gu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gl=e=>Gu[e];function Ue(e,t){if(t){if(ql.test(e))return e.replace(qu,Gl)}else if(Kl.test(e))return e.replace(Ku,Gl);return e}const Zu=/(^|[^\[])\^/g;function ae(e,t){let n=typeof e=="string"?e:e.source;t=t||"";const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Zu,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}function Zl(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Cn={exec:()=>null};function Ql(e,t){const n=e.replace(/\|/g,(s,l,o)=>{let a=!1,u=l;for(;--u>=0&&o[u]==="\\";)a=!a;return a?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function Sn(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s===t&&!n)i++;else if(s!==t&&n)i++;else break}return e.slice(0,r-i)}function Qu(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-1}function Jl(e,t,n,r){const i=t.href,s=t.title?Ue(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:n,href:i,title:s,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,o}return{type:"image",raw:n,href:i,title:s,text:Ue(l)}}function Ju(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null)return t;const r=n[1];return t.split(`
27
- `).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[l]=s;return l.length>=r.length?i.slice(r.length):i}).join(`
28
- `)}class yr{options;rules;lexer;constructor(t){this.options=t||Ot}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Sn(r,`
29
- `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=Ju(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const i=Sn(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Sn(n[0],`
30
- `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Sn(n[0],`
26
+ **/let ai;const rl=typeof window<"u"&&window.trustedTypes;if(rl)try{ai=rl.createPolicy("vue",{createHTML:e=>e})}catch{}const il=ai?e=>ai.createHTML(e):e=>e,Cc="http://www.w3.org/2000/svg",$c="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,sl=ht&&ht.createElement("template"),Sc={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 i=t==="svg"?ht.createElementNS(Cc,e):t==="mathml"?ht.createElementNS($c,e):n?ht.createElement(e,{is:n}):ht.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ht.createTextNode(e),createComment:e=>ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const l=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{sl.innerHTML=il(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=sl.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]}},Rc=Symbol("_vtc");function Ac(e,t,n){const r=e[Rc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sr=Symbol("_vod"),ll=Symbol("_vsh"),ol={beforeMount(e,{value:t},{transition:n}){e[sr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):xn(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),xn(e,!0),r.enter(e)):r.leave(e,()=>{xn(e,!1)}):xn(e,t))},beforeUnmount(e,{value:t}){xn(e,t)}};function xn(e,t){e.style.display=t?e[sr]:"none",e[ll]=!t}const Tc=Symbol(""),Ec=/(^|;)\s*display\s*:/;function Lc(e,t,n){const r=e.style,i=ye(n);let s=!1;if(n&&!i){if(t)if(ye(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&lr(r,o,"")}else for(const l in t)n[l]==null&&lr(r,l,"");for(const l in n)l==="display"&&(s=!0),lr(r,l,n[l])}else if(i){if(t!==n){const l=r[Tc];l&&(n+=";"+l),r.cssText=n,s=Ec.test(n)}}else t&&e.removeAttribute("style");sr in e&&(e[sr]=s?r.display:"",e[ll]&&(r.display="none"))}const al=/\s*!important$/;function lr(e,t,n){if(V(n))n.forEach(r=>lr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Ic(e,t);al.test(n)?e.setProperty(Ct(r),n.replace(al,""),"important"):e[r]=n}}const cl=["Webkit","Moz","ms"],ci={};function Ic(e,t){const n=ci[t];if(n)return n;let r=Ve(t);if(r!=="filter"&&r in e)return ci[t]=r;r=Dn(r);for(let i=0;i<cl.length;i++){const s=cl[i]+r;if(s in e)return ci[t]=s}return t}const ul="http://www.w3.org/1999/xlink";function fl(e,t,n,r,i,s=Ko(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ul,t.slice(6,t.length)):e.setAttributeNS(ul,t,n):n==null||s&&!rs(n)?e.removeAttribute(t):e.setAttribute(t,s?"":et(n)?String(n):n)}function hl(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?il(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const o=s==="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=rs(n):n==null&&o==="string"?(n="",l=!0):o==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(i||t)}function dt(e,t,n,r){e.addEventListener(t,n,r)}function Mc(e,t,n,r){e.removeEventListener(t,n,r)}const dl=Symbol("_vei");function Oc(e,t,n,r,i=null){const s=e[dl]||(e[dl]={}),l=s[t];if(r&&l)l.value=r;else{const[o,a]=Pc(t);if(r){const c=s[t]=Fc(r,i);dt(e,o,c,a)}else l&&(Mc(e,o,l,a),s[t]=void 0)}}const pl=/(?:Once|Passive|Capture)$/;function Pc(e){let t;if(pl.test(e)){t={};let r;for(;r=e.match(pl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ct(e.slice(2)),t]}let ui=0;const jc=Promise.resolve(),zc=()=>ui||(jc.then(()=>ui=0),ui=Date.now());function Fc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ct(Dc(r,n.value),t,5,[r])};return n.value=e,n.attached=zc(),n}function Dc(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const gl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hc=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Ac(e,r,l):t==="style"?Lc(e,n,r):zn(t)?Ar(t)||Oc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Uc(e,t,r,l))?(hl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&fl(e,t,r,l,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ye(r))?hl(e,Ve(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),fl(e,t,r,l))};function Uc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&gl(t)&&le(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return gl(t)&&ye(n)?!1:t in e}const wt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Hn(t,n):t};function Nc(e){e.target.composing=!0}function ml(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ge=Symbol("_assign"),fi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ge]=wt(i);const s=r||i.props&&i.props.type==="number";dt(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Un(o)),e[Ge](o)}),n&&dt(e,"change",()=>{e.value=e.value.trim()}),t||(dt(e,"compositionstart",Nc),dt(e,"compositionend",ml),dt(e,"change",ml))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[Ge]=wt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Un(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},Bc={deep:!0,created(e,t,n){e[Ge]=wt(n),dt(e,"change",()=>{const r=e._modelValue,i=Jt(e),s=e.checked,l=e[Ge];if(V(r)){const o=Lr(r,i),a=o!==-1;if(s&&!a)l(r.concat(i));else if(!s&&a){const c=[...r];c.splice(o,1),l(c)}}else if(Nt(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(yl(e,s))})},mounted:vl,beforeUpdate(e,t,n){e[Ge]=wt(n),vl(e,t,n)}};function vl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(V(t))i=Lr(t,r.props.value)>-1;else if(Nt(t))i=t.has(r.props.value);else{if(t===n)return;i=$t(t,yl(e,!0))}e.checked!==i&&(e.checked=i)}const Vc={created(e,{value:t},n){e.checked=$t(t,n.props.value),e[Ge]=wt(n),dt(e,"change",()=>{e[Ge](Jt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ge]=wt(r),t!==n&&(e.checked=$t(t,r.props.value))}},Wc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Nt(t);dt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Un(Jt(l)):Jt(l));e[Ge](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Kt(()=>{e._assigning=!1})}),e[Ge]=wt(r)},mounted(e,{value:t}){bl(e,t)},beforeUpdate(e,t,n){e[Ge]=wt(n)},updated(e,{value:t}){e._assigning||bl(e,t)}};function bl(e,t){const n=e.multiple,r=V(t);if(!(n&&!r&&!Nt(t))){for(let i=0,s=e.options.length;i<s;i++){const l=e.options[i],o=Jt(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Lr(t,o)>-1}else l.selected=t.has(o);else if($t(Jt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jt(e){return"_value"in e?e._value:e.value}function yl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const qc={created(e,t,n){or(e,t,n,null,"created")},mounted(e,t,n){or(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){or(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){or(e,t,n,r,"updated")}};function Kc(e,t){switch(e){case"SELECT":return Wc;case"TEXTAREA":return fi;default:switch(t){case"checkbox":return Bc;case"radio":return Vc;default:return fi}}}function or(e,t,n,r,i){const l=Kc(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const Gc=Be({patchProp:Hc},Sc);let wl;function Zc(){return wl||(wl=Za(Gc))}const Jc=(...e)=>{const t=Zc().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Qc(r);if(!i)return;const s=t._component;!le(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,Yc(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function Yc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qc(e){return ye(e)?document.querySelector(e):e}function _n(e){return ls()?(Jo(e),!0):!1}function pt(e){return typeof e=="function"?e():q(e)}const ar=typeof window<"u"&&typeof document<"u",Xc=Object.prototype.toString,eu=e=>Xc.call(e)==="[object Object]",cr=()=>{};function kl(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const xl=e=>e();function tu(e,t={}){let n,r,i=cr;const s=o=>{clearTimeout(o),i(),i=cr};return o=>{const a=pt(e),c=pt(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(o())):new Promise((u,h)=>{i=t.rejectOnCancel?h:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(o())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(o())},a)})}}function nu(e=xl){const t=W(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:fn(t),pause:n,resume:r,eventFilter:i}}function _l(e){return mc()}function ru(e,t=200,n={}){return kl(tu(t,n),e)}function iu(e,t,n={}){const{eventFilter:r=xl,...i}=n;return Ke(e,kl(r,t),i)}function su(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=nu(r);return{stop:iu(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function hi(e,t=!0,n){_l()?mn(e,n):t?e():Kt(e)}function lu(e,t){_l()&&Yr(e,t)}function ou(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=W(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function c(){const u=pt(t);u<=0||(l.value=!0,i&&e(),o(),l.value&&(s=setInterval(e,u)))}if(r&&ar&&c(),xe(t)||typeof t=="function"){const u=Ke(t,()=>{l.value&&ar&&c()});_n(u)}return _n(a),{isActive:l,pause:a,resume:c}}const ur=ar?window:void 0,Cl=ar?window.document:void 0;function au(e){var t;const n=pt(e);return(t=n==null?void 0:n.$el)!=null?t:n}function fr(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=ur):[t,n,r,i]=e,!t)return cr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],l=()=>{s.forEach(u=>u()),s.length=0},o=(u,h,d,g)=>(u.addEventListener(h,d,g),()=>u.removeEventListener(h,d,g)),a=Ke(()=>[au(t),pt(i)],([u,h])=>{if(l(),!u)return;const d=eu(h)?{...h}:h;s.push(...n.flatMap(g=>r.map(k=>o(u,g,k,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return _n(c),c}function cu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=ur}=t,s=W(!1),l=r?1e3/r:null;let o=0,a=null;function c(d){if(!s.value||!i)return;o||(o=d);const g=d-o;if(l&&g<l){a=i.requestAnimationFrame(c);return}o=d,e({delta:g,timestamp:d}),a=i.requestAnimationFrame(c)}function u(){!s.value&&i&&(s.value=!0,o=0,a=i.requestAnimationFrame(c))}function h(){s.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&u(),_n(h),{isActive:fn(s),pause:h,resume:u}}const hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},dr="__vueuse_ssr_handlers__",uu=fu();function fu(){return dr in hr||(hr[dr]=hr[dr]||{}),hr[dr]}function hu(e,t){return uu[e]||t}function du(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 pu={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()}},$l="vueuse-storage";function Yt(e,t,n,r={}){var i;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:h=ur,eventFilter:d,onError:g=Z=>{console.error(Z)},initOnMounted:k}=r,v=(u?va:W)(typeof t=="function"?t():t);if(!n)try{n=hu("getDefaultStorage",()=>{var Z;return(Z=ur)==null?void 0:Z.localStorage})()}catch(Z){g(Z)}if(!n)return v;const $=pt(t),b=du($),C=(i=r.serializer)!=null?i:pu[b],{pause:U,resume:T}=su(v,()=>K(v.value),{flush:s,deep:l,eventFilter:d});h&&o&&hi(()=>{n instanceof Storage?fr(h,"storage",G):fr(h,$l,je),k&&G()}),k||G();function j(Z,ie){if(h){const be={key:e,oldValue:Z,newValue:ie,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",be):new CustomEvent($l,{detail:be}))}}function K(Z){try{const ie=n.getItem(e);if(Z==null)j(ie,null),n.removeItem(e);else{const be=C.write(Z);ie!==be&&(n.setItem(e,be),j(ie,be))}}catch(ie){g(ie)}}function z(Z){const ie=Z?Z.newValue:n.getItem(e);if(ie==null)return a&&$!=null&&n.setItem(e,C.write($)),$;if(!Z&&c){const be=C.read(ie);return typeof c=="function"?c(be,$):b==="object"&&!Array.isArray(be)?{...$,...be}:be}else return typeof ie!="string"?ie:C.read(ie)}function G(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){v.value=$;return}if(!(Z&&Z.key!==e)){U();try{(Z==null?void 0:Z.newValue)!==C.write(v.value)&&(v.value=z(Z))}catch(ie){g(ie)}finally{Z?Kt(T):T()}}}}function je(Z){G(Z.detail)}return v}function gu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=W(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?cu(i,{immediate:!0}):ou(i,n,{immediate:!0});return t?{now:r,...s}:r}function mu(e,t=cr,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:h=Cl,attrs:d={}}=n,g=W(null);let k=null;const v=C=>new Promise((U,T)=>{const j=G=>(g.value=G,U(G),G);if(!h){U(!1);return}let K=!1,z=h.querySelector(`script[src="${pt(e)}"]`);z?z.hasAttribute("data-loaded")&&j(z):(z=h.createElement("script"),z.type=s,z.async=l,z.src=pt(e),u&&(z.defer=u),o&&(z.crossOrigin=o),c&&(z.noModule=c),a&&(z.referrerPolicy=a),Object.entries(d).forEach(([G,je])=>z==null?void 0:z.setAttribute(G,je)),K=!0),z.addEventListener("error",G=>T(G)),z.addEventListener("abort",G=>T(G)),z.addEventListener("load",()=>{z.setAttribute("data-loaded","true"),t(z),j(z)}),K&&(z=h.head.appendChild(z)),C||j(z)}),$=(C=!0)=>(k||(k=v(C)),k),b=()=>{if(!h)return;k=null,g.value&&(g.value=null);const C=h.querySelector(`script[src="${pt(e)}"]`);C&&h.head.removeChild(C)};return r&&!i&&hi($),i||lu(b),{scriptTag:g,load:$,unload:b}}let vu=0;function bu(e,t={}){const n=W(!1),{document:r=Cl,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++vu}`}=t,o=W(e);let a=()=>{};const c=()=>{if(!r)return;const h=r.getElementById(l)||r.createElement("style");h.isConnected||(h.id=l,t.media&&(h.media=t.media),r.head.appendChild(h)),!n.value&&(a=Ke(o,d=>{h.textContent=d},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return i&&!s&&hi(c),s||_n(u),{id:l,css:o,unload:u,load:c,isLoaded:fn(n)}}const yu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),wu=e=>{const t=Yt("WALINE_EMOJI",{}),n=yu(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i})},Sl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,ku=e=>Promise.all(e.map(t=>Dt(t)?wu(Gi(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:i,folder:s,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:i,icon:Sl(l,s,o,a),items:c.map(u=>{const h=`${o}${u}`;return n.map[h]=Sl(u,s,o,a),h})})}),n}),Rl=e=>{e.name!=="AbortError"&&console.error(e.message)},di=e=>e instanceof HTMLElement?e:Dt(e)?document.querySelector(e):null,xu=e=>e.type.includes("image"),Al=e=>{const t=Array.from(e).find(xu);return t?t.getAsFile():null};function pi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Ot=pi();function Tl(e){Ot=e}const Cn={exec:()=>null};function ae(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Le.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}const Le={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")},_u=/^(?:[ \t]*(?:\n|$))+/,Cu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$u=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$n=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Su=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,El=/(?:[*+-]|\d{1,9}[.)])/,Ll=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,El).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/).getRegex(),gi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ru=/^[^\n]+/,mi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Au=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",mi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Tu=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,El).getRegex(),pr="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",vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Eu=ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vi).replace("tag",pr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Il=ae(gi).replace("hr",$n).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",pr).getRegex(),bi={blockquote:ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Il).getRegex(),code:Cu,def:Au,fences:$u,heading:Su,hr:$n,html:Eu,lheading:Ll,list:Tu,newline:_u,paragraph:Il,table:Cn,text:Ru},Ml=ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$n).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",pr).getRegex(),Lu={...bi,table:Ml,paragraph:ae(gi).replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ml).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",pr).getRegex()},Iu={...bi,html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vi).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:Cn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ae(gi).replace("hr",$n).replace("heading",` *#{1,6} *[^
27
+ ]`).replace("lheading",Ll).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ol=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Pl=/^( {2,}|\\)\n(?!\s*$)/,Ou=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Sn=new RegExp("\\p{P}\\p{S}","u"),Pu=ae(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Sn).getRegex(),ju=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,zu=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Sn).getRegex(),Fu=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Sn).getRegex(),Du=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Sn).getRegex(),Hu=ae(/\\([punct])/,"gu").replace(/punct/g,Sn).getRegex(),Uu=ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Nu=ae(vi).replace("(?:-->|$)","-->").getRegex(),Bu=ae("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Nu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Vu=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),jl=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",gr).replace("ref",mi).getRegex(),zl=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",mi).getRegex(),Wu=ae("reflink|nolink(?!\\()","g").replace("reflink",jl).replace("nolink",zl).getRegex(),yi={_backpedal:Cn,anyPunctuation:Hu,autolink:Uu,blockSkip:ju,br:Pl,code:Mu,del:Cn,emStrongLDelim:zu,emStrongRDelimAst:Fu,emStrongRDelimUnd:Du,escape:Ol,link:Vu,nolink:zl,punctuation:Pu,reflink:jl,reflinkSearch:Wu,tag:Bu,text:Ou,url:Cn},qu={...yi,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",gr).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gr).getRegex()},wi={...yi,escape:ae(Ol).replace("])","~|])").getRegex(),url:ae(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ku={...wi,br:ae(Pl).replace("{2,}","*").getRegex(),text:ae(wi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mr={normal:bi,gfm:Lu,pedantic:Iu},Rn={normal:yi,gfm:wi,breaks:Ku,pedantic:qu},Gu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Fl=e=>Gu[e];function it(e,t){if(t){if(Le.escapeTest.test(e))return e.replace(Le.escapeReplace,Fl)}else if(Le.escapeTestNoEncode.test(e))return e.replace(Le.escapeReplaceNoEncode,Fl);return e}function Dl(e){try{e=encodeURI(e).replace(Le.percentDecode,"%")}catch{return null}return e}function Hl(e,t){var s;const n=e.replace(Le.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Le.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((s=r.at(-1))!=null&&s.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Le.slashPipe,"|");return r}function An(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r;){const s=e.charAt(r-i-1);if(s===t&&!n)i++;else if(s!==t&&n)i++;else break}return e.slice(0,r-i)}function Zu(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-1}function Ul(e,t,n,r,i){const s=t.href,l=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:s,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:l,text:o}}function Ju(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const i=r[1];return t.split(`
28
+ `).map(s=>{const l=s.match(n.other.beginningSpace);if(l===null)return s;const[o]=l;return o.length>=i.length?s.slice(i.length):s}).join(`
29
+ `)}class vr{options;rules;lexer;constructor(t){this.options=t||Ot}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:An(r,`
30
+ `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=Ju(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const i=An(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:An(n[0],`
31
+ `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=An(n[0],`
31
32
  `).split(`
32
- `),i="",s="";const l=[];for(;r.length>0;){let o=!1;const a=[];let u;for(u=0;u<r.length;u++)if(/^ {0,3}>/.test(r[u]))a.push(r[u]),o=!0;else if(!o)a.push(r[u]);else break;r=r.slice(u);const c=a.join(`
33
- `),h=c.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
34
- $1`).replace(/^ {0,3}>[ \t]?/gm,"");i=i?`${i}
35
- ${c}`:c,s=s?`${s}
36
- ${h}`:h;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=p,r.length===0)break;const m=l[l.length-1];if((m==null?void 0:m.type)==="code")break;if((m==null?void 0:m.type)==="blockquote"){const w=m,x=w.raw+`
33
+ `),i="",s="";const l=[];for(;r.length>0;){let o=!1;const a=[];let c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),o=!0;else if(!o)a.push(r[c]);else break;r=r.slice(c);const u=a.join(`
34
+ `),h=u.replace(this.rules.other.blockquoteSetextReplace,`
35
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
36
+ ${u}`:u,s=s?`${s}
37
+ ${h}`:h;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,l,!0),this.lexer.state.top=d,r.length===0)break;const g=l.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){const k=g,v=k.raw+`
37
38
  `+r.join(`
38
- `),C=this.blockquote(x);l[l.length-1]=C,i=i.substring(0,i.length-w.raw.length)+C.raw,s=s.substring(0,s.length-w.text.length)+C.text;break}else if((m==null?void 0:m.type)==="list"){const w=m,x=w.raw+`
39
+ `),$=this.blockquote(v);l[l.length-1]=$,i=i.substring(0,i.length-k.raw.length)+$.raw,s=s.substring(0,s.length-k.text.length)+$.text;break}else if((g==null?void 0:g.type)==="list"){const k=g,v=k.raw+`
39
40
  `+r.join(`
40
- `),C=this.list(x);l[l.length-1]=C,i=i.substring(0,i.length-m.raw.length)+C.raw,s=s.substring(0,s.length-w.raw.length)+C.raw,r=x.substring(l[l.length-1].raw.length).split(`
41
- `);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const i=r.length>1,s={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const l=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;t;){let a=!1,u="",c="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let h=n[2].split(`
42
- `,1)[0].replace(/^\t+/,v=>" ".repeat(3*v.length)),p=t.split(`
43
- `,1)[0],m=!h.trim(),w=0;if(this.options.pedantic?(w=2,c=h.trimStart()):m?w=n[1].length+1:(w=n[2].search(/[^ ]/),w=w>4?1:w,c=h.slice(w),w+=n[1].length),m&&/^[ \t]*$/.test(p)&&(u+=p+`
44
- `,t=t.substring(p.length+1),a=!0),!a){const v=new RegExp(`^ {0,${Math.min(3,w-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),$=new RegExp(`^ {0,${Math.min(3,w-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),H=new RegExp(`^ {0,${Math.min(3,w-1)}}(?:\`\`\`|~~~)`),A=new RegExp(`^ {0,${Math.min(3,w-1)}}#`);for(;t;){const z=t.split(`
45
- `,1)[0];let W;if(p=z,this.options.pedantic?(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," "),W=p):W=p.replace(/\t/g," "),H.test(p)||A.test(p)||v.test(p)||$.test(p))break;if(W.search(/[^ ]/)>=w||!p.trim())c+=`
46
- `+W.slice(w);else{if(m||h.replace(/\t/g," ").search(/[^ ]/)>=4||H.test(h)||A.test(h)||$.test(h))break;c+=`
47
- `+p}!m&&!p.trim()&&(m=!0),u+=z+`
48
- `,t=t.substring(z.length+1),h=W.slice(w)}}s.loose||(o?s.loose=!0:/\n[ \t]*\n[ \t]*$/.test(u)&&(o=!0));let x=null,C;this.options.gfm&&(x=/^\[[ xX]\] /.exec(c),x&&(C=x[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:u,task:!!x,checked:C,loose:!1,text:c,tokens:[]}),s.raw+=u}s.items[s.items.length-1].raw=s.items[s.items.length-1].raw.trimEnd(),s.items[s.items.length-1].text=s.items[s.items.length-1].text.trimEnd(),s.raw=s.raw.trimEnd();for(let a=0;a<s.items.length;a++)if(this.lexer.state.top=!1,s.items[a].tokens=this.lexer.blockTokens(s.items[a].text,[]),!s.loose){const u=s.items[a].tokens.filter(h=>h.type==="space"),c=u.length>0&&u.some(h=>/\n.*\n/.test(h.raw));s.loose=c}if(s.loose)for(let a=0;a<s.items.length;a++)s.items[a].loose=!0;return s}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(t){const n=this.rules.block.table.exec(t);if(!n||!/[:|]/.test(n[2]))return;const r=Ql(n[1]),i=n[2].replace(/^\||\| *$/g,"").split("|"),s=n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
49
- `):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const o of i)/^ *-+: *$/.test(o)?l.align.push("right"):/^ *:-+: *$/.test(o)?l.align.push("center"):/^ *:-+ *$/.test(o)?l.align.push("left"):l.align.push(null);for(let o=0;o<r.length;o++)l.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:l.align[o]});for(const o of s)l.rows.push(Ql(o,l.header.length).map((a,u)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:l.align[u]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
50
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:Ue(n[1])}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const l=Sn(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=Qu(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);l&&(i=l[1],s=l[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),Jl(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(/\s+/g," "),s=n[i.toLowerCase()];if(!s){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Jl(r,s,r[0],this.lexer)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...i[0]].length-1;let o,a,u=l,c=0;const h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+l);(i=h.exec(n))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){u+=a;continue}else if((i[5]||i[6])&&l%3&&!((l+a)%3)){c+=a;continue}if(u-=a,u>0)continue;a=Math.min(a,a+u+c);const p=[...i[0]][0].length,m=t.slice(0,l+i.index+p+a);if(Math.min(l,a)%2){const x=m.slice(1,-1);return{type:"em",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}const w=m.slice(2,-2);return{type:"strong",raw:m,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const i=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return i&&s&&(r=r.substring(1,r.length-1)),r=Ue(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=Ue(n[1]),i="mailto:"+r):(r=Ue(n[1]),i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let i,s;if(n[2]==="@")i=Ue(n[0]),s="mailto:"+i;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);i=Ue(n[0]),n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Ue(n[0]),{type:"text",raw:n[0],text:r}}}}const Yu=/^(?:[ \t]*(?:\n|$))+/,Xu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ef=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,En=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,tf=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Yl=/(?:[*+-]|\d{1,9}[.)])/,Xl=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Yl).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/).getRegex(),Ci=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,nf=/^[^\n]+/,Si=/(?!\s*\])(?:\\.|[^\[\]\\])+/,rf=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Si).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),sf=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Yl).getRegex(),wr="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",Ei=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,lf=ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ei).replace("tag",wr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),eo=ae(Ci).replace("hr",En).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",wr).getRegex(),Ti={blockquote:ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",eo).getRegex(),code:Xu,def:rf,fences:ef,heading:tf,hr:En,html:lf,lheading:Xl,list:sf,newline:Yu,paragraph:eo,table:Cn,text:nf},to=ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",En).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",wr).getRegex(),of={...Ti,table:to,paragraph:ae(Ci).replace("hr",En).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",to).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",wr).getRegex()},af={...Ti,html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ei).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:Cn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ae(Ci).replace("hr",En).replace("heading",` *#{1,6} *[^
51
- ]`).replace("lheading",Xl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},no=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,cf=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ro=/^( {2,}|\\)\n(?!\s*$)/,uf=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Tn="\\p{P}\\p{S}",ff=ae(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Tn).getRegex(),hf=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,df=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Tn).getRegex(),pf=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Tn).getRegex(),gf=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Tn).getRegex(),mf=ae(/\\([punct])/,"gu").replace(/punct/g,Tn).getRegex(),vf=ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),bf=ae(Ei).replace("(?:-->|$)","-->").getRegex(),yf=ae("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",bf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,wf=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",kr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),io=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",kr).replace("ref",Si).getRegex(),so=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",Si).getRegex(),kf=ae("reflink|nolink(?!\\()","g").replace("reflink",io).replace("nolink",so).getRegex(),Ai={_backpedal:Cn,anyPunctuation:mf,autolink:vf,blockSkip:hf,br:ro,code:cf,del:Cn,emStrongLDelim:df,emStrongRDelimAst:pf,emStrongRDelimUnd:gf,escape:no,link:wf,nolink:so,punctuation:ff,reflink:io,reflinkSearch:kf,tag:yf,text:uf,url:Cn},xf={...Ai,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",kr).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",kr).getRegex()},Ri={...Ai,escape:ae(no).replace("])","~|])").getRegex(),url:ae(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},_f={...Ri,br:ae(ro).replace("{2,}","*").getRegex(),text:ae(Ri.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xr={normal:Ti,gfm:of,pedantic:af},An={normal:Ai,gfm:Ri,breaks:_f,pedantic:xf};class Je{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ot,this.options.tokenizer=this.options.tokenizer||new yr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:xr.normal,inline:An.normal};this.options.pedantic?(n.block=xr.pedantic,n.inline=An.pedantic):this.options.gfm&&(n.block=xr.gfm,this.options.breaks?n.inline=An.breaks:n.inline=An.gfm),this.tokenizer.rules=n}static get rules(){return{block:xr,inline:An}}static lex(t,n){return new Je(n).lex(t)}static lexInline(t,n){return new Je(n).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,`
52
- `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){this.options.pedantic&&(t=t.replace(/\t/g," ").replace(/^ +$/gm,""));let i,s,l;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(i=o.call({lexer:this},t,n))?(t=t.substring(i.raw.length),n.push(i),!0):!1))){if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length),i.raw.length===1&&n.length>0?n[n.length-1].raw+=`
53
- `:n.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
54
- `+i.raw,s.text+=`
55
- `+i.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length),s=n[n.length-1],s&&(s.type==="paragraph"||s.type==="text")?(s.raw+=`
56
- `+i.raw,s.text+=`
57
- `+i.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),n.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),n.push(i);continue}if(l=t,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const a=t.slice(1);let u;this.options.extensions.startBlock.forEach(c=>{u=c.call({lexer:this},a),typeof u=="number"&&u>=0&&(o=Math.min(o,u))}),o<1/0&&o>=0&&(l=t.substring(0,o+1))}if(this.state.top&&(i=this.tokenizer.paragraph(l))){s=n[n.length-1],r&&(s==null?void 0:s.type)==="paragraph"?(s.raw+=`
58
- `+i.raw,s.text+=`
59
- `+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(i),r=l.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length),s=n[n.length-1],s&&s.type==="text"?(s.raw+=`
60
- `+i.raw,s.text+=`
61
- `+i.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):n.push(i);continue}if(t){const o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){let r,i,s,l=t,o,a,u;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)c.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(l))!=null;)l=l.slice(0,o.index)+"++"+l.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;t;)if(a||(u=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(c=>(r=c.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(t)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(t,l,u)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(t)){t=t.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(t)){t=t.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),n.push(r);continue}if(s=t,this.options.extensions&&this.options.extensions.startInline){let c=1/0;const h=t.slice(1);let p;this.options.extensions.startInline.forEach(m=>{p=m.call({lexer:this},h),typeof p=="number"&&p>=0&&(c=Math.min(c,p))}),c<1/0&&c>=0&&(s=t.substring(0,c+1))}if(r=this.tokenizer.inlineText(s)){t=t.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),a=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return n}}class _r{options;parser;constructor(t){this.options=t||Ot}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const i=(l=(n||"").match(/^\S*/))==null?void 0:l[0],s=t.replace(/\n$/,"")+`
62
- `;return i?'<pre><code class="language-'+Ue(i)+'">'+(r?s:Ue(s,!0))+`</code></pre>
63
- `:"<pre><code>"+(r?s:Ue(s,!0))+`</code></pre>
41
+ `),$=this.list(v);l[l.length-1]=$,i=i.substring(0,i.length-g.raw.length)+$.raw,s=s.substring(0,s.length-k.raw.length)+$.raw,r=v.substring(l.at(-1).raw.length).split(`
42
+ `);continue}}return{type:"blockquote",raw:i,tokens:l,text:s}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const i=r.length>1,s={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const l=this.rules.other.listItemRegex(r);let o=!1;for(;t;){let c=!1,u="",h="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let d=n[2].split(`
43
+ `,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),g=t.split(`
44
+ `,1)[0],k=!d.trim(),v=0;if(this.options.pedantic?(v=2,h=d.trimStart()):k?v=n[1].length+1:(v=n[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,h=d.slice(v),v+=n[1].length),k&&this.rules.other.blankLine.test(g)&&(u+=g+`
45
+ `,t=t.substring(g.length+1),c=!0),!c){const C=this.rules.other.nextBulletRegex(v),U=this.rules.other.hrRegex(v),T=this.rules.other.fencesBeginRegex(v),j=this.rules.other.headingBeginRegex(v),K=this.rules.other.htmlBeginRegex(v);for(;t;){const z=t.split(`
46
+ `,1)[0];let G;if(g=z,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),G=g):G=g.replace(this.rules.other.tabCharGlobal," "),T.test(g)||j.test(g)||K.test(g)||C.test(g)||U.test(g))break;if(G.search(this.rules.other.nonSpaceChar)>=v||!g.trim())h+=`
47
+ `+G.slice(v);else{if(k||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(d)||j.test(d)||U.test(d))break;h+=`
48
+ `+g}!k&&!g.trim()&&(k=!0),u+=z+`
49
+ `,t=t.substring(z.length+1),d=G.slice(v)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let $=null,b;this.options.gfm&&($=this.rules.other.listIsTask.exec(h),$&&(b=$[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!$,checked:b,loose:!1,text:h,tokens:[]}),s.raw+=u}const a=s.items.at(-1);a&&(a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd()),s.raw=s.raw.trimEnd();for(let c=0;c<s.items.length;c++)if(this.lexer.state.top=!1,s.items[c].tokens=this.lexer.blockTokens(s.items[c].text,[]),!s.loose){const u=s.items[c].tokens.filter(d=>d.type==="space"),h=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));s.loose=h}if(s.loose)for(let c=0;c<s.items.length;c++)s.items[c].loose=!0;return s}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(t){var o;const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=Hl(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(o=n[3])!=null&&o.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
50
+ `):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const a of i)this.rules.other.tableAlignRight.test(a)?l.align.push("right"):this.rules.other.tableAlignCenter.test(a)?l.align.push("center"):this.rules.other.tableAlignLeft.test(a)?l.align.push("left"):l.align.push(null);for(let a=0;a<r.length;a++)l.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:l.align[a]});for(const a of s)l.rows.push(Hl(a,l.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
51
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=An(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=Zu(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Ul(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=n[i.toLowerCase()];if(!s){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Ul(r,s,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...i[0]].length-1;let o,a,c=l,u=0;const h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+l);(i=h.exec(n))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){c+=a;continue}else if((i[5]||i[6])&&l%3&&!((l+a)%3)){u+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+u);const d=[...i[0]][0].length,g=t.slice(0,l+i.index+d+a);if(Math.min(l,a)%2){const v=g.slice(1,-1);return{type:"em",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}const k=g.slice(2,-2);return{type:"strong",raw:g,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(r),s=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&s&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=n[1],i="mailto:"+r):(r=n[1],i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let i,s;if(n[2]==="@")i=n[0],s="mailto:"+i;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);i=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class Je{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ot,this.options.tokenizer=this.options.tokenizer||new vr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Le,block:mr.normal,inline:Rn.normal};this.options.pedantic?(n.block=mr.pedantic,n.inline=Rn.pedantic):this.options.gfm&&(n.block=mr.gfm,this.options.breaks?n.inline=Rn.breaks:n.inline=Rn.gfm),this.tokenizer.rules=n}static get rules(){return{block:mr,inline:Rn}}static lex(t,n){return new Je(n).lex(t)}static lexInline(t,n){return new Je(n).inlineTokens(t)}lex(t){t=t.replace(Le.carriageReturn,`
52
+ `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,s,l;for(this.options.pedantic&&(t=t.replace(Le.tabCharGlobal," ").replace(Le.spaceLine,""));t;){let o;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.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);const c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
53
+ `:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
54
+ `+o.raw,c.text+=`
55
+ `+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);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
56
+ `+o.raw,c.text+=`
57
+ `+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});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;const u=t.slice(1);let h;this.options.extensions.startBlock.forEach(d=>{h=d.call({lexer:this},u),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(a=t.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(a))){const c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=`
58
+ `+o.raw,c.text+=`
59
+ `+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);const c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
60
+ `+o.raw,c.text+=`
61
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){const 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 o,a,c;let r=t,i=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s=!1,l="";for(;t;){s||(l=""),s=!1;let u;if((a=(o=this.options.extensions)==null?void 0:o.inline)!=null&&a.some(d=>(u=d.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const d=n.at(-1);u.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,l)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let h=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0;const g=t.slice(1);let k;this.options.extensions.startInline.forEach(v=>{k=v.call({lexer:this},g),typeof k=="number"&&k>=0&&(d=Math.min(d,k))}),d<1/0&&d>=0&&(h=t.substring(0,d+1))}if(u=this.tokenizer.inlineText(h)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),s=!0;const d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class br{options;parser;constructor(t){this.options=t||Ot}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const i=(l=(n||"").match(Le.notSpaceStart))==null?void 0:l[0],s=t.replace(Le.endingNewline,"")+`
62
+ `;return i?'<pre><code class="language-'+it(i)+'">'+(r?s:it(s,!0))+`</code></pre>
63
+ `:"<pre><code>"+(r?s:it(s,!0))+`</code></pre>
64
64
  `}blockquote({tokens:t}){return`<blockquote>
65
65
  ${this.parser.parse(t)}</blockquote>
66
66
  `}html({text:t}){return t}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
67
67
  `}hr(t){return`<hr>
68
68
  `}list(t){const n=t.ordered,r=t.start;let i="";for(let o=0;o<t.items.length;o++){const a=t.items[o];i+=this.listitem(a)}const s=n?"ol":"ul",l=n&&r!==1?' start="'+r+'"':"";return"<"+s+l+`>
69
69
  `+i+"</"+s+`>
70
- `}listitem(t){let n="";if(t.task){const r=this.checkbox({checked:!!t.checked});t.loose?t.tokens.length>0&&t.tokens[0].type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=r+" "+t.tokens[0].tokens[0].text)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" "}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
70
+ `}listitem(t){var r;let n="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+it(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):n+=i+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
71
71
  `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
72
72
  `}table(t){let n="",r="";for(let s=0;s<t.header.length;s++)r+=this.tablecell(t.header[s]);n+=this.tablerow({text:r});let i="";for(let s=0;s<t.rows.length;s++){const l=t.rows[s];r="";for(let o=0;o<l.length;o++)r+=this.tablecell(l[o]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
73
73
  <thead>
@@ -76,9 +76,9 @@ ${this.parser.parse(t)}</blockquote>
76
76
  `}tablerow({text:t}){return`<tr>
77
77
  ${t}</tr>
78
78
  `}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
79
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${t}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=Zl(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return n&&(l+=' title="'+n+'"'),l+=">"+i+"</a>",l}image({href:t,title:n,text:r}){const i=Zl(t);if(i===null)return r;t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${n}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):t.text}}class Ii{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Ye{options;renderer;textRenderer;constructor(t){this.options=t||Ot,this.options.renderer=this.options.renderer||new _r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ii}static parse(t,n){return new Ye(n).parse(t)}static parseInline(t,n){return new Ye(n).parseInline(t)}parse(t,n=!0){let r="";for(let i=0;i<t.length;i++){const s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=s,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){r+=a||"";continue}}const l=s;switch(l.type){case"space":{r+=this.renderer.space(l);continue}case"hr":{r+=this.renderer.hr(l);continue}case"heading":{r+=this.renderer.heading(l);continue}case"code":{r+=this.renderer.code(l);continue}case"table":{r+=this.renderer.table(l);continue}case"blockquote":{r+=this.renderer.blockquote(l);continue}case"list":{r+=this.renderer.list(l);continue}case"html":{r+=this.renderer.html(l);continue}case"paragraph":{r+=this.renderer.paragraph(l);continue}case"text":{let o=l,a=this.renderer.text(o);for(;i+1<t.length&&t[i+1].type==="text";)o=t[++i],a+=`
80
- `+this.renderer.text(o);n?r+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a}]}):r+=a;continue}default:{const o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(t,n){n=n||this.renderer;let r="";for(let i=0;i<t.length;i++){const s=t[i];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=o||"";continue}}const l=s;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{const o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}}class Rn{options;block;constructor(t){this.options=t||Ot}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Je.lex:Je.lexInline}provideParser(){return this.block?Ye.parse:Ye.parseInline}}Io(Rn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class lo{defaults=$i();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ye;Renderer=_r;TextRenderer=Ii;Lexer=Je;Tokenizer=yr;Hooks=Rn;constructor(...t){this.use(...t)}walkTokens(t,n){var i,s;let r=[];for(const l of t)switch(r=r.concat(n.call(this,l)),l.type){case"table":{const o=l;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const u of a)r=r.concat(this.walkTokens(u.tokens,n));break}case"list":{const o=l;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const u=o[a].flat(1/0);r=r.concat(this.walkTokens(u,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const l=n.renderers[s.name];l?n.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[s.level];l?l.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new _r(this.defaults);for(const l in r.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],u=s[o];s[o]=(...c)=>{let h=a.apply(s,c);return h===!1&&(h=u.apply(s,c)),h||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new yr(this.defaults);for(const l in r.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=r.tokenizer[o],u=s[o];s[o]=(...c)=>{let h=a.apply(s,c);return h===!1&&(h=u.apply(s,c)),h}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new Rn;for(const l in r.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=r.hooks[o],u=s[o];Rn.passThroughHooks.has(l)?s[o]=c=>{if(this.defaults.async)return Promise.resolve(a.call(s,c)).then(p=>u.call(s,p));const h=a.call(s,c);return u.call(s,h)}:s[o]=(...c)=>{let h=a.apply(s,c);return h===!1&&(h=u.apply(s,c)),h}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,l=r.walkTokens;i.walkTokens=function(o){let a=[];return a.push(l.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Je.lex(t,n??this.defaults)}parser(t,n){return Ye.parse(t,n??this.defaults)}parseMarkdown(t){return(r,i)=>{const s={...i},l={...this.defaults,...s},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return o(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 r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?Je.lex:Je.lexInline,u=l.hooks?l.hooks.provideParser():t?Ye.parse:Ye.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(c=>a(c,l)).then(c=>l.hooks?l.hooks.processAllTokens(c):c).then(c=>l.walkTokens?Promise.all(this.walkTokens(c,l.walkTokens)).then(()=>c):c).then(c=>u(c,l)).then(c=>l.hooks?l.hooks.postprocess(c):c).catch(o);try{l.hooks&&(r=l.hooks.preprocess(r));let c=a(r,l);l.hooks&&(c=l.hooks.processAllTokens(c)),l.walkTokens&&this.walkTokens(c,l.walkTokens);let h=u(c,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(c){return o(c)}}}onError(t,n){return r=>{if(r.message+=`
81
- Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Ue(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const jt=new lo;function me(e,t){return jt.parse(e,t)}me.options=me.setOptions=function(e){return jt.setOptions(e),me.defaults=jt.defaults,Wl(me.defaults),me},me.getDefaults=$i,me.defaults=Ot,me.use=function(...e){return jt.use(...e),me.defaults=jt.defaults,Wl(me.defaults),me},me.walkTokens=function(e,t){return jt.walkTokens(e,t)},me.parseInline=jt.parseInline,me.Parser=Ye,me.parser=Ye.parse,me.Renderer=_r,me.TextRenderer=Ii,me.Lexer=Je,me.lexer=Je.lex,me.Tokenizer=yr,me.Hooks=Rn,me.parse=me;function $f(e){if(typeof e=="function"&&(e={highlight:e}),!e||typeof e.highlight!="function")throw new Error("Must provide highlight function");return typeof e.langPrefix!="string"&&(e.langPrefix="language-"),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=oo(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(ao(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.");ao(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=oo(n),s=i?` class="${e.langPrefix}${ho(i)}"`:"";return t=t.replace(/\n$/,""),`<pre><code${s}>${r?t:ho(t,!0)}
82
- </code></pre>`}}}}function oo(e){return(e||"").match(/\S*/)[0]}function ao(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const co=/[&<>"']/,Cf=new RegExp(co.source,"g"),uo=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Sf=new RegExp(uo.source,"g"),Ef={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},fo=e=>Ef[e];function ho(e,t){if(t){if(co.test(e))return e.replace(Cf,fo)}else if(uo.test(e))return e.replace(Sf,fo);return e}const Tf=/\$.*?\$/,Af=/^\$(.*?)\$/,Rf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,If=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Rf.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(Tf);return n!==-1?n:t.length},tokenizer(t){const n=Af.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],po=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),Lf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new lo;if(i.setOptions({breaks:!0}),n&&i.use($f({highlight:n})),r){const s=If(r);i.use({extensions:s})}return i.parse(po(e,t))},Li=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},Mf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Of=e=>e.match(/[\u4E00-\u9FD5]/gu),jf=e=>{var t,n;return(((t=Mf(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=Of(e))==null?void 0:n.length)??0)},zf=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},go=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const i=new AbortController,s=document.querySelectorAll(n);return s.length&&Fi({serverURL:Fn(e),paths:Array.from(s).map(l=>rs(Li(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Vl),i.abort.bind(i)},mo=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),ne("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),Pf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),Ff=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),Df=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),ne("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),Uf=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),Hf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),ne("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),Nf=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),Vf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),Bf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),Wf=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),In=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),qf=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ne("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Kf=()=>Jt("WALINE_USER_META",{nick:"",mail:"",link:""}),Gf=()=>Jt("WALINE_COMMENT_BOX_EDITOR",""),Zf="WALINE_LIKE";let vo=null;const bo=()=>vo??(vo=Jt(Zf,[])),Qf="WALINE_REACTION";let yo=null;const Jf=()=>yo??(yo=Jt(Qf,{}));var Yt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},wo={},Xt={},Ln={},Yf=Yt&&Yt.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function o(c){try{u(r.next(c))}catch(h){l(h)}}function a(c){try{u(r.throw(c))}catch(h){l(h)}}function u(c){c.done?s(c.value):i(c.value).then(o,a)}u((r=r.apply(e,t||[])).next())})},Xf=Yt&&Yt.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(u){return function(c){return a([u,c])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){n.label=u[1];break}if(u[0]===6&&n.label<s[1]){n.label=s[1],s=u;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(u);break}s[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.ReCaptchaInstance=void 0;var eh=function(){function e(t,n,r){this.siteKey=t,this.recaptchaID=n,this.recaptcha=r,this.styleContainer=null}return e.prototype.execute=function(t){return Yf(this,void 0,void 0,function(){var n;return Xf(this,function(r){switch(r.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:t})]:[3,2];case 1:return n=r.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:t})];case 3:n=r.sent(),r.label=4;case 4:return[2,n]}})})},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();Ln.ReCaptchaInstance=eh;var Mi=Yt&&Yt.__assign||function(){return Mi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Mi.apply(this,arguments)};Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.getInstance=Xt.load=void 0;var th=Ln,wt;(function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"})(wt||(wt={}));var ko=function(){function e(){}return e.load=function(t,n){if(n===void 0&&(n={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===wt.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===wt.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(i,s){e.successfulLoadingConsumers.push(function(l){return i(l)}),e.errorLoadingRunnable.push(function(l){return s(l)})});e.instanceSiteKey=t,e.setLoadingState(wt.LOADING);var r=new e;return new Promise(function(i,s){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then(function(){e.setLoadingState(wt.LOADED);var l=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),o=new th.ReCaptchaInstance(t,l,grecaptcha);e.successfulLoadingConsumers.forEach(function(a){return a(o)}),e.successfulLoadingConsumers=[],n.autoHideBadge&&o.hideBadge(),e.instance=o,i(o)}).catch(function(l){e.errorLoadingRunnable.forEach(function(o){return o(l)}),e.errorLoadingRunnable=[],s(l)})})},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return e.loadingState===null?wt.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,i,s){var l=this;n===void 0&&(n=!1),r===void 0&&(r=!1),i===void 0&&(i={}),s===void 0&&(s="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script",""),o.setAttribute("async",""),o.setAttribute("defer","");var a="https://www.google.com/recaptcha/api.js";n?r?a="https://recaptcha.net/recaptcha/enterprise.js":a="https://recaptcha.net/recaptcha/api.js":r&&(a="https://www.google.com/recaptcha/enterprise.js"),s&&(a=s),i.render&&(i.render=void 0);var u=this.buildQueryString(i);return o.src=a+"?render=explicit"+u,new Promise(function(c,h){o.addEventListener("load",l.waitForScriptToLoad(function(){c(o)},r),!1),o.onerror=function(p){e.setLoadingState(wt.NOT_LOADED),h(p)},document.head.appendChild(o)})},e.prototype.buildQueryString=function(t){var n=Object.keys(t);return n.length<1?"":"&"+Object.keys(t).filter(function(r){return!!t[r]}).map(function(r){return r+"="+t[r]}).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){window.grecaptcha===void 0?setTimeout(function(){r.waitForScriptToLoad(t,n)},e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready(function(){t()}):window.grecaptcha.ready(function(){t()})}},e.prototype.doExplicitRender=function(t,n,r,i){var s=Mi({sitekey:n},r);return r.container?i?t.enterprise.render(r.container,s):t.render(r.container,s):i?t.enterprise.render(s):t.render(s)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();Xt.load=ko.load,Xt.getInstance=ko.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Xt;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=Ln;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(wo);const xo={},nh=e=>{const t=xo[e]??(xo[e]=wo.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},rh=e=>({execute:async t=>{const{load:n}=Du("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window==null?void 0:window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),ih="WALINE_USER";let _o=null;const $r=()=>_o??(_o=Jt(ih,{})),sh={key:0,class:"wl-reaction"},lh=["textContent"],oh={class:"wl-reaction-list"},ah=["onClick"],ch={class:"wl-reaction-img"},uh=["src","alt"],fh=["textContent"],hh=["textContent"];var dh=gn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Jf(),r=rr("config"),i=q(-1),s=q([]),l=_e(()=>r.value.locale),o=_e(()=>r.value.reaction.length>0),a=_e(()=>{const{reaction:p,path:m}=r.value;return p.map((w,x)=>({icon:w,desc:l.value[`reaction${x}`],active:n.value[m]===x}))});let u;const c=async()=>{if(!o.value)return;const{serverURL:p,lang:m,path:w,reaction:x}=r.value,C=new AbortController;u=C.abort.bind(C);const v=await Er({serverURL:p,lang:m,paths:[w],type:x.map(($,H)=>`reaction${H}`),signal:C.signal});s.value=x.map(($,H)=>v[0][`reaction${H}`])},h=async p=>{if(i.value===-1){const{serverURL:m,lang:w,path:x}=r.value,C=n.value[x];i.value=p,C!==void 0&&(await zn({serverURL:m,lang:w,path:x,type:`reaction${C}`,action:"desc"}),s.value[C]=Math.max(s.value[C]-1,0)),C!==p&&(await zn({serverURL:m,lang:w,path:x,type:`reaction${p}`}),s.value[p]=(s.value[p]||0)+1),C===p?delete n.value[x]:n.value[x]=p,i.value=-1}};return vn(()=>{qe(()=>[r.value.serverURL,r.value.path],()=>{c()},{immediate:!0})}),li(()=>u==null?void 0:u()),(p,m)=>a.value.length?(L(),j("div",sh,[D("div",{class:"wl-reaction-title",textContent:Y(l.value.reactionTitle)},null,8,lh),D("ul",oh,[(L(!0),j(he,null,We(a.value,({active:w,icon:x,desc:C},v)=>(L(),j("li",{key:v,class:ve(["wl-reaction-item",{active:w}]),onClick:$=>h(v)},[D("div",ch,[D("img",{src:x,alt:C},null,8,uh),i.value===v?(L(),ut(K(In),{key:0,class:"wl-reaction-loading"})):(L(),j("div",{key:1,class:"wl-reaction-votes",textContent:Y(s.value[v]||0)},null,8,fh))]),D("div",{class:"wl-reaction-text",textContent:Y(C)},null,8,hh)],10,ah))),128))])])):Q("v-if",!0)}}),Mn=new Map;function ph(e){var t=Mn.get(e);t&&t.destroy()}function gh(e){var t=Mn.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"&&!Mn.has(r)){var i,s=null,l=window.getComputedStyle(r),o=(i=r.value,function(){u({testForHeightReduction:i===""||!r.value.startsWith(i),restoreTextAlign:null}),i=r.value}),a=(function(h){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",c),r.removeEventListener("input",o),window.removeEventListener("resize",c),Object.keys(h).forEach(function(p){return r.style[p]=h[p]}),Mn.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",c),r.addEventListener("input",o),window.addEventListener("resize",c),r.style.overflowX="hidden",r.style.wordWrap="break-word",Mn.set(r,{destroy:a,update:c}),c()}function u(h){var p,m,w=h.restoreTextAlign,x=w===void 0?null:w,C=h.testForHeightReduction,v=C===void 0||C,$=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),v&&(p=function(A){for(var z=[];A&&A.parentNode&&A.parentNode instanceof Element;)A.parentNode.scrollTop&&z.push([A.parentNode,A.parentNode.scrollTop]),A=A.parentNode;return function(){return z.forEach(function(W){var U=W[0],X=W[1];U.style.scrollBehavior="auto",U.scrollTop=X,U.style.scrollBehavior=null})}}(r),r.style.height=""),m=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=m+"px",x&&(r.style.textAlign=x),p&&p(),s!==m&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=m),$!==l.overflow&&!x)){var H=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=H==="start"?"end":"start"),u({restoreTextAlign:H,testForHeightReduction:!0})}}function c(){u({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ph),e},On.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],gh),e});var $o=On;const mh=["data-index"],vh=["src","title","onClick"];var bh=gn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const i=q(null),s=q({}),l=q([]),o=()=>{const p=Math.floor((i.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return p>0?p:1},a=p=>new Array(p).fill(null).map(()=>[]),u=async p=>{var m;if(p>=n.items.length)return;await Kt();const w=Array.from(((m=i.value)==null?void 0:m.children)??[]).reduce((x,C)=>C.getBoundingClientRect().height<x.getBoundingClientRect().height?C:x);l.value[Number(w.dataset.index)].push(p),await u(p+1)},c=async(p=!1)=>{if(l.value.length===o()&&!p)return;l.value=a(o());const m=window.scrollY;await u(0),window.scrollTo({top:m})},h=p=>{s.value[p.target.src]=!0};return vn(()=>{c(!0),r=new ResizeObserver(()=>{c()}),r.observe(i.value),qe(()=>[n.items],()=>{s.value={},c(!0)}),qe(()=>[n.columnWidth,n.gap],()=>{c()})}),Ja(()=>r.unobserve(i.value)),(p,m)=>(L(),j("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:sn({gap:`${p.gap}px`})},[(L(!0),j(he,null,We(l.value,(w,x)=>(L(),j("div",{key:x,class:"wl-gallery-column","data-index":x,style:sn({gap:`${p.gap}px`})},[(L(!0),j(he,null,We(w,C=>(L(),j(he,{key:C},[s.value[p.items[C].src]?Q("v-if",!0):(L(),ut(K(In),{key:0,size:36,style:{margin:"20px auto"}})),D("img",{class:"wl-gallery-item",src:p.items[C].src,title:p.items[C].title,loading:"lazy",onLoad:h,onClick:v=>p.$emit("insert",`![](${p.items[C].src})`)},null,40,vh)],64))),128))],12,mh))),128))],4))}});const yh={key:0,class:"wl-login-info"},wh={class:"wl-avatar"},kh=["title"],xh=["title"],_h=["src"],$h=["title","textContent"],Ch={class:"wl-panel"},Sh=["for","textContent"],Eh=["id","onUpdate:modelValue","name","type"],Th=["placeholder"],Ah={class:"wl-preview"},Rh=["innerHTML"],Ih={class:"wl-footer"},Lh={class:"wl-actions"},Mh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Oh=["title"],jh=["title"],zh=["title","aria-label"],Ph=["title"],Fh={class:"wl-info"},Dh={class:"wl-text-number"},Uh={key:0},Hh=["textContent"],Nh=["textContent"],Vh=["disabled"],Bh=["placeholder"],Wh={key:1,class:"wl-loading"},qh={key:0,class:"wl-tab-wrapper"},Kh=["title","onClick"],Gh=["src","alt"],Zh={key:0,class:"wl-tabs"},Qh=["onClick"],Jh=["src","alt","title"],Yh=["title"];var Co=gn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,i=rr("config"),s=Gf(),l=Kf(),o=$r(),a=q({}),u=q(null),c=q(null),h=q(null),p=q(null),m=q(null),w=q(null),x=q(null),C=q({tabs:[],map:{}}),v=q(0),$=q(!1),H=q(!1),A=q(!1),z=q(""),W=q(0),U=un({loading:!0,list:[]}),X=q(0),Pe=q(!1),G=q(""),se=q(!1),be=q(!1),P=_e(()=>i.value.locale),J=_e(()=>{var O;return!!((O=o.value)!=null&&O.token)}),ce=_e(()=>i.value.imageUploader!==!1),$e=O=>{const T=u.value,V=T.selectionStart,pe=T.selectionEnd||0,f=T.scrollTop;s.value=T.value.substring(0,V)+O+T.value.substring(pe,T.value.length),T.focus(),T.selectionStart=V+O.length,T.selectionEnd=V+O.length,T.scrollTop=f},we=O=>{if(se.value)return;const T=O.key;(O.ctrlKey||O.metaKey)&&T==="Enter"&&He()},ke=O=>{const T=`![${i.value.locale.uploading} ${O.name}]()`;return $e(T),se.value=!0,Promise.resolve().then(()=>i.value.imageUploader(O)).then(V=>{s.value=s.value.replace(T,`\r
83
- ![${O.name}](${V})`)}).catch(V=>{alert(V.message),s.value=s.value.replace(T,"")}).then(()=>{se.value=!1})},Me=O=>{var T;if((T=O.dataTransfer)!=null&&T.items){const V=Bl(O.dataTransfer.items);V&&ce.value&&(ke(V),O.preventDefault())}},kt=O=>{if(O.clipboardData){const T=Bl(O.clipboardData.items);T&&ce.value&&ke(T)}},zt=()=>{const O=c.value;O.files&&ce.value&&ke(O.files[0]).then(()=>{O.value=""})},He=async()=>{var O,T,V,pe,f,d;const{serverURL:g,lang:y,login:b,wordLimit:k,requiredMeta:R,recaptchaV3Key:E,turnstileKey:S}=i.value,_=await zf(),M={comment:G.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:_};if(!n.edit)if((O=o.value)!=null&&O.token)M.nick=o.value.display_name,M.mail=o.value.email,M.link=o.value.url;else{if(b==="force")return;if(R.includes("nick")&&!M.nick)return(T=a.value.nick)==null||T.focus(),alert(P.value.nickError);if(R.includes("mail")&&!M.mail||M.mail&&!Xo(M.mail))return(V=a.value.mail)==null||V.focus(),alert(P.value.mailError);M.nick||(M.nick=P.value.anonymous)}if(!M.comment){(pe=u.value)==null||pe.focus();return}if(!Pe.value)return alert(P.value.wordHint.replace("$0",k[0].toString()).replace("$1",k[1].toString()).replace("$2",W.value.toString()));M.comment=po(M.comment,C.value.map),n.replyId&&n.rootId&&(M.pid=n.replyId,M.rid=n.rootId,M.at=n.replyUser),se.value=!0;try{E&&(M.recaptchaV3=await nh(E).execute("social")),S&&(M.turnstile=await rh(S).execute("social"));const I={serverURL:g,lang:y,token:(f=o.value)==null?void 0:f.token,comment:M},F=await(n.edit?tn({objectId:n.edit.objectId,...I}):zi(I));if(se.value=!1,F.errmsg)return alert(F.errmsg);r("submit",F.data),s.value="",z.value="",await Kt(),n.replyId&&r("cancelReply"),(d=n.edit)!=null&&d.objectId&&r("cancelEdit")}catch(I){se.value=!1,alert(I.message)}},Cr=O=>{O.preventDefault();const{lang:T,serverURL:V}=i.value;Di({serverURL:V,lang:T}).then(pe=>{o.value=pe,(pe.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(pe)),r("log")})},Oi=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Sr=O=>{O.preventDefault();const{lang:T,serverURL:V}=i.value,pe=800,f=800,d=(window.innerWidth-pe)/2,g=(window.innerHeight-f)/2,y=new URLSearchParams({lng:T,token:o.value.token}),b=window.open(`${V}/ui/profile?${y.toString()}`,"_blank",`width=${pe},height=${f},left=${d},top=${g},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);b==null||b.postMessage({type:"TOKEN",data:o.value.token},"*")},Pt=O=>{var T,V,pe,f;!((T=h.value)!=null&&T.contains(O.target))&&!((V=p.value)!=null&&V.contains(O.target))&&($.value=!1),!((pe=m.value)!=null&&pe.contains(O.target))&&!((f=w.value)!=null&&f.contains(O.target))&&(H.value=!1)},Ft=async O=>{var T;const{scrollTop:V,clientHeight:pe,scrollHeight:f}=O.target,d=(pe+V)/f,g=i.value.search,y=((T=x.value)==null?void 0:T.value)??"";d<.9||U.loading||be.value||(U.loading=!0,(g.more&&U.list.length?await g.more(y,U.list.length):await g.search(y)).length?U.list=[...U.list,...g.more&&U.list.length?await g.more(y,U.list.length):await g.search(y)]:be.value=!0,U.loading=!1,setTimeout(()=>{O.target.scrollTop=V},50))},en=Su(O=>{U.list=[],be.value=!1,Ft(O)},300);return qe([i,W],([O,T])=>{const{wordLimit:V}=O;V?T<V[0]&&V[0]!==0?(X.value=V[0],Pe.value=!1):T>V[1]?(X.value=V[1],Pe.value=!1):(X.value=V[1],Pe.value=!0):(X.value=0,Pe.value=!0)},{immediate:!0}),mr("click",Pt),mr("message",({data:O})=>{!O||O.type!=="profile"||(o.value={...o.value,...O.data},[localStorage,sessionStorage].filter(T=>T.getItem("WALINE_USER")).forEach(T=>T.setItem("WALINE_USER",JSON.stringify(o))))}),qe(H,async O=>{var T;if(!O)return;const V=i.value.search;x.value&&(x.value.value=""),U.loading=!0,U.list=await(((T=V.default)==null?void 0:T.call(V))??V.search("")),U.loading=!1}),vn(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),qe(()=>s.value,T=>{const{highlighter:V,texRenderer:pe}=i.value;G.value=T,z.value=Lf(T,{emojiMap:C.value.map,highlighter:V,texRenderer:pe}),W.value=jf(T),T?$o(u.value):$o.destroy(u.value)},{immediate:!0}),qe(()=>i.value.emoji,T=>Bu(T).then(V=>{C.value=V}),{immediate:!0})}),(O,T)=>{var V,pe;return L(),j("div",{key:K(o).token,class:"wl-comment"},[K(i).login!=="disable"&&J.value&&!((V=O.edit)!=null&&V.objectId)?(L(),j("div",yh,[D("div",wh,[D("button",{type:"submit",class:"wl-logout-btn",title:P.value.logout,onClick:Oi},[oe(K(mo),{size:14})],8,kh),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:P.value.profile,onClick:Sr},[D("img",{src:K(o).avatar,alt:"avatar"},null,8,_h)],8,xh)]),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:P.value.profile,onClick:Sr,textContent:Y(K(o).display_name)},null,8,$h)])):Q("v-if",!0),D("div",Ch,[K(i).login!=="force"&&K(i).meta.length&&!J.value?(L(),j("div",{key:0,class:ve(["wl-header",`item${K(i).meta.length}`])},[(L(!0),j(he,null,We(K(i).meta,f=>(L(),j("div",{key:f,class:"wl-header-item"},[D("label",{for:`wl-${f}`,textContent:Y(P.value[f]+(K(i).requiredMeta.includes(f)||!K(i).requiredMeta.length?"":`(${P.value.optional})`))},null,8,Sh),tr(D("input",{id:`wl-${f}`,ref_for:!0,ref:d=>{d&&(a.value[f]=d)},"onUpdate:modelValue":d=>K(l)[f]=d,class:ve(["wl-input",`wl-${f}`]),name:f,type:f==="mail"?"email":"text"},null,10,Eh),[[gu,K(l)[f]]])]))),128))],2)):Q("v-if",!0),tr(D("textarea",{id:"wl-edit",ref_key:"editorRef",ref:u,"onUpdate:modelValue":T[0]||(T[0]=f=>xe(s)?s.value=f:null),class:"wl-editor",placeholder:O.replyUser?`@${O.replyUser}`:P.value.placeholder,onKeydown:we,onDrop:Me,onPaste:kt},null,40,Th),[[ki,K(s)]]),tr(D("div",Ah,[T[7]||(T[7]=D("hr",null,null,-1)),D("h4",null,Y(P.value.preview)+":",1),D("div",{class:"wl-content",innerHTML:z.value},null,8,Rh)],512),[[$l,A.value]]),D("div",Ih,[D("div",Lh,[D("a",Mh,[oe(K(Nf))]),tr(D("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:ve(["wl-action",{active:$.value}]),title:P.value.emoji,onClick:T[1]||(T[1]=f=>$.value=!$.value)},[oe(K(Ff))],10,Oh),[[$l,C.value.tabs.length]]),K(i).search?(L(),j("button",{key:0,ref_key:"gifButtonRef",ref:m,type:"button",class:ve(["wl-action",{active:H.value}]),title:P.value.gif,onClick:T[2]||(T[2]=f=>H.value=!H.value)},[oe(K(qf))],10,jh)):Q("v-if",!0),D("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:c,class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:zt},null,544),ce.value?(L(),j("label",{key:1,for:"wl-image-upload",class:"wl-action",title:P.value.uploadImage,"aria-label":P.value.uploadImage},[oe(K(Df))],8,zh)):Q("v-if",!0),D("button",{type:"button",class:ve(["wl-action",{active:A.value}]),title:P.value.preview,onClick:T[3]||(T[3]=f=>A.value=!A.value)},[oe(K(Hf))],10,Ph)]),D("div",Fh,[T[9]||(T[9]=D("div",{class:"wl-captcha-container"},null,-1)),D("div",Dh,[ft(Y(W.value)+" ",1),K(i).wordLimit?(L(),j("span",Uh,[T[8]||(T[8]=ft("  /  ")),D("span",{class:ve({illegal:!Pe.value}),textContent:Y(X.value)},null,10,Hh)])):Q("v-if",!0),ft("  "+Y(P.value.word),1)]),K(i).login!=="disable"&&!J.value?(L(),j("button",{key:0,type:"button",class:"wl-btn",onClick:Cr,textContent:Y(P.value.login)},null,8,Nh)):Q("v-if",!0),K(i).login!=="force"||J.value?(L(),j("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:se.value,onClick:He},[se.value?(L(),ut(K(In),{key:0,size:16})):(L(),j(he,{key:1},[ft(Y(P.value.submit),1)],64))],8,Vh)):Q("v-if",!0)]),D("div",{ref_key:"gifPopupRef",ref:w,class:ve(["wl-gif-popup",{display:H.value}])},[D("input",{ref_key:"gifSearchInputRef",ref:x,type:"text",placeholder:P.value.gifSearchPlaceholder,onInput:T[4]||(T[4]=(...f)=>K(en)&&K(en)(...f))},null,40,Bh),U.list.length?(L(),ut(bh,{key:0,items:U.list,"column-width":200,gap:6,onInsert:T[5]||(T[5]=f=>$e(f)),onScroll:Ft},null,8,["items"])):Q("v-if",!0),U.loading?(L(),j("div",Wh,[oe(K(In),{size:30})])):Q("v-if",!0)],2),D("div",{ref_key:"emojiPopupRef",ref:p,class:ve(["wl-emoji-popup",{display:$.value}])},[(L(!0),j(he,null,We(C.value.tabs,(f,d)=>(L(),j(he,{key:f.name},[d===v.value?(L(),j("div",qh,[(L(!0),j(he,null,We(f.items,g=>(L(),j("button",{key:g,type:"button",title:g,onClick:y=>$e(`:${g}:`)},[$.value?(L(),j("img",{key:0,class:"wl-emoji",src:C.value.map[g],alt:g,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Gh)):Q("v-if",!0)],8,Kh))),128))])):Q("v-if",!0)],64))),128)),C.value.tabs.length>1?(L(),j("div",Zh,[(L(!0),j(he,null,We(C.value.tabs,(f,d)=>(L(),j("button",{key:f.name,type:"button",class:ve(["wl-tab",{active:v.value===d}]),onClick:g=>v.value=d},[D("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Jh)],10,Qh))),128))])):Q("v-if",!0)],2)])]),O.replyId||(pe=O.edit)!=null&&pe.objectId?(L(),j("button",{key:1,type:"button",class:"wl-close",title:P.value.cancelReply,onClick:T[6]||(T[6]=f=>O.replyId?r("cancelReply"):r("cancelEdit"))},[oe(K(mo),{size:24})],8,Yh)):Q("v-if",!0)])}}});const Xh=["id"],ed={class:"wl-user","aria-hidden":"true"},td=["src"],nd={class:"wl-card"},rd={class:"wl-head"},id=["href"],sd={key:1,class:"wl-nick"},ld=["textContent"],od=["textContent"],ad=["textContent"],cd=["textContent"],ud=["textContent"],fd={class:"wl-comment-actions"},hd=["title"],dd=["title"],pd={class:"wl-meta","aria-hidden":"true"},gd=["data-value","textContent"],md={key:0,class:"wl-content"},vd={key:0},bd=["href"],yd=["innerHTML"],wd={key:1,class:"wl-admin-actions"},kd={class:"wl-comment-status"},xd=["disabled","onClick","textContent"],_d={key:3,class:"wl-quote"};var $d=gn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=rr("config"),l=bo(),o=Fu(),a=$r(),u=_e(()=>s.value.locale),c=_e(()=>{const{link:v}=n.comment;return v?ss(v)?v:`https://${v}`:""}),h=_e(()=>l.value.includes(n.comment.objectId)),p=_e(()=>Jo(new Date(n.comment.time),o.value,u.value)),m=_e(()=>a.value.type==="administrator"),w=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),x=_e(()=>{var v;return n.comment.objectId===((v=n.reply)==null?void 0:v.objectId)}),C=_e(()=>{var v;return n.comment.objectId===((v=n.edit)==null?void 0:v.objectId)});return(v,$)=>{var H;const A=Xa("CommentCard",!0);return L(),j("div",{id:v.comment.objectId,class:"wl-card-item"},[D("div",ed,[v.comment.avatar?(L(),j("img",{key:0,class:"wl-user-avatar",src:v.comment.avatar,alt:""},null,8,td)):Q("v-if",!0),v.comment.type?(L(),ut(K(Wf),{key:1})):Q("v-if",!0)]),D("div",nd,[D("div",rd,[c.value?(L(),j("a",{key:0,class:"wl-nick",href:c.value,target:"_blank",rel:"nofollow noopener noreferrer"},Y(v.comment.nick),9,id)):(L(),j("span",sd,Y(v.comment.nick),1)),v.comment.type==="administrator"?(L(),j("span",{key:2,class:"wl-badge",textContent:Y(u.value.admin)},null,8,ld)):Q("v-if",!0),v.comment.label?(L(),j("span",{key:3,class:"wl-badge",textContent:Y(v.comment.label)},null,8,od)):Q("v-if",!0),v.comment.sticky?(L(),j("span",{key:4,class:"wl-badge",textContent:Y(u.value.sticky)},null,8,ad)):Q("v-if",!0),typeof v.comment.level=="number"?(L(),j("span",{key:5,class:ve(`wl-badge level${v.comment.level}`),textContent:Y(u.value[`level${v.comment.level}`]||`Level ${v.comment.level}`)},null,10,cd)):Q("v-if",!0),D("span",{class:"wl-time",textContent:Y(p.value)},null,8,ud),D("div",fd,[m.value||w.value?(L(),j(he,{key:0},[D("button",{type:"button",class:"wl-edit",onClick:$[0]||($[0]=z=>r("edit",v.comment))},[oe(K(Bf))]),D("button",{type:"button",class:"wl-delete",onClick:$[1]||($[1]=z=>r("delete",v.comment))},[oe(K(Pf))])],64)):Q("v-if",!0),D("button",{type:"button",class:"wl-like",title:h.value?u.value.cancelLike:u.value.like,onClick:$[2]||($[2]=z=>r("like",v.comment))},[oe(K(Uf),{active:h.value},null,8,["active"]),ft(" "+Y("like"in v.comment?v.comment.like:""),1)],8,hd),D("button",{type:"button",class:ve(["wl-reply",{active:x.value}]),title:x.value?u.value.cancelReply:u.value.reply,onClick:$[3]||($[3]=z=>r("reply",x.value?null:v.comment))},[oe(K(Vf))],10,dd)])]),D("div",pd,[(L(),j(he,null,We(["addr","browser","os"],z=>(L(),j(he,null,[v.comment[z]?(L(),j("span",{key:z,class:ve(`wl-${z}`),"data-value":v.comment[z],textContent:Y(v.comment[z])},null,10,gd)):Q("v-if",!0)],64))),64))]),C.value?Q("v-if",!0):(L(),j("div",md,[v.comment.reply_user?(L(),j("p",vd,[D("a",{href:"#"+v.comment.pid},"@"+Y(v.comment.reply_user.nick),9,bd),$[17]||($[17]=D("span",null,": ",-1))])):Q("v-if",!0),D("div",{innerHTML:v.comment.comment},null,8,yd)])),m.value&&!C.value?(L(),j("div",wd,[D("span",kd,[(L(),j(he,null,We(i,z=>D("button",{key:z,type:"submit",class:ve(`wl-btn wl-${z}`),disabled:v.comment.status===z,onClick:W=>r("status",{status:z,comment:v.comment}),textContent:Y(u.value[z])},null,10,xd)),64))]),m.value&&!("rid"in v.comment)?(L(),j("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:$[4]||($[4]=z=>r("sticky",v.comment))},Y(v.comment.sticky?u.value.unsticky:u.value.sticky),1)):Q("v-if",!0)])):Q("v-if",!0),x.value||C.value?(L(),j("div",{key:2,class:ve({"wl-reply-wrapper":x.value,"wl-edit-wrapper":C.value})},[oe(Co,{edit:v.edit,"reply-id":(H=v.reply)==null?void 0:H.objectId,"reply-user":v.comment.nick,"root-id":v.rootId,onLog:$[5]||($[5]=z=>r("log")),onCancelReply:$[6]||($[6]=z=>r("reply",null)),onCancelEdit:$[7]||($[7]=z=>r("edit",null)),onSubmit:$[8]||($[8]=z=>r("submit",z))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Q("v-if",!0),"children"in v.comment?(L(),j("div",_d,[(L(!0),j(he,null,We(v.comment.children,z=>(L(),ut(A,{key:z.objectId,comment:z,reply:v.reply,edit:v.edit,"root-id":v.rootId,onLog:$[9]||($[9]=W=>r("log")),onDelete:$[10]||($[10]=W=>r("delete",W)),onEdit:$[11]||($[11]=W=>r("edit",W)),onLike:$[12]||($[12]=W=>r("like",W)),onReply:$[13]||($[13]=W=>r("reply",W)),onStatus:$[14]||($[14]=W=>r("status",W)),onSticky:$[15]||($[15]=W=>r("sticky",W)),onSubmit:$[16]||($[16]=W=>r("submit",W))},null,8,["comment","reply","edit","root-id"]))),128))])):Q("v-if",!0)])],8,Xh)}}});const So="3.3.2",Cd={"data-waline":""},Sd={class:"wl-meta-head"},Ed={class:"wl-count"},Td=["textContent"],Ad={class:"wl-sort"},Rd=["onClick"],Id={class:"wl-cards"},Ld={key:1,class:"wl-operation"},Md=["textContent"],Od={key:2,class:"wl-loading"},jd=["textContent"],zd={key:4,class:"wl-operation"},Pd=["textContent"],Fd={key:5,class:"wl-power"};var Dd=gn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),i=$r(),s=bo(),l=q("loading"),o=q(0),a=q(1),u=q(0),c=_e(()=>Go(t)),h=q(c.value.commentSorting),p=q([]),m=q(null),w=q(null),x=_e(()=>Zo(c.value.dark)),C=_e(()=>c.value.locale);Hu(x,{id:"waline-darkmode"});let v;const $=P=>{var J;const{serverURL:ce,path:$e,pageSize:we}=c.value,ke=new AbortController;l.value="loading",v==null||v(),ji({serverURL:ce,lang:c.value.lang,path:$e,pageSize:we,sortBy:n[h.value],page:P,signal:ke.signal,token:(J=i.value)==null?void 0:J.token}).then(Me=>{l.value="success",o.value=Me.count,p.value.push(...Me.data),a.value=P,u.value=Me.totalPages}).catch(Me=>{Me.name!=="AbortError"&&(console.error(Me.message),l.value="error")}),v=ke.abort.bind(ke)},H=()=>$(a.value+1),A=()=>{o.value=0,p.value=[],$(1)},z=P=>{h.value!==P&&(h.value=P,A())},W=P=>{m.value=P},U=P=>{w.value=P},X=P=>{if(w.value)w.value.comment=P.comment,w.value.orig=P.orig;else if("rid"in P){const J=p.value.find(({objectId:ce})=>ce===P.rid);if(!J)return;Array.isArray(J.children)||(J.children=[]),J.children.push(P)}else p.value.unshift(P),o.value+=1},Pe=async({comment:P,status:J})=>{var ce;if(P.status===J)return;const{serverURL:$e,lang:we}=c.value;await tn({serverURL:$e,lang:we,token:(ce=i.value)==null?void 0:ce.token,objectId:P.objectId,comment:{status:J}}),P.status=J},G=async P=>{var J;if("rid"in P)return;const{serverURL:ce,lang:$e}=c.value;await tn({serverURL:ce,lang:$e,token:(J=i.value)==null?void 0:J.token,objectId:P.objectId,comment:{sticky:P.sticky?0:1}}),P.sticky=!P.sticky},se=async({objectId:P})=>{var J;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:ce,lang:$e}=c.value;await Pi({serverURL:ce,lang:$e,token:(J=i.value)==null?void 0:J.token,objectId:P}),p.value.some((we,ke)=>we.objectId===P?(p.value=p.value.filter((Me,kt)=>kt!==ke),!0):we.children.some((Me,kt)=>Me.objectId===P?(p.value[ke].children=we.children.filter((zt,He)=>He!==kt),!0):!1))},be=async P=>{var J;const{serverURL:ce,lang:$e}=c.value,{objectId:we}=P,ke=s.value.includes(we);await tn({serverURL:ce,lang:$e,objectId:we,token:(J=i.value)==null?void 0:J.token,comment:{like:!ke}}),ke?s.value=s.value.filter(Me=>Me!==we):(s.value=[...s.value,we],s.value.length>50&&(s.value=s.value.slice(-50))),P.like=(P.like||0)+(ke?-1:1)};return cc("config",c),vn(()=>{qe(()=>[t.serverURL,t.path],()=>A(),{immediate:!0})}),li(()=>v==null?void 0:v()),(P,J)=>(L(),j("div",Cd,[oe(dh),!m.value&&!w.value?(L(),ut(Co,{key:0,onLog:A,onSubmit:X})):Q("v-if",!0),D("div",Sd,[D("div",Ed,[o.value?(L(),j("span",{key:0,class:"wl-num",textContent:Y(o.value)},null,8,Td)):Q("v-if",!0),ft(" "+Y(C.value.comment),1)]),D("ul",Ad,[(L(!0),j(he,null,We(K(r),ce=>(L(),j("li",{key:ce,class:ve([ce===h.value?"active":""]),onClick:$e=>z(ce)},Y(C.value[ce]),11,Rd))),128))])]),D("div",Id,[(L(!0),j(he,null,We(p.value,ce=>(L(),ut($d,{key:ce.objectId,"root-id":ce.objectId,comment:ce,reply:m.value,edit:w.value,onLog:A,onReply:W,onEdit:U,onSubmit:X,onStatus:Pe,onDelete:se,onSticky:G,onLike:be},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(L(),j("div",Ld,[D("button",{type:"button",class:"wl-btn",onClick:A,textContent:Y(C.value.refresh)},null,8,Md)])):l.value==="loading"?(L(),j("div",Od,[oe(K(In),{size:30})])):p.value.length?a.value<u.value?(L(),j("div",zd,[D("button",{type:"button",class:"wl-btn",onClick:H,textContent:Y(C.value.more)},null,8,Pd)])):Q("v-if",!0):(L(),j("div",{key:3,class:"wl-empty",textContent:Y(C.value.sofa)},null,8,jd)),c.value.copyright?(L(),j("div",Fd,[J[0]||(J[0]=ft(" Powered by ")),J[1]||(J[1]=D("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),ft(" v"+Y(K(So)),1)])):Q("v-if",!0)]))}});const Eo=(e,t)=>{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},To=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=u=>{const c=Li(u);return c!==null&&t!==c},a=u=>Ui({serverURL:Fn(e),paths:u.map(c=>Li(c)??t),lang:i,signal:s.signal}).then(c=>Eo(c,u)).catch(Vl);if(r){const u=l.filter(h=>!o(h)),c=l.filter(o);Hi({serverURL:Fn(e),path:t,lang:i}).then(h=>Eo(h,u)),c.length&&a(c)}else a(l);return s.abort.bind(s)},Ud=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?_i(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=un({...i}),o=un({comment:n,pageview:r,path:t}),a=()=>{o.comment&&go({serverURL:l.serverURL,path:o.path,...Dt(o.comment)?{selector:o.comment}:{}})},u=()=>{o.pageview&&To({serverURL:l.serverURL,path:o.path,...Dt(o.pageview)?{selector:o.pageview}:{}})},c=s?yu(()=>ne(Dd,{path:o.path,...l})):null;c&&c.mount(s);const h=al(a),p=al(u);return{el:s,update:({comment:m,pageview:w,path:x=window.location.pathname,...C}={})=>{Object.entries(C).forEach(([v,$])=>{l[v]=$}),o.path=x,m!==void 0&&(o.comment=m),w!==void 0&&(o.pageview=w)},destroy:()=>{c==null||c.unmount(),h(),p()}}},Hd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var i;const s=$r(),l=_i(e),o=new AbortController;return Ni({serverURL:t,count:n,lang:r,signal:o.signal,token:(i=s.value)==null?void 0:i.token}).then(a=>l&&a.length?(l.innerHTML=`<ul class="wl-recent-list">${a.map(u=>`<li class="wl-recent-item"><a href="${u.url}">${u.nick}</a>:${u.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),l.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},Nd=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=_i(e),o=new AbortController;return Vi({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...ts(i),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${s}">${a.map((u,c)=>[`<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">${c+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',u.nick,u.level&&`<span class="wl-badge">${r?r[`level${u.level}`]:`Level ${u.level}`}</span>`,u.label&&`<span class="wl-badge">${u.label}</span>`,"</div>",u.link&&u.link,"</div>",u.link&&"</a>","</li>"].filter(h=>h).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};re.RecentComments=Hd,re.UserList=Nd,re.addComment=zi,re.commentCount=go,re.defaultLocales=Pn,re.deleteComment=Pi,re.fetchCommentCount=Fi,re.getArticleCounter=Er,re.getComment=ji,re.getPageview=Ui,re.getRecentComment=Ni,re.getUserList=Vi,re.init=Ud,re.login=Di,re.pageviewCount=To,re.updateArticleCounter=zn,re.updateComment=tn,re.updatePageview=Hi,re.version=So});
79
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${it(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=Dl(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return n&&(l+=' title="'+it(n)+'"'),l+=">"+i+"</a>",l}image({href:t,title:n,text:r}){const i=Dl(t);if(i===null)return it(r);t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${it(n)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:it(t.text)}}class ki{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Ye{options;renderer;textRenderer;constructor(t){this.options=t||Ot,this.options.renderer=this.options.renderer||new br,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ki}static parse(t,n){return new Ye(n).parse(t)}static parseInline(t,n){return new Ye(n).parseInline(t)}parse(t,n=!0){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=o,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){r+=u||"";continue}}const a=o;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let c=a,u=this.renderer.text(c);for(;l+1<t.length&&t[l+1].type==="text";)c=t[++l],u+=`
80
+ `+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):r+=u;continue}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const 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}}const 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"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:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}}class Tn{options;block;constructor(t){this.options=t||Ot}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Je.lex:Je.lexInline}provideParser(){return this.block?Ye.parse:Ye.parseInline}}go(Tn,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Nl{defaults=pi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Ye;Renderer=br;TextRenderer=ki;Lexer=Je;Tokenizer=vr;Hooks=Tn;constructor(...t){this.use(...t)}walkTokens(t,n){var i,s;let r=[];for(const l of t)switch(r=r.concat(n.call(this,l)),l.type){case"table":{const o=l;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,n));break}case"list":{const o=l;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const c=o[a].flat(1/0);r=r.concat(this.walkTokens(c,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const l=n.renderers[s.name];l?n.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[s.level];l?l.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new br(this.defaults);for(const l in r.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],c=s[o];s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new vr(this.defaults);for(const l in r.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=r.tokenizer[o],c=s[o];s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new Tn;for(const l in r.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=r.hooks[o],c=s[o];Tn.passThroughHooks.has(l)?s[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(s,u)).then(d=>c.call(s,d));const h=a.call(s,u);return c.call(s,h)}:s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,l=r.walkTokens;i.walkTokens=function(o){let a=[];return a.push(l.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Je.lex(t,n??this.defaults)}parser(t,n){return Ye.parse(t,n??this.defaults)}parseMarkdown(t){return(r,i)=>{const s={...i},l={...this.defaults,...s},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return o(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 r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?Je.lex:Je.lexInline,c=l.hooks?l.hooks.provideParser():t?Ye.parse:Ye.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(u=>a(u,l)).then(u=>l.hooks?l.hooks.processAllTokens(u):u).then(u=>l.walkTokens?Promise.all(this.walkTokens(u,l.walkTokens)).then(()=>u):u).then(u=>c(u,l)).then(u=>l.hooks?l.hooks.postprocess(u):u).catch(o);try{l.hooks&&(r=l.hooks.preprocess(r));let u=a(r,l);l.hooks&&(u=l.hooks.processAllTokens(u)),l.walkTokens&&this.walkTokens(u,l.walkTokens);let h=c(u,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(u){return o(u)}}}onError(t,n){return r=>{if(r.message+=`
81
+ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+it(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const Pt=new Nl;function ge(e,t){return Pt.parse(e,t)}ge.options=ge.setOptions=function(e){return Pt.setOptions(e),ge.defaults=Pt.defaults,Tl(ge.defaults),ge},ge.getDefaults=pi,ge.defaults=Ot,ge.use=function(...e){return Pt.use(...e),ge.defaults=Pt.defaults,Tl(ge.defaults),ge},ge.walkTokens=function(e,t){return Pt.walkTokens(e,t)},ge.parseInline=Pt.parseInline,ge.Parser=Ye,ge.parser=Ye.parse,ge.Renderer=br,ge.TextRenderer=ki,ge.Lexer=Je,ge.lexer=Je.lex,ge.Tokenizer=vr,ge.Hooks=Tn,ge.parse=ge;function Yu(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=Bl(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Vl(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.");Vl(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=Bl(n),s=i?e.langPrefix+Gl(i):e.emptyLangClass,l=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:Gl(t,!0)}
82
+ </code></pre>`}}}}function Bl(e){return(e||"").match(/\S*/)[0]}function Vl(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Wl=/[&<>"']/,Qu=new RegExp(Wl.source,"g"),ql=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xu=new RegExp(ql.source,"g"),ef={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Kl=e=>ef[e];function Gl(e,t){if(t){if(Wl.test(e))return e.replace(Qu,Kl)}else if(ql.test(e))return e.replace(Xu,Kl);return e}const tf=/\$.*?\$/,nf=/^\$(.*?)\$/,rf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,sf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=rf.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(tf);return n!==-1?n:t.length},tokenizer(t){const n=nf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Zl=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),lf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new Nl;if(i.setOptions({breaks:!0}),n&&i.use(Yu({highlight:n})),r){const s=sf(r);i.use({extensions:s})}return i.parse(Zl(e,t))},xi=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},of=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),af=e=>e.match(/[\u4E00-\u9FD5]/gu),cf=e=>{var t,n;return(((t=of(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=af(e))==null?void 0:n.length)??0)},uf=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},Jl=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const i=new AbortController,s=document.querySelectorAll(n);return s.length&&Ai({serverURL:jn(e),paths:Array.from(s).map(l=>Ki(xi(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Rl),i.abort.bind(i)},Yl=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),ne("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),ff=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),hf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),df=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),ne("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),pf=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),gf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),ne("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),mf=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),vf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),bf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),yf=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),En=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),wf=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ne("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),kf=()=>Yt("WALINE_USER_META",{nick:"",mail:"",link:""}),xf=()=>Yt("WALINE_COMMENT_BOX_EDITOR",""),_f="WALINE_LIKE";let Ql=null;const Xl=()=>Ql??(Ql=Yt(_f,[])),Cf="WALINE_REACTION";let eo=null;const $f=()=>eo??(eo=Yt(Cf,{}));var _i={},gt={},mt={},to;function no(){if(to)return mt;to=1;var e=mt&&mt.__awaiter||function(r,i,s,l){function o(a){return a instanceof s?a:new s(function(c){c(a)})}return new(s||(s=Promise))(function(a,c){function u(g){try{d(l.next(g))}catch(k){c(k)}}function h(g){try{d(l.throw(g))}catch(k){c(k)}}function d(g){g.done?a(g.value):o(g.value).then(u,h)}d((l=l.apply(r,i||[])).next())})},t=mt&&mt.__generator||function(r,i){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(d){return function(g){return h([d,g])}}function h(d){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(s=0)),s;)try{if(l=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,o=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=i.call(r,s)}catch(g){d=[6,g],o=0}finally{l=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}};Object.defineProperty(mt,"__esModule",{value:!0}),mt.ReCaptchaInstance=void 0;var n=function(){function r(i,s,l){this.siteKey=i,this.recaptchaID=s,this.recaptcha=l,this.styleContainer=null}return r.prototype.execute=function(i){return e(this,void 0,void 0,function(){var s;return t(this,function(l){switch(l.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:i})]:[3,2];case 1:return s=l.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:i})];case 3:s=l.sent(),l.label=4;case 4:return[2,s]}})})},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 mt.ReCaptchaInstance=n,mt}var ro;function Sf(){if(ro)return gt;ro=1;var e=gt&&gt.__assign||function(){return e=Object.assign||function(i){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(i[a]=s[a])}return i},e.apply(this,arguments)};Object.defineProperty(gt,"__esModule",{value:!0}),gt.getInstance=gt.load=void 0;var t=no(),n;(function(i){i[i.NOT_LOADED=0]="NOT_LOADED",i[i.LOADING=1]="LOADING",i[i.LOADED=2]="LOADED"})(n||(n={}));var r=function(){function i(){}return i.load=function(s,l){if(l===void 0&&(l={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(i.getLoadingState()===n.LOADED)return i.instance.getSiteKey()===s?Promise.resolve(i.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(i.getLoadingState()===n.LOADING)return s!==i.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){i.successfulLoadingConsumers.push(function(u){return a(u)}),i.errorLoadingRunnable.push(function(u){return c(u)})});i.instanceSiteKey=s,i.setLoadingState(n.LOADING);var o=new i;return new Promise(function(a,c){o.loadScript(s,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){i.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,s,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),h=new t.ReCaptchaInstance(s,u,grecaptcha);i.successfulLoadingConsumers.forEach(function(d){return d(h)}),i.successfulLoadingConsumers=[],l.autoHideBadge&&h.hideBadge(),i.instance=h,a(h)}).catch(function(u){i.errorLoadingRunnable.forEach(function(h){return h(u)}),i.errorLoadingRunnable=[],c(u)})})},i.getInstance=function(){return i.instance},i.setLoadingState=function(s){i.loadingState=s},i.getLoadingState=function(){return i.loadingState===null?n.NOT_LOADED:i.loadingState},i.prototype.loadScript=function(s,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 h=document.createElement("script");h.setAttribute("recaptcha-v3-script",""),h.setAttribute("async",""),h.setAttribute("defer","");var d="https://www.google.com/recaptcha/api.js";l?o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":o&&(d="https://www.google.com/recaptcha/enterprise.js"),c&&(d=c),a.render&&(a.render=void 0);var g=this.buildQueryString(a);return h.src=d+"?render=explicit"+g,new Promise(function(k,v){h.addEventListener("load",u.waitForScriptToLoad(function(){k(h)},o),!1),h.onerror=function($){i.setLoadingState(n.NOT_LOADED),v($)},document.head.appendChild(h)})},i.prototype.buildQueryString=function(s){var l=Object.keys(s);return l.length<1?"":"&"+Object.keys(s).filter(function(o){return!!s[o]}).map(function(o){return o+"="+s[o]}).join("&")},i.prototype.waitForScriptToLoad=function(s,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(s,l)},i.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){s()}):window.grecaptcha.ready(function(){s()})}},i.prototype.doExplicitRender=function(s,l,o,a){var c=e({sitekey:l},o);return o.container?a?s.enterprise.render(o.container,c):s.render(o.container,c):a?s.enterprise.render(c):s.render(c)},i.loadingState=null,i.instance=null,i.instanceSiteKey=null,i.successfulLoadingConsumers=[],i.errorLoadingRunnable=[],i.SCRIPT_LOAD_DELAY=25,i}();return gt.load=r.load,gt.getInstance=r.getInstance,gt}var io;function Rf(){return io||(io=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Sf();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=no();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(_i)),_i}var Af=Rf();const so={},Tf=e=>{const t=so[e]??(so[e]=Af.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Ef=e=>({execute:async t=>{const{load:n}=mu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window==null?void 0:window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),Lf="WALINE_USER";let lo=null;const yr=()=>lo??(lo=Yt(Lf,{})),If={key:0,class:"wl-reaction"},Mf=["textContent"],Of={class:"wl-reaction-list"},Pf=["onClick"],jf={class:"wl-reaction-img"},zf=["src","alt"],Ff=["textContent"],Df=["textContent"];var Hf=pn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=$f(),r=Qn("config"),i=W(-1),s=W([]),l=_e(()=>r.value.locale),o=_e(()=>r.value.reaction.length>0),a=_e(()=>{const{reaction:d,path:g}=r.value;return d.map((k,v)=>({icon:k,desc:l.value[`reaction${v}`],active:n.value[g]===v}))});let c;const u=async()=>{if(!o.value)return;const{serverURL:d,lang:g,path:k,reaction:v}=r.value,$=new AbortController;c=$.abort.bind($);const b=await xr({serverURL:d,lang:g,paths:[k],type:v.map((C,U)=>`reaction${U}`),signal:$.signal});s.value=v.map((C,U)=>b[0][`reaction${U}`])},h=async d=>{if(i.value===-1){const{serverURL:g,lang:k,path:v}=r.value,$=n.value[v];i.value=d,$!==void 0&&(await On({serverURL:g,lang:k,path:v,type:`reaction${$}`,action:"desc"}),s.value[$]=Math.max(s.value[$]-1,0)),$!==d&&(await On({serverURL:g,lang:k,path:v,type:`reaction${d}`}),s.value[d]=(s.value[d]||0)+1),$===d?delete n.value[v]:n.value[v]=d,i.value=-1}};return mn(()=>{Ke(()=>[r.value.serverURL,r.value.path],()=>{u()},{immediate:!0})}),Yr(()=>c==null?void 0:c()),(d,g)=>a.value.length?(I(),P("div",If,[H("div",{class:"wl-reaction-title",textContent:X(l.value.reactionTitle)},null,8,Mf),H("ul",Of,[(I(!0),P(he,null,qe(a.value,({active:k,icon:v,desc:$},b)=>(I(),P("li",{key:b,class:ve(["wl-reaction-item",{active:k}]),onClick:C=>h(b)},[H("div",jf,[H("img",{src:v,alt:$},null,8,zf),i.value===b?(I(),ut(q(En),{key:0,class:"wl-reaction-loading"})):(I(),P("div",{key:1,class:"wl-reaction-votes",textContent:X(s.value[b]||0)},null,8,Ff))]),H("div",{class:"wl-reaction-text",textContent:X($)},null,8,Df)],10,Pf))),128))])])):Y("v-if",!0)}}),Ln=new Map;function Uf(e){var t=Ln.get(e);t&&t.destroy()}function Nf(e){var t=Ln.get(e);t&&t.update()}var In=null;typeof window>"u"?((In=function(e){return e}).destroy=function(e){return e},In.update=function(e){return e}):((In=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"&&!Ln.has(r)){var i,s=null,l=window.getComputedStyle(r),o=(i=r.value,function(){c({testForHeightReduction:i===""||!r.value.startsWith(i),restoreTextAlign:null}),i=r.value}),a=(function(h){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(h).forEach(function(d){return r.style[d]=h[d]}),Ln.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",Ln.set(r,{destroy:a,update:u}),u()}function c(h){var d,g,k=h.restoreTextAlign,v=k===void 0?null:k,$=h.testForHeightReduction,b=$===void 0||$,C=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),b&&(d=function(T){for(var j=[];T&&T.parentNode&&T.parentNode instanceof Element;)T.parentNode.scrollTop&&j.push([T.parentNode,T.parentNode.scrollTop]),T=T.parentNode;return function(){return j.forEach(function(K){var z=K[0],G=K[1];z.style.scrollBehavior="auto",z.scrollTop=G,z.style.scrollBehavior=null})}}(r),r.style.height=""),g=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&g>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),g=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=g+"px",v&&(r.style.textAlign=v),d&&d(),s!==g&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=g),C!==l.overflow&&!v)){var U=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=U==="start"?"end":"start"),c({restoreTextAlign:U,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Uf),e},In.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Nf),e});var oo=In;const Bf=["data-index"],Vf=["src","title","onClick"];var Wf=pn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const i=W(null),s=W({}),l=W([]),o=()=>{const d=Math.floor((i.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return d>0?d:1},a=d=>new Array(d).fill(null).map(()=>[]),c=async d=>{var g;if(d>=n.items.length)return;await Kt();const k=Array.from(((g=i.value)==null?void 0:g.children)??[]).reduce((v,$)=>$.getBoundingClientRect().height<v.getBoundingClientRect().height?$:v);l.value[Number(k.dataset.index)].push(d),await c(d+1)},u=async(d=!1)=>{if(l.value.length===o()&&!d)return;l.value=a(o());const g=window.scrollY;await c(0),window.scrollTo({top:g})},h=d=>{s.value[d.target.src]=!0};return mn(()=>{u(!0),r=new ResizeObserver(()=>{u()}),r.observe(i.value),Ke(()=>[n.items],()=>{s.value={},u(!0)}),Ke(()=>[n.columnWidth,n.gap],()=>{u()})}),Ma(()=>r.unobserve(i.value)),(d,g)=>(I(),P("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:rn({gap:`${d.gap}px`})},[(I(!0),P(he,null,qe(l.value,(k,v)=>(I(),P("div",{key:v,class:"wl-gallery-column","data-index":v,style:rn({gap:`${d.gap}px`})},[(I(!0),P(he,null,qe(k,$=>(I(),P(he,{key:$},[s.value[d.items[$].src]?Y("v-if",!0):(I(),ut(q(En),{key:0,size:36,style:{margin:"20px auto"}})),H("img",{class:"wl-gallery-item",src:d.items[$].src,title:d.items[$].title,loading:"lazy",onLoad:h,onClick:b=>d.$emit("insert",`![](${d.items[$].src})`)},null,40,Vf)],64))),128))],12,Bf))),128))],4))}});const qf={key:0,class:"wl-login-info"},Kf={class:"wl-avatar"},Gf=["title"],Zf=["title"],Jf=["src"],Yf=["title","textContent"],Qf={class:"wl-panel"},Xf=["for","textContent"],eh=["id","onUpdate:modelValue","name","type"],th=["placeholder"],nh={class:"wl-preview"},rh=["innerHTML"],ih={class:"wl-footer"},sh={class:"wl-actions"},lh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},oh=["title"],ah=["title"],ch=["title","aria-label"],uh=["title"],fh={class:"wl-info"},hh={class:"wl-text-number"},dh={key:0},ph=["textContent"],gh=["textContent"],mh=["disabled"],vh=["placeholder"],bh={key:1,class:"wl-loading"},yh={key:0,class:"wl-tab-wrapper"},wh=["title","onClick"],kh=["src","alt"],xh={key:0,class:"wl-tabs"},_h=["onClick"],Ch=["src","alt","title"],$h=["title"];var ao=pn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,i=Qn("config"),s=xf(),l=kf(),o=yr(),a=W({}),c=W(null),u=W(null),h=W(null),d=W(null),g=W(null),k=W(null),v=W(null),$=W({tabs:[],map:{}}),b=W(0),C=W(!1),U=W(!1),T=W(!1),j=W(""),K=W(0),z=un({loading:!0,list:[]}),G=W(0),je=W(!1),Z=W(""),ie=W(!1),be=W(!1),F=_e(()=>i.value.locale),Q=_e(()=>{var O;return!!((O=o.value)!=null&&O.token)}),ce=_e(()=>i.value.imageUploader!==!1),Ce=O=>{const A=c.value,N=A.selectionStart,pe=A.selectionEnd||0,f=A.scrollTop;s.value=A.value.substring(0,N)+O+A.value.substring(pe,A.value.length),A.focus(),A.selectionStart=N+O.length,A.selectionEnd=N+O.length,A.scrollTop=f},we=O=>{if(ie.value)return;const A=O.key;(O.ctrlKey||O.metaKey)&&A==="Enter"&&De()},ke=O=>{const A=`![${i.value.locale.uploading} ${O.name}]()`;return Ce(A),ie.value=!0,Promise.resolve().then(()=>i.value.imageUploader(O)).then(N=>{s.value=s.value.replace(A,`\r
83
+ ![${O.name}](${N})`)}).catch(N=>{alert(N.message),s.value=s.value.replace(A,"")}).then(()=>{ie.value=!1})},Ie=O=>{var A;if((A=O.dataTransfer)!=null&&A.items){const N=Al(O.dataTransfer.items);N&&ce.value&&(ke(N),O.preventDefault())}},kt=O=>{if(O.clipboardData){const A=Al(O.clipboardData.items);A&&ce.value&&ke(A)}},jt=()=>{const O=u.value;O.files&&ce.value&&ke(O.files[0]).then(()=>{O.value=""})},De=async()=>{var O,A,N,pe,f,p;const{serverURL:m,lang:w,login:y,wordLimit:x,requiredMeta:E,recaptchaV3Key:R,turnstileKey:S}=i.value,_=await uf(),M={comment:Z.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:_};if(!n.edit)if((O=o.value)!=null&&O.token)M.nick=o.value.display_name,M.mail=o.value.email,M.link=o.value.url;else{if(y==="force")return;if(E.includes("nick")&&!M.nick)return(A=a.value.nick)==null||A.focus(),alert(F.value.nickError);if(E.includes("mail")&&!M.mail||M.mail&&!zo(M.mail))return(N=a.value.mail)==null||N.focus(),alert(F.value.mailError);M.nick||(M.nick=F.value.anonymous)}if(!M.comment){(pe=c.value)==null||pe.focus();return}if(!je.value)return alert(F.value.wordHint.replace("$0",x[0].toString()).replace("$1",x[1].toString()).replace("$2",K.value.toString()));M.comment=Zl(M.comment,$.value.map),n.replyId&&n.rootId&&(M.pid=n.replyId,M.rid=n.rootId,M.at=n.replyUser),ie.value=!0;try{R&&(M.recaptchaV3=await Tf(R).execute("social")),S&&(M.turnstile=await Ef(S).execute("social"));const L={serverURL:m,lang:w,token:(f=o.value)==null?void 0:f.token,comment:M},D=await(n.edit?Xt({objectId:n.edit.objectId,...L}):Si(L));if(ie.value=!1,D.errmsg)return alert(D.errmsg);r("submit",D.data),s.value="",j.value="",await Kt(),n.replyId&&r("cancelReply"),(p=n.edit)!=null&&p.objectId&&r("cancelEdit")}catch(L){ie.value=!1,alert(L.message)}},wr=O=>{O.preventDefault();const{lang:A,serverURL:N}=i.value;Ti({serverURL:N,lang:A}).then(pe=>{o.value=pe,(pe.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(pe)),r("log")})},Ci=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},kr=O=>{O.preventDefault();const{lang:A,serverURL:N}=i.value,pe=800,f=800,p=(window.innerWidth-pe)/2,m=(window.innerHeight-f)/2,w=new URLSearchParams({lng:A,token:o.value.token}),y=window.open(`${N}/ui/profile?${w.toString()}`,"_blank",`width=${pe},height=${f},left=${p},top=${m},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);y==null||y.postMessage({type:"TOKEN",data:o.value.token},"*")},zt=O=>{var A,N,pe,f;!((A=h.value)!=null&&A.contains(O.target))&&!((N=d.value)!=null&&N.contains(O.target))&&(C.value=!1),!((pe=g.value)!=null&&pe.contains(O.target))&&!((f=k.value)!=null&&f.contains(O.target))&&(U.value=!1)},Ft=async O=>{var A;const{scrollTop:N,clientHeight:pe,scrollHeight:f}=O.target,p=(pe+N)/f,m=i.value.search,w=((A=v.value)==null?void 0:A.value)??"";p<.9||z.loading||be.value||(z.loading=!0,(m.more&&z.list.length?await m.more(w,z.list.length):await m.search(w)).length?z.list=[...z.list,...m.more&&z.list.length?await m.more(w,z.list.length):await m.search(w)]:be.value=!0,z.loading=!1,setTimeout(()=>{O.target.scrollTop=N},50))},Qt=ru(O=>{z.list=[],be.value=!1,Ft(O)},300);return Ke([i,K],([O,A])=>{const{wordLimit:N}=O;N?A<N[0]&&N[0]!==0?(G.value=N[0],je.value=!1):A>N[1]?(G.value=N[1],je.value=!1):(G.value=N[1],je.value=!0):(G.value=0,je.value=!0)},{immediate:!0}),fr("click",zt),fr("message",({data:O})=>{!O||O.type!=="profile"||(o.value={...o.value,...O.data},[localStorage,sessionStorage].filter(A=>A.getItem("WALINE_USER")).forEach(A=>A.setItem("WALINE_USER",JSON.stringify(o))))}),Ke(U,async O=>{var A;if(!O)return;const N=i.value.search;v.value&&(v.value.value=""),z.loading=!0,z.list=await(((A=N.default)==null?void 0:A.call(N))??N.search("")),z.loading=!1}),mn(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),Ke(()=>s.value,A=>{const{highlighter:N,texRenderer:pe}=i.value;Z.value=A,j.value=lf(A,{emojiMap:$.value.map,highlighter:N,texRenderer:pe}),K.value=cf(A),A?oo(c.value):oo.destroy(c.value)},{immediate:!0}),Ke(()=>i.value.emoji,A=>ku(A).then(N=>{$.value=N}),{immediate:!0})}),(O,A)=>{var N,pe;return I(),P("div",{key:q(o).token,class:"wl-comment"},[q(i).login!=="disable"&&Q.value&&!((N=O.edit)!=null&&N.objectId)?(I(),P("div",qf,[H("div",Kf,[H("button",{type:"submit",class:"wl-logout-btn",title:F.value.logout,onClick:Ci},[oe(q(Yl),{size:14})],8,Gf),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:kr},[H("img",{src:q(o).avatar,alt:"avatar"},null,8,Jf)],8,Zf)]),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:kr,textContent:X(q(o).display_name)},null,8,Yf)])):Y("v-if",!0),H("div",Qf,[q(i).login!=="force"&&q(i).meta.length&&!Q.value?(I(),P("div",{key:0,class:ve(["wl-header",`item${q(i).meta.length}`])},[(I(!0),P(he,null,qe(q(i).meta,f=>(I(),P("div",{key:f,class:"wl-header-item"},[H("label",{for:`wl-${f}`,textContent:X(F.value[f]+(q(i).requiredMeta.includes(f)||!q(i).requiredMeta.length?"":`(${F.value.optional})`))},null,8,Xf),Jn(H("input",{id:`wl-${f}`,ref_for:!0,ref:p=>{p&&(a.value[f]=p)},"onUpdate:modelValue":p=>q(l)[f]=p,class:ve(["wl-input",`wl-${f}`]),name:f,type:f==="mail"?"email":"text"},null,10,eh),[[qc,q(l)[f]]])]))),128))],2)):Y("v-if",!0),Jn(H("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":A[0]||(A[0]=f=>xe(s)?s.value=f:null),class:"wl-editor",placeholder:O.replyUser?`@${O.replyUser}`:F.value.placeholder,onKeydown:we,onDrop:Ie,onPaste:kt},null,40,th),[[fi,q(s)]]),Jn(H("div",nh,[A[7]||(A[7]=H("hr",null,null,-1)),H("h4",null,X(F.value.preview)+":",1),H("div",{class:"wl-content",innerHTML:j.value},null,8,rh)],512),[[ol,T.value]]),H("div",ih,[H("div",sh,[H("a",lh,[oe(q(mf))]),Jn(H("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:ve(["wl-action",{active:C.value}]),title:F.value.emoji,onClick:A[1]||(A[1]=f=>C.value=!C.value)},[oe(q(hf))],10,oh),[[ol,$.value.tabs.length]]),q(i).search?(I(),P("button",{key:0,ref_key:"gifButtonRef",ref:g,type:"button",class:ve(["wl-action",{active:U.value}]),title:F.value.gif,onClick:A[2]||(A[2]=f=>U.value=!U.value)},[oe(q(wf))],10,ah)):Y("v-if",!0),H("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:u,class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:jt},null,544),ce.value?(I(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:F.value.uploadImage,"aria-label":F.value.uploadImage},[oe(q(df))],8,ch)):Y("v-if",!0),H("button",{type:"button",class:ve(["wl-action",{active:T.value}]),title:F.value.preview,onClick:A[3]||(A[3]=f=>T.value=!T.value)},[oe(q(gf))],10,uh)]),H("div",fh,[A[9]||(A[9]=H("div",{class:"wl-captcha-container"},null,-1)),H("div",hh,[ft(X(K.value)+" ",1),q(i).wordLimit?(I(),P("span",dh,[A[8]||(A[8]=ft("  /  ")),H("span",{class:ve({illegal:!je.value}),textContent:X(G.value)},null,10,ph)])):Y("v-if",!0),ft("  "+X(F.value.word),1)]),q(i).login!=="disable"&&!Q.value?(I(),P("button",{key:0,type:"button",class:"wl-btn",onClick:wr,textContent:X(F.value.login)},null,8,gh)):Y("v-if",!0),q(i).login!=="force"||Q.value?(I(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:ie.value,onClick:De},[ie.value?(I(),ut(q(En),{key:0,size:16})):(I(),P(he,{key:1},[ft(X(F.value.submit),1)],64))],8,mh)):Y("v-if",!0)]),H("div",{ref_key:"gifPopupRef",ref:k,class:ve(["wl-gif-popup",{display:U.value}])},[H("input",{ref_key:"gifSearchInputRef",ref:v,type:"text",placeholder:F.value.gifSearchPlaceholder,onInput:A[4]||(A[4]=(...f)=>q(Qt)&&q(Qt)(...f))},null,40,vh),z.list.length?(I(),ut(Wf,{key:0,items:z.list,"column-width":200,gap:6,onInsert:A[5]||(A[5]=f=>Ce(f)),onScroll:Ft},null,8,["items"])):Y("v-if",!0),z.loading?(I(),P("div",bh,[oe(q(En),{size:30})])):Y("v-if",!0)],2),H("div",{ref_key:"emojiPopupRef",ref:d,class:ve(["wl-emoji-popup",{display:C.value}])},[(I(!0),P(he,null,qe($.value.tabs,(f,p)=>(I(),P(he,{key:f.name},[p===b.value?(I(),P("div",yh,[(I(!0),P(he,null,qe(f.items,m=>(I(),P("button",{key:m,type:"button",title:m,onClick:w=>Ce(`:${m}:`)},[C.value?(I(),P("img",{key:0,class:"wl-emoji",src:$.value.map[m],alt:m,loading:"lazy",referrerPolicy:"no-referrer"},null,8,kh)):Y("v-if",!0)],8,wh))),128))])):Y("v-if",!0)],64))),128)),$.value.tabs.length>1?(I(),P("div",xh,[(I(!0),P(he,null,qe($.value.tabs,(f,p)=>(I(),P("button",{key:f.name,type:"button",class:ve(["wl-tab",{active:b.value===p}]),onClick:m=>b.value=p},[H("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ch)],10,_h))),128))])):Y("v-if",!0)],2)])]),O.replyId||(pe=O.edit)!=null&&pe.objectId?(I(),P("button",{key:1,type:"button",class:"wl-close",title:F.value.cancelReply,onClick:A[6]||(A[6]=f=>O.replyId?r("cancelReply"):r("cancelEdit"))},[oe(q(Yl),{size:24})],8,$h)):Y("v-if",!0)])}}});const Sh=["id"],Rh={class:"wl-user","aria-hidden":"true"},Ah=["src"],Th={class:"wl-card"},Eh={class:"wl-head"},Lh=["href"],Ih={key:1,class:"wl-nick"},Mh=["textContent"],Oh=["textContent"],Ph=["textContent"],jh=["textContent"],zh=["textContent"],Fh={class:"wl-comment-actions"},Dh=["title"],Hh=["title"],Uh={class:"wl-meta","aria-hidden":"true"},Nh=["data-value","textContent"],Bh={key:0,class:"wl-content"},Vh={key:0},Wh=["href"],qh=["innerHTML"],Kh={key:1,class:"wl-admin-actions"},Gh={class:"wl-comment-status"},Zh=["disabled","onClick","textContent"],Jh={key:3,class:"wl-quote"};var Yh=pn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=Qn("config"),l=Xl(),o=gu(),a=yr(),c=_e(()=>s.value.locale),u=_e(()=>{const{link:b}=n.comment;return b?Zi(b)?b:`https://${b}`:""}),h=_e(()=>l.value.includes(n.comment.objectId)),d=_e(()=>Po(new Date(n.comment.time),o.value,c.value)),g=_e(()=>a.value.type==="administrator"),k=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),v=_e(()=>{var b;return n.comment.objectId===((b=n.reply)==null?void 0:b.objectId)}),$=_e(()=>{var b;return n.comment.objectId===((b=n.edit)==null?void 0:b.objectId)});return(b,C)=>{var U;const T=Pa("CommentCard",!0);return I(),P("div",{id:b.comment.objectId,class:"wl-card-item"},[H("div",Rh,[b.comment.avatar?(I(),P("img",{key:0,class:"wl-user-avatar",src:b.comment.avatar,alt:""},null,8,Ah)):Y("v-if",!0),b.comment.type?(I(),ut(q(yf),{key:1})):Y("v-if",!0)]),H("div",Th,[H("div",Eh,[u.value?(I(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},X(b.comment.nick),9,Lh)):(I(),P("span",Ih,X(b.comment.nick),1)),b.comment.type==="administrator"?(I(),P("span",{key:2,class:"wl-badge",textContent:X(c.value.admin)},null,8,Mh)):Y("v-if",!0),b.comment.label?(I(),P("span",{key:3,class:"wl-badge",textContent:X(b.comment.label)},null,8,Oh)):Y("v-if",!0),b.comment.sticky?(I(),P("span",{key:4,class:"wl-badge",textContent:X(c.value.sticky)},null,8,Ph)):Y("v-if",!0),typeof b.comment.level=="number"?(I(),P("span",{key:5,class:ve(`wl-badge level${b.comment.level}`),textContent:X(c.value[`level${b.comment.level}`]||`Level ${b.comment.level}`)},null,10,jh)):Y("v-if",!0),H("span",{class:"wl-time",textContent:X(d.value)},null,8,zh),H("div",Fh,[g.value||k.value?(I(),P(he,{key:0},[H("button",{type:"button",class:"wl-edit",onClick:C[0]||(C[0]=j=>r("edit",b.comment))},[oe(q(bf))]),H("button",{type:"button",class:"wl-delete",onClick:C[1]||(C[1]=j=>r("delete",b.comment))},[oe(q(ff))])],64)):Y("v-if",!0),H("button",{type:"button",class:"wl-like",title:h.value?c.value.cancelLike:c.value.like,onClick:C[2]||(C[2]=j=>r("like",b.comment))},[oe(q(pf),{active:h.value},null,8,["active"]),ft(" "+X("like"in b.comment?b.comment.like:""),1)],8,Dh),H("button",{type:"button",class:ve(["wl-reply",{active:v.value}]),title:v.value?c.value.cancelReply:c.value.reply,onClick:C[3]||(C[3]=j=>r("reply",v.value?null:b.comment))},[oe(q(vf))],10,Hh)])]),H("div",Uh,[(I(),P(he,null,qe(["addr","browser","os"],j=>(I(),P(he,null,[b.comment[j]?(I(),P("span",{key:j,class:ve(`wl-${j}`),"data-value":b.comment[j],textContent:X(b.comment[j])},null,10,Nh)):Y("v-if",!0)],64))),64))]),$.value?Y("v-if",!0):(I(),P("div",Bh,[b.comment.reply_user?(I(),P("p",Vh,[H("a",{href:"#"+b.comment.pid},"@"+X(b.comment.reply_user.nick),9,Wh),C[17]||(C[17]=H("span",null,": ",-1))])):Y("v-if",!0),H("div",{innerHTML:b.comment.comment},null,8,qh)])),g.value&&!$.value?(I(),P("div",Kh,[H("span",Gh,[(I(),P(he,null,qe(i,j=>H("button",{key:j,type:"submit",class:ve(`wl-btn wl-${j}`),disabled:b.comment.status===j,onClick:K=>r("status",{status:j,comment:b.comment}),textContent:X(c.value[j])},null,10,Zh)),64))]),g.value&&!("rid"in b.comment)?(I(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:C[4]||(C[4]=j=>r("sticky",b.comment))},X(b.comment.sticky?c.value.unsticky:c.value.sticky),1)):Y("v-if",!0)])):Y("v-if",!0),v.value||$.value?(I(),P("div",{key:2,class:ve({"wl-reply-wrapper":v.value,"wl-edit-wrapper":$.value})},[oe(ao,{edit:b.edit,"reply-id":(U=b.reply)==null?void 0:U.objectId,"reply-user":b.comment.nick,"root-id":b.rootId,onLog:C[5]||(C[5]=j=>r("log")),onCancelReply:C[6]||(C[6]=j=>r("reply",null)),onCancelEdit:C[7]||(C[7]=j=>r("edit",null)),onSubmit:C[8]||(C[8]=j=>r("submit",j))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Y("v-if",!0),"children"in b.comment?(I(),P("div",Jh,[(I(!0),P(he,null,qe(b.comment.children,j=>(I(),ut(T,{key:j.objectId,comment:j,reply:b.reply,edit:b.edit,"root-id":b.rootId,onLog:C[9]||(C[9]=K=>r("log")),onDelete:C[10]||(C[10]=K=>r("delete",K)),onEdit:C[11]||(C[11]=K=>r("edit",K)),onLike:C[12]||(C[12]=K=>r("like",K)),onReply:C[13]||(C[13]=K=>r("reply",K)),onStatus:C[14]||(C[14]=K=>r("status",K)),onSticky:C[15]||(C[15]=K=>r("sticky",K)),onSubmit:C[16]||(C[16]=K=>r("submit",K))},null,8,["comment","reply","edit","root-id"]))),128))])):Y("v-if",!0)])],8,Sh)}}});const co="3.4.0",Qh={"data-waline":""},Xh={class:"wl-meta-head"},ed={class:"wl-count"},td=["textContent"],nd={class:"wl-sort"},rd=["onClick"],id={class:"wl-cards"},sd={key:1,class:"wl-operation"},ld=["textContent"],od={key:2,class:"wl-loading"},ad=["textContent"],cd={key:4,class:"wl-operation"},ud=["textContent"],fd={key:5,class:"wl-power"};var hd=pn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),i=yr(),s=Xl(),l=W("loading"),o=W(0),a=W(1),c=W(0),u=_e(()=>Io(t)),h=W(u.value.commentSorting),d=W([]),g=W(null),k=W(null),v=_e(()=>Mo(u.value.dark)),$=_e(()=>u.value.locale);bu(v,{id:"waline-darkmode"});let b;const C=F=>{var Q;const{serverURL:ce,path:Ce,pageSize:we}=u.value,ke=new AbortController;l.value="loading",b==null||b(),$i({serverURL:ce,lang:u.value.lang,path:Ce,pageSize:we,sortBy:n[h.value],page:F,signal:ke.signal,token:(Q=i.value)==null?void 0:Q.token}).then(Ie=>{l.value="success",o.value=Ie.count,d.value.push(...Ie.data),a.value=F,c.value=Ie.totalPages}).catch(Ie=>{Ie.name!=="AbortError"&&(console.error(Ie.message),l.value="error")}),b=ke.abort.bind(ke)},U=()=>C(a.value+1),T=()=>{o.value=0,d.value=[],C(1)},j=F=>{h.value!==F&&(h.value=F,T())},K=F=>{g.value=F},z=F=>{k.value=F},G=F=>{if(k.value)k.value.comment=F.comment,k.value.orig=F.orig;else if("rid"in F){const Q=d.value.find(({objectId:ce})=>ce===F.rid);if(!Q)return;Array.isArray(Q.children)||(Q.children=[]),Q.children.push(F)}else d.value.unshift(F),o.value+=1},je=async({comment:F,status:Q})=>{var ce;if(F.status===Q)return;const{serverURL:Ce,lang:we}=u.value;await Xt({serverURL:Ce,lang:we,token:(ce=i.value)==null?void 0:ce.token,objectId:F.objectId,comment:{status:Q}}),F.status=Q},Z=async F=>{var Q;if("rid"in F)return;const{serverURL:ce,lang:Ce}=u.value;await Xt({serverURL:ce,lang:Ce,token:(Q=i.value)==null?void 0:Q.token,objectId:F.objectId,comment:{sticky:F.sticky?0:1}}),F.sticky=!F.sticky},ie=async({objectId:F})=>{var Q;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:ce,lang:Ce}=u.value;await Ri({serverURL:ce,lang:Ce,token:(Q=i.value)==null?void 0:Q.token,objectId:F}),d.value.some((we,ke)=>we.objectId===F?(d.value=d.value.filter((Ie,kt)=>kt!==ke),!0):we.children.some((Ie,kt)=>Ie.objectId===F?(d.value[ke].children=we.children.filter((jt,De)=>De!==kt),!0):!1))},be=async F=>{var Q;const{serverURL:ce,lang:Ce}=u.value,{objectId:we}=F,ke=s.value.includes(we);await Xt({serverURL:ce,lang:Ce,objectId:we,token:(Q=i.value)==null?void 0:Q.token,comment:{like:!ke}}),ke?s.value=s.value.filter(Ie=>Ie!==we):(s.value=[...s.value,we],s.value.length>50&&(s.value=s.value.slice(-50))),F.like=(F.like||0)+(ke?-1:1)};return Ua("config",u),mn(()=>{Ke(()=>[t.serverURL,t.path],()=>T(),{immediate:!0})}),Yr(()=>b==null?void 0:b()),(F,Q)=>(I(),P("div",Qh,[oe(Hf),!g.value&&!k.value?(I(),ut(ao,{key:0,onLog:T,onSubmit:G})):Y("v-if",!0),H("div",Xh,[H("div",ed,[o.value?(I(),P("span",{key:0,class:"wl-num",textContent:X(o.value)},null,8,td)):Y("v-if",!0),ft(" "+X($.value.comment),1)]),H("ul",nd,[(I(!0),P(he,null,qe(q(r),ce=>(I(),P("li",{key:ce,class:ve([ce===h.value?"active":""]),onClick:Ce=>j(ce)},X($.value[ce]),11,rd))),128))])]),H("div",id,[(I(!0),P(he,null,qe(d.value,ce=>(I(),ut(Yh,{key:ce.objectId,"root-id":ce.objectId,comment:ce,reply:g.value,edit:k.value,onLog:T,onReply:K,onEdit:z,onSubmit:G,onStatus:je,onDelete:ie,onSticky:Z,onLike:be},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(I(),P("div",sd,[H("button",{type:"button",class:"wl-btn",onClick:T,textContent:X($.value.refresh)},null,8,ld)])):l.value==="loading"?(I(),P("div",od,[oe(q(En),{size:30})])):d.value.length?a.value<c.value?(I(),P("div",cd,[H("button",{type:"button",class:"wl-btn",onClick:U,textContent:X($.value.more)},null,8,ud)])):Y("v-if",!0):(I(),P("div",{key:3,class:"wl-empty",textContent:X($.value.sofa)},null,8,ad)),u.value.copyright?(I(),P("div",fd,[Q[0]||(Q[0]=ft(" Powered by ")),Q[1]||(Q[1]=H("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),ft(" v"+X(q(co)),1)])):Y("v-if",!0)]))}});const uo=(e,t)=>{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},fo=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const u=xi(c);return u!==null&&t!==u},a=c=>Ei({serverURL:jn(e),paths:c.map(u=>xi(u)??t),lang:i,signal:s.signal}).then(u=>uo(u,c)).catch(Rl);if(r){const c=l.filter(h=>!o(h)),u=l.filter(o);Li({serverURL:jn(e),path:t,lang:i}).then(h=>uo(h,c)),u.length&&a(u)}else a(l);return s.abort.bind(s)},dd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?di(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=un({...i}),o=un({comment:n,pageview:r,path:t}),a=()=>{o.comment&&Jl({serverURL:l.serverURL,path:o.path,...Dt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&fo({serverURL:l.serverURL,path:o.path,...Dt(o.pageview)?{selector:o.pageview}:{}})},u=s?Jc(()=>ne(hd,{path:o.path,...l})):null;u&&u.mount(s);const h=Ws(a),d=Ws(c);return{el:s,update:({comment:g,pageview:k,path:v=window.location.pathname,...$}={})=>{Object.entries($).forEach(([b,C])=>{l[b]=C}),o.path=v,g!==void 0&&(o.comment=g),k!==void 0&&(o.pageview=k)},destroy:()=>{u==null||u.unmount(),h(),d()}}},pd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var i;const s=yr(),l=di(e),o=new AbortController;return Ii({serverURL:t,count:n,lang:r,signal:o.signal,token:(i=s.value)==null?void 0:i.token}).then(a=>l&&a.length?(l.innerHTML=`<ul class="wl-recent-list">${a.map(c=>`<li class="wl-recent-item"><a href="${c.url}">${c.nick}</a>:${c.comment}</li>`).join("")}</ul>`,{comments:a,destroy:()=>{o.abort(),l.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},gd=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=di(e),o=new AbortController;return Mi({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Wi(i),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${s}">${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(h=>h).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};re.RecentComments=pd,re.UserList=gd,re.addComment=Si,re.commentCount=Jl,re.defaultLocales=Pn,re.deleteComment=Ri,re.fetchCommentCount=Ai,re.getArticleCounter=xr,re.getComment=$i,re.getPageview=Ei,re.getRecentComment=Ii,re.getUserList=Mi,re.init=dd,re.login=Ti,re.pageviewCount=fo,re.updateArticleCounter=On,re.updateComment=Xt,re.updatePageview=Li,re.version=co});
84
84
  //# sourceMappingURL=waline.umd.js.map