@waline/client 3.4.1 → 3.4.3

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 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);/**
1
+ var Ed=Object.defineProperty;var Td=(ie,Ae,Ee)=>Ae in ie?Ed(ie,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ie[Ae]=Ee;var Co=(ie,Ae,Ee)=>Td(ie,typeof Ae!="symbol"?Ae+"":Ae,Ee);(function(ie,Ae){typeof exports=="object"&&typeof module<"u"?Ae(exports):typeof define=="function"&&define.amd?define(["exports"],Ae):(ie=typeof globalThis<"u"?globalThis:ie||self,Ae(ie.Waline={}))})(this,function(ie){"use strict";const Ae={"Content-Type":"application/json"},Ee=e=>`${e.replace(/\/?$/,"/")}api/`,yt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},_r=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${Ee(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>yt(s,"Get counter").data),In=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${Ee(e)}article?lang=${t}`,{method:"POST",headers:Ae,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>yt(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(`${Ee(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>yt(c,"Get comment data").data)},Ri=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${Ee(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Ai=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Ee(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>yt(i,"Delete comment")),Yt=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${Ee(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Ae,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>yt(s,"Update comment")),Ei=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Ee(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>yt(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)})},Li=({serverURL:e,lang:t,paths:n,signal:r})=>_r({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Ii=e=>In({...e,type:"time",action:"inc"}),Mi=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${Ee(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Pi=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Ee(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>yt(i,"user list")).then(i=>i.data),So=["nick","mail","link"],Oi=e=>e.filter(t=>So.includes(t)),ji=["//unpkg.com/@waline/emojis@1.1.0/weibo"],$o=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Ro=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=()=>t(r.result),r.onerror=n}),Ao=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Eo=e=>{const t=async(n,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()})}},To=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Lo=/</,Io=/(?:^|\s)\/\/(.+?)$/gm,Mo=/\/\*([\S\s]*?)\*\//gm,Po=new RegExp(`(${To.source}|${Lo.source})|((?:${Io.source})|(?:${Mo.source}))`,"gmi"),zi=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Cr={},Oo=e=>{let t=0;return e.replace(Po,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"&lt;";let s;Cr[r]?s=Cr[r]:(s=zi[t],Cr[r]=s);const l=`<span style="color: #${s}">${r}</span>`;return t=++t%zi.length,l})},jo=["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"],Ke=e=>Object.fromEntries(e.map((t,n)=>[jo[n],t]));var zo=Ke(["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?"]),Di=Ke(["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=Ke(["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?"]),Hi=Ke(["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 ?"]),Ui=Ke(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
5
+ 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Do=Ke(["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?"]),Ni=Ke(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
7
+ Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Bi=Ke(["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?"]),Vi=Ke(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
9
+ 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Fo=Ke(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
10
+ 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Wi="en-US",Mn={zh:Vi,"zh-cn":Vi,"zh-tw":Fo,en:Di,"en-us":Di,fr:Hi,"fr-fr":Hi,jp:Ui,"jp-jp":Ui,"pt-br":Do,ru:Ni,"ru-ru":Ni,vi:Bi,"vi-vn":Bi,de:zo,es:Fi,"es-mx":Fi},qi=e=>Mn[e.toLowerCase()]||Mn[Wi.toLowerCase()],Ki=e=>Object.keys(Mn).includes(e.toLowerCase())?e:Wi,Gi={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Ho=Object.keys(Gi),Pn=Symbol("waline-config"),Zi=e=>{try{e=decodeURI(e)}catch{}return e},Ji=(e="")=>e.replace(/\/$/u,""),Yi=e=>/^(https?:)?\/\//.test(e),On=e=>{const t=Ji(e);return Yi(t)?t:`https://${t}`},Uo=e=>Array.isArray(e)?e:e?[0,e]:!1,Sr=(e,t)=>typeof e=="function"?e:e===!1?!1:t,No=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=ji,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:d,texRenderer:p,copyright:g=!0,login:x="enable",search:b,reaction:S,recaptchaV3Key:k="",turnstileKey:_="",commentSorting:U="latest",...T})=>({serverURL:On(e),path:Zi(t),lang:Ki(n),locale:{...qi(Ki(n)),...typeof r=="object"?r:{}},wordLimit:Uo(c),meta:Oi(s),requiredMeta:Oi(l),imageUploader:Sr(u,Ro),highlighter:Sr(d,Oo),texRenderer:Sr(p,Ao),dark:o,emoji:typeof i=="boolean"?i?ji:[]:i,pageSize:a,login:x,copyright:g,search:b===!1?!1:typeof b=="object"?b:Eo(n),recaptchaV3Key:k,turnstileKey:_,reaction:Array.isArray(S)?S:S===!0?$o:[],commentSorting:U,...T}),jt=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}",Bo=e=>jt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${$r}}`:`${e}${$r}`:e===!0?`:root${$r}`:"",Rr=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Vo=e=>{const t=Rr(e.getDate(),2),n=Rr(e.getMonth()+1,2);return`${Rr(e.getFullYear(),2)}-${n}-${t}`},Wo=(e,t,n)=>{if(!e)return"";const r=jt(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}`:Vo(r)},qo=/^[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])?)*$/,Ko=e=>qo.test(e);/**
11
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 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};/**
14
+ **//*! #__NO_SIDE_EFFECTS__ */function Ar(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ae={},zt=[],wt=()=>{},Go=()=>!1,jn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Er=e=>e.startsWith("onUpdate:"),ze=Object.assign,Xi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zo=Object.prototype.hasOwnProperty,te=(e,t)=>Zo.call(e,t),W=Array.isArray,Dt=e=>Xt(e)==="[object Map]",Ft=e=>Xt(e)==="[object Set]",Qi=e=>Xt(e)==="[object Date]",se=e=>typeof e=="function",ve=e=>typeof e=="string",Ge=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",es=e=>(pe(e)||se(e))&&se(e.then)&&se(e.catch),ts=Object.prototype.toString,Xt=e=>ts.call(e),Jo=e=>Xt(e).slice(8,-1),ns=e=>Xt(e)==="[object Object]",Tr=e=>ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qt=Ar(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),zn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Yo=/-(\w)/g,De=zn(e=>e.replace(Yo,(t,n)=>n?n.toUpperCase():"")),Xo=/\B([A-Z])/g,kt=zn(e=>e.replace(Xo,"-$1").toLowerCase()),Dn=zn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Lr=zn(e=>e?`on${Dn(e)}`:""),ht=(e,t)=>!Object.is(e,t),Fn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},rs=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Hn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let is;const en=()=>is||(is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function tn(e){if(W(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ve(r)?na(r):tn(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ve(e)||pe(e))return e}const Qo=/;(?![^(]*\))/g,ea=/:([^]+)/,ta=/\/\*[^]*?\*\//g;function na(e){const t={};return e.replace(ta,"").split(Qo).forEach(n=>{if(n){const r=n.split(ea);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function me(e){let t="";if(ve(e))t=e;else if(W(e))for(let n=0;n<e.length;n++){const r=me(e[n]);r&&(t+=r+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ra=Ar("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ss(e){return!!e||e===""}function ia(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=xt(e[r],t[r]);return n}function xt(e,t){if(e===t)return!0;let n=Qi(e),r=Qi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ge(e),r=Ge(t),n||r)return e===t;if(n=W(e),r=W(t),n||r)return n&&r?ia(e,t):!1;if(n=pe(e),r=pe(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||!xt(e[l],t[l]))return!1}}return String(e)===String(t)}function Ir(e,t){return e.findIndex(n=>xt(n,t))}const ls=e=>!!(e&&e.__v_isRef===!0),ee=e=>ve(e)?e:e==null?"":W(e)||pe(e)&&(e.toString===ts||!se(e.toString))?ls(e)?ee(e.value):JSON.stringify(e,os,2):String(e),os=(e,t)=>ls(t)?os(e,t.value):Dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Mr(r,s)+" =>"]=i,n),{})}:Ft(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Mr(n))}:Ge(t)?Mr(t):pe(t)&&!W(t)&&!ns(t)?String(t):t,Mr=(e,t="")=>{var n;return Ge(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
15
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 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}/**
18
+ **/let Ce;class sa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){Ce=this}off(){Ce=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 as(){return Ce}function la(e,t=!1){Ce&&Ce.cleanups.push(e)}let ue;const Pr=new WeakSet;class cs{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Pr.has(this)&&(Pr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ms(this),hs(this);const t=ue,n=Be;ue=this,Be=!0;try{return this.fn()}finally{ds(this),ue=t,Be=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Dr(t);this.deps=this.depsTail=void 0,ms(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Pr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){zr(this)&&this.run()}get dirty(){return zr(this)}}let us=0,nn,rn;function fs(e,t=!1){if(e.flags|=8,t){e.next=rn,rn=e;return}e.next=nn,nn=e}function Or(){us++}function jr(){if(--us>0)return;if(rn){let t=rn;for(rn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;nn;){let t=nn;for(nn=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 hs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ds(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Dr(r),oa(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function zr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ps(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ps(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===sn))return;e.globalVersion=sn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!zr(e)){e.flags&=-3;return}const n=ue,r=Be;ue=e,Be=!0;try{hs(e);const i=e.fn(e._value);(t.version===0||ht(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ue=n,Be=r,ds(e),e.flags&=-3}}function Dr(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)Dr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function oa(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Be=!0;const gs=[];function _t(){gs.push(Be),Be=!1}function Ct(){const e=gs.pop();Be=e===void 0?!0:e}function ms(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let sn=0;class aa{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(!ue||!Be||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new aa(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,vs(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ue.depsTail,n.nextDep=void 0,ue.depsTail.nextDep=n,ue.depsTail=n,ue.deps===n&&(ue.deps=r)}return n}trigger(t){this.version++,sn++,this.notify(t)}notify(t){Or();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{jr()}}}function vs(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)vs(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Hr=new WeakMap,St=Symbol(""),Ur=Symbol(""),ln=Symbol("");function xe(e,t,n){if(Be&&ue){let r=Hr.get(e);r||Hr.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 rt(e,t,n,r,i,s){const l=Hr.get(e);if(!l){sn++;return}const o=a=>{a&&a.trigger()};if(Or(),t==="clear")l.forEach(o);else{const a=W(e),c=a&&Tr(n);if(a&&n==="length"){const u=Number(r);l.forEach((d,p)=>{(p==="length"||p===ln||!Ge(p)&&p>=u)&&o(d)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(ln)),t){case"add":a?c&&o(l.get("length")):(o(l.get(St)),Dt(e)&&o(l.get(Ur)));break;case"delete":a||(o(l.get(St)),Dt(e)&&o(l.get(Ur)));break;case"set":Dt(e)&&o(l.get(St));break}}jr()}function Ht(e){const t=ne(e);return t===e?t:(xe(t,"iterate",ln),Fe(e)?t:t.map(_e))}function Un(e){return xe(e=ne(e),"iterate",ln),e}const ca={__proto__:null,[Symbol.iterator](){return Nr(this,Symbol.iterator,_e)},concat(...e){return Ht(this).concat(...e.map(t=>W(t)?Ht(t):t))},entries(){return Nr(this,"entries",e=>(e[1]=_e(e[1]),e))},every(e,t){return it(this,"every",e,t,void 0,arguments)},filter(e,t){return it(this,"filter",e,t,n=>n.map(_e),arguments)},find(e,t){return it(this,"find",e,t,_e,arguments)},findIndex(e,t){return it(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return it(this,"findLast",e,t,_e,arguments)},findLastIndex(e,t){return it(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return it(this,"forEach",e,t,void 0,arguments)},includes(...e){return Br(this,"includes",e)},indexOf(...e){return Br(this,"indexOf",e)},join(e){return Ht(this).join(e)},lastIndexOf(...e){return Br(this,"lastIndexOf",e)},map(e,t){return it(this,"map",e,t,void 0,arguments)},pop(){return on(this,"pop")},push(...e){return on(this,"push",e)},reduce(e,...t){return bs(this,"reduce",e,t)},reduceRight(e,...t){return bs(this,"reduceRight",e,t)},shift(){return on(this,"shift")},some(e,t){return it(this,"some",e,t,void 0,arguments)},splice(...e){return on(this,"splice",e)},toReversed(){return Ht(this).toReversed()},toSorted(e){return Ht(this).toSorted(e)},toSpliced(...e){return Ht(this).toSpliced(...e)},unshift(...e){return on(this,"unshift",e)},values(){return Nr(this,"values",_e)}};function Nr(e,t,n){const r=Un(e),i=r[t]();return r!==e&&!Fe(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const ua=Array.prototype;function it(e,t,n,r,i,s){const l=Un(e),o=l!==e&&!Fe(e),a=l[t];if(a!==ua[t]){const d=a.apply(e,s);return o?_e(d):d}let c=n;l!==e&&(o?c=function(d,p){return n.call(this,_e(d),p,e)}:n.length>2&&(c=function(d,p){return n.call(this,d,p,e)}));const u=a.call(l,c,r);return o&&i?i(u):u}function bs(e,t,n,r){const i=Un(e);let s=n;return i!==e&&(Fe(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,_e(o),a,e)}),i[t](s,...r)}function Br(e,t,n){const r=ne(e);xe(r,"iterate",ln);const i=r[t](...n);return(i===-1||i===!1)&&Kr(n[0])?(n[0]=ne(n[0]),r[t](...n)):i}function on(e,t,n=[]){_t(),Or();const r=ne(e)[t].apply(e,n);return jr(),Ct(),r}const fa=Ar("__proto__,__v_isRef,__isVue"),ys=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ge));function ha(e){Ge(e)||(e=String(e));const t=ne(this);return xe(t,"has",e),t.hasOwnProperty(e)}class ws{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?xa:Cs:s?_s:xs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=W(t);if(!i){let a;if(l&&(a=ca[n]))return a;if(n==="hasOwnProperty")return ha}const o=Reflect.get(t,n,we(t)?t:r);return(Ge(n)?ys.has(n):fa(n))||(i||xe(t,"get",n),s)?o:we(o)?l&&Tr(n)?o:o.value:pe(o)?i?cn(o):an(o):o}}class ks extends ws{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=$t(s);if(!Fe(r)&&!$t(r)&&(s=ne(s),r=ne(r)),!W(t)&&we(s)&&!we(r))return a?!1:(s.value=r,!0)}const l=W(t)&&Tr(n)?Number(n)<t.length:te(t,n),o=Reflect.set(t,n,r,we(t)?t:i);return t===ne(i)&&(l?ht(r,s)&&rt(t,"set",n,r):rt(t,"add",n,r)),o}deleteProperty(t,n){const r=te(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&rt(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Ge(n)||!ys.has(n))&&xe(t,"has",n),r}ownKeys(t){return xe(t,"iterate",W(t)?"length":St),Reflect.ownKeys(t)}}class da extends ws{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const pa=new ks,ga=new da,ma=new ks(!0),Vr=e=>e,Nn=e=>Reflect.getPrototypeOf(e);function va(e,t,n){return function(...r){const i=this.__v_raw,s=ne(i),l=Dt(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=i[e](...r),u=n?Vr:t?Gr:_e;return!t&&xe(s,"iterate",a?Ur:St),{next(){const{value:d,done:p}=c.next();return p?{value:d,done:p}:{value:o?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function Bn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ba(e,t){const n={get(i){const s=this.__v_raw,l=ne(s),o=ne(i);e||(ht(i,o)&&xe(l,"get",i),xe(l,"get",o));const{has:a}=Nn(l),c=t?Vr:e?Gr:_e;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&&xe(ne(i),"iterate",St),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=ne(s),o=ne(i);return e||(ht(i,o)&&xe(l,"has",i),xe(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=ne(o),c=t?Vr:e?Gr:_e;return!e&&xe(a,"iterate",St),o.forEach((u,d)=>i.call(s,c(u),c(d),l))}};return ze(n,e?{add:Bn("add"),set:Bn("set"),delete:Bn("delete"),clear:Bn("clear")}:{add(i){!t&&!Fe(i)&&!$t(i)&&(i=ne(i));const s=ne(this);return Nn(s).has.call(s,i)||(s.add(i),rt(s,"add",i,i)),this},set(i,s){!t&&!Fe(s)&&!$t(s)&&(s=ne(s));const l=ne(this),{has:o,get:a}=Nn(l);let c=o.call(l,i);c||(i=ne(i),c=o.call(l,i));const u=a.call(l,i);return l.set(i,s),c?ht(s,u)&&rt(l,"set",i,s):rt(l,"add",i,s),this},delete(i){const s=ne(this),{has:l,get:o}=Nn(s);let a=l.call(s,i);a||(i=ne(i),a=l.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return a&&rt(s,"delete",i,void 0),c},clear(){const i=ne(this),s=i.size!==0,l=i.clear();return s&&rt(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=va(i,e,t)}),n}function Wr(e,t){const n=ba(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(te(n,i)&&i in r?n:r,i,s)}const ya={get:Wr(!1,!1)},wa={get:Wr(!1,!0)},ka={get:Wr(!0,!1)},xs=new WeakMap,_s=new WeakMap,Cs=new WeakMap,xa=new WeakMap;function _a(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ca(e){return e.__v_skip||!Object.isExtensible(e)?0:_a(Jo(e))}function an(e){return $t(e)?e:qr(e,!1,pa,ya,xs)}function Sa(e){return qr(e,!1,ma,wa,_s)}function cn(e){return qr(e,!0,ga,ka,Cs)}function qr(e,t,n,r,i){if(!pe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=Ca(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Ut(e){return $t(e)?Ut(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function Fe(e){return!!(e&&e.__v_isShallow)}function Kr(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function $a(e){return!te(e,"__v_skip")&&Object.isExtensible(e)&&rs(e,"__v_skip",!0),e}const _e=e=>pe(e)?an(e):e,Gr=e=>pe(e)?cn(e):e;function we(e){return e?e.__v_isRef===!0:!1}function X(e){return $s(e,!1)}function Ss(e){return $s(e,!0)}function $s(e,t){return we(e)?e:new Ra(e,t)}class Ra{constructor(t,n){this.dep=new Fr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:_e(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Fe(t)||$t(t);t=r?t:ne(t),ht(t,n)&&(this._rawValue=t,this._value=r?t:_e(t),this.dep.trigger())}}function q(e){return we(e)?e.value:e}function Ze(e){return se(e)?e():q(e)}const Aa={get:(e,t,n)=>t==="__v_raw"?e:q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return we(i)&&!we(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Rs(e){return Ut(e)?e:new Proxy(e,Aa)}class Ea{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=sn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ue!==this)return fs(this,!0),!0}get value(){const t=this.dep.track();return ps(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ta(e,t,n=!1){let r,i;return se(e)?r=e:(r=e.get,i=e.set),new Ea(r,i,n)}const Vn={},Wn=new WeakMap;let Rt;function La(e,t=!1,n=Rt){if(n){let r=Wn.get(n);r||Wn.set(n,r=[]),r.push(e)}}function Ia(e,t,n=ae){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=T=>i?T:Fe(T)||i===!1||i===0?st(T,1):st(T);let u,d,p,g,x=!1,b=!1;if(we(e)?(d=()=>e.value,x=Fe(e)):Ut(e)?(d=()=>c(e),x=!0):W(e)?(b=!0,x=e.some(T=>Ut(T)||Fe(T)),d=()=>e.map(T=>{if(we(T))return T.value;if(Ut(T))return c(T);if(se(T))return a?a(T,2):T()})):se(e)?t?d=a?()=>a(e,2):e:d=()=>{if(p){_t();try{p()}finally{Ct()}}const T=Rt;Rt=u;try{return a?a(e,3,[g]):e(g)}finally{Rt=T}}:d=wt,t&&i){const T=d,O=i===!0?1/0:i;d=()=>st(T(),O)}const S=as(),k=()=>{u.stop(),S&&S.active&&Xi(S.effects,u)};if(s&&t){const T=t;t=(...O)=>{T(...O),k()}}let _=b?new Array(e.length).fill(Vn):Vn;const U=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const O=u.run();if(i||x||(b?O.some((K,z)=>ht(K,_[z])):ht(O,_))){p&&p();const K=Rt;Rt=u;try{const z=[O,_===Vn?void 0:b&&_[0]===Vn?[]:_,g];a?a(t,3,z):t(...z),_=O}finally{Rt=K}}}else u.run()};return o&&o(U),u=new cs(d),u.scheduler=l?()=>l(U,!1):U,g=T=>La(T,!1,u),p=u.onStop=()=>{const T=Wn.get(u);if(T){if(a)a(T,4);else for(const O of T)O();Wn.delete(u)}},t?r?U(!0):_=u.run():l?l(U.bind(null,!0),!0):u.run(),k.pause=u.pause.bind(u),k.resume=u.resume.bind(u),k.stop=k,k}function st(e,t=1/0,n){if(t<=0||!pe(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,we(e))st(e.value,t,n);else if(W(e))for(let r=0;r<e.length;r++)st(e[r],t,n);else if(Ft(e)||Dt(e))e.forEach(r=>{st(r,t,n)});else if(ns(e)){for(const r in e)st(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&st(e[r],t,n)}return e}/**
19
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){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";/**
22
+ **/function un(e,t,n,r){try{return r?e(...r):e()}catch(i){qn(i,t,n)}}function lt(e,t,n,r){if(se(e)){const i=un(e,t,n,r);return i&&es(i)&&i.catch(s=>{qn(s,t,n)}),i}if(W(e)){const i=[];for(let s=0;s<e.length;s++)i.push(lt(e[s],t,n,r));return i}}function qn(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ae;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 d=0;d<u.length;d++)if(u[d](e,a,c)===!1)return}o=o.parent}if(s){_t(),un(s,null,10,[e,a,c]),Ct();return}}Ma(e,n,i,r,l)}function Ma(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Se=[];let Je=-1;const Nt=[];let dt=null,Bt=0;const As=Promise.resolve();let Kn=null;function Vt(e){const t=Kn||As;return e?t.then(this?e.bind(this):e):t}function Pa(e){let t=Je+1,n=Se.length;for(;t<n;){const r=t+n>>>1,i=Se[r],s=fn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Zr(e){if(!(e.flags&1)){const t=fn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=fn(n)?Se.push(e):Se.splice(Pa(t),0,e),e.flags|=1,Es()}}function Es(){Kn||(Kn=As.then(Is))}function Oa(e){W(e)?Nt.push(...e):dt&&e.id===-1?dt.splice(Bt+1,0,e):e.flags&1||(Nt.push(e),e.flags|=1),Es()}function Ts(e,t,n=Je+1){for(;n<Se.length;n++){const r=Se[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Se.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ls(e){if(Nt.length){const t=[...new Set(Nt)].sort((n,r)=>fn(n)-fn(r));if(Nt.length=0,dt){dt.push(...t);return}for(dt=t,Bt=0;Bt<dt.length;Bt++){const n=dt[Bt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}dt=null,Bt=0}}const fn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Is(e){try{for(Je=0;Je<Se.length;Je++){const t=Se[Je];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),un(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Je<Se.length;Je++){const t=Se[Je];t&&(t.flags&=-2)}Je=-1,Se.length=0,Ls(),Kn=null,(Se.length||Nt.length)&&Is()}}let Te=null,Ms=null;function Gn(e){const t=Te;return Te=e,Ms=e&&e.type.__scopeId||null,t}function ja(e,t=Te,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Qs(-1);const s=Gn(t);let l;try{l=e(...i)}finally{Gn(s),r._d&&Qs(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Zn(e,t){if(Te===null)return e;const n=rr(Te),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=ae]=t[i];s&&(se(s)&&(s={mounted:s,updated:s}),s.deep&&st(l),r.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function At(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&&(_t(),lt(a,n,8,[e.el,o,e,t]),Ct())}}const za=Symbol("_vte"),Da=e=>e.__isTeleport;function Jr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Jr(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 hn(e,t){return se(e)?ze({name:e.name},t,{setup:e}):e}function Fa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function pt(e){const t=nl(),n=Ss(null);if(t){const i=t.refs===ae?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:s=>n.value=s})}return n}function Jn(e,t,n,r,i=!1){if(W(e)){e.forEach((x,b)=>Jn(x,t&&(W(t)?t[b]:t),n,r,i));return}if(dn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Jn(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?rr(r.component):r.el,l=i?null:s,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ae?o.refs={}:o.refs,d=o.setupState,p=ne(d),g=d===ae?()=>!1:x=>te(p,x);if(c!=null&&c!==a&&(ve(c)?(u[c]=null,g(c)&&(d[c]=null)):we(c)&&(c.value=null)),se(a))un(a,o,12,[l,u]);else{const x=ve(a),b=we(a);if(x||b){const S=()=>{if(e.f){const k=x?g(a)?d[a]:u[a]:a.value;i?W(k)&&Xi(k,s):W(k)?k.includes(s)||k.push(s):x?(u[a]=[s],g(a)&&(d[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,g(a)&&(d[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(S.id=-1,Me(S,n)):S()}}}en().requestIdleCallback,en().cancelIdleCallback;const dn=e=>!!e.type.__asyncLoader,Ha=e=>e.type.__isKeepAlive;function Ua(e,t,n=$e,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{_t();const o=oi(n),a=lt(t,n,e,l);return o(),Ct(),a});return r?i.unshift(s):i.push(s),s}}const Yr=e=>(t,n=$e)=>{(!yn||e==="sp")&&Ua(e,(...r)=>t(...r),n)},pn=Yr("m"),Na=Yr("bum"),Xr=Yr("um"),Ba="components";function Va(e,t){return qa(Ba,e,!0,t)||e}const Wa=Symbol.for("v-ndc");function qa(e,t,n=!0,r=!1){const i=Te||$e;if(i){const s=i.type;{const o=Ec(s,!1);if(o&&(o===t||o===De(t)||o===Dn(De(t))))return s}const l=Ps(i[e]||s[e],t)||Ps(i.appContext[e],t);return!l&&r?s:l}}function Ps(e,t){return e&&(e[t]||e[De(t)]||e[Dn(De(t))])}function He(e,t,n,r){let i;const s=n,l=W(e);if(l||ve(e)){const o=l&&Ut(e);let a=!1;o&&(a=!Fe(e),e=Un(e)),i=new Array(e.length);for(let c=0,u=e.length;c<u;c++)i[c]=t(a?_e(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(pe(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?il(e)?rr(e):Qr(e.parent):null,gn=ze(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>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=()=>{Zr(e.update)}),$nextTick:e=>e.n||(e.n=Vt.bind(e.proxy)),$watch:e=>wt}),ei=(e,t)=>e!==ae&&!e.__isScriptSetup&&te(e,t),Ka={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(ei(r,t))return l[t]=1,r[t];if(i!==ae&&te(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&te(c,t))return l[t]=3,s[t];if(n!==ae&&te(n,t))return l[t]=4,n[t];l[t]=0}}const u=gn[t];let d,p;if(u)return t==="$attrs"&&xe(e.attrs,"get",""),u(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(n!==ae&&te(n,t))return l[t]=4,n[t];if(p=a.config.globalProperties,te(p,t))return p[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return ei(i,t)?(i[t]=n,!0):r!==ae&&te(r,t)?(r[t]=n,!0):te(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!==ae&&te(e,l)||ei(t,l)||(o=s[0])&&te(o,l)||te(r,l)||te(gn,l)||te(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:te(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Os(){return{app:null,config:{isNativeTag:Go,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 Ga=0;function Za(e,t){return function(r,i=null){se(r)||(r=ze({},r)),i!=null&&!pe(i)&&(i=null);const s=Os(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:Ga++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Lc,get config(){return s.config},set config(u){},use(u,...d){return l.has(u)||(u&&se(u.install)?(l.add(u),u.install(c,...d)):se(u)&&(l.add(u),u(c,...d))),c},mixin(u){return c},component(u,d){return d?(s.components[u]=d,c):s.components[u]},directive(u,d){return d?(s.directives[u]=d,c):s.directives[u]},mount(u,d,p){if(!a){const g=c._ceVNode||ce(r,i);return g.appContext=s,p===!0?p="svg":p===!1&&(p=void 0),e(g,u,p),a=!0,c._container=u,u.__vue_app__=c,rr(g.component)}},onUnmount(u){o.push(u)},unmount(){a&&(lt(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return s.provides[u]=d,c},runWithContext(u){const d=Wt;Wt=c;try{return u()}finally{Wt=d}}};return c}}let Wt=null;function Ja(e,t){if($e){let n=$e.provides;const r=$e.parent&&$e.parent.provides;r===n&&(n=$e.provides=Object.create(r)),n[e]=t}}function Yn(e,t,n=!1){const r=$e||Te;if(r||Wt){const i=Wt?Wt._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&&se(t)?t.call(r&&r.proxy):t}}const js={},zs=()=>Object.create(js),Ds=e=>Object.getPrototypeOf(e)===js;function Ya(e,t,n,r=!1){const i={},s=zs();e.propsDefaults=Object.create(null),Fs(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:Sa(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Xa(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=ne(i),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(Xn(e.emitsOptions,p))continue;const g=t[p];if(a)if(te(s,p))g!==s[p]&&(s[p]=g,c=!0);else{const x=De(p);i[x]=ti(a,o,x,g,e,!1)}else g!==s[p]&&(s[p]=g,c=!0)}}}else{Fs(e,t,i,s)&&(c=!0);let u;for(const d in o)(!t||!te(t,d)&&((u=kt(d))===d||!te(t,u)))&&(a?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=ti(a,o,d,void 0,e,!0)):delete i[d]);if(s!==o)for(const d in s)(!t||!te(t,d))&&(delete s[d],c=!0)}c&&rt(e.attrs,"set","")}function Fs(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(Qt(a))continue;const c=t[a];let u;i&&te(i,u=De(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=ne(n),c=o||ae;for(let u=0;u<s.length;u++){const d=s[u];n[d]=ti(i,a,d,c[d],e,!te(c,d))}}return l}function ti(e,t,n,r,i,s){const l=e[n];if(l!=null){const o=te(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&se(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===kt(n))&&(r=!0))}return r}function Qa(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s)return pe(e)&&r.set(e,zt),zt;if(W(s))for(let c=0;c<s.length;c++){const u=De(s[c]);Hs(u)&&(l[u]=ae)}else if(s)for(const c in s){const u=De(c);if(Hs(u)){const d=s[c],p=l[u]=W(d)||se(d)?{type:d}:ze({},d),g=p.type;let x=!1,b=!0;if(W(g))for(let S=0;S<g.length;++S){const k=g[S],_=se(k)&&k.name;if(_==="Boolean"){x=!0;break}else _==="String"&&(b=!1)}else x=se(g)&&g.name==="Boolean";p[0]=x,p[1]=b,(x||te(p,"default"))&&o.push(u)}}const a=[l,o];return pe(e)&&r.set(e,a),a}function Hs(e){return e[0]!=="$"&&!Qt(e)}const Us=e=>e[0]==="_"||e==="$stable",ni=e=>W(e)?e.map(Ye):[Ye(e)],ec=(e,t,n)=>{if(t._n)return t;const r=ja((...i)=>ni(t(...i)),n);return r._c=!1,r},Ns=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Us(i))continue;const s=e[i];if(se(s))t[i]=ec(i,s,r);else if(s!=null){const l=ni(s);t[i]=()=>l}}},Bs=(e,t)=>{const n=ni(t);e.slots.default=()=>n},Vs=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},tc=(e,t,n)=>{const r=e.slots=zs();if(e.vnode.shapeFlag&32){const i=t._;i?(Vs(r,t,n),n&&rs(r,"_",i,!0)):Ns(t,r)}else t&&Bs(e,t)},nc=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=ae;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:Vs(i,t,n):(s=!t.$stable,Ns(t,i)),l=t}else t&&(Bs(e,t),l={default:1});if(s)for(const o in i)!Us(o)&&l[o]==null&&delete i[o]};function rc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(en().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Me=vc;function ic(e){return sc(e)}function sc(e,t){rc();const n=en();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:g=wt,insertStaticContent:x}=e,b=(f,h,m,y=null,w=null,v=null,E=void 0,$=null,R=!!h.dynamicChildren)=>{if(f===h)return;f&&!bn(f,h)&&(y=Ot(f),qe(f,w,v,!0),f=null),h.patchFlag===-2&&(R=!1,h.dynamicChildren=null);const{type:C,ref:H,shapeFlag:I}=h;switch(C){case Qn:S(f,h,m,y);break;case Tt:k(f,h,m,y);break;case ii:f==null&&_(h,m,y,E);break;case fe:G(f,h,m,y,w,v,E,$,R);break;default:I&1?O(f,h,m,y,w,v,E,$,R):I&6?B(f,h,m,y,w,v,E,$,R):(I&64||I&128)&&C.process(f,h,m,y,w,v,E,$,R,A)}H!=null&&w&&Jn(H,f&&f.ref,v,h||f,!h)},S=(f,h,m,y)=>{if(f==null)r(h.el=o(h.children),m,y);else{const w=h.el=f.el;h.children!==f.children&&c(w,h.children)}},k=(f,h,m,y)=>{f==null?r(h.el=a(h.children||""),m,y):h.el=f.el},_=(f,h,m,y)=>{[f.el,f.anchor]=x(f.children,h,m,y,f.el,f.anchor)},U=({el:f,anchor:h},m,y)=>{let w;for(;f&&f!==h;)w=p(f),r(f,m,y),f=w;r(h,m,y)},T=({el:f,anchor:h})=>{let m;for(;f&&f!==h;)m=p(f),i(f),f=m;i(h)},O=(f,h,m,y,w,v,E,$,R)=>{h.type==="svg"?E="svg":h.type==="math"&&(E="mathml"),f==null?K(h,m,y,w,v,E,$,R):Le(f,h,w,v,E,$,R)},K=(f,h,m,y,w,v,E,$)=>{let R,C;const{props:H,shapeFlag:I,transition:F,dirs:N}=f;if(R=f.el=l(f.type,v,H&&H.is,H),I&8?u(R,f.children):I&16&&J(f.children,R,null,y,w,ri(f,v),E,$),N&&At(f,null,y,"created"),z(R,f,f.scopeId,E,y),H){for(const he in H)he!=="value"&&!Qt(he)&&s(R,he,null,H[he],v,y);"value"in H&&s(R,"value",null,H.value,v),(C=H.onVnodeBeforeMount)&&Xe(C,y,f)}N&&At(f,null,y,"beforeMount");const Y=lc(w,F);Y&&F.beforeEnter(R),r(R,h,m),((C=H&&H.onVnodeMounted)||Y||N)&&Me(()=>{C&&Xe(C,y,f),Y&&F.enter(R),N&&At(f,null,y,"mounted")},w)},z=(f,h,m,y,w)=>{if(m&&g(f,m),y)for(let v=0;v<y.length;v++)g(f,y[v]);if(w){let v=w.subTree;if(h===v||Xs(v.type)&&(v.ssContent===h||v.ssFallback===h)){const E=w.vnode;z(f,E,E.scopeId,E.slotScopeIds,w.parent)}}},J=(f,h,m,y,w,v,E,$,R=0)=>{for(let C=R;C<f.length;C++){const H=f[C]=$?gt(f[C]):Ye(f[C]);b(null,H,h,m,y,w,v,E,$)}},Le=(f,h,m,y,w,v,E)=>{const $=h.el=f.el;let{patchFlag:R,dynamicChildren:C,dirs:H}=h;R|=f.patchFlag&16;const I=f.props||ae,F=h.props||ae;let N;if(m&&Et(m,!1),(N=F.onVnodeBeforeUpdate)&&Xe(N,m,h,f),H&&At(h,f,m,"beforeUpdate"),m&&Et(m,!0),(I.innerHTML&&F.innerHTML==null||I.textContent&&F.textContent==null)&&u($,""),C?Z(f.dynamicChildren,C,$,m,y,ri(h,w),v):E||bt(f,h,$,null,m,y,ri(h,w),v,!1),R>0){if(R&16)M($,I,F,m,w);else if(R&2&&I.class!==F.class&&s($,"class",null,F.class,w),R&4&&s($,"style",I.style,F.style,w),R&8){const Y=h.dynamicProps;for(let he=0;he<Y.length;he++){const oe=Y[he],Oe=I[oe],Ie=F[oe];(Ie!==Oe||oe==="value")&&s($,oe,Oe,Ie,w,m)}}R&1&&f.children!==h.children&&u($,h.children)}else!E&&C==null&&M($,I,F,m,w);((N=F.onVnodeUpdated)||H)&&Me(()=>{N&&Xe(N,m,h,f),H&&At(h,f,m,"updated")},y)},Z=(f,h,m,y,w,v,E)=>{for(let $=0;$<h.length;$++){const R=f[$],C=h[$],H=R.el&&(R.type===fe||!bn(R,C)||R.shapeFlag&70)?d(R.el):m;b(R,C,H,null,y,w,v,E,!0)}},M=(f,h,m,y,w)=>{if(h!==m){if(h!==ae)for(const v in h)!Qt(v)&&!(v in m)&&s(f,v,h[v],null,w,y);for(const v in m){if(Qt(v))continue;const E=m[v],$=h[v];E!==$&&v!=="value"&&s(f,v,$,E,w,y)}"value"in m&&s(f,"value",h.value,m.value,w)}},G=(f,h,m,y,w,v,E,$,R)=>{const C=h.el=f?f.el:o(""),H=h.anchor=f?f.anchor:o("");let{patchFlag:I,dynamicChildren:F,slotScopeIds:N}=h;N&&($=$?$.concat(N):N),f==null?(r(C,m,y),r(H,m,y),J(h.children||[],m,H,w,v,E,$,R)):I>0&&I&64&&F&&f.dynamicChildren?(Z(f.dynamicChildren,F,m,w,v,E,$),(h.key!=null||w&&h===w.subTree)&&Ws(f,h,!0)):bt(f,h,m,H,w,v,E,$,R)},B=(f,h,m,y,w,v,E,$,R)=>{h.slotScopeIds=$,f==null?h.shapeFlag&512?w.ctx.activate(h,m,y,E,R):ge(h,m,y,w,v,E,R):ke(f,h,R)},ge=(f,h,m,y,w,v,E)=>{const $=f.component=Cc(f,y,w);if(Ha(f)&&($.ctx.renderer=A),Sc($,!1,E),$.asyncDep){if(w&&w.registerDep($,ye,E),!f.el){const R=$.subTree=ce(Tt);k(null,R,h,m)}}else ye($,f,h,m,w,v,E)},ke=(f,h,m)=>{const y=h.component=f.component;if(gc(f,h,m))if(y.asyncDep&&!y.asyncResolved){ft(y,h,m);return}else y.next=h,y.update();else h.el=f.el,y.vnode=h},ye=(f,h,m,y,w,v,E)=>{const $=()=>{if(f.isMounted){let{next:I,bu:F,u:N,parent:Y,vnode:he}=f;{const tt=qs(f);if(tt){I&&(I.el=he.el,ft(f,I,E)),tt.asyncDep.then(()=>{f.isUnmounted||$()});return}}let oe=I,Oe;Et(f,!1),I?(I.el=he.el,ft(f,I,E)):I=he,F&&Fn(F),(Oe=I.props&&I.props.onVnodeBeforeUpdate)&&Xe(Oe,Y,I,he),Et(f,!0);const Ie=Js(f),et=f.subTree;f.subTree=Ie,b(et,Ie,d(et.el),Ot(et),f,w,v),I.el=Ie.el,oe===null&&mc(f,Ie.el),N&&Me(N,w),(Oe=I.props&&I.props.onVnodeUpdated)&&Me(()=>Xe(Oe,Y,I,he),w)}else{let I;const{el:F,props:N}=h,{bm:Y,m:he,parent:oe,root:Oe,type:Ie}=f,et=dn(h);Et(f,!1),Y&&Fn(Y),!et&&(I=N&&N.onVnodeBeforeMount)&&Xe(I,oe,h),Et(f,!0);{Oe.ce&&Oe.ce._injectChildStyle(Ie);const tt=f.subTree=Js(f);b(null,tt,m,y,f,w,v),h.el=tt.el}if(he&&Me(he,w),!et&&(I=N&&N.onVnodeMounted)){const tt=h;Me(()=>Xe(I,oe,tt),w)}(h.shapeFlag&256||oe&&dn(oe.vnode)&&oe.vnode.shapeFlag&256)&&f.a&&Me(f.a,w),f.isMounted=!0,h=m=y=null}};f.scope.on();const R=f.effect=new cs($);f.scope.off();const C=f.update=R.run.bind(R),H=f.job=R.runIfDirty.bind(R);H.i=f,H.id=f.uid,R.scheduler=()=>Zr(H),Et(f,!0),C()},ft=(f,h,m)=>{h.component=f;const y=f.vnode.props;f.vnode=h,f.next=null,Xa(f,h.props,y,m),nc(f,h.children,m),_t(),Ts(f),Ct()},bt=(f,h,m,y,w,v,E,$,R=!1)=>{const C=f&&f.children,H=f?f.shapeFlag:0,I=h.children,{patchFlag:F,shapeFlag:N}=h;if(F>0){if(F&128){wr(C,I,m,y,w,v,E,$,R);return}else if(F&256){Tn(C,I,m,y,w,v,E,$,R);return}}N&8?(H&16&&Pt(C,w,v),I!==C&&u(m,I)):H&16?N&16?wr(C,I,m,y,w,v,E,$,R):Pt(C,w,v,!0):(H&8&&u(m,""),N&16&&J(I,m,y,w,v,E,$,R))},Tn=(f,h,m,y,w,v,E,$,R)=>{f=f||zt,h=h||zt;const C=f.length,H=h.length,I=Math.min(C,H);let F;for(F=0;F<I;F++){const N=h[F]=R?gt(h[F]):Ye(h[F]);b(f[F],N,m,null,w,v,E,$,R)}C>H?Pt(f,w,v,!0,!1,I):J(h,m,y,w,v,E,$,R,I)},wr=(f,h,m,y,w,v,E,$,R)=>{let C=0;const H=h.length;let I=f.length-1,F=H-1;for(;C<=I&&C<=F;){const N=f[C],Y=h[C]=R?gt(h[C]):Ye(h[C]);if(bn(N,Y))b(N,Y,m,null,w,v,E,$,R);else break;C++}for(;C<=I&&C<=F;){const N=f[I],Y=h[F]=R?gt(h[F]):Ye(h[F]);if(bn(N,Y))b(N,Y,m,null,w,v,E,$,R);else break;I--,F--}if(C>I){if(C<=F){const N=F+1,Y=N<H?h[N].el:y;for(;C<=F;)b(null,h[C]=R?gt(h[C]):Ye(h[C]),m,Y,w,v,E,$,R),C++}}else if(C>F)for(;C<=I;)qe(f[C],w,v,!0),C++;else{const N=C,Y=C,he=new Map;for(C=Y;C<=F;C++){const je=h[C]=R?gt(h[C]):Ye(h[C]);je.key!=null&&he.set(je.key,C)}let oe,Oe=0;const Ie=F-Y+1;let et=!1,tt=0;const Ln=new Array(Ie);for(C=0;C<Ie;C++)Ln[C]=0;for(C=N;C<=I;C++){const je=f[C];if(Oe>=Ie){qe(je,w,v,!0);continue}let nt;if(je.key!=null)nt=he.get(je.key);else for(oe=Y;oe<=F;oe++)if(Ln[oe-Y]===0&&bn(je,h[oe])){nt=oe;break}nt===void 0?qe(je,w,v,!0):(Ln[nt-Y]=C+1,nt>=tt?tt=nt:et=!0,b(je,h[nt],m,null,w,v,E,$,R),Oe++)}const xo=et?oc(Ln):zt;for(oe=xo.length-1,C=Ie-1;C>=0;C--){const je=Y+C,nt=h[je],_o=je+1<H?h[je+1].el:y;Ln[C]===0?b(null,nt,m,_o,w,v,E,$,R):et&&(oe<0||C!==xo[oe]?Zt(nt,m,_o,2):oe--)}}},Zt=(f,h,m,y,w=null)=>{const{el:v,type:E,transition:$,children:R,shapeFlag:C}=f;if(C&6){Zt(f.component.subTree,h,m,y);return}if(C&128){f.suspense.move(h,m,y);return}if(C&64){E.move(f,h,m,A);return}if(E===fe){r(v,h,m);for(let I=0;I<R.length;I++)Zt(R[I],h,m,y);r(f.anchor,h,m);return}if(E===ii){U(f,h,m);return}if(y!==2&&C&1&&$)if(y===0)$.beforeEnter(v),r(v,h,m),Me(()=>$.enter(v),w);else{const{leave:I,delayLeave:F,afterLeave:N}=$,Y=()=>r(v,h,m),he=()=>{I(v,()=>{Y(),N&&N()})};F?F(v,Y,he):he()}else r(v,h,m)},qe=(f,h,m,y=!1,w=!1)=>{const{type:v,props:E,ref:$,children:R,dynamicChildren:C,shapeFlag:H,patchFlag:I,dirs:F,cacheIndex:N}=f;if(I===-2&&(w=!1),$!=null&&Jn($,null,m,f,!0),N!=null&&(h.renderCache[N]=void 0),H&256){h.ctx.deactivate(f);return}const Y=H&1&&F,he=!dn(f);let oe;if(he&&(oe=E&&E.onVnodeBeforeUnmount)&&Xe(oe,h,f),H&6)xr(f.component,m,y);else{if(H&128){f.suspense.unmount(m,y);return}Y&&At(f,null,h,"beforeUnmount"),H&64?f.type.remove(f,h,m,A,y):C&&!C.hasOnce&&(v!==fe||I>0&&I&64)?Pt(C,h,m,!1,!0):(v===fe&&I&384||!w&&H&16)&&Pt(R,h,m),y&&kr(f)}(he&&(oe=E&&E.onVnodeUnmounted)||Y)&&Me(()=>{oe&&Xe(oe,h,f),Y&&At(f,null,h,"unmounted")},m)},kr=f=>{const{type:h,el:m,anchor:y,transition:w}=f;if(h===fe){Si(m,y);return}if(h===ii){T(f);return}const v=()=>{i(m),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:E,delayLeave:$}=w,R=()=>E(m,v);$?$(f.el,v,R):R()}else v()},Si=(f,h)=>{let m;for(;f!==h;)m=p(f),i(f),f=m;i(h)},xr=(f,h,m)=>{const{bum:y,scope:w,job:v,subTree:E,um:$,m:R,a:C}=f;Ks(R),Ks(C),y&&Fn(y),w.stop(),v&&(v.flags|=8,qe(E,f,h,m)),$&&Me($,h),Me(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},Pt=(f,h,m,y=!1,w=!1,v=0)=>{for(let E=v;E<f.length;E++)qe(f[E],h,m,y,w)},Ot=f=>{if(f.shapeFlag&6)return Ot(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),m=h&&h[za];return m?p(m):h};let Jt=!1;const j=(f,h,m)=>{f==null?h._vnode&&qe(h._vnode,null,null,!0):b(h._vnode||null,f,h,null,null,null,m),h._vnode=f,Jt||(Jt=!0,Ts(),Ls(),Jt=!1)},A={p:b,um:qe,m:Zt,r:kr,mt:ge,mc:J,pc:bt,pbc:Z,n:Ot,o:e};return{render:j,hydrate:void 0,createApp:Za(j)}}function ri({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 Et({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function lc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ws(e,t,n=!1){const r=e.children,i=t.children;if(W(r)&&W(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]=gt(i[s]),o.el=l.el),!n&&o.patchFlag!==-2&&Ws(l,o)),o.type===Qn&&(o.el=l.el)}}function oc(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 qs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qs(t)}function Ks(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const ac=Symbol.for("v-scx"),cc=()=>Yn(ac);function Gs(e,t){return Zs(e,null,t)}function Ue(e,t,n){return Zs(e,t,n)}function Zs(e,t,n=ae){const{immediate:r,deep:i,flush:s,once:l}=n,o=ze({},n),a=t&&r||!t&&s!=="post";let c;if(yn){if(s==="sync"){const g=cc();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=wt,g.resume=wt,g.pause=wt,g}}const u=$e;o.call=(g,x,b)=>lt(g,u,x,b);let d=!1;s==="post"?o.scheduler=g=>{Me(g,u&&u.suspense)}:s!=="sync"&&(d=!0,o.scheduler=(g,x)=>{x?g():Zr(g)}),o.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const p=Ia(e,t,o);return yn&&(c?c.push(p):a&&p()),p}const uc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${De(t)}Modifiers`]||e[`${kt(t)}Modifiers`];function fc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ae;let i=n;const s=t.startsWith("update:"),l=s&&uc(r,t.slice(7));l&&(l.trim&&(i=n.map(u=>ve(u)?u.trim():u)),l.number&&(i=n.map(Hn)));let o,a=r[o=Lr(t)]||r[o=Lr(De(t))];!a&&s&&(a=r[o=Lr(kt(t))]),a&&lt(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,lt(c,e,6,i)}}function hc(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?(W(s)?s.forEach(o=>l[o]=null):ze(l,s),pe(e)&&r.set(e,l),l):(pe(e)&&r.set(e,null),null)}function Xn(e,t){return!e||!jn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,kt(t))||te(e,t))}function Js(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:d,data:p,setupState:g,ctx:x,inheritAttrs:b}=e,S=Gn(e);let k,_;try{if(n.shapeFlag&4){const T=i||r,O=T;k=Ye(c.call(O,T,u,d,g,p,x)),_=o}else{const T=t;k=Ye(T.length>1?T(d,{attrs:o,slots:l,emit:a}):T(d,null)),_=t.props?o:dc(o)}}catch(T){mn.length=0,qn(T,e,1),k=ce(Tt)}let U=k;if(_&&b!==!1){const T=Object.keys(_),{shapeFlag:O}=U;T.length&&O&7&&(s&&T.some(Er)&&(_=pc(_,s)),U=qt(U,_,!1,!0))}return n.dirs&&(U=qt(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&Jr(U,n.transition),k=U,Gn(S),k}const dc=e=>{let t;for(const n in e)(n==="class"||n==="style"||jn(n))&&((t||(t={}))[n]=e[n]);return t},pc=(e,t)=>{const n={};for(const r in e)(!Er(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function gc(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?Ys(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(l[p]!==r[p]&&!Xn(c,p))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?Ys(r,l,c):!0:!!l;return!1}function Ys(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 mc({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const Xs=e=>e.__isSuspense;function vc(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Oa(e)}const fe=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),Tt=Symbol.for("v-cmt"),ii=Symbol.for("v-stc"),mn=[];let Pe=null;function L(e=!1){mn.push(Pe=e?null:[])}function bc(){mn.pop(),Pe=mn[mn.length-1]||null}let vn=1;function Qs(e,t=!1){vn+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function el(e){return e.dynamicChildren=vn>0?Pe||zt:null,bc(),vn>0&&Pe&&Pe.push(e),e}function P(e,t,n,r,i,s){return el(D(e,t,n,r,i,s,!0))}function ot(e,t,n,r,i){return el(ce(e,t,n,r,i,!0))}function er(e){return e?e.__v_isVNode===!0:!1}function bn(e,t){return e.type===t.type&&e.key===t.key}const tl=({key:e})=>e??null,tr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ve(e)||we(e)||se(e)?{i:Te,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,i=null,s=e===fe?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tl(t),ref:t&&tr(t),scopeId:Ms,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:Te};return o?(si(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ve(n)?8:16),vn>0&&!l&&Pe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Pe.push(a),a}const ce=yc;function yc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Wa)&&(e=Tt),er(e)){const o=qt(e,t,!0);return n&&si(o,n),vn>0&&!s&&Pe&&(o.shapeFlag&6?Pe[Pe.indexOf(e)]=o:Pe.push(o)),o.patchFlag=-2,o}if(Tc(e)&&(e=e.__vccOpts),t){t=wc(t);let{class:o,style:a}=t;o&&!ve(o)&&(t.class=me(o)),pe(a)&&(Kr(a)&&!W(a)&&(a=ze({},a)),t.style=tn(a))}const l=ve(e)?1:Xs(e)?128:Da(e)?64:pe(e)?4:se(e)?2:0;return D(e,t,n,r,i,l,s,!0)}function wc(e){return e?Kr(e)||Ds(e)?ze({},e):e:null}function qt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?kc(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&tl(c),ref:t&&t.ref?n&&s?W(s)?s.concat(tr(t)):[s,tr(t)]:tr(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!==fe?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&&qt(e.ssContent),ssFallback:e.ssFallback&&qt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Jr(u,a.clone(u)),u}function at(e=" ",t=0){return ce(Qn,null,e,t)}function Q(e="",t=!1){return t?(L(),ot(Tt,null,e)):ce(Tt,null,e)}function Ye(e){return e==null||typeof e=="boolean"?ce(Tt):W(e)?ce(fe,null,e.slice()):er(e)?gt(e):ce(Qn,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qt(e)}function si(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(W(t))n=16;else if(typeof t=="object")if(r&65){const 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&&!Ds(t)?t._ctx=Te:i===3&&Te&&(Te.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else se(t)?(t={default:t,_ctx:Te},n=32):(t=String(t),r&64?(n=16,t=[at(t)]):n=8);e.children=t,e.shapeFlag|=n}function kc(...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=me([t.class,r.class]));else if(i==="style")t.style=tn([t.style,r.style]);else if(jn(i)){const s=t[i],l=r[i];l&&s!==l&&!(W(s)&&s.includes(l))&&(t[i]=s?[].concat(s,l):l)}else i!==""&&(t[i]=r[i])}return t}function Xe(e,t,n,r=null){lt(e,t,7,[n,r])}const xc=Os();let _c=0;function Cc(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||xc,s={uid:_c++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new sa(!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:Qa(r,i),emitsOptions:hc(r,i),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:r.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,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=fc.bind(null,s),e.ce&&e.ce(s),s}let $e=null;const nl=()=>$e||Te;let nr,li;{const e=en(),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)}};nr=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),li=t("__VUE_SSR_SETTERS__",n=>yn=n)}const oi=e=>{const t=$e;return nr(e),e.scope.on(),()=>{e.scope.off(),nr(t)}},rl=()=>{$e&&$e.scope.off(),nr(null)};function il(e){return e.vnode.shapeFlag&4}let yn=!1;function Sc(e,t=!1,n=!1){t&&li(t);const{props:r,children:i}=e.vnode,s=il(e);Ya(e,r,s,t),tc(e,i,n);const l=s?$c(e,t):void 0;return t&&li(!1),l}function $c(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ka);const{setup:r}=n;if(r){_t();const i=e.setupContext=r.length>1?Ac(e):null,s=oi(e),l=un(r,e,0,[e.props,i]),o=es(l);if(Ct(),s(),(o||e.sp)&&!dn(e)&&Fa(e),o){if(l.then(rl,rl),t)return l.then(a=>{sl(e,a,t)}).catch(a=>{qn(a,e,0)});e.asyncDep=l}else sl(e,l,t)}else ol(e,t)}function sl(e,t,n){se(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Rs(t)),ol(e,n)}let ll;function ol(e,t,n){const r=e.type;if(!e.render){if(!t&&ll&&!r.render){const i=r.template||!1;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=ze(ze({isCustomElement:s,delimiters:o},l),a);r.render=ll(i,c)}}e.render=r.render||wt}}const Rc={get(e,t){return xe(e,"get",""),e[t]}};function Ac(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Rc),slots:e.slots,emit:e.emit,expose:t}}function rr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Rs($a(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gn)return gn[n](e)},has(t,n){return n in t||n in gn}})):e.proxy}function Ec(e,t=!0){return se(e)?e.displayName||e.name:e.name||t&&e.__name}function Tc(e){return se(e)&&"__vccOpts"in e}const be=(e,t)=>Ta(e,t,yn);function re(e,t,n){const r=arguments.length;return r===2?pe(t)&&!W(t)?er(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&er(n)&&(n=[n]),ce(e,t,n))}const Lc="3.5.13";/**
23
23
  * @vue/runtime-dom v3.5.13
24
24
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
25
25
  * @license MIT
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(`
26
+ **/let ai;const al=typeof window<"u"&&window.trustedTypes;if(al)try{ai=al.createPolicy("vue",{createHTML:e=>e})}catch{}const cl=ai?e=>ai.createHTML(e):e=>e,Ic="http://www.w3.org/2000/svg",Mc="http://www.w3.org/1998/Math/MathML",ct=typeof document<"u"?document:null,ul=ct&&ct.createElement("template"),Pc={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"?ct.createElementNS(Ic,e):t==="mathml"?ct.createElementNS(Mc,e):n?ct.createElement(e,{is:n}):ct.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ct.createTextNode(e),createComment:e=>ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ct.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{ul.innerHTML=cl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=ul.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]}},Oc=Symbol("_vtc");function jc(e,t,n){const r=e[Oc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ir=Symbol("_vod"),fl=Symbol("_vsh"),hl={beforeMount(e,{value:t},{transition:n}){e[ir]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):wn(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),wn(e,!0),r.enter(e)):r.leave(e,()=>{wn(e,!1)}):wn(e,t))},beforeUnmount(e,{value:t}){wn(e,t)}};function wn(e,t){e.style.display=t?e[ir]:"none",e[fl]=!t}const zc=Symbol(""),Dc=/(^|;)\s*display\s*:/;function Fc(e,t,n){const r=e.style,i=ve(n);let s=!1;if(n&&!i){if(t)if(ve(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&sr(r,o,"")}else for(const l in t)n[l]==null&&sr(r,l,"");for(const l in n)l==="display"&&(s=!0),sr(r,l,n[l])}else if(i){if(t!==n){const l=r[zc];l&&(n+=";"+l),r.cssText=n,s=Dc.test(n)}}else t&&e.removeAttribute("style");ir in e&&(e[ir]=s?r.display:"",e[fl]&&(r.display="none"))}const dl=/\s*!important$/;function sr(e,t,n){if(W(n))n.forEach(r=>sr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Hc(e,t);dl.test(n)?e.setProperty(kt(r),n.replace(dl,""),"important"):e[r]=n}}const pl=["Webkit","Moz","ms"],ci={};function Hc(e,t){const n=ci[t];if(n)return n;let r=De(t);if(r!=="filter"&&r in e)return ci[t]=r;r=Dn(r);for(let i=0;i<pl.length;i++){const s=pl[i]+r;if(s in e)return ci[t]=s}return t}const gl="http://www.w3.org/1999/xlink";function ml(e,t,n,r,i,s=ra(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(gl,t.slice(6,t.length)):e.setAttributeNS(gl,t,n):n==null||s&&!ss(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Ge(n)?String(n):n)}function vl(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?cl(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=ss(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 ut(e,t,n,r){e.addEventListener(t,n,r)}function Uc(e,t,n,r){e.removeEventListener(t,n,r)}const bl=Symbol("_vei");function Nc(e,t,n,r,i=null){const s=e[bl]||(e[bl]={}),l=s[t];if(r&&l)l.value=r;else{const[o,a]=Bc(t);if(r){const c=s[t]=qc(r,i);ut(e,o,c,a)}else l&&(Uc(e,o,l,a),s[t]=void 0)}}const yl=/(?:Once|Passive|Capture)$/;function Bc(e){let t;if(yl.test(e)){t={};let r;for(;r=e.match(yl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):kt(e.slice(2)),t]}let ui=0;const Vc=Promise.resolve(),Wc=()=>ui||(Vc.then(()=>ui=0),ui=Date.now());function qc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lt(Kc(r,n.value),t,5,[r])};return n.value=e,n.attached=Wc(),n}function Kc(e,t){if(W(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 wl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gc=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?jc(e,r,l):t==="style"?Fc(e,n,r):jn(t)?Er(t)||Nc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zc(e,t,r,l))?(vl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ml(e,t,r,l,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ve(r))?vl(e,De(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ml(e,t,r,l))};function Zc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&wl(t)&&se(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 wl(t)&&ve(n)?!1:t in e}const mt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Fn(t,n):t};function Jc(e){e.target.composing=!0}function kl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ne=Symbol("_assign"),fi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ne]=mt(i);const s=r||i.props&&i.props.type==="number";ut(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Hn(o)),e[Ne](o)}),n&&ut(e,"change",()=>{e.value=e.value.trim()}),t||(ut(e,"compositionstart",Jc),ut(e,"compositionend",kl),ut(e,"change",kl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[Ne]=mt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Hn(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))}},Yc={deep:!0,created(e,t,n){e[Ne]=mt(n),ut(e,"change",()=>{const r=e._modelValue,i=Kt(e),s=e.checked,l=e[Ne];if(W(r)){const o=Ir(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(Ft(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(Cl(e,s))})},mounted:xl,beforeUpdate(e,t,n){e[Ne]=mt(n),xl(e,t,n)}};function xl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(W(t))i=Ir(t,r.props.value)>-1;else if(Ft(t))i=t.has(r.props.value);else{if(t===n)return;i=xt(t,Cl(e,!0))}e.checked!==i&&(e.checked=i)}const Xc={created(e,{value:t},n){e.checked=xt(t,n.props.value),e[Ne]=mt(n),ut(e,"change",()=>{e[Ne](Kt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ne]=mt(r),t!==n&&(e.checked=xt(t,r.props.value))}},Qc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Ft(t);ut(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Hn(Kt(l)):Kt(l));e[Ne](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Vt(()=>{e._assigning=!1})}),e[Ne]=mt(r)},mounted(e,{value:t}){_l(e,t)},beforeUpdate(e,t,n){e[Ne]=mt(n)},updated(e,{value:t}){e._assigning||_l(e,t)}};function _l(e,t){const n=e.multiple,r=W(t);if(!(n&&!r&&!Ft(t))){for(let i=0,s=e.options.length;i<s;i++){const l=e.options[i],o=Kt(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=Ir(t,o)>-1}else l.selected=t.has(o);else if(xt(Kt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Kt(e){return"_value"in e?e._value:e.value}function Cl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const eu={created(e,t,n){lr(e,t,n,null,"created")},mounted(e,t,n){lr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){lr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){lr(e,t,n,r,"updated")}};function tu(e,t){switch(e){case"SELECT":return Qc;case"TEXTAREA":return fi;default:switch(t){case"checkbox":return Yc;case"radio":return Xc;default:return fi}}}function lr(e,t,n,r,i){const l=tu(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const nu=ze({patchProp:Gc},Pc);let Sl;function ru(){return Sl||(Sl=ic(nu))}const iu=(...e)=>{const t=ru().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=lu(r);if(!i)return;const s=t._component;!se(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,su(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function su(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function lu(e){return ve(e)?document.querySelector(e):e}function kn(e){return as()?(la(e),!0):!1}const or=typeof window<"u"&&typeof document<"u",ou=Object.prototype.toString,au=e=>ou.call(e)==="[object Object]",ar=()=>{};function $l(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 Rl=e=>e();function cu(e,t={}){let n,r,i=ar;const s=o=>{clearTimeout(o),i(),i=ar};return o=>{const a=Ze(e),c=Ze(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(o())):new Promise((u,d)=>{i=t.rejectOnCancel?d:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(o())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(o())},a)})}}function uu(e=Rl){const t=X(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:cn(t),pause:n,resume:r,eventFilter:i}}function Al(e){return nl()}function El(e){return Array.isArray(e)?e:[e]}function fu(e,t=200,n={}){return $l(cu(t,n),e)}function hu(e,t,n={}){const{eventFilter:r=Rl,...i}=n;return Ue(e,$l(r,t),i)}function du(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=uu(r);return{stop:hu(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function hi(e,t=!0,n){Al()?pn(e,n):t?e():Vt(e)}function pu(e,t){Al()&&Xr(e,t)}function gu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=X(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function c(){const u=Ze(t);u<=0||(l.value=!0,i&&e(),o(),l.value&&(s=setInterval(e,u)))}if(r&&or&&c(),we(t)||typeof t=="function"){const u=Ue(t,()=>{l.value&&or&&c()});kn(u)}return kn(a),{isActive:l,pause:a,resume:c}}const cr=or?window:void 0,Tl=or?window.document:void 0;function mu(e){var t;const n=Ze(e);return(t=n==null?void 0:n.$el)!=null?t:n}function ur(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=cr):[t,n,r,i]=e,!t)return ar;n=El(n),r=El(r);const s=[],l=()=>{s.forEach(u=>u()),s.length=0},o=(u,d,p,g)=>(u.addEventListener(d,p,g),()=>u.removeEventListener(d,p,g)),a=Ue(()=>[mu(t),Ze(i)],([u,d])=>{if(l(),!u)return;const p=au(d)?{...d}:d;s.push(...n.flatMap(g=>r.map(x=>o(u,g,x,p))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return kn(c),c}function vu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=cr}=t,s=X(!1),l=be(()=>r?1e3/Ze(r):null);let o=0,a=null;function c(p){if(!s.value||!i)return;o||(o=p);const g=p-o;if(l.value&&g<l.value){a=i.requestAnimationFrame(c);return}o=p,e({delta:g,timestamp:p}),a=i.requestAnimationFrame(c)}function u(){!s.value&&i&&(s.value=!0,o=0,a=i.requestAnimationFrame(c))}function d(){s.value=!1,a!=null&&i&&(i.cancelAnimationFrame(a),a=null)}return n&&u(),kn(d),{isActive:cn(s),pause:d,resume:u}}const fr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hr="__vueuse_ssr_handlers__",bu=yu();function yu(){return hr in fr||(fr[hr]=fr[hr]||{}),fr[hr]}function wu(e,t){return bu[e]||t}function ku(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const xu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ll="vueuse-storage";function Gt(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:d=cr,eventFilter:p,onError:g=Z=>{console.error(Z)},initOnMounted:x}=r,b=(u?Ss:X)(typeof t=="function"?t():t);if(!n)try{n=wu("getDefaultStorage",()=>{var Z;return(Z=cr)==null?void 0:Z.localStorage})()}catch(Z){g(Z)}if(!n)return b;const S=Ze(t),k=ku(S),_=(i=r.serializer)!=null?i:xu[k],{pause:U,resume:T}=du(b,()=>K(b.value),{flush:s,deep:l,eventFilter:p});d&&o&&hi(()=>{n instanceof Storage?ur(d,"storage",J):ur(d,Ll,Le),x&&J()}),x||J();function O(Z,M){if(d){const G={key:e,oldValue:Z,newValue:M,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",G):new CustomEvent(Ll,{detail:G}))}}function K(Z){try{const M=n.getItem(e);if(Z==null)O(M,null),n.removeItem(e);else{const G=_.write(Z);M!==G&&(n.setItem(e,G),O(M,G))}}catch(M){g(M)}}function z(Z){const M=Z?Z.newValue:n.getItem(e);if(M==null)return a&&S!=null&&n.setItem(e,_.write(S)),S;if(!Z&&c){const G=_.read(M);return typeof c=="function"?c(G,S):k==="object"&&!Array.isArray(G)?{...S,...G}:G}else return typeof M!="string"?M:_.read(M)}function J(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){b.value=S;return}if(!(Z&&Z.key!==e)){U();try{(Z==null?void 0:Z.newValue)!==_.write(b.value)&&(b.value=z(Z))}catch(M){g(M)}finally{Z?Vt(T):T()}}}}function Le(Z){J(Z.detail)}return b}function _u(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=X(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?vu(i,{immediate:!0}):gu(i,n,{immediate:!0});return t?{now:r,...s}:r}function Cu(e,t=ar,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:d=Tl,attrs:p={}}=n,g=X(null);let x=null;const b=_=>new Promise((U,T)=>{const O=J=>(g.value=J,U(J),J);if(!d){U(!1);return}let K=!1,z=d.querySelector(`script[src="${Ze(e)}"]`);z?z.hasAttribute("data-loaded")&&O(z):(z=d.createElement("script"),z.type=s,z.async=l,z.src=Ze(e),u&&(z.defer=u),o&&(z.crossOrigin=o),c&&(z.noModule=c),a&&(z.referrerPolicy=a),Object.entries(p).forEach(([J,Le])=>z==null?void 0:z.setAttribute(J,Le)),K=!0),z.addEventListener("error",J=>T(J)),z.addEventListener("abort",J=>T(J)),z.addEventListener("load",()=>{z.setAttribute("data-loaded","true"),t(z),O(z)}),K&&(z=d.head.appendChild(z)),_||O(z)}),S=(_=!0)=>(x||(x=b(_)),x),k=()=>{if(!d)return;x=null,g.value&&(g.value=null);const _=d.querySelector(`script[src="${Ze(e)}"]`);_&&d.head.removeChild(_)};return r&&!i&&hi(S),i||pu(k),{scriptTag:g,load:S,unload:k}}let Su=0;function $u(e,t={}){const n=X(!1),{document:r=Tl,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++Su}`}=t,o=X(e);let a=()=>{};const c=()=>{if(!r)return;const d=r.getElementById(l)||r.createElement("style");d.isConnected||(d.id=l,t.media&&(d.media=t.media),r.head.appendChild(d)),!n.value&&(a=Ue(o,p=>{d.textContent=p},{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||kn(u),{id:l,css:o,unload:u,load:c,isLoaded:cn(n)}}const Ru=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Au=e=>{const t=Gt("WALINE_EMOJI",{}),n=Ru(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})},Il=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Eu=e=>Promise.all(e.map(t=>jt(t)?Au(Ji(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:Il(l,s,o,a),items:c.map(u=>{const d=`${o}${u}`;return n.map[d]=Il(u,s,o,a),d})})}),n}),Ml=e=>{e.name!=="AbortError"&&console.error(e.message)},di=e=>e instanceof HTMLElement?e:jt(e)?document.querySelector(e):null,Tu=e=>e.type.includes("image"),Pl=e=>{const t=Array.from(e).find(Tu);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 Lt=pi();function Ol(e){Lt=e}const xn={exec:()=>null};function le(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(Re.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}const Re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Lu=/^(?:[ \t]*(?:\n|$))+/,Iu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Mu=/^ {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+|$)/,Pu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jl=/(?:[*+-]|\d{1,9}[.)])/,zl=le(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,jl).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]+)*)/,Ou=/^[^\n]+/,mi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ju=le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",mi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zu=le(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jl).getRegex(),dr="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]*?(?:-->|$))/,Du=le("^ {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",dr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Dl=le(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",dr).getRegex(),bi={blockquote:le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Dl).getRegex(),code:Iu,def:ju,fences:Mu,heading:Pu,hr:_n,html:Du,lheading:zl,list:zu,newline:Lu,paragraph:Dl,table:xn,text:Ou},Fl=le("^ *([^\\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",dr).getRegex(),Fu={...bi,table:Fl,paragraph:le(gi).replace("hr",_n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Fl).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",dr).getRegex()},Hu={...bi,html:le(`^ *(?: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:xn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(gi).replace("hr",_n).replace("heading",` *#{1,6} *[^
27
+ ]`).replace("lheading",zl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Uu=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Nu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Hl=/^( {2,}|\\)\n(?!\s*$)/,Bu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,pr=/[\p{P}\p{S}]/u,yi=/[\s\p{P}\p{S}]/u,Ul=/[^\s\p{P}\p{S}]/u,Vu=le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,yi).getRegex(),Nl=/(?!~)[\p{P}\p{S}]/u,Wu=/(?!~)[\s\p{P}\p{S}]/u,qu=/(?:[^\s\p{P}\p{S}]|~)/u,Ku=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Bl=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Gu=le(Bl,"u").replace(/punct/g,pr).getRegex(),Zu=le(Bl,"u").replace(/punct/g,Nl).getRegex(),Vl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ju=le(Vl,"gu").replace(/notPunctSpace/g,Ul).replace(/punctSpace/g,yi).replace(/punct/g,pr).getRegex(),Yu=le(Vl,"gu").replace(/notPunctSpace/g,qu).replace(/punctSpace/g,Wu).replace(/punct/g,Nl).getRegex(),Xu=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ul).replace(/punctSpace/g,yi).replace(/punct/g,pr).getRegex(),Qu=le(/\\(punct)/,"gu").replace(/punct/g,pr).getRegex(),ef=le(/^<(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(),tf=le(vi).replace("(?:-->|$)","-->").getRegex(),nf=le("^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",tf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rf=le(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Wl=le(/^!?\[(label)\]\[(ref)\]/).replace("label",gr).replace("ref",mi).getRegex(),ql=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",mi).getRegex(),sf=le("reflink|nolink(?!\\()","g").replace("reflink",Wl).replace("nolink",ql).getRegex(),wi={_backpedal:xn,anyPunctuation:Qu,autolink:ef,blockSkip:Ku,br:Hl,code:Nu,del:xn,emStrongLDelim:Gu,emStrongRDelimAst:Ju,emStrongRDelimUnd:Xu,escape:Uu,link:rf,nolink:ql,punctuation:Vu,reflink:Wl,reflinkSearch:sf,tag:nf,text:Bu,url:xn},lf={...wi,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",gr).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gr).getRegex()},ki={...wi,emStrongRDelimAst:Yu,emStrongLDelim:Zu,url:le(/^((?: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.!#$%&'*+\/=?_`{\|}~-]+@)))/},of={...ki,br:le(Hl).replace("{2,}","*").getRegex(),text:le(ki.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mr={normal:bi,gfm:Fu,pedantic:Hu},Cn={normal:wi,gfm:ki,breaks:of,pedantic:lf},af={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Kl=e=>af[e];function Qe(e,t){if(t){if(Re.escapeTest.test(e))return e.replace(Re.escapeReplace,Kl)}else if(Re.escapeTestNoEncode.test(e))return e.replace(Re.escapeReplaceNoEncode,Kl);return e}function Gl(e){try{e=encodeURI(e).replace(Re.percentDecode,"%")}catch{return null}return e}function Zl(e,t){var s;const n=e.replace(Re.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Re.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(Re.slashPipe,"|");return r}function Sn(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function cf(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,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 uf(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const i=r[1];return t.split(`
28
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],`
29
+ `)}class vr{options;rules;lexer;constructor(t){this.options=t||Lt}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:Sn(r,`
30
+ `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=uf(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=Sn(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:Sn(n[0],`
31
+ `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Sn(n[0],`
32
32
  `).split(`
33
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,`
34
+ `),d=u.replace(this.rules.other.blockquoteSetextReplace,`
35
35
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
36
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
+ ${d}`:d;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,l,!0),this.lexer.state.top=p,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 x=g,b=x.raw+`
38
38
  `+r.join(`
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
+ `),S=this.blockquote(b);l[l.length-1]=S,i=i.substring(0,i.length-x.raw.length)+S.raw,s=s.substring(0,s.length-x.text.length)+S.text;break}else if((g==null?void 0:g.type)==="list"){const x=g,b=x.raw+`
40
40
  `+r.join(`
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+=`
41
+ `),S=this.list(b);l[l.length-1]=S,i=i.substring(0,i.length-g.raw.length)+S.raw,s=s.substring(0,s.length-x.raw.length)+S.raw,r=b.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="",d="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let p=n[2].split(`
43
+ `,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),g=t.split(`
44
+ `,1)[0],x=!p.trim(),b=0;if(this.options.pedantic?(b=2,d=p.trimStart()):x?b=n[1].length+1:(b=n[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,d=p.slice(b),b+=n[1].length),x&&this.rules.other.blankLine.test(g)&&(u+=g+`
45
+ `,t=t.substring(g.length+1),c=!0),!c){const _=this.rules.other.nextBulletRegex(b),U=this.rules.other.hrRegex(b),T=this.rules.other.fencesBeginRegex(b),O=this.rules.other.headingBeginRegex(b),K=this.rules.other.htmlBeginRegex(b);for(;t;){const z=t.split(`
46
+ `,1)[0];let J;if(g=z,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),J=g):J=g.replace(this.rules.other.tabCharGlobal," "),T.test(g)||O.test(g)||K.test(g)||_.test(g)||U.test(g))break;if(J.search(this.rules.other.nonSpaceChar)>=b||!g.trim())d+=`
47
+ `+J.slice(b);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||T.test(p)||O.test(p)||U.test(p))break;d+=`
48
+ `+g}!x&&!g.trim()&&(x=!0),u+=z+`
49
+ `,t=t.substring(z.length+1),p=J.slice(b)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let S=null,k;this.options.gfm&&(S=this.rules.other.listIsTask.exec(d),S&&(k=S[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!S,checked:k,loose:!1,text:d,tokens:[]}),s.raw+=u}const a=s.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;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(p=>p.type==="space"),d=u.length>0&&u.some(p=>this.rules.other.anyLine.test(p.raw));s.loose=d}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=Zl(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(Zl(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=Sn(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=cf(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)),Jl(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 Jl(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 d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+l);(i=d.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 p=[...i[0]][0].length,g=t.slice(0,l+i.index+p+a);if(Math.min(l,a)%2){const b=g.slice(1,-1);return{type:"em",raw:g,text:b,tokens:this.lexer.inlineTokens(b)}}const x=g.slice(2,-2);return{type:"strong",raw:g,text:x,tokens:this.lexer.inlineTokens(x)}}}}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 Ve{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Lt,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:Re,block:mr.normal,inline:Cn.normal};this.options.pedantic?(n.block=mr.pedantic,n.inline=Cn.pedantic):this.options.gfm&&(n.block=mr.gfm,this.options.breaks?n.inline=Cn.breaks:n.inline=Cn.gfm),this.tokenizer.rules=n}static get rules(){return{block:mr,inline:Cn}}static lex(t,n){return new Ve(n).lex(t)}static lexInline(t,n){return new Ve(n).inlineTokens(t)}lex(t){t=t.replace(Re.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(Re.tabCharGlobal," ").replace(Re.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
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
54
  `+o.raw,c.text+=`
55
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
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+=`
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 d;this.options.extensions.startBlock.forEach(p=>{d=p.call({lexer:this},u),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),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
58
  `+o.raw,c.text+=`
59
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
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>
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(p=>(u=p.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 p=n.at(-1);u.type==="text"&&(p==null?void 0:p.type)==="text"?(p.raw+=u.raw,p.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 d=t;if((c=this.options.extensions)!=null&&c.startInline){let p=1/0;const g=t.slice(1);let x;this.options.extensions.startInline.forEach(b=>{x=b.call({lexer:this},g),typeof x=="number"&&x>=0&&(p=Math.min(p,x))}),p<1/0&&p>=0&&(d=t.substring(0,p+1))}if(u=this.tokenizer.inlineText(d)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),s=!0;const p=n.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=u.raw,p.text+=u.text):n.push(u);continue}if(t){const p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return n}}class br{options;parser;constructor(t){this.options=t||Lt}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const i=(l=(n||"").match(Re.notSpaceStart))==null?void 0:l[0],s=t.replace(Re.endingNewline,"")+`
62
+ `;return i?'<pre><code class="language-'+Qe(i)+'">'+(r?s:Qe(s,!0))+`</code></pre>
63
+ `:"<pre><code>"+(r?s:Qe(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){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>
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+" "+Qe(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>${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.1",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});
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>${Qe(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=Gl(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return n&&(l+=' title="'+Qe(n)+'"'),l+=">"+i+"</a>",l}image({href:t,title:n,text:r}){const i=Gl(t);if(i===null)return Qe(r);t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${Qe(n)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Qe(t.text)}}class xi{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 We{options;renderer;textRenderer;constructor(t){this.options=t||Lt,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 xi}static parse(t,n){return new We(n).parse(t)}static parseInline(t,n){return new We(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 $n{options;block;constructor(t){this.options=t||Lt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?Ve.lex:Ve.lexInline}provideParser(){return this.block?We.parse:We.parseInline}}Co($n,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Yl{defaults=pi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=We;Renderer=br;TextRenderer=xi;Lexer=Ve;Tokenizer=vr;Hooks=$n;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 d=a.apply(s,u);return d===!1&&(d=c.apply(s,u)),d||""}}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 d=a.apply(s,u);return d===!1&&(d=c.apply(s,u)),d}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new $n;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];$n.passThroughHooks.has(l)?s[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(s,u)).then(p=>c.call(s,p));const d=a.call(s,u);return c.call(s,d)}:s[o]=(...u)=>{let d=a.apply(s,u);return d===!1&&(d=c.apply(s,u)),d}}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 Ve.lex(t,n??this.defaults)}parser(t,n){return We.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?Ve.lex:Ve.lexInline,c=l.hooks?l.hooks.provideParser():t?We.parse:We.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 d=c(u,l);return l.hooks&&(d=l.hooks.postprocess(d)),d}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>"+Qe(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const It=new Yl;function de(e,t){return It.parse(e,t)}de.options=de.setOptions=function(e){return It.setOptions(e),de.defaults=It.defaults,Ol(de.defaults),de},de.getDefaults=pi,de.defaults=Lt,de.use=function(...e){return It.use(...e),de.defaults=It.defaults,Ol(de.defaults),de},de.walkTokens=function(e,t){return It.walkTokens(e,t)},de.parseInline=It.parseInline,de.Parser=We,de.parser=We.parse,de.Renderer=br,de.TextRenderer=xi,de.Lexer=Ve,de.lexer=Ve.lex,de.Tokenizer=vr,de.Hooks=$n,de.parse=de;function ff(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=Xl(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Ql(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.");Ql(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=Xl(n),s=i?e.langPrefix+ro(i):e.emptyLangClass,l=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:ro(t,!0)}
82
+ </code></pre>`}}}}function Xl(e){return(e||"").match(/\S*/)[0]}function Ql(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const eo=/[&<>"']/,hf=new RegExp(eo.source,"g"),to=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,df=new RegExp(to.source,"g"),pf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},no=e=>pf[e];function ro(e,t){if(t){if(eo.test(e))return e.replace(hf,no)}else if(to.test(e))return e.replace(df,no);return e}const gf=/\$.*?\$/,mf=/^\$(.*?)\$/,vf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,bf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=vf.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(gf);return n!==-1?n:t.length},tokenizer(t){const n=mf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],io=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),yf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new Yl;if(i.setOptions({breaks:!0}),n&&i.use(ff({highlight:n})),r){const s=bf(r);i.use({extensions:s})}return i.parse(io(e,t))},_i=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},wf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),kf=e=>e.match(/[\u4E00-\u9FD5]/gu),xf=e=>{var t,n;return(((t=wf(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=kf(e))==null?void 0:n.length)??0)},_f=async()=>{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},so=({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&&Ei({serverURL:On(e),paths:Array.from(s).map(l=>Zi(_i(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Ml),i.abort.bind(i)},lo=({size:e})=>re("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[re("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"}),re("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"})]),Cf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),Sf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("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"})),$f=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[re("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"}),re("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"})]),Rf=({active:e=!1})=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[re("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"})]),Af=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[re("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"}),re("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"})]),Ef=()=>re("svg",{width:"16",height:"16",ariaHidden:"true"},re("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"})),Tf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("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"})),Lf=()=>re("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},re("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"})),If=()=>re("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},re("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"})),Rn=({size:e=100})=>re("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},re("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},re("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Mf=()=>re("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[re("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"}),re("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"})]),Pf=()=>Gt("WALINE_USER_META",{nick:"",mail:"",link:""}),Of=()=>Gt("WALINE_COMMENT_BOX_EDITOR",""),jf="WALINE_LIKE";let oo=null;const ao=()=>oo??(oo=Gt(jf,[])),zf="WALINE_REACTION";let co=null;const Df=()=>co??(co=Gt(zf,{}));var Ci={},vt={},Mt={},uo;function fo(){if(uo)return Mt;uo=1;var e=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{p(l.next(g))}catch(x){c(x)}}function d(g){try{p(l.throw(g))}catch(x){c(x)}}function p(g){g.done?a(g.value):o(g.value).then(u,d)}p((l=l.apply(r,i||[])).next())})},t=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(p){return function(g){return d([p,g])}}function d(p){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,p[0]&&(s=0)),s;)try{if(l=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,o=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=i.call(r,s)}catch(g){p=[6,g],o=0}finally{l=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};Object.defineProperty(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 ho;function Ff(){if(ho)return vt;ho=1;var e=vt.__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(vt,"__esModule",{value:!0}),vt.getInstance=vt.load=void 0;var t=fo(),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),d=new t.ReCaptchaInstance(s,u,grecaptcha);i.successfulLoadingConsumers.forEach(function(p){return p(d)}),i.successfulLoadingConsumers=[],l.autoHideBadge&&d.hideBadge(),i.instance=d,a(d)}).catch(function(u){i.errorLoadingRunnable.forEach(function(d){return d(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 d=document.createElement("script");d.setAttribute("recaptcha-v3-script",""),d.setAttribute("async",""),d.setAttribute("defer","");var p="https://www.google.com/recaptcha/api.js";l?o?p="https://recaptcha.net/recaptcha/enterprise.js":p="https://recaptcha.net/recaptcha/api.js":o&&(p="https://www.google.com/recaptcha/enterprise.js"),c&&(p=c),a.render&&(a.render=void 0);var g=this.buildQueryString(a);return d.src=p+"?render=explicit"+g,new Promise(function(x,b){d.addEventListener("load",u.waitForScriptToLoad(function(){x(d)},o),!1),d.onerror=function(S){i.setLoadingState(n.NOT_LOADED),b(S)},document.head.appendChild(d)})},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 vt.load=r.load,vt.getInstance=r.getInstance,vt}var po;function Hf(){return po||(po=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Ff();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=fo();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(Ci)),Ci}var Uf=Hf();const go={},Nf=e=>{const t=go[e]??(go[e]=Uf.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Bf=e=>({execute:async t=>{const{load:n}=Cu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),Vf="WALINE_USER";let mo=null;const yr=()=>mo??(mo=Gt(Vf,{})),Wf={key:0,class:"wl-reaction"},qf=["textContent"],Kf={class:"wl-reaction-list"},Gf=["onClick"],Zf={class:"wl-reaction-img"},Jf=["src","alt"],Yf=["textContent"],Xf=["textContent"];var Qf=hn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Df(),r=Yn(Pn),i=X(-1),s=X([]),l=be(()=>r.value.locale),o=be(()=>r.value.reaction.length>0),a=be(()=>{const{reaction:p,path:g}=r.value;return p.map((x,b)=>({icon:x,desc:l.value[`reaction${b}`],active:n.value[g]===b}))});let c;const u=async()=>{if(!o.value)return;const{serverURL:p,lang:g,path:x,reaction:b}=r.value,S=new AbortController;c=S.abort.bind(S);const k=await _r({serverURL:p,lang:g,paths:[x],type:b.map((_,U)=>`reaction${U}`),signal:S.signal});s.value=b.map((_,U)=>k[0][`reaction${U}`])},d=async p=>{if(i.value===-1){const{serverURL:g,lang:x,path:b}=r.value,S=n.value[b];i.value=p,S!==void 0&&(await In({serverURL:g,lang:x,path:b,type:`reaction${S}`,action:"desc"}),s.value[S]=Math.max(s.value[S]-1,0)),S!==p&&(await In({serverURL:g,lang:x,path:b,type:`reaction${p}`}),s.value[p]=(s.value[p]||0)+1),S===p?delete n.value[b]:n.value[b]=p,i.value=-1}};return pn(()=>{Ue(()=>[r.value.serverURL,r.value.path],()=>{u()},{immediate:!0})}),Xr(()=>{c()}),(p,g)=>a.value.length?(L(),P("div",Wf,[D("div",{class:"wl-reaction-title",textContent:ee(l.value.reactionTitle)},null,8,qf),D("ul",Kf,[(L(!0),P(fe,null,He(a.value,({active:x,icon:b,desc:S},k)=>(L(),P("li",{key:k,class:me(["wl-reaction-item",{active:x}]),onClick:_=>d(k)},[D("div",Zf,[D("img",{src:b,alt:S},null,8,Jf),i.value===k?(L(),ot(q(Rn),{key:0,class:"wl-reaction-loading"})):(L(),P("div",{key:1,class:"wl-reaction-votes",textContent:ee(s.value[k]||0)},null,8,Yf))]),D("div",{class:"wl-reaction-text",textContent:ee(S)},null,8,Xf)],10,Gf))),128))])])):Q("v-if",!0)}}),An=new Map;function eh(e){var t=An.get(e);t&&t.destroy()}function th(e){var t=An.get(e);t&&t.update()}var En=null;typeof window>"u"?((En=function(e){return e}).destroy=function(e){return e},En.update=function(e){return e}):((En=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"&&!An.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(d){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(d).forEach(function(p){return r.style[p]=d[p]}),An.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",An.set(r,{destroy:a,update:u}),u()}function c(d){var p,g,x=d.restoreTextAlign,b=x===void 0?null:x,S=d.testForHeightReduction,k=S===void 0||S,_=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),k&&(p=function(T){for(var O=[];T&&T.parentNode&&T.parentNode instanceof Element;)T.parentNode.scrollTop&&O.push([T.parentNode,T.parentNode.scrollTop]),T=T.parentNode;return function(){return O.forEach(function(K){var z=K[0],J=K[1];z.style.scrollBehavior="auto",z.scrollTop=J,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",b&&(r.style.textAlign=b),p&&p(),s!==g&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=g),_!==l.overflow&&!b)){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],eh),e},En.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],th),e});var vo=En;const nh=["data-index"],rh=["src","title","onClick"];var ih=hn({__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=pt("wall"),s=X({}),l=X([]),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(()=>[]),c=async p=>{var g;if(p>=n.items.length)return;await Vt();const x=Array.from(((g=i.value)==null?void 0:g.children)??[]).reduce((b,S)=>S.getBoundingClientRect().height<b.getBoundingClientRect().height?S:b);l.value[Number(x.dataset.index)].push(p),await c(p+1)},u=async(p=!1)=>{if(l.value.length===o()&&!p)return;l.value=a(o());const g=window.scrollY;await c(0),window.scrollTo({top:g})},d=p=>{s.value[p.target.src]=!0};return pn(()=>{u(!0),r=new ResizeObserver(()=>{u()}),r.observe(i.value),Ue(()=>[n.items],()=>{s.value={},u(!0)}),Ue(()=>[n.columnWidth,n.gap],()=>{u()})}),Na(()=>{r.unobserve(i.value)}),(p,g)=>(L(),P("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:tn({gap:`${p.gap}px`})},[(L(!0),P(fe,null,He(l.value,(x,b)=>(L(),P("div",{key:b,class:"wl-gallery-column","data-index":b,style:tn({gap:`${p.gap}px`})},[(L(!0),P(fe,null,He(x,S=>(L(),P(fe,{key:S},[s.value[p.items[S].src]?Q("v-if",!0):(L(),ot(q(Rn),{key:0,size:36,style:{margin:"20px auto"}})),D("img",{class:"wl-gallery-item",src:p.items[S].src,title:p.items[S].title,loading:"lazy",onLoad:d,onClick:k=>p.$emit("insert",`![](${p.items[S].src})`)},null,40,rh)],64))),128))],12,nh))),128))],4))}});const sh={key:0,class:"wl-login-info"},lh={class:"wl-avatar"},oh=["title"],ah=["title"],ch=["src"],uh=["title","textContent"],fh={class:"wl-panel"},hh=["for","textContent"],dh=["id","onUpdate:modelValue","name","type"],ph=["placeholder"],gh={class:"wl-preview"},mh=["innerHTML"],vh={class:"wl-footer"},bh={class:"wl-actions"},yh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},wh=["title"],kh=["title"],xh=["title","aria-label"],_h=["title"],Ch={class:"wl-info"},Sh={class:"wl-text-number"},$h={key:0},Rh=["textContent"],Ah=["textContent"],Eh=["disabled"],Th=["placeholder"],Lh={key:1,class:"wl-loading"},Ih={key:0,class:"wl-tab-wrapper"},Mh=["title","onClick"],Ph=["src","alt"],Oh={key:0,class:"wl-tabs"},jh=["onClick"],zh=["src","alt","title"],Dh=["title"];var bo=hn({__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=Yn(Pn),s=Of(),l=Pf(),o=yr(),a=X({}),c=pt("textarea"),u=pt("image-uploader"),d=pt("emoji-button"),p=pt("emoji-popup"),g=pt("gif-button"),x=pt("gif-popup"),b=pt("gif-search"),S=X({tabs:[],map:{}}),k=X(0),_=X(!1),U=X(!1),T=X(!1),O=X(""),K=X(0),z=an({loading:!0,list:[]}),J=X(0),Le=X(!1),Z=X(""),M=X(!1),G=X(!1),B=be(()=>i.value.locale),ge=be(()=>!!o.value.token),ke=be(()=>i.value.imageUploader!==!1),ye=j=>{const A=c.value,V=A.selectionStart,f=A.selectionEnd||0,h=A.scrollTop;s.value=A.value.substring(0,V)+j+A.value.substring(f,A.value.length),A.focus(),A.selectionStart=V+j.length,A.selectionEnd=V+j.length,A.scrollTop=h},ft=j=>{if(M.value)return;const A=j.key;(j.ctrlKey||j.metaKey)&&A==="Enter"&&qe()},bt=j=>{const A=`![${i.value.locale.uploading} ${j.name}]()`;return ye(A),M.value=!0,Promise.resolve().then(()=>i.value.imageUploader(j)).then(V=>{s.value=s.value.replace(A,`\r
83
+ ![${j.name}](${V})`)}).catch(V=>{alert(V.message),s.value=s.value.replace(A,"")}).then(()=>{M.value=!1})},Tn=j=>{var A;if((A=j.dataTransfer)!=null&&A.items){const V=Pl(j.dataTransfer.items);V&&ke.value&&(bt(V),j.preventDefault())}},wr=j=>{if(j.clipboardData){const A=Pl(j.clipboardData.items);A&&ke.value&&bt(A)}},Zt=()=>{const j=u.value;j.files&&ke.value&&bt(j.files[0]).then(()=>{j.value=""})},qe=async()=>{var j;const{serverURL:A,lang:V,login:f,wordLimit:h,requiredMeta:m,recaptchaV3Key:y,turnstileKey:w}=i.value,v={comment:Z.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:await _f()};if(!n.edit)if(o.value.token)v.nick=o.value.display_name,v.mail=o.value.email,v.link=o.value.url;else{if(f==="force")return;if(m.includes("nick")&&!v.nick){a.value.nick.focus(),alert(B.value.nickError);return}if(m.includes("mail")&&!v.mail||v.mail&&!Ko(v.mail)){a.value.mail.focus(),alert(B.value.mailError);return}v.nick||(v.nick=B.value.anonymous)}if(!v.comment){c.value.focus();return}if(!Le.value){alert(B.value.wordHint.replace("$0",h[0].toString()).replace("$1",h[1].toString()).replace("$2",K.value.toString()));return}v.comment=io(v.comment,S.value.map),n.replyId&&n.rootId&&(v.pid=n.replyId,v.rid=n.rootId,v.at=n.replyUser),M.value=!0;try{y&&(v.recaptchaV3=await Nf(y).execute("social")),w&&(v.turnstile=await Bf(w).execute("social"));const E={serverURL:A,lang:V,token:o.value.token,comment:v},$=await(n.edit?Yt({objectId:n.edit.objectId,...E}):Ri(E));if(M.value=!1,$.errmsg){alert($.errmsg);return}r("submit",$.data),s.value="",O.value="",await Vt(),n.replyId&&r("cancelReply"),(j=n.edit)!=null&&j.objectId&&r("cancelEdit")}catch(E){M.value=!1,alert(E.message)}},kr=j=>{j.preventDefault();const{lang:A,serverURL:V}=i.value;Ti({serverURL:V,lang:A}).then(f=>{o.value=f,(f.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(f)),r("log")})},Si=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},xr=j=>{j.preventDefault();const{lang:A,serverURL:V}=i.value,f=800,h=800,m=(window.innerWidth-f)/2,y=(window.innerHeight-h)/2,w=new URLSearchParams({lng:A,token:o.value.token}),v=window.open(`${V}/ui/profile?${w.toString()}`,"_blank",`width=${f},height=${h},left=${m},top=${y},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);v==null||v.postMessage({type:"TOKEN",data:o.value.token},"*")},Pt=j=>{var A,V,f,h;!((A=d.value)!=null&&A.contains(j.target))&&!((V=p.value)!=null&&V.contains(j.target))&&(_.value=!1),!((f=g.value)!=null&&f.contains(j.target))&&!((h=x.value)!=null&&h.contains(j.target))&&(U.value=!1)},Ot=async j=>{var A;const{scrollTop:V,clientHeight:f,scrollHeight:h}=j.target,m=(f+V)/h,y=i.value.search,w=((A=b.value)==null?void 0:A.value)??"";m<.9||z.loading||G.value||(z.loading=!0,(y.more&&z.list.length?await y.more(w,z.list.length):await y.search(w)).length?z.list=[...z.list,...y.more&&z.list.length?await y.more(w,z.list.length):await y.search(w)]:G.value=!0,z.loading=!1,setTimeout(()=>{j.target.scrollTop=V},50))},Jt=fu(j=>{z.list=[],G.value=!1,Ot(j)},300);return Ue([i,K],([j,A])=>{const{wordLimit:V}=j;V?A<V[0]&&V[0]!==0?(J.value=V[0],Le.value=!1):A>V[1]?(J.value=V[1],Le.value=!1):(J.value=V[1],Le.value=!0):(J.value=0,Le.value=!0)},{immediate:!0}),ur("click",Pt),ur("message",({data:j})=>{!j||j.type!=="profile"||(o.value={...o.value,...j.data},[localStorage,sessionStorage].filter(A=>A.getItem("WALINE_USER")).forEach(A=>{A.setItem("WALINE_USER",JSON.stringify(o))}))}),Ue(U,async j=>{var A;if(!j)return;const V=i.value.search;b.value&&(b.value.value=""),z.loading=!0,z.list=await(((A=V.default)==null?void 0:A.call(V))??V.search("")),z.loading=!1}),pn(()=>{var j;(j=n.edit)!=null&&j.objectId&&(s.value=n.edit.orig),Ue(()=>s.value,A=>{const{highlighter:V,texRenderer:f}=i.value;Z.value=A,O.value=yf(A,{emojiMap:S.value.map,highlighter:V,texRenderer:f}),K.value=xf(A),A?vo(c.value):vo.destroy(c.value)},{immediate:!0}),Ue(()=>i.value.emoji,A=>Eu(A).then(V=>{S.value=V}),{immediate:!0})}),(j,A)=>{var V,f;return L(),P("div",{key:q(o).token,class:"wl-comment"},[q(i).login!=="disable"&&ge.value&&!((V=j.edit)!=null&&V.objectId)?(L(),P("div",sh,[D("div",lh,[D("button",{type:"submit",class:"wl-logout-btn",title:B.value.logout,onClick:Si},[ce(q(lo),{size:14})],8,oh),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:B.value.profile,onClick:xr},[D("img",{src:q(o).avatar,alt:"avatar"},null,8,ch)],8,ah)]),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:B.value.profile,onClick:xr,textContent:ee(q(o).display_name)},null,8,uh)])):Q("v-if",!0),D("div",fh,[q(i).login!=="force"&&q(i).meta.length&&!ge.value?(L(),P("div",{key:0,class:me(["wl-header",`item${q(i).meta.length}`])},[(L(!0),P(fe,null,He(q(i).meta,h=>(L(),P("div",{key:h,class:"wl-header-item"},[D("label",{for:`wl-${h}`,textContent:ee(B.value[h]+(q(i).requiredMeta.includes(h)||!q(i).requiredMeta.length?"":`(${B.value.optional})`))},null,8,hh),Zn(D("input",{id:`wl-${h}`,ref_for:!0,ref:m=>{m&&(a.value[h]=m)},"onUpdate:modelValue":m=>q(l)[h]=m,class:me(["wl-input",`wl-${h}`]),name:h,type:h==="mail"?"email":"text"},null,10,dh),[[eu,q(l)[h]]])]))),128))],2)):Q("v-if",!0),Zn(D("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":A[0]||(A[0]=h=>we(s)?s.value=h:null),class:"wl-editor",placeholder:j.replyUser?`@${j.replyUser}`:B.value.placeholder,onKeydown:ft,onDrop:Tn,onPaste:wr},null,40,ph),[[fi,q(s)]]),Zn(D("div",gh,[A[7]||(A[7]=D("hr",null,null,-1)),D("h4",null,ee(B.value.preview)+":",1),D("div",{class:"wl-content",innerHTML:O.value},null,8,mh)],512),[[hl,T.value]]),D("div",vh,[D("div",bh,[D("a",yh,[ce(q(Ef))]),Zn(D("button",{ref:"emoji-button",type:"button",class:me(["wl-action",{active:_.value}]),title:B.value.emoji,onClick:A[1]||(A[1]=h=>_.value=!_.value)},[ce(q(Sf))],10,wh),[[hl,S.value.tabs.length]]),q(i).search?(L(),P("button",{key:0,ref:"gif-button",type:"button",class:me(["wl-action",{active:U.value}]),title:B.value.gif,onClick:A[2]||(A[2]=h=>U.value=!U.value)},[ce(q(Mf))],10,kh)):Q("v-if",!0),D("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Zt},null,544),ke.value?(L(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:B.value.uploadImage,"aria-label":B.value.uploadImage},[ce(q($f))],8,xh)):Q("v-if",!0),D("button",{type:"button",class:me(["wl-action",{active:T.value}]),title:B.value.preview,onClick:A[3]||(A[3]=h=>T.value=!T.value)},[ce(q(Af))],10,_h)]),D("div",Ch,[A[9]||(A[9]=D("div",{class:"wl-captcha-container"},null,-1)),D("div",Sh,[at(ee(K.value)+" ",1),q(i).wordLimit?(L(),P("span",$h,[A[8]||(A[8]=at("  /  ")),D("span",{class:me({illegal:!Le.value}),textContent:ee(J.value)},null,10,Rh)])):Q("v-if",!0),at("  "+ee(B.value.word),1)]),q(i).login!=="disable"&&!ge.value?(L(),P("button",{key:0,type:"button",class:"wl-btn",onClick:kr,textContent:ee(B.value.login)},null,8,Ah)):Q("v-if",!0),q(i).login!=="force"||ge.value?(L(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:M.value,onClick:qe},[M.value?(L(),ot(q(Rn),{key:0,size:16})):(L(),P(fe,{key:1},[at(ee(B.value.submit),1)],64))],8,Eh)):Q("v-if",!0)]),D("div",{ref:"gif-popup",class:me(["wl-gif-popup",{display:U.value}])},[D("input",{ref:"gif-search",type:"text",placeholder:B.value.gifSearchPlaceholder,onInput:A[4]||(A[4]=(...h)=>q(Jt)&&q(Jt)(...h))},null,40,Th),z.list.length?(L(),ot(ih,{key:0,items:z.list,"column-width":200,gap:6,onInsert:A[5]||(A[5]=h=>ye(h)),onScroll:Ot},null,8,["items"])):Q("v-if",!0),z.loading?(L(),P("div",Lh,[ce(q(Rn),{size:30})])):Q("v-if",!0)],2),D("div",{ref:"emoji-popup",class:me(["wl-emoji-popup",{display:_.value}])},[(L(!0),P(fe,null,He(S.value.tabs,(h,m)=>(L(),P(fe,{key:h.name},[m===k.value?(L(),P("div",Ih,[(L(!0),P(fe,null,He(h.items,y=>(L(),P("button",{key:y,type:"button",title:y,onClick:w=>ye(`:${y}:`)},[_.value?(L(),P("img",{key:0,class:"wl-emoji",src:S.value.map[y],alt:y,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ph)):Q("v-if",!0)],8,Mh))),128))])):Q("v-if",!0)],64))),128)),S.value.tabs.length>1?(L(),P("div",Oh,[(L(!0),P(fe,null,He(S.value.tabs,(h,m)=>(L(),P("button",{key:h.name,type:"button",class:me(["wl-tab",{active:k.value===m}]),onClick:y=>k.value=m},[D("img",{class:"wl-emoji",src:h.icon,alt:h.name,title:h.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,zh)],10,jh))),128))])):Q("v-if",!0)],2)])]),j.replyId||(f=j.edit)!=null&&f.objectId?(L(),P("button",{key:1,type:"button",class:"wl-close",title:B.value.cancelReply,onClick:A[6]||(A[6]=h=>j.replyId?r("cancelReply"):r("cancelEdit"))},[ce(q(lo),{size:24})],8,Dh)):Q("v-if",!0)])}}});const Fh=["id"],Hh={class:"wl-user","aria-hidden":"true"},Uh=["src"],Nh={class:"wl-card"},Bh={class:"wl-head"},Vh=["href"],Wh={key:1,class:"wl-nick"},qh=["textContent"],Kh=["textContent"],Gh=["textContent"],Zh=["textContent"],Jh=["textContent"],Yh={class:"wl-comment-actions"},Xh=["title"],Qh=["title"],ed={class:"wl-meta","aria-hidden":"true"},td=["data-value","textContent"],nd={key:0,class:"wl-content"},rd={key:0},id=["href"],sd=["innerHTML"],ld={key:1,class:"wl-admin-actions"},od={class:"wl-comment-status"},ad=["disabled","onClick","textContent"],cd={key:3,class:"wl-quote"};var ud=hn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=Yn(Pn),l=ao(),o=_u(),a=yr(),c=be(()=>s.value.locale),u=be(()=>{const{link:k}=n.comment;return k?Yi(k)?k:`https://${k}`:""}),d=be(()=>l.value.includes(n.comment.objectId)),p=be(()=>Wo(new Date(n.comment.time),o.value,c.value)),g=be(()=>a.value.type==="administrator"),x=be(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),b=be(()=>{var k;return n.comment.objectId===((k=n.reply)==null?void 0:k.objectId)}),S=be(()=>{var k;return n.comment.objectId===((k=n.edit)==null?void 0:k.objectId)});return(k,_)=>{var U;const T=Va("CommentCard",!0);return L(),P("div",{id:k.comment.objectId,class:"wl-card-item"},[D("div",Hh,[k.comment.avatar?(L(),P("img",{key:0,class:"wl-user-avatar",src:k.comment.avatar,alt:""},null,8,Uh)):Q("v-if",!0),k.comment.type?(L(),ot(q(If),{key:1})):Q("v-if",!0)]),D("div",Nh,[D("div",Bh,[u.value?(L(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},ee(k.comment.nick),9,Vh)):(L(),P("span",Wh,ee(k.comment.nick),1)),k.comment.type==="administrator"?(L(),P("span",{key:2,class:"wl-badge",textContent:ee(c.value.admin)},null,8,qh)):Q("v-if",!0),k.comment.label?(L(),P("span",{key:3,class:"wl-badge",textContent:ee(k.comment.label)},null,8,Kh)):Q("v-if",!0),k.comment.sticky?(L(),P("span",{key:4,class:"wl-badge",textContent:ee(c.value.sticky)},null,8,Gh)):Q("v-if",!0),typeof k.comment.level=="number"?(L(),P("span",{key:5,class:me(`wl-badge level${k.comment.level}`),textContent:ee(c.value[`level${k.comment.level}`]||`Level ${k.comment.level}`)},null,10,Zh)):Q("v-if",!0),D("span",{class:"wl-time",textContent:ee(p.value)},null,8,Jh),D("div",Yh,[g.value||x.value?(L(),P(fe,{key:0},[D("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=O=>r("edit",k.comment))},[ce(q(Lf))]),D("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=O=>r("delete",k.comment))},[ce(q(Cf))])],64)):Q("v-if",!0),D("button",{type:"button",class:"wl-like",title:d.value?c.value.cancelLike:c.value.like,onClick:_[2]||(_[2]=O=>r("like",k.comment))},[ce(q(Rf),{active:d.value},null,8,["active"]),at(" "+ee("like"in k.comment?k.comment.like:""),1)],8,Xh),D("button",{type:"button",class:me(["wl-reply",{active:b.value}]),title:b.value?c.value.cancelReply:c.value.reply,onClick:_[3]||(_[3]=O=>r("reply",b.value?null:k.comment))},[ce(q(Tf))],10,Qh)])]),D("div",ed,[(L(),P(fe,null,He(["addr","browser","os"],O=>(L(),P(fe,null,[k.comment[O]?(L(),P("span",{key:O,class:me(`wl-${O}`),"data-value":k.comment[O],textContent:ee(k.comment[O])},null,10,td)):Q("v-if",!0)],64))),64))]),S.value?Q("v-if",!0):(L(),P("div",nd,["reply_user"in k.comment&&k.comment.reply_user?(L(),P("p",rd,[D("a",{href:"#"+k.comment.pid},"@"+ee(k.comment.reply_user.nick),9,id),_[17]||(_[17]=D("span",null,": ",-1))])):Q("v-if",!0),D("div",{innerHTML:k.comment.comment},null,8,sd)])),g.value&&!S.value?(L(),P("div",ld,[D("span",od,[(L(),P(fe,null,He(i,O=>D("button",{key:O,type:"submit",class:me(`wl-btn wl-${O}`),disabled:k.comment.status===O,onClick:K=>r("status",{status:O,comment:k.comment}),textContent:ee(c.value[O])},null,10,ad)),64))]),g.value&&!("rid"in k.comment)?(L(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=O=>r("sticky",k.comment))},ee(k.comment.sticky?c.value.unsticky:c.value.sticky),1)):Q("v-if",!0)])):Q("v-if",!0),b.value||S.value?(L(),P("div",{key:2,class:me({"wl-reply-wrapper":b.value,"wl-edit-wrapper":S.value})},[ce(bo,{edit:k.edit,"reply-id":(U=k.reply)==null?void 0:U.objectId,"reply-user":k.comment.nick,"root-id":k.rootId,onLog:_[5]||(_[5]=O=>r("log")),onCancelReply:_[6]||(_[6]=O=>r("reply",null)),onCancelEdit:_[7]||(_[7]=O=>r("edit",null)),onSubmit:_[8]||(_[8]=O=>r("submit",O))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Q("v-if",!0),"children"in k.comment?(L(),P("div",cd,[(L(!0),P(fe,null,He(k.comment.children,O=>(L(),ot(T,{key:O.objectId,comment:O,reply:k.reply,edit:k.edit,"root-id":k.rootId,onLog:_[9]||(_[9]=K=>r("log")),onDelete:_[10]||(_[10]=K=>r("delete",K)),onEdit:_[11]||(_[11]=K=>r("edit",K)),onLike:_[12]||(_[12]=K=>r("like",K)),onReply:_[13]||(_[13]=K=>r("reply",K)),onStatus:_[14]||(_[14]=K=>r("status",K)),onSticky:_[15]||(_[15]=K=>r("sticky",K)),onSubmit:_[16]||(_[16]=K=>r("submit",K))},null,8,["comment","reply","edit","root-id"]))),128))])):Q("v-if",!0)])],8,Fh)}}});const yo="3.4.3",fd={"data-waline":""},hd={class:"wl-meta-head"},dd={class:"wl-count"},pd=["textContent"],gd={class:"wl-sort"},md=["onClick"],vd={class:"wl-cards"},bd={key:1,class:"wl-operation"},yd=["textContent"],wd={key:2,class:"wl-loading"},kd=["textContent"],xd={key:4,class:"wl-operation"},_d=["textContent"],Cd={key:5,class:"wl-power"};var Sd=hn({__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=yr(),r=ao(),i=X("loading"),s=X(0),l=X(1),o=X(0),a=be(()=>No(t)),c=X(a.value.commentSorting),u=X([]),d=X(null),p=X(null),g=be(()=>Bo(a.value.dark)),x=be(()=>a.value.locale);$u(g,{id:"waline-darkmode"});let b=null;const S=M=>{const{serverURL:G,path:B,pageSize:ge}=a.value,ke=new AbortController;i.value="loading",b==null||b(),$i({serverURL:G,lang:a.value.lang,path:B,pageSize:ge,sortBy:Gi[c.value],page:M,signal:ke.signal,token:n.value.token}).then(ye=>{i.value="success",s.value=ye.count,u.value.push(...ye.data),l.value=M,o.value=ye.totalPages}).catch(ye=>{ye.name!=="AbortError"&&(console.error(ye.message),i.value="error")}),b=ke.abort.bind(ke)},k=()=>{S(l.value+1)},_=()=>{s.value=0,u.value=[],S(1)},U=M=>{c.value!==M&&(c.value=M,_())},T=M=>{d.value=M},O=M=>{p.value=M},K=M=>{if(p.value)p.value.comment=M.comment,p.value.orig=M.orig;else if("rid"in M){const G=u.value.find(({objectId:B})=>B===M.rid);if(!G)return;Array.isArray(G.children)||(G.children=[]),G.children.push(M)}else u.value.unshift(M),s.value+=1},z=async({comment:M,status:G})=>{if(M.status===G)return;const{serverURL:B,lang:ge}=a.value;await Yt({serverURL:B,lang:ge,token:n.value.token,objectId:M.objectId,comment:{status:G}}),M.status=G},J=async M=>{if("rid"in M)return;const{serverURL:G,lang:B}=a.value;await Yt({serverURL:G,lang:B,token:n.value.token,objectId:M.objectId,comment:{sticky:M.sticky?0:1}}),M.sticky=!M.sticky},Le=async({objectId:M})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:G,lang:B}=a.value;await Ai({serverURL:G,lang:B,token:n.value.token,objectId:M}),u.value.some((ge,ke)=>ge.objectId===M?(u.value=u.value.filter((ye,ft)=>ft!==ke),!0):ge.children.some((ye,ft)=>ye.objectId===M?(u.value[ke].children=ge.children.filter((bt,Tn)=>Tn!==ft),!0):!1))},Z=async M=>{const{serverURL:G,lang:B}=a.value,{objectId:ge}=M,ke=r.value.includes(ge);await Yt({serverURL:G,lang:B,objectId:ge,token:n.value.token,comment:{like:!ke}}),ke?r.value=r.value.filter(ye=>ye!==ge):(r.value=[...r.value,ge],r.value.length>50&&(r.value=r.value.slice(-50))),M.like=Math.max(0,(M.like||0)+(ke?-1:1))};return Ja(Pn,a),pn(()=>{Ue(()=>[t.serverURL,t.path],()=>{_()},{immediate:!0})}),Xr(()=>{b==null||b()}),(M,G)=>(L(),P("div",fd,[ce(Qf),!d.value&&!p.value?(L(),ot(bo,{key:0,onLog:_,onSubmit:K})):Q("v-if",!0),D("div",hd,[D("div",dd,[s.value?(L(),P("span",{key:0,class:"wl-num",textContent:ee(s.value)},null,8,pd)):Q("v-if",!0),at(" "+ee(x.value.comment),1)]),D("ul",gd,[(L(!0),P(fe,null,He(q(Ho),B=>(L(),P("li",{key:B,class:me([B===c.value?"active":""]),onClick:ge=>U(B)},ee(x.value[B]),11,md))),128))])]),D("div",vd,[(L(!0),P(fe,null,He(u.value,B=>(L(),ot(ud,{key:B.objectId,"root-id":B.objectId,comment:B,reply:d.value,edit:p.value,onLog:_,onReply:T,onEdit:O,onSubmit:K,onStatus:z,onDelete:Le,onSticky:J,onLike:Z},null,8,["root-id","comment","reply","edit"]))),128))]),i.value==="error"?(L(),P("div",bd,[D("button",{type:"button",class:"wl-btn",onClick:_,textContent:ee(x.value.refresh)},null,8,yd)])):i.value==="loading"?(L(),P("div",wd,[ce(q(Rn),{size:30})])):u.value.length?l.value<o.value?(L(),P("div",xd,[D("button",{type:"button",class:"wl-btn",onClick:k,textContent:ee(x.value.more)},null,8,_d)])):Q("v-if",!0):(L(),P("div",{key:3,class:"wl-empty",textContent:ee(x.value.sofa)},null,8,kd)),a.value.copyright?(L(),P("div",Cd,[G[0]||(G[0]=at(" Powered by ")),G[1]||(G[1]=D("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),at(" v"+ee(q(yo)),1)])):Q("v-if",!0)]))}});const wo=(e,t)=>{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},ko=({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=_i(c);return u!==null&&t!==u},a=c=>Li({serverURL:On(e),paths:c.map(u=>_i(u)??t),lang:i,signal:s.signal}).then(u=>wo(u,c)).catch(Ml);if(r){const c=l.filter(d=>!o(d)),u=l.filter(o);Ii({serverURL:On(e),path:t,lang:i}).then(d=>wo(d,c)),u.length&&a(u)}else a(l);return s.abort.bind(s)},$d=({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=an({...i}),o=an({comment:n,pageview:r,path:t}),a=()=>{o.comment&&so({serverURL:l.serverURL,path:o.path,...jt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&ko({serverURL:l.serverURL,path:o.path,...jt(o.pageview)?{selector:o.pageview}:{}})};let u=null;s&&(u=iu(()=>re(Sd,{path:o.path,...l})),u.mount(s));const d=Gs(a),p=Gs(c);return{el:s,update:({comment:g,pageview:x,path:b=window.location.pathname,...S}={})=>{Object.entries(S).forEach(([k,_])=>{l[k]=_}),o.path=b,g!==void 0&&(o.comment=g),x!==void 0&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),d(),p()}}},Rd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const i=yr(),s=di(e),l=new AbortController;return Mi({serverURL:t,count:n,lang:r,signal:l.signal,token:i.value.token}).then(o=>s&&o.length?(s.innerHTML=`<ul class="wl-recent-list">${o.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:o,destroy:()=>{l.abort(),s.innerHTML=""}}):{comments:o,destroy:()=>l.abort()})},Ad=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=di(e),o=new AbortController;return Pi({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...qi(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(d=>d).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};ie.RecentComments=Rd,ie.UserList=Ad,ie.addComment=Ri,ie.commentCount=so,ie.defaultLocales=Mn,ie.deleteComment=Ai,ie.fetchCommentCount=Ei,ie.getArticleCounter=_r,ie.getComment=$i,ie.getPageview=Li,ie.getRecentComment=Mi,ie.getUserList=Pi,ie.init=$d,ie.login=Ti,ie.pageviewCount=ko,ie.updateArticleCounter=In,ie.updateComment=Yt,ie.updatePageview=Ii,ie.version=yo});
84
84
  //# sourceMappingURL=waline.umd.js.map