From e0b6e53e644640769ba7171908c9dec86ebf4bce Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 05:24:44 +0000 Subject: [PATCH] chore(deps): bump @waline/client from 3.4.2 to 3.4.3 (#1422) --- assets/lib/waline/waline.js | 80 ++++++++++++++++++------------------- dependencies.json | 2 +- 2 files changed, 41 insertions(+), 41 deletions(-) diff --git a/assets/lib/waline/waline.js b/assets/lib/waline/waline.js index 0f28c66fb..d9e49963f 100644 --- a/assets/lib/waline/waline.js +++ b/assets/lib/waline/waline.js @@ -1,79 +1,79 @@ /** * Skipped minification because the original files appears to be already minified. - * Original file: /npm/@waline/client@3.4.2/dist/waline.umd.js + * Original file: /npm/@waline/client@3.4.3/dist/waline.umd.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ -var xd=Object.defineProperty;var _d=(ie,Ee,Le)=>Ee in ie?xd(ie,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ie[Ee]=Le;var xo=(ie,Ee,Le)=>_d(ie,typeof Ee!="symbol"?Ee+"":Ee,Le);(function(ie,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(ie=typeof globalThis<"u"?globalThis:ie||self,Ee(ie.Waline={}))})(this,function(ie){"use strict";const Ee={"Content-Type":"application/json"},Le=e=>`${e.replace(/\/?$/,"/")}api/`,kt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Cr=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${Le(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>kt(s,"Get counter").data),Mn=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${Le(e)}article?lang=${t}`,{method:"POST",headers:Ee,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>kt(s,"Update counter").data),Ai=({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(`${Le(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>kt(c,"Get comment data").data)},Ti=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${Le(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Ei=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Le(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>kt(i,"Delete comment")),Xt=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${Le(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Ee,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>kt(s,"Update comment")),Li=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Le(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>kt(i,"Get comment count").data),Ii=({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)})},Mi=({serverURL:e,lang:t,paths:n,signal:r})=>Cr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Pi=e=>Mn({...e,type:"time",action:"inc"}),Oi=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${Le(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},ji=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Le(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>kt(i,"user list")).then(i=>i.data),_o=["nick","mail","link"],zi=e=>e.filter(t=>_o.includes(t)),Fi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Co=["//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"],So=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}),$o=e=>e?'

TeX is not available in preview

':'TeX is not available in preview',Ro=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()})}},Ao=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,To=/{let t=0;return e.replace(Io,(n,r,i)=>{if(i)return`${i}`;if(r==="<")return"<";let s;Sr[r]?s=Sr[r]:(s=Di[t],Sr[r]=s);const l=`${r}`;return t=++t%Di.length,l})},Po=["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"],Je=e=>Object.fromEntries(e.map((t,n)=>[Po[n],t]));var Oo=Je(["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?"]),Hi=Je(["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! - 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?"]),Ui=Je(["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! - 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?"]),Ni=Je(["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 ! - 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 ?"]),Bi=Je(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません! - 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),jo=Je(["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! - 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?"]),Vi=Je(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов! -Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Wi=Je(["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ừ! - 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?"]),qi=Je(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间! -当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),zo=Je(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! -目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Ki="en-US",Pn={zh:qi,"zh-cn":qi,"zh-tw":zo,en:Hi,"en-us":Hi,fr:Ni,"fr-fr":Ni,jp:Bi,"jp-jp":Bi,"pt-br":jo,ru:Vi,"ru-ru":Vi,vi:Wi,"vi-vn":Wi,de:Oo,es:Ui,"es-mx":Ui},Gi=e=>Pn[e.toLowerCase()]||Pn[Ki.toLowerCase()],Zi=e=>Object.keys(Pn).includes(e.toLowerCase())?e:Ki,Ji={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Fo=Object.keys(Ji),On=Symbol("waline-config"),Yi=e=>{try{e=decodeURI(e)}catch{}return e},Xi=(e="")=>e.replace(/\/$/u,""),Qi=e=>/^(https?:)?\/\//.test(e),jn=e=>{const t=Xi(e);return Qi(t)?t:`https://${t}`},Do=e=>Array.isArray(e)?e:e?[0,e]:!1,$r=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Ho=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=Fi,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:x="enable",search:b,reaction:S,recaptchaV3Key:y="",turnstileKey:_="",commentSorting:H="latest",...E})=>({serverURL:jn(e),path:Yi(t),lang:Zi(n),locale:{...Gi(Zi(n)),...typeof r=="object"?r:{}},wordLimit:Do(c),meta:zi(s),requiredMeta:zi(l),imageUploader:$r(u,So),highlighter:$r(h,Mo),texRenderer:$r(d,$o),dark:o,emoji:typeof i=="boolean"?i?Fi:[]:i,pageSize:a,login:x,copyright:g,search:b===!1?!1:typeof b=="object"?b:Ro(n),recaptchaV3Key:y,turnstileKey:_,reaction:Array.isArray(S)?S:S===!0?Co:[],commentSorting:H,...E}),zt=e=>typeof e=="string",Rr="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bg-color:#1e1e1e;--waline-bg-color-light:#272727;--waline-bg-color-hover: #444;--waline-border-color:#333;--waline-disable-bg-color:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bg-color:#272727;--waline-info-color:#666}",Uo=e=>zt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Rr}}`:`${e}${Rr}`:e===!0?`:root${Rr}`:"",Ar=(e,t)=>{let n=e.toString();for(;n.length{const t=Ar(e.getDate(),2),n=Ar(e.getMonth()+1,2);return`${Ar(e.getFullYear(),2)}-${n}-${t}`},Bo=(e,t,n)=>{if(!e)return"";const r=zt(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}`:No(r)},Vo=/^[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])?)*$/,Wo=e=>Vo.test(e);/** +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?'

TeX is not available in preview

':'TeX is not available in preview',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=/{let t=0;return e.replace(Po,(n,r,i)=>{if(i)return`${i}`;if(r==="<")return"<";let s;Cr[r]?s=Cr[r]:(s=zi[t],Cr[r]=s);const l=`${r}`;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! + 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! + 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 ! + 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 ワードの間でなければなりません! + 現在の単語番号: $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! + 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 слов! +Номер текущего слова: $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ừ! + 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 字之间! +当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Fo=Ke(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! +目前字數:$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{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);/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function Tr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const le={},Ft=[],xt=()=>{},qo=()=>!1,zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Er=e=>e.startsWith("onUpdate:"),De=Object.assign,es=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ko=Object.prototype.hasOwnProperty,te=(e,t)=>Ko.call(e,t),W=Array.isArray,Dt=e=>Qt(e)==="[object Map]",Ht=e=>Qt(e)==="[object Set]",ts=e=>Qt(e)==="[object Date]",oe=e=>typeof e=="function",be=e=>typeof e=="string",Ye=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",ns=e=>(ge(e)||oe(e))&&oe(e.then)&&oe(e.catch),rs=Object.prototype.toString,Qt=e=>rs.call(e),Go=e=>Qt(e).slice(8,-1),is=e=>Qt(e)==="[object Object]",Lr=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=Tr(",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))},Zo=/-(\w)/g,He=Fn(e=>e.replace(Zo,(t,n)=>n?n.toUpperCase():"")),Jo=/\B([A-Z])/g,_t=Fn(e=>e.replace(Jo,"-$1").toLowerCase()),Dn=Fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ir=Fn(e=>e?`on${Dn(e)}`:""),gt=(e,t)=>!Object.is(e,t),Hn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Un=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ls;const tn=()=>ls||(ls=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nn(e){if(W(e)){const t={};for(let n=0;n{if(n){const r=n.split(Xo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(be(e))t=e;else if(W(e))for(let n=0;nCt(n,t))}const as=e=>!!(e&&e.__v_isRef===!0),ee=e=>be(e)?e:e==null?"":W(e)||ge(e)&&(e.toString===rs||!oe(e.toString))?as(e)?ee(e.value):JSON.stringify(e,cs,2):String(e),cs=(e,t)=>as(t)?cs(e,t.value):Dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Pr(r,s)+" =>"]=i,n),{})}:Ht(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Pr(n))}:Ye(t)?Pr(t):ge(t)&&!W(t)&&!is(t)?String(t):t,Pr=(e,t="")=>{var n;return Ye(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**//*! #__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{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{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;nxt(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};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let $e;class ra{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$e,!t&&$e&&(this.index=($e.scopes||($e.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(sn){let t=sn;for(sn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;rn;){let t=rn;for(rn=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 ps(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function gs(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Dr(r),sa(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Fr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ms(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ms(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ln))return;e.globalVersion=ln;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Fr(e)){e.flags&=-3;return}const n=ue,r=We;ue=e,We=!0;try{ps(e);const i=e.fn(e._value);(t.version===0||gt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ue=n,We=r,gs(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 sa(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let We=!0;const vs=[];function St(){vs.push(We),We=!1}function $t(){const e=vs.pop();We=e===void 0?!0:e}function bs(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let ln=0;class la{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Hr{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||!We||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new la(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,ys(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++,ln++,this.notify(t)}notify(t){jr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{zr()}}}function ys(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)ys(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ur=new WeakMap,Rt=Symbol(""),Nr=Symbol(""),on=Symbol("");function _e(e,t,n){if(We&&ue){let r=Ur.get(e);r||Ur.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Hr),i.map=r,i.key=n),i.track()}}function rt(e,t,n,r,i,s){const l=Ur.get(e);if(!l){ln++;return}const o=a=>{a&&a.trigger()};if(jr(),t==="clear")l.forEach(o);else{const a=W(e),c=a&&Lr(n);if(a&&n==="length"){const u=Number(r);l.forEach((h,d)=>{(d==="length"||d===on||!Ye(d)&&d>=u)&&o(h)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(on)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Rt)),Dt(e)&&o(l.get(Nr)));break;case"delete":a||(o(l.get(Rt)),Dt(e)&&o(l.get(Nr)));break;case"set":Dt(e)&&o(l.get(Rt));break}}zr()}function Ut(e){const t=ne(e);return t===e?t:(_e(t,"iterate",on),Ue(e)?t:t.map(Ce))}function Nn(e){return _e(e=ne(e),"iterate",on),e}const oa={__proto__:null,[Symbol.iterator](){return Br(this,Symbol.iterator,Ce)},concat(...e){return Ut(this).concat(...e.map(t=>W(t)?Ut(t):t))},entries(){return Br(this,"entries",e=>(e[1]=Ce(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(Ce),arguments)},find(e,t){return it(this,"find",e,t,Ce,arguments)},findIndex(e,t){return it(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return it(this,"findLast",e,t,Ce,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 Vr(this,"includes",e)},indexOf(...e){return Vr(this,"indexOf",e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return Vr(this,"lastIndexOf",e)},map(e,t){return it(this,"map",e,t,void 0,arguments)},pop(){return an(this,"pop")},push(...e){return an(this,"push",e)},reduce(e,...t){return ws(this,"reduce",e,t)},reduceRight(e,...t){return ws(this,"reduceRight",e,t)},shift(){return an(this,"shift")},some(e,t){return it(this,"some",e,t,void 0,arguments)},splice(...e){return an(this,"splice",e)},toReversed(){return Ut(this).toReversed()},toSorted(e){return Ut(this).toSorted(e)},toSpliced(...e){return Ut(this).toSpliced(...e)},unshift(...e){return an(this,"unshift",e)},values(){return Br(this,"values",Ce)}};function Br(e,t,n){const r=Nn(e),i=r[t]();return r!==e&&!Ue(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const aa=Array.prototype;function it(e,t,n,r,i,s){const l=Nn(e),o=l!==e&&!Ue(e),a=l[t];if(a!==aa[t]){const h=a.apply(e,s);return o?Ce(h):h}let c=n;l!==e&&(o?c=function(h,d){return n.call(this,Ce(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 ws(e,t,n,r){const i=Nn(e);let s=n;return i!==e&&(Ue(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,Ce(o),a,e)}),i[t](s,...r)}function Vr(e,t,n){const r=ne(e);_e(r,"iterate",on);const i=r[t](...n);return(i===-1||i===!1)&&Gr(n[0])?(n[0]=ne(n[0]),r[t](...n)):i}function an(e,t,n=[]){St(),jr();const r=ne(e)[t].apply(e,n);return zr(),$t(),r}const ca=Tr("__proto__,__v_isRef,__isVue"),ks=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye));function ua(e){Ye(e)||(e=String(e));const t=ne(this);return _e(t,"has",e),t.hasOwnProperty(e)}class xs{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?wa:$s:s?Ss:Cs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=W(t);if(!i){let a;if(l&&(a=oa[n]))return a;if(n==="hasOwnProperty")return ua}const o=Reflect.get(t,n,we(t)?t:r);return(Ye(n)?ks.has(n):ca(n))||(i||_e(t,"get",n),s)?o:we(o)?l&&Lr(n)?o:o.value:ge(o)?i?un(o):cn(o):o}}class _s extends xs{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=At(s);if(!Ue(r)&&!At(r)&&(s=ne(s),r=ne(r)),!W(t)&&we(s)&&!we(r))return a?!1:(s.value=r,!0)}const l=W(t)&&Lr(n)?Number(n)e,Bn=e=>Reflect.getPrototypeOf(e);function ga(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?Wr:t?Zr:Ce;return!t&&_e(s,"iterate",a?Nr:Rt),{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 ma(e,t){const n={get(i){const s=this.__v_raw,l=ne(s),o=ne(i);e||(gt(i,o)&&_e(l,"get",i),_e(l,"get",o));const{has:a}=Bn(l),c=t?Wr:e?Zr:Ce;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(ne(i),"iterate",Rt),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=ne(s),o=ne(i);return e||(gt(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=ne(o),c=t?Wr:e?Zr:Ce;return!e&&_e(a,"iterate",Rt),o.forEach((u,h)=>i.call(s,c(u),c(h),l))}};return De(n,e?{add:Vn("add"),set:Vn("set"),delete:Vn("delete"),clear:Vn("clear")}:{add(i){!t&&!Ue(i)&&!At(i)&&(i=ne(i));const s=ne(this);return Bn(s).has.call(s,i)||(s.add(i),rt(s,"add",i,i)),this},set(i,s){!t&&!Ue(s)&&!At(s)&&(s=ne(s));const l=ne(this),{has:o,get:a}=Bn(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?gt(s,u)&&rt(l,"set",i,s):rt(l,"add",i,s),this},delete(i){const s=ne(this),{has:l,get:o}=Bn(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]=ga(i,e,t)}),n}function qr(e,t){const n=ma(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 va={get:qr(!1,!1)},ba={get:qr(!1,!0)},ya={get:qr(!0,!1)},Cs=new WeakMap,Ss=new WeakMap,$s=new WeakMap,wa=new WeakMap;function ka(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xa(e){return e.__v_skip||!Object.isExtensible(e)?0:ka(Go(e))}function cn(e){return At(e)?e:Kr(e,!1,ha,va,Cs)}function _a(e){return Kr(e,!1,pa,ba,Ss)}function un(e){return Kr(e,!0,da,ya,$s)}function Kr(e,t,n,r,i){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=xa(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Nt(e){return At(e)?Nt(e.__v_raw):!!(e&&e.__v_isReactive)}function At(e){return!!(e&&e.__v_isReadonly)}function Ue(e){return!!(e&&e.__v_isShallow)}function Gr(e){return e?!!e.__v_raw:!1}function ne(e){const t=e&&e.__v_raw;return t?ne(t):e}function Ca(e){return!te(e,"__v_skip")&&Object.isExtensible(e)&&ss(e,"__v_skip",!0),e}const Ce=e=>ge(e)?cn(e):e,Zr=e=>ge(e)?un(e):e;function we(e){return e?e.__v_isRef===!0:!1}function X(e){return As(e,!1)}function Rs(e){return As(e,!0)}function As(e,t){return we(e)?e:new Sa(e,t)}class Sa{constructor(t,n){this.dep=new Hr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ne(t),this._value=n?t:Ce(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ue(t)||At(t);t=r?t:ne(t),gt(t,n)&&(this._rawValue=t,this._value=r?t:Ce(t),this.dep.trigger())}}function q(e){return we(e)?e.value:e}const $a={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 Ts(e){return Nt(e)?e:new Proxy(e,$a)}class Ra{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Hr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ln-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 ds(this,!0),!0}get value(){const t=this.dep.track();return ms(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Aa(e,t,n=!1){let r,i;return oe(e)?r=e:(r=e.get,i=e.set),new Ra(r,i,n)}const Wn={},qn=new WeakMap;let Tt;function Ta(e,t=!1,n=Tt){if(n){let r=qn.get(n);r||qn.set(n,r=[]),r.push(e)}}function Ea(e,t,n=le){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=E=>i?E:Ue(E)||i===!1||i===0?st(E,1):st(E);let u,h,d,g,x=!1,b=!1;if(we(e)?(h=()=>e.value,x=Ue(e)):Nt(e)?(h=()=>c(e),x=!0):W(e)?(b=!0,x=e.some(E=>Nt(E)||Ue(E)),h=()=>e.map(E=>{if(we(E))return E.value;if(Nt(E))return c(E);if(oe(E))return a?a(E,2):E()})):oe(e)?t?h=a?()=>a(e,2):e:h=()=>{if(d){St();try{d()}finally{$t()}}const E=Tt;Tt=u;try{return a?a(e,3,[g]):e(g)}finally{Tt=E}}:h=xt,t&&i){const E=h,O=i===!0?1/0:i;h=()=>st(E(),O)}const S=us(),y=()=>{u.stop(),S&&S.active&&es(S.effects,u)};if(s&&t){const E=t;t=(...O)=>{E(...O),y()}}let _=b?new Array(e.length).fill(Wn):Wn;const H=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const O=u.run();if(i||x||(b?O.some((K,z)=>gt(K,_[z])):gt(O,_))){d&&d();const K=Tt;Tt=u;try{const z=[O,_===Wn?void 0:b&&_[0]===Wn?[]:_,g];a?a(t,3,z):t(...z),_=O}finally{Tt=K}}}else u.run()};return o&&o(H),u=new fs(h),u.scheduler=l?()=>l(H,!1):H,g=E=>Ta(E,!1,u),d=u.onStop=()=>{const E=qn.get(u);if(E){if(a)a(E,4);else for(const O of E)O();qn.delete(u)}},t?r?H(!0):_=u.run():l?l(H.bind(null,!0),!0):u.run(),y.pause=u.pause.bind(u),y.resume=u.resume.bind(u),y.stop=y,y}function st(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,we(e))st(e.value,t,n);else if(W(e))for(let r=0;r{st(r,t,n)});else if(is(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}/** +**/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;t0)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)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{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}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function fn(e,t,n,r){try{return r?e(...r):e()}catch(i){Kn(i,t,n)}}function lt(e,t,n,r){if(oe(e)){const i=fn(e,t,n,r);return i&&ns(i)&&i.catch(s=>{Kn(s,t,n)}),i}if(W(e)){const i=[];for(let s=0;s>>1,i=Re[r],s=hn(i);s=hn(n)?Re.push(e):Re.splice(Ia(t),0,e),e.flags|=1,Ls()}}function Ls(){Gn||(Gn=Es.then(Ps))}function Ma(e){W(e)?Bt.push(...e):mt&&e.id===-1?mt.splice(Vt+1,0,e):e.flags&1||(Bt.push(e),e.flags|=1),Ls()}function Is(e,t,n=Xe+1){for(;nhn(n)-hn(r));if(Bt.length=0,mt){mt.push(...t);return}for(mt=t,Vt=0;Vte.id==null?e.flags&2?-1:1/0:e.id;function Ps(e){try{for(Xe=0;Xe{r._d&&el(-1);const s=Zn(t);let l;try{l=e(...i)}finally{Zn(s),r._d&&el(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Jn(e,t){if(Ie===null)return e;const n=ir(Ie),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function Yr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yr(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 dn(e,t){return oe(e)?De({name:e.name},t,{setup:e}):e}function za(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vt(e){const t=rl(),n=Rs(null);if(t){const i=t.refs===le?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:s=>n.value=s})}return n}function Yn(e,t,n,r,i=!1){if(W(e)){e.forEach((x,b)=>Yn(x,t&&(W(t)?t[b]:t),n,r,i));return}if(pn(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===le?o.refs={}:o.refs,h=o.setupState,d=ne(h),g=h===le?()=>!1:x=>te(d,x);if(c!=null&&c!==a&&(be(c)?(u[c]=null,g(c)&&(h[c]=null)):we(c)&&(c.value=null)),oe(a))fn(a,o,12,[l,u]);else{const x=be(a),b=we(a);if(x||b){const S=()=>{if(e.f){const y=x?g(a)?h[a]:u[a]:a.value;i?W(y)&&es(y,s):W(y)?y.includes(s)||y.push(s):x?(u[a]=[s],g(a)&&(h[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,g(a)&&(h[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(S.id=-1,Pe(S,n)):S()}}}tn().requestIdleCallback,tn().cancelIdleCallback;const pn=e=>!!e.type.__asyncLoader,Fa=e=>e.type.__isKeepAlive;function Da(e,t,n=Ae,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{St();const o=ci(n),a=lt(t,n,e,l);return o(),$t(),a});return r?i.unshift(s):i.push(s),s}}const Xr=e=>(t,n=Ae)=>{(!wn||e==="sp")&&Da(e,(...r)=>t(...r),n)},gn=Xr("m"),Ha=Xr("bum"),Qr=Xr("um"),Ua="components";function Na(e,t){return Va(Ua,e,!0,t)||e}const Ba=Symbol.for("v-ndc");function Va(e,t,n=!0,r=!1){const i=Ie||Ae;if(i){const s=i.type;{const o=Rc(s,!1);if(o&&(o===t||o===He(t)||o===Dn(He(t))))return s}const l=js(i[e]||s[e],t)||js(i.appContext[e],t);return!l&&r?s:l}}function js(e,t){return e&&(e[t]||e[He(t)]||e[Dn(He(t))])}function Ne(e,t,n,r){let i;const s=n,l=W(e);if(l||be(e)){const o=l&&Nt(e);let a=!1;o&&(a=!Ue(e),e=Nn(e)),i=new Array(e.length);for(let c=0,u=e.length;ct(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;ae?sl(e)?ir(e):ei(e.parent):null,mn=De(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=>ei(e.parent),$root:e=>ei(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Jr(e.update)}),$nextTick:e=>e.n||(e.n=Wt.bind(e.proxy)),$watch:e=>xt}),ti=(e,t)=>e!==le&&!e.__isScriptSetup&&te(e,t),Wa={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(ti(r,t))return l[t]=1,r[t];if(i!==le&&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!==le&&te(n,t))return l[t]=4,n[t];l[t]=0}}const u=mn[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!==le&&te(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,te(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return ti(i,t)?(i[t]=n,!0):r!==le&&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!==le&&te(e,l)||ti(t,l)||(o=s[0])&&te(o,l)||te(r,l)||te(mn,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 zs(){return{app:null,config:{isNativeTag:qo,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 qa=0;function Ka(e,t){return function(r,i=null){oe(r)||(r=De({},r)),i!=null&&!ge(i)&&(i=null);const s=zs(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:qa++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Tc,get config(){return s.config},set config(u){},use(u,...h){return l.has(u)||(u&&oe(u.install)?(l.add(u),u.install(c,...h)):oe(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||ae(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&&(lt(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=qt;qt=c;try{return u()}finally{qt=h}}};return c}}let qt=null;function Ga(e,t){if(Ae){let n=Ae.provides;const r=Ae.parent&&Ae.parent.provides;r===n&&(n=Ae.provides=Object.create(r)),n[e]=t}}function Xn(e,t,n=!1){const r=Ae||Ie;if(r||qt){const i=qt?qt._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&&oe(t)?t.call(r&&r.proxy):t}}const Fs={},Ds=()=>Object.create(Fs),Hs=e=>Object.getPrototypeOf(e)===Fs;function Za(e,t,n,r=!1){const i={},s=Ds();e.propsDefaults=Object.create(null),Us(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:_a(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Ja(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 h=0;he[0]==="_"||e==="$stable",ri=e=>W(e)?e.map(Qe):[Qe(e)],Xa=(e,t,n)=>{if(t._n)return t;const r=Pa((...i)=>ri(t(...i)),n);return r._c=!1,r},Vs=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Bs(i))continue;const s=e[i];if(oe(s))t[i]=Xa(i,s,r);else if(s!=null){const l=ri(s);t[i]=()=>l}}},Ws=(e,t)=>{const n=ri(t);e.slots.default=()=>n},qs=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Qa=(e,t,n)=>{const r=e.slots=Ds();if(e.vnode.shapeFlag&32){const i=t._;i?(qs(r,t,n),n&&ss(r,"_",i,!0)):Vs(t,r)}else t&&Ws(e,t)},ec=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=le;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:qs(i,t,n):(s=!t.$stable,Vs(t,i)),l=t}else t&&(Ws(e,t),l={default:1});if(s)for(const o in i)!Bs(o)&&l[o]==null&&delete i[o]};function tc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(tn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Pe=gc;function nc(e){return rc(e)}function rc(e,t){tc();const n=tn();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=xt,insertStaticContent:x}=e,b=(f,p,m,w=null,v=null,k=null,T=void 0,A=null,$=!!p.dynamicChildren)=>{if(f===p)return;f&&!yn(f,p)&&(w=jt(f),Ge(f,v,k,!0),f=null),p.patchFlag===-2&&($=!1,p.dynamicChildren=null);const{type:C,ref:U,shapeFlag:I}=p;switch(C){case er:S(f,p,m,w);break;case It:y(f,p,m,w);break;case li:f==null&&_(p,m,w,T);break;case fe:G(f,p,m,w,v,k,T,A,$);break;default:I&1?O(f,p,m,w,v,k,T,A,$):I&6?B(f,p,m,w,v,k,T,A,$):(I&64||I&128)&&C.process(f,p,m,w,v,k,T,A,$,R)}U!=null&&v&&Yn(U,f&&f.ref,k,p||f,!p)},S=(f,p,m,w)=>{if(f==null)r(p.el=o(p.children),m,w);else{const v=p.el=f.el;p.children!==f.children&&c(v,p.children)}},y=(f,p,m,w)=>{f==null?r(p.el=a(p.children||""),m,w):p.el=f.el},_=(f,p,m,w)=>{[f.el,f.anchor]=x(f.children,p,m,w,f.el,f.anchor)},H=({el:f,anchor:p},m,w)=>{let v;for(;f&&f!==p;)v=d(f),r(f,m,w),f=v;r(p,m,w)},E=({el:f,anchor:p})=>{let m;for(;f&&f!==p;)m=d(f),i(f),f=m;i(p)},O=(f,p,m,w,v,k,T,A,$)=>{p.type==="svg"?T="svg":p.type==="math"&&(T="mathml"),f==null?K(p,m,w,v,k,T,A,$):Me(f,p,v,k,T,A,$)},K=(f,p,m,w,v,k,T,A)=>{let $,C;const{props:U,shapeFlag:I,transition:D,dirs:N}=f;if($=f.el=l(f.type,k,U&&U.is,U),I&8?u($,f.children):I&16&&J(f.children,$,null,w,v,ii(f,k),T,A),N&&Et(f,null,w,"created"),z($,f,f.scopeId,T,w),U){for(const he in U)he!=="value"&&!en(he)&&s($,he,null,U[he],k,w);"value"in U&&s($,"value",null,U.value,k),(C=U.onVnodeBeforeMount)&&et(C,w,f)}N&&Et(f,null,w,"beforeMount");const Y=ic(v,D);Y&&D.beforeEnter($),r($,p,m),((C=U&&U.onVnodeMounted)||Y||N)&&Pe(()=>{C&&et(C,w,f),Y&&D.enter($),N&&Et(f,null,w,"mounted")},v)},z=(f,p,m,w,v)=>{if(m&&g(f,m),w)for(let k=0;k{for(let C=$;C{const A=p.el=f.el;let{patchFlag:$,dynamicChildren:C,dirs:U}=p;$|=f.patchFlag&16;const I=f.props||le,D=p.props||le;let N;if(m&&Lt(m,!1),(N=D.onVnodeBeforeUpdate)&&et(N,m,p,f),U&&Et(p,f,m,"beforeUpdate"),m&&Lt(m,!0),(I.innerHTML&&D.innerHTML==null||I.textContent&&D.textContent==null)&&u(A,""),C?Z(f.dynamicChildren,C,A,m,w,ii(p,v),k):T||wt(f,p,A,null,m,w,ii(p,v),k,!1),$>0){if($&16)M(A,I,D,m,v);else if($&2&&I.class!==D.class&&s(A,"class",null,D.class,v),$&4&&s(A,"style",I.style,D.style,v),$&8){const Y=p.dynamicProps;for(let he=0;he{N&&et(N,m,p,f),U&&Et(p,f,m,"updated")},w)},Z=(f,p,m,w,v,k,T)=>{for(let A=0;A{if(p!==m){if(p!==le)for(const k in p)!en(k)&&!(k in m)&&s(f,k,p[k],null,v,w);for(const k in m){if(en(k))continue;const T=m[k],A=p[k];T!==A&&k!=="value"&&s(f,k,A,T,v,w)}"value"in m&&s(f,"value",p.value,m.value,v)}},G=(f,p,m,w,v,k,T,A,$)=>{const C=p.el=f?f.el:o(""),U=p.anchor=f?f.anchor:o("");let{patchFlag:I,dynamicChildren:D,slotScopeIds:N}=p;N&&(A=A?A.concat(N):N),f==null?(r(C,m,w),r(U,m,w),J(p.children||[],m,U,v,k,T,A,$)):I>0&&I&64&&D&&f.dynamicChildren?(Z(f.dynamicChildren,D,m,v,k,T,A),(p.key!=null||v&&p===v.subTree)&&Ks(f,p,!0)):wt(f,p,m,U,v,k,T,A,$)},B=(f,p,m,w,v,k,T,A,$)=>{p.slotScopeIds=A,f==null?p.shapeFlag&512?v.ctx.activate(p,m,w,T,$):me(p,m,w,v,k,T,$):xe(f,p,$)},me=(f,p,m,w,v,k,T)=>{const A=f.component=xc(f,w,v);if(Fa(f)&&(A.ctx.renderer=R),_c(A,!1,T),A.asyncDep){if(v&&v.registerDep(A,ye,T),!f.el){const $=A.subTree=ae(It);y(null,$,p,m)}}else ye(A,f,p,m,v,k,T)},xe=(f,p,m)=>{const w=p.component=f.component;if(dc(f,p,m))if(w.asyncDep&&!w.asyncResolved){pt(w,p,m);return}else w.next=p,w.update();else p.el=f.el,w.vnode=p},ye=(f,p,m,w,v,k,T)=>{const A=()=>{if(f.isMounted){let{next:I,bu:D,u:N,parent:Y,vnode:he}=f;{const ze=Gs(f);if(ze){I&&(I.el=he.el,pt(f,I,T)),ze.asyncDep.then(()=>{f.isUnmounted||A()});return}}let se=I,je;Lt(f,!1),I?(I.el=he.el,pt(f,I,T)):I=he,D&&Hn(D),(je=I.props&&I.props.onVnodeBeforeUpdate)&&et(je,Y,I,he),Lt(f,!0);const Se=si(f),Ze=f.subTree;f.subTree=Se,b(Ze,Se,h(Ze.el),jt(Ze),f,v,k),I.el=Se.el,se===null&&pc(f,Se.el),N&&Pe(N,v),(je=I.props&&I.props.onVnodeUpdated)&&Pe(()=>et(je,Y,I,he),v)}else{let I;const{el:D,props:N}=p,{bm:Y,m:he,parent:se,root:je,type:Se}=f,Ze=pn(p);if(Lt(f,!1),Y&&Hn(Y),!Ze&&(I=N&&N.onVnodeBeforeMount)&&et(I,se,p),Lt(f,!0),D&&pe){const ze=()=>{f.subTree=si(f),pe(D,f.subTree,f,v,null)};Ze&&Se.__asyncHydrate?Se.__asyncHydrate(D,f,ze):ze()}else{je.ce&&je.ce._injectChildStyle(Se);const ze=f.subTree=si(f);b(null,ze,m,w,f,v,k),p.el=ze.el}if(he&&Pe(he,v),!Ze&&(I=N&&N.onVnodeMounted)){const ze=p;Pe(()=>et(I,se,ze),v)}(p.shapeFlag&256||se&&pn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Pe(f.a,v),f.isMounted=!0,p=m=w=null}};f.scope.on();const $=f.effect=new fs(A);f.scope.off();const C=f.update=$.run.bind($),U=f.job=$.runIfDirty.bind($);U.i=f,U.id=f.uid,$.scheduler=()=>Jr(U),Lt(f,!0),C()},pt=(f,p,m)=>{p.component=f;const w=f.vnode.props;f.vnode=p,f.next=null,Ja(f,p.props,w,m),ec(f,p.children,m),St(),Is(f),$t()},wt=(f,p,m,w,v,k,T,A,$=!1)=>{const C=f&&f.children,U=f?f.shapeFlag:0,I=p.children,{patchFlag:D,shapeFlag:N}=p;if(D>0){if(D&128){kr(C,I,m,w,v,k,T,A,$);return}else if(D&256){Ln(C,I,m,w,v,k,T,A,$);return}}N&8?(U&16&&Ot(C,v,k),I!==C&&u(m,I)):U&16?N&16?kr(C,I,m,w,v,k,T,A,$):Ot(C,v,k,!0):(U&8&&u(m,""),N&16&&J(I,m,w,v,k,T,A,$))},Ln=(f,p,m,w,v,k,T,A,$)=>{f=f||Ft,p=p||Ft;const C=f.length,U=p.length,I=Math.min(C,U);let D;for(D=0;DU?Ot(f,v,k,!0,!1,I):J(p,m,w,v,k,T,A,$,I)},kr=(f,p,m,w,v,k,T,A,$)=>{let C=0;const U=p.length;let I=f.length-1,D=U-1;for(;C<=I&&C<=D;){const N=f[C],Y=p[C]=$?bt(p[C]):Qe(p[C]);if(yn(N,Y))b(N,Y,m,null,v,k,T,A,$);else break;C++}for(;C<=I&&C<=D;){const N=f[I],Y=p[D]=$?bt(p[D]):Qe(p[D]);if(yn(N,Y))b(N,Y,m,null,v,k,T,A,$);else break;I--,D--}if(C>I){if(C<=D){const N=D+1,Y=ND)for(;C<=I;)Ge(f[C],v,k,!0),C++;else{const N=C,Y=C,he=new Map;for(C=Y;C<=D;C++){const Fe=p[C]=$?bt(p[C]):Qe(p[C]);Fe.key!=null&&he.set(Fe.key,C)}let se,je=0;const Se=D-Y+1;let Ze=!1,ze=0;const In=new Array(Se);for(C=0;C=Se){Ge(Fe,v,k,!0);continue}let nt;if(Fe.key!=null)nt=he.get(Fe.key);else for(se=Y;se<=D;se++)if(In[se-Y]===0&&yn(Fe,p[se])){nt=se;break}nt===void 0?Ge(Fe,v,k,!0):(In[nt-Y]=C+1,nt>=ze?ze=nt:Ze=!0,b(Fe,p[nt],m,null,v,k,T,A,$),je++)}const wo=Ze?sc(In):Ft;for(se=wo.length-1,C=Se-1;C>=0;C--){const Fe=Y+C,nt=p[Fe],ko=Fe+1{const{el:k,type:T,transition:A,children:$,shapeFlag:C}=f;if(C&6){Jt(f.component.subTree,p,m,w);return}if(C&128){f.suspense.move(p,m,w);return}if(C&64){T.move(f,p,m,R);return}if(T===fe){r(k,p,m);for(let I=0;I<$.length;I++)Jt($[I],p,m,w);r(f.anchor,p,m);return}if(T===li){H(f,p,m);return}if(w!==2&&C&1&&A)if(w===0)A.beforeEnter(k),r(k,p,m),Pe(()=>A.enter(k),v);else{const{leave:I,delayLeave:D,afterLeave:N}=A,Y=()=>r(k,p,m),he=()=>{I(k,()=>{Y(),N&&N()})};D?D(k,Y,he):he()}else r(k,p,m)},Ge=(f,p,m,w=!1,v=!1)=>{const{type:k,props:T,ref:A,children:$,dynamicChildren:C,shapeFlag:U,patchFlag:I,dirs:D,cacheIndex:N}=f;if(I===-2&&(v=!1),A!=null&&Yn(A,null,m,f,!0),N!=null&&(p.renderCache[N]=void 0),U&256){p.ctx.deactivate(f);return}const Y=U&1&&D,he=!pn(f);let se;if(he&&(se=T&&T.onVnodeBeforeUnmount)&&et(se,p,f),U&6)_r(f.component,m,w);else{if(U&128){f.suspense.unmount(m,w);return}Y&&Et(f,null,p,"beforeUnmount"),U&64?f.type.remove(f,p,m,R,w):C&&!C.hasOnce&&(k!==fe||I>0&&I&64)?Ot(C,p,m,!1,!0):(k===fe&&I&384||!v&&U&16)&&Ot($,p,m),w&&xr(f)}(he&&(se=T&&T.onVnodeUnmounted)||Y)&&Pe(()=>{se&&et(se,p,f),Y&&Et(f,null,p,"unmounted")},m)},xr=f=>{const{type:p,el:m,anchor:w,transition:v}=f;if(p===fe){Ri(m,w);return}if(p===li){E(f);return}const k=()=>{i(m),v&&!v.persisted&&v.afterLeave&&v.afterLeave()};if(f.shapeFlag&1&&v&&!v.persisted){const{leave:T,delayLeave:A}=v,$=()=>T(m,k);A?A(f.el,k,$):$()}else k()},Ri=(f,p)=>{let m;for(;f!==p;)m=d(f),i(f),f=m;i(p)},_r=(f,p,m)=>{const{bum:w,scope:v,job:k,subTree:T,um:A,m:$,a:C}=f;Zs($),Zs(C),w&&Hn(w),v.stop(),k&&(k.flags|=8,Ge(T,f,p,m)),A&&Pe(A,p),Pe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ot=(f,p,m,w=!1,v=!1,k=0)=>{for(let T=k;T{if(f.shapeFlag&6)return jt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const p=d(f.anchor||f.el),m=p&&p[Oa];return m?d(m):p};let Yt=!1;const j=(f,p,m)=>{f==null?p._vnode&&Ge(p._vnode,null,null,!0):b(p._vnode||null,f,p,null,null,null,m),p._vnode=f,Yt||(Yt=!0,Is(),Ms(),Yt=!1)},R={p:b,um:Ge,m:Jt,r:xr,mt:me,mc:J,pc:wt,pbc:Z,n:jt,o:e};let V,pe;return{render:j,hydrate:V,createApp:Ka(j,V)}}function ii({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Lt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ic(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ks(e,t,n=!1){const r=e.children,i=t.children;if(W(r)&&W(i))for(let s=0;s>1,e[n[o]]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 Gs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Gs(t)}function Zs(e){if(e)for(let t=0;tXn(lc);function Js(e,t){return Ys(e,null,t)}function Be(e,t,n){return Ys(e,t,n)}function Ys(e,t,n=le){const{immediate:r,deep:i,flush:s,once:l}=n,o=De({},n),a=t&&r||!t&&s!=="post";let c;if(wn){if(s==="sync"){const g=oc();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=xt,g.resume=xt,g.pause=xt,g}}const u=Ae;o.call=(g,x,b)=>lt(g,u,x,b);let h=!1;s==="post"?o.scheduler=g=>{Pe(g,u&&u.suspense)}:s!=="sync"&&(h=!0,o.scheduler=(g,x)=>{x?g():Jr(g)}),o.augmentJob=g=>{t&&(g.flags|=4),h&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const d=Ea(e,t,o);return wn&&(c?c.push(d):a&&d()),d}const ac=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${He(t)}Modifiers`]||e[`${_t(t)}Modifiers`];function cc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||le;let i=n;const s=t.startsWith("update:"),l=s&&ac(r,t.slice(7));l&&(l.trim&&(i=n.map(u=>be(u)?u.trim():u)),l.number&&(i=n.map(Un)));let o,a=r[o=Ir(t)]||r[o=Ir(He(t))];!a&&s&&(a=r[o=Ir(_t(t))]),a&<(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 uc(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let l={};return!s&&!!1?(ge(e)&&r.set(e,null),null):(W(s)?s.forEach(a=>l[a]=null):De(l,s),ge(e)&&r.set(e,l),l)}function Qn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),te(e,t[0].toLowerCase()+t.slice(1))||te(e,_t(t))||te(e,t))}function si(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:x,inheritAttrs:b}=e,S=Zn(e);let y,_;try{if(n.shapeFlag&4){const E=i||r,O=E;y=Qe(c.call(O,E,u,h,g,d,x)),_=o}else{const E=t;y=Qe(E.length>1?E(h,{attrs:o,slots:l,emit:a}):E(h,null)),_=t.props?o:fc(o)}}catch(E){vn.length=0,Kn(E,e,1),y=ae(It)}let H=y;if(_&&b!==!1){const E=Object.keys(_),{shapeFlag:O}=H;E.length&&O&7&&(s&&E.some(Er)&&(_=hc(_,s)),H=Kt(H,_,!1,!0))}return n.dirs&&(H=Kt(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&Yr(H,n.transition),y=H,Zn(S),y}const fc=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},hc=(e,t)=>{const n={};for(const r in e)(!Er(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function dc(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?Xs(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let h=0;he.__isSuspense;function gc(e,t){t&&t.pendingBranch?W(e)?t.effects.push(...e):t.effects.push(e):Ma(e)}const fe=Symbol.for("v-fgt"),er=Symbol.for("v-txt"),It=Symbol.for("v-cmt"),li=Symbol.for("v-stc"),vn=[];let Oe=null;function L(e=!1){vn.push(Oe=e?null:[])}function mc(){vn.pop(),Oe=vn[vn.length-1]||null}let bn=1;function el(e,t=!1){bn+=e,e<0&&Oe&&t&&(Oe.hasOnce=!0)}function tl(e){return e.dynamicChildren=bn>0?Oe||Ft:null,mc(),bn>0&&Oe&&Oe.push(e),e}function P(e,t,n,r,i,s){return tl(F(e,t,n,r,i,s,!0))}function ot(e,t,n,r,i){return tl(ae(e,t,n,r,i,!0))}function tr(e){return e?e.__v_isVNode===!0:!1}function yn(e,t){return e.type===t.type&&e.key===t.key}const nl=({key:e})=>e??null,nr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?be(e)||we(e)||oe(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function F(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&&nl(t),ref:t&&nr(t),scopeId:Os,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:Ie};return o?(oi(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=be(n)?8:16),bn>0&&!l&&Oe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Oe.push(a),a}const ae=vc;function vc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Ba)&&(e=It),tr(e)){const o=Kt(e,t,!0);return n&&oi(o,n),bn>0&&!s&&Oe&&(o.shapeFlag&6?Oe[Oe.indexOf(e)]=o:Oe.push(o)),o.patchFlag=-2,o}if(Ac(e)&&(e=e.__vccOpts),t){t=bc(t);let{class:o,style:a}=t;o&&!be(o)&&(t.class=ve(o)),ge(a)&&(Gr(a)&&!W(a)&&(a=De({},a)),t.style=nn(a))}const l=be(e)?1:Qs(e)?128:ja(e)?64:ge(e)?4:oe(e)?2:0;return F(e,t,n,r,i,l,s,!0)}function bc(e){return e?Gr(e)||Hs(e)?De({},e):e:null}function Kt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?yc(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&nl(c),ref:t&&t.ref?n&&s?W(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!==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&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Yr(u,a.clone(u)),u}function at(e=" ",t=0){return ae(er,null,e,t)}function Q(e="",t=!1){return t?(L(),ot(It,null,e)):ae(It,null,e)}function Qe(e){return e==null||typeof e=="boolean"?ae(It):W(e)?ae(fe,null,e.slice()):tr(e)?bt(e):ae(er,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kt(e)}function oi(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),oi(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Hs(t)?t._ctx=Ie:i===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),r&64?(n=16,t=[at(t)]):n=8);e.children=t,e.shapeFlag|=n}function yc(...e){const t={};for(let n=0;nAe||Ie;let rr,ai;{const e=tn(),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=>Ae=n),ai=t("__VUE_SSR_SETTERS__",n=>wn=n)}const ci=e=>{const t=Ae;return rr(e),e.scope.on(),()=>{e.scope.off(),rr(t)}},il=()=>{Ae&&Ae.scope.off(),rr(null)};function sl(e){return e.vnode.shapeFlag&4}let wn=!1;function _c(e,t=!1,n=!1){t&&ai(t);const{props:r,children:i}=e.vnode,s=sl(e);Za(e,r,s,t),Qa(e,i,n);const l=s?Cc(e,t):void 0;return t&&ai(!1),l}function Cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Wa);const{setup:r}=n;if(r){St();const i=e.setupContext=r.length>1?$c(e):null,s=ci(e),l=fn(r,e,0,[e.props,i]),o=ns(l);if($t(),s(),(o||e.sp)&&!pn(e)&&za(e),o){if(l.then(il,il),t)return l.then(a=>{ll(e,a,t)}).catch(a=>{Kn(a,e,0)});e.asyncDep=l}else ll(e,l,t)}else al(e,t)}function ll(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ts(t)),al(e,n)}let ol;function al(e,t,n){const r=e.type;if(!e.render){if(!t&&ol&&!r.render){const i=r.template||!1;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=De(De({isCustomElement:s,delimiters:o},l),a);r.render=ol(i,c)}}e.render=r.render||xt}}const Sc={get(e,t){return _e(e,"get",""),e[t]}};function $c(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Sc),slots:e.slots,emit:e.emit,expose:t}}function ir(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ts(Ca(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}})):e.proxy}function Rc(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Ac(e){return oe(e)&&"__vccOpts"in e}const ke=(e,t)=>Aa(e,t,wn);function re(e,t,n){const r=arguments.length;return r===2?ge(t)&&!W(t)?tr(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&tr(n)&&(n=[n]),ae(e,t,n))}const Tc="3.5.13";/** +**/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>>1,i=Se[r],s=fn(i);s=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(;nfn(n)-fn(r));if(Nt.length=0,dt){dt.push(...t);return}for(dt=t,Bt=0;Bte.id==null?e.flags&2?-1:1/0:e.id;function Is(e){try{for(Je=0;Je{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;ie.__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;ct(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;ae?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;de[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{for(let C=R;C{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{N&&Xe(N,m,h,f),H&&At(h,f,m,"updated")},y)},Z=(f,h,m,y,w,v,E)=>{for(let $=0;${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;FH?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=NF)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){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{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$.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{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>1,e[n[o]]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;tYn(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&<(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;de.__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||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";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let ui;const cl=typeof window<"u"&&window.trustedTypes;if(cl)try{ui=cl.createPolicy("vue",{createHTML:e=>e})}catch{}const ul=ui?e=>ui.createHTML(e):e=>e,Ec="http://www.w3.org/2000/svg",Lc="http://www.w3.org/1998/Math/MathML",ct=typeof document<"u"?document:null,fl=ct&&ct.createElement("template"),Ic={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(Ec,e):t==="mathml"?ct.createElementNS(Lc,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{fl.innerHTML=ul(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const o=fl.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]}},Mc=Symbol("_vtc");function Pc(e,t,n){const r=e[Mc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sr=Symbol("_vod"),hl=Symbol("_vsh"),dl={beforeMount(e,{value:t},{transition:n}){e[sr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kn(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),kn(e,!0),r.enter(e)):r.leave(e,()=>{kn(e,!1)}):kn(e,t))},beforeUnmount(e,{value:t}){kn(e,t)}};function kn(e,t){e.style.display=t?e[sr]:"none",e[hl]=!t}const Oc=Symbol(""),jc=/(^|;)\s*display\s*:/;function zc(e,t,n){const r=e.style,i=be(n);let s=!1;if(n&&!i){if(t)if(be(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[Oc];l&&(n+=";"+l),r.cssText=n,s=jc.test(n)}}else t&&e.removeAttribute("style");sr in e&&(e[sr]=s?r.display:"",e[hl]&&(r.display="none"))}const pl=/\s*!important$/;function lr(e,t,n){if(W(n))n.forEach(r=>lr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Fc(e,t);pl.test(n)?e.setProperty(_t(r),n.replace(pl,""),"important"):e[r]=n}}const gl=["Webkit","Moz","ms"],fi={};function Fc(e,t){const n=fi[t];if(n)return n;let r=He(t);if(r!=="filter"&&r in e)return fi[t]=r;r=Dn(r);for(let i=0;ihi||(Nc.then(()=>hi=0),hi=Date.now());function Vc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lt(Wc(r,n.value),t,5,[r])};return n.value=e,n.attached=Bc(),n}function Wc(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 kl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qc=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Pc(e,r,l):t==="style"?zc(e,n,r):zn(t)?Er(t)||Hc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Kc(e,t,r,l))?(bl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&vl(e,t,r,l,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!be(r))?bl(e,He(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),vl(e,t,r,l))};function Kc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&kl(t)&&oe(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 kl(t)&&be(n)?!1:t in e}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return W(t)?n=>Hn(t,n):t};function Gc(e){e.target.composing=!0}function xl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ve=Symbol("_assign"),di={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ve]=yt(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=Un(o)),e[Ve](o)}),n&&ut(e,"change",()=>{e.value=e.value.trim()}),t||(ut(e,"compositionstart",Gc),ut(e,"compositionend",xl),ut(e,"change",xl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[Ve]=yt(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))}},Zc={deep:!0,created(e,t,n){e[Ve]=yt(n),ut(e,"change",()=>{const r=e._modelValue,i=Gt(e),s=e.checked,l=e[Ve];if(W(r)){const o=Mr(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(Ht(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(Sl(e,s))})},mounted:_l,beforeUpdate(e,t,n){e[Ve]=yt(n),_l(e,t,n)}};function _l(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(W(t))i=Mr(t,r.props.value)>-1;else if(Ht(t))i=t.has(r.props.value);else{if(t===n)return;i=Ct(t,Sl(e,!0))}e.checked!==i&&(e.checked=i)}const Jc={created(e,{value:t},n){e.checked=Ct(t,n.props.value),e[Ve]=yt(n),ut(e,"change",()=>{e[Ve](Gt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ve]=yt(r),t!==n&&(e.checked=Ct(t,r.props.value))}},Yc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Ht(t);ut(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Un(Gt(l)):Gt(l));e[Ve](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Wt(()=>{e._assigning=!1})}),e[Ve]=yt(r)},mounted(e,{value:t}){Cl(e,t)},beforeUpdate(e,t,n){e[Ve]=yt(n)},updated(e,{value:t}){e._assigning||Cl(e,t)}};function Cl(e,t){const n=e.multiple,r=W(t);if(!(n&&!r&&!Ht(t))){for(let i=0,s=e.options.length;iString(c)===String(o)):l.selected=Mr(t,o)>-1}else l.selected=t.has(o);else if(Ct(Gt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Gt(e){return"_value"in e?e._value:e.value}function Sl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Xc={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 Qc(e,t){switch(e){case"SELECT":return Yc;case"TEXTAREA":return di;default:switch(t){case"checkbox":return Zc;case"radio":return Jc;default:return di}}}function or(e,t,n,r,i){const l=Qc(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const eu=De({patchProp:qc},Ic);let $l;function tu(){return $l||($l=nc(eu))}const nu=(...e)=>{const t=tu().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=iu(r);if(!i)return;const s=t._component;!oe(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,ru(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function ru(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function iu(e){return be(e)?document.querySelector(e):e}function xn(e){return us()?(ia(e),!0):!1}function ft(e){return typeof e=="function"?e():q(e)}const ar=typeof window<"u"&&typeof document<"u",su=Object.prototype.toString,lu=e=>su.call(e)==="[object Object]",cr=()=>{};function Rl(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 Al=e=>e();function ou(e,t={}){let n,r,i=cr;const s=o=>{clearTimeout(o),i(),i=cr};return o=>{const a=ft(e),c=ft(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 au(e=Al){const t=X(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:un(t),pause:n,resume:r,eventFilter:i}}function Tl(e){return rl()}function cu(e,t=200,n={}){return Rl(ou(t,n),e)}function uu(e,t,n={}){const{eventFilter:r=Al,...i}=n;return Be(e,Rl(r,t),i)}function fu(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=au(r);return{stop:uu(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function pi(e,t=!0,n){Tl()?gn(e,n):t?e():Wt(e)}function hu(e,t){Tl()&&Qr(e,t)}function du(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=ft(t);u<=0||(l.value=!0,i&&e(),o(),l.value&&(s=setInterval(e,u)))}if(r&&ar&&c(),we(t)||typeof t=="function"){const u=Be(t,()=>{l.value&&ar&&c()});xn(u)}return xn(a),{isActive:l,pause:a,resume:c}}const ur=ar?window:void 0,El=ar?window.document:void 0;function pu(e){var t;const n=ft(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=Be(()=>[pu(t),ft(i)],([u,h])=>{if(l(),!u)return;const d=lu(h)?{...h}:h;s.push(...n.flatMap(g=>r.map(x=>o(u,g,x,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return xn(c),c}function gu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=ur}=t,s=X(!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&&ge==="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 Zt(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:x}=r,b=(u?Rs:X)(typeof t=="function"?t():t);if(!n)try{n=bu("getDefaultStorage",()=>{var Z;return(Z=ur)==null?void 0:Z.localStorage})()}catch(Z){g(Z)}if(!n)return b;const S=ft(t),y=yu(S),_=(i=r.serializer)!=null?i:wu[y],{pause:H,resume:E}=fu(b,()=>K(b.value),{flush:s,deep:l,eventFilter:d});h&&o&&pi(()=>{n instanceof Storage?fr(h,"storage",J):fr(h,Ll,Me),x&&J()}),x||J();function O(Z,M){if(h){const G={key:e,oldValue:Z,newValue:M,storageArea:n};h.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):y==="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)){H();try{(Z==null?void 0:Z.newValue)!==_.write(b.value)&&(b.value=z(Z))}catch(M){g(M)}finally{Z?Wt(E):E()}}}}function Me(Z){J(Z.detail)}return b}function ku(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=X(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?gu(i,{immediate:!0}):du(i,n,{immediate:!0});return t?{now:r,...s}:r}function xu(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=El,attrs:d={}}=n,g=X(null);let x=null;const b=_=>new Promise((H,E)=>{const O=J=>(g.value=J,H(J),J);if(!h){H(!1);return}let K=!1,z=h.querySelector(`script[src="${ft(e)}"]`);z?z.hasAttribute("data-loaded")&&O(z):(z=h.createElement("script"),z.type=s,z.async=l,z.src=ft(e),u&&(z.defer=u),o&&(z.crossOrigin=o),c&&(z.noModule=c),a&&(z.referrerPolicy=a),Object.entries(d).forEach(([J,Me])=>z==null?void 0:z.setAttribute(J,Me)),K=!0),z.addEventListener("error",J=>E(J)),z.addEventListener("abort",J=>E(J)),z.addEventListener("load",()=>{z.setAttribute("data-loaded","true"),t(z),O(z)}),K&&(z=h.head.appendChild(z)),_||O(z)}),S=(_=!0)=>(x||(x=b(_)),x),y=()=>{if(!h)return;x=null,g.value&&(g.value=null);const _=h.querySelector(`script[src="${ft(e)}"]`);_&&h.head.removeChild(_)};return r&&!i&&pi(S),i||hu(y),{scriptTag:g,load:S,unload:y}}let _u=0;function Cu(e,t={}){const n=X(!1),{document:r=El,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++_u}`}=t,o=X(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=Be(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&&pi(c),s||xn(u),{id:l,css:o,unload:u,load:c,isLoaded:un(n)}}const Su=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),$u=e=>{const t=Zt("WALINE_EMOJI",{}),n=Su(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}`:""}`,Ru=e=>Promise.all(e.map(t=>zt(t)?$u(Xi(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 h=`${o}${u}`;return n.map[h]=Il(u,s,o,a),h})})}),n}),Ml=e=>{e.name!=="AbortError"&&console.error(e.message)},gi=e=>e instanceof HTMLElement?e:zt(e)?document.querySelector(e):null,Au=e=>e.type.includes("image"),Pl=e=>{const t=Array.from(e).find(Au);return t?t.getAsFile():null};function mi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Mt=mi();function Ol(e){Mt=e}const _n={exec:()=>null};function ce(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(Te.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}const Te={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:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,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")},Tu=/^(?:[ \t]*(?:\n|$))+/,Eu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Lu=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Cn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Iu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jl=/(?:[*+-]|\d{1,9}[.)])/,zl=ce(/^(?!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(),vi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Mu=/^[^\n]+/,bi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Pu=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",bi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ou=ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jl).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",yi=/|$))/,ju=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",yi).replace("tag",pr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Fl=ce(vi).replace("hr",Cn).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",")|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex(),wi={blockquote:ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Fl).getRegex(),code:Eu,def:Pu,fences:Lu,heading:Iu,hr:Cn,html:ju,lheading:zl,list:Ou,newline:Tu,paragraph:Fl,table:_n,text:Mu},Dl=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Cn).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",")|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex(),zu={...wi,table:Dl,paragraph:ce(vi).replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Dl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex()},Fu={...wi,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yi).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_n,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(vi).replace("hr",Cn).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",zl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Hl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Du=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ul=/^( {2,}|\\)\n(?!\s*$)/,Hu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Bu=ce(/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,"u").replace(/punct/g,gr).getRegex(),Vu=ce("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,Nl).replace(/punctSpace/g,ki).replace(/punct/g,gr).getRegex(),Wu=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Nl).replace(/punctSpace/g,ki).replace(/punct/g,gr).getRegex(),qu=ce(/\\(punct)/,"gu").replace(/punct/g,gr).getRegex(),Ku=ce(/^<(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(),Gu=ce(yi).replace("(?:-->|$)","-->").getRegex(),Zu=ce("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Gu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),mr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ju=ce(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",mr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Bl=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",mr).replace("ref",bi).getRegex(),Vl=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",bi).getRegex(),Yu=ce("reflink|nolink(?!\\()","g").replace("reflink",Bl).replace("nolink",Vl).getRegex(),xi={_backpedal:_n,anyPunctuation:qu,autolink:Ku,blockSkip:Nu,br:Ul,code:Du,del:_n,emStrongLDelim:Bu,emStrongRDelimAst:Vu,emStrongRDelimUnd:Wu,escape:Hl,link:Ju,nolink:Vl,punctuation:Uu,reflink:Bl,reflinkSearch:Yu,tag:Zu,text:Hu,url:_n},Xu={...xi,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",mr).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mr).getRegex()},_i={...xi,escape:ce(Hl).replace("])","~|])").getRegex(),url:ce(/^((?: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]*?(?:(?=[\\":">",'"':""","'":"'"},Wl=e=>ef[e];function tt(e,t){if(t){if(Te.escapeTest.test(e))return e.replace(Te.escapeReplace,Wl)}else if(Te.escapeTestNoEncode.test(e))return e.replace(Te.escapeReplaceNoEncode,Wl);return e}function ql(e){try{e=encodeURI(e).replace(Te.percentDecode,"%")}catch{return null}return e}function Kl(e,t){var s;const n=e.replace(Te.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Te.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.lengthe})}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"?`${e}`:r==="mathml"?`${e}`: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;iui||(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;iString(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&&ge==="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:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,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=/|$))/,Du=le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\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",")|<(?: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",")|<(?: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",")|<(?:script|pre|style|textarea|!--)").replace("tag",dr).getRegex()},Hu={...bi,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:xn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(gi).replace("hr",_n).replace("heading",` *#{1,6} *[^ +]`).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]*?(?:(?=[\\]*?>/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-]*(?:attribute)*?\\s*/?>|^<\\?[\\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]*?(?:(?=[\\":">",'"':""","'":"'"},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{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(` -`)}class br{options;rules;lexer;constructor(t){this.options=t||Mt}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:$n(r,` -`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=nf(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=$n(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:$n(n[0],` -`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=$n(n[0],` +`)}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,` +`)}}}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],` +`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Sn(n[0],` `).split(` `),i="",s="";const l=[];for(;r.length>0;){let o=!1;const a=[];let c;for(c=0;c1,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(` +`);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(` `,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),g=t.split(` -`,1)[0],x=!d.trim(),b=0;if(this.options.pedantic?(b=2,h=d.trimStart()):x?b=n[1].length+1:(b=n[2].search(this.rules.other.nonSpaceChar),b=b>4?1:b,h=d.slice(b),b+=n[1].length),x&&this.rules.other.blankLine.test(g)&&(u+=g+` -`,t=t.substring(g.length+1),c=!0),!c){const _=this.rules.other.nextBulletRegex(b),H=this.rules.other.hrRegex(b),E=this.rules.other.fencesBeginRegex(b),O=this.rules.other.headingBeginRegex(b),K=this.rules.other.htmlBeginRegex(b);for(;t;){const z=t.split(` -`,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," "),E.test(g)||O.test(g)||K.test(g)||_.test(g)||H.test(g))break;if(J.search(this.rules.other.nonSpaceChar)>=b||!g.trim())h+=` -`+J.slice(b);else{if(x||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(d)||O.test(d)||H.test(d))break;h+=` +`,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+` +`,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(` +`,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+=` +`+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+=` `+g}!x&&!g.trim()&&(x=!0),u+=z+` -`,t=t.substring(z.length+1),d=J.slice(b)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let S=null,y;this.options.gfm&&(S=this.rules.other.listIsTask.exec(h),S&&(y=S[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!S,checked:y,loose:!1,text:h,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;cd.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({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)===` -`?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=$n(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=tf(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)),Gl(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 Gl(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 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 qe{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Mt,this.options.tokenizer=this.options.tokenizer||new br,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:Te,block:vr.normal,inline:Sn.normal};this.options.pedantic?(n.block=vr.pedantic,n.inline=Sn.pedantic):this.options.gfm&&(n.block=vr.gfm,this.options.breaks?n.inline=Sn.breaks:n.inline=Sn.gfm),this.tokenizer.rules=n}static get rules(){return{block:vr,inline:Sn}}static lex(t,n){return new qe(n).lex(t)}static lexInline(t,n){return new qe(n).inlineTokens(t)}lex(t){t=t.replace(Te.carriageReturn,` -`),this.blockTokens(t,this.tokens);for(let n=0;n(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+=` +`,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;cp.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({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)===` +`?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,` +`),this.blockTokens(t,this.tokens);for(let n=0;n(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+=` `: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+=` `+o.raw,c.text+=` `+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+=` `+o.raw,c.text+=` -`+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+=` +`+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+=` `+o.raw,c.text+=` `+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+=` `+o.raw,c.text+=` -`+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 x;this.options.extensions.startInline.forEach(b=>{x=b.call({lexer:this},g),typeof x=="number"&&x>=0&&(d=Math.min(d,x))}),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 yr{options;parser;constructor(t){this.options=t||Mt}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const i=(l=(n||"").match(Te.notSpaceStart))==null?void 0:l[0],s=t.replace(Te.endingNewline,"")+` -`;return i?'
'+(r?s:tt(s,!0))+`
-`:"
"+(r?s:tt(s,!0))+`
+`+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,"")+` +`;return i?'
'+(r?s:Qe(s,!0))+`
+`:"
"+(r?s:Qe(s,!0))+`
`}blockquote({tokens:t}){return`
${this.parser.parse(t)}
`}html({text:t}){return t}heading({tokens:t,depth:n}){return`${this.parser.parseInline(t)} `}hr(t){return`
`}list(t){const n=t.ordered,r=t.start;let i="";for(let o=0;o `+i+" -`}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+" "+tt(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),`
  • ${n}
  • +`}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),`
  • ${n}
  • `}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    `}table(t){let n="",r="";for(let s=0;s${i}`),` @@ -82,9 +82,9 @@ ${this.parser.parse(t)} `}tablerow({text:t}){return` ${t} `}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+` -`}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${tt(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=ql(t);if(s===null)return i;t=s;let l='",l}image({href:t,title:n,text:r}){const i=ql(t);if(i===null)return tt(r);t=i;let s=`${r}{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 yr(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 br(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 Rn;for(const l in r.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=r.hooks[o],c=s[o];Rn.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 qe.lex(t,n??this.defaults)}parser(t,n){return Ke.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?qe.lex:qe.lexInline,c=l.hooks?l.hooks.provideParser():t?Ke.parse:Ke.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+=` -Please report this to https://github.com/markedjs/marked.`,t){const i="

    An error occurred:

    "+tt(r.message+"",!0)+"
    ";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const Pt=new Zl;function de(e,t){return Pt.parse(e,t)}de.options=de.setOptions=function(e){return Pt.setOptions(e),de.defaults=Pt.defaults,Ol(de.defaults),de},de.getDefaults=mi,de.defaults=Mt,de.use=function(...e){return Pt.use(...e),de.defaults=Pt.defaults,Ol(de.defaults),de},de.walkTokens=function(e,t){return Pt.walkTokens(e,t)},de.parseInline=Pt.parseInline,de.Parser=Ke,de.parser=Ke.parse,de.Renderer=yr,de.TextRenderer=Ci,de.Lexer=qe,de.lexer=qe.lex,de.Tokenizer=br,de.Hooks=Rn,de.parse=de;function rf(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=Jl(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Yl(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.");Yl(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=Jl(n),s=i?e.langPrefix+to(i):e.emptyLangClass,l=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`
    ${r?t:to(t,!0)}
    -
    `}}}}function Jl(e){return(e||"").match(/\S*/)[0]}function Yl(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Xl=/[&<>"']/,sf=new RegExp(Xl.source,"g"),Ql=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,lf=new RegExp(Ql.source,"g"),of={"&":"&","<":"<",">":">",'"':""","'":"'"},eo=e=>of[e];function to(e,t){if(t){if(Xl.test(e))return e.replace(sf,eo)}else if(Ql.test(e))return e.replace(lf,eo);return e}const af=/\$.*?\$/,cf=/^\$(.*?)\$/,uf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ff=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=uf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(af);return n!==-1?n:t.length},tokenizer(t){const n=cf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],no=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`${r}`:n),hf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new Zl;if(i.setOptions({breaks:!0}),n&&i.use(rf({highlight:n})),r){const s=ff(r);i.use({extensions:s})}return i.parse(no(e,t))},Si=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},df=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),pf=e=>e.match(/[\u4E00-\u9FD5]/gu),gf=e=>{var t,n;return(((t=df(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=pf(e))==null?void 0:n.length)??0)},mf=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},ro=({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&&Li({serverURL:jn(e),paths:Array.from(s).map(l=>Yi(Si(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Ml),i.abort.bind(i)},io=({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"})]),vf=()=>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"})),bf=()=>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"})),yf=()=>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"})]),wf=({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"})]),kf=()=>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"})]),xf=()=>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"})),_f=()=>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"})),Cf=()=>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"})),Sf=()=>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"})),An=({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"}))),$f=()=>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"})]),Rf=()=>Zt("WALINE_USER_META",{nick:"",mail:"",link:""}),Af=()=>Zt("WALINE_COMMENT_BOX_EDITOR",""),Tf="WALINE_LIKE";let so=null;const lo=()=>so??(so=Zt(Tf,[])),Ef="WALINE_REACTION";let oo=null;const Lf=()=>oo??(oo=Zt(Ef,{}));var $i={},ht={},dt={},ao;function co(){if(ao)return dt;ao=1;var e=dt&&dt.__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(x){c(x)}}function h(g){try{d(l.throw(g))}catch(x){c(x)}}function d(g){g.done?a(g.value):o(g.value).then(u,h)}d((l=l.apply(r,i||[])).next())})},t=dt&&dt.__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]"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(x,b){h.addEventListener("load",u.waitForScriptToLoad(function(){x(h)},o),!1),h.onerror=function(S){i.setLoadingState(n.NOT_LOADED),b(S)},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 ht.load=r.load,ht.getInstance=r.getInstance,ht}var fo;function Mf(){return fo||(fo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=If();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=co();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}($i)),$i}var Pf=Mf();const ho={},Of=e=>{const t=ho[e]??(ho[e]=Pf.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},jf=e=>({execute:async t=>{const{load:n}=xu("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})})})}}),zf="WALINE_USER";let po=null;const wr=()=>po??(po=Zt(zf,{})),Ff={key:0,class:"wl-reaction"},Df=["textContent"],Hf={class:"wl-reaction-list"},Uf=["onClick"],Nf={class:"wl-reaction-img"},Bf=["src","alt"],Vf=["textContent"],Wf=["textContent"];var qf=dn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Lf(),r=Xn(On),i=X(-1),s=X([]),l=ke(()=>r.value.locale),o=ke(()=>r.value.reaction.length>0),a=ke(()=>{const{reaction:d,path:g}=r.value;return d.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:d,lang:g,path:x,reaction:b}=r.value,S=new AbortController;c=S.abort.bind(S);const y=await Cr({serverURL:d,lang:g,paths:[x],type:b.map((_,H)=>`reaction${H}`),signal:S.signal});s.value=b.map((_,H)=>y[0][`reaction${H}`])},h=async d=>{if(i.value===-1){const{serverURL:g,lang:x,path:b}=r.value,S=n.value[b];i.value=d,S!==void 0&&(await Mn({serverURL:g,lang:x,path:b,type:`reaction${S}`,action:"desc"}),s.value[S]=Math.max(s.value[S]-1,0)),S!==d&&(await Mn({serverURL:g,lang:x,path:b,type:`reaction${d}`}),s.value[d]=(s.value[d]||0)+1),S===d?delete n.value[b]:n.value[b]=d,i.value=-1}};return gn(()=>{Be(()=>[r.value.serverURL,r.value.path],()=>{u()},{immediate:!0})}),Qr(()=>{c()}),(d,g)=>a.value.length?(L(),P("div",Ff,[F("div",{class:"wl-reaction-title",textContent:ee(l.value.reactionTitle)},null,8,Df),F("ul",Hf,[(L(!0),P(fe,null,Ne(a.value,({active:x,icon:b,desc:S},y)=>(L(),P("li",{key:y,class:ve(["wl-reaction-item",{active:x}]),onClick:_=>h(y)},[F("div",Nf,[F("img",{src:b,alt:S},null,8,Bf),i.value===y?(L(),ot(q(An),{key:0,class:"wl-reaction-loading"})):(L(),P("div",{key:1,class:"wl-reaction-votes",textContent:ee(s.value[y]||0)},null,8,Vf))]),F("div",{class:"wl-reaction-text",textContent:ee(S)},null,8,Wf)],10,Uf))),128))])])):Q("v-if",!0)}}),Tn=new Map;function Kf(e){var t=Tn.get(e);t&&t.destroy()}function Gf(e){var t=Tn.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"&&!Tn.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]}),Tn.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",Tn.set(r,{destroy:a,update:u}),u()}function c(h){var d,g,x=h.restoreTextAlign,b=x===void 0?null:x,S=h.testForHeightReduction,y=S===void 0||S,_=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),y&&(d=function(E){for(var O=[];E&&E.parentNode&&E.parentNode instanceof Element;)E.parentNode.scrollTop&&O.push([E.parentNode,E.parentNode.scrollTop]),E=E.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),d&&d(),s!==g&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=g),_!==l.overflow&&!b)){var H=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=H==="start"?"end":"start"),c({restoreTextAlign:H,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Kf),e},En.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Gf),e});var go=En;const Zf=["data-index"],Jf=["src","title","onClick"];var Yf=dn({__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=vt("wall"),s=X({}),l=X([]),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 Wt();const x=Array.from(((g=i.value)==null?void 0:g.children)??[]).reduce((b,S)=>S.getBoundingClientRect().height{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 gn(()=>{u(!0),r=new ResizeObserver(()=>{u()}),r.observe(i.value),Be(()=>[n.items],()=>{s.value={},u(!0)}),Be(()=>[n.columnWidth,n.gap],()=>{u()})}),Ha(()=>{r.unobserve(i.value)}),(d,g)=>(L(),P("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:nn({gap:`${d.gap}px`})},[(L(!0),P(fe,null,Ne(l.value,(x,b)=>(L(),P("div",{key:b,class:"wl-gallery-column","data-index":b,style:nn({gap:`${d.gap}px`})},[(L(!0),P(fe,null,Ne(x,S=>(L(),P(fe,{key:S},[s.value[d.items[S].src]?Q("v-if",!0):(L(),ot(q(An),{key:0,size:36,style:{margin:"20px auto"}})),F("img",{class:"wl-gallery-item",src:d.items[S].src,title:d.items[S].title,loading:"lazy",onLoad:h,onClick:y=>d.$emit("insert",`![](${d.items[S].src})`)},null,40,Jf)],64))),128))],12,Zf))),128))],4))}});const Xf={key:0,class:"wl-login-info"},Qf={class:"wl-avatar"},eh=["title"],th=["title"],nh=["src"],rh=["title","textContent"],ih={class:"wl-panel"},sh=["for","textContent"],lh=["id","onUpdate:modelValue","name","type"],oh=["placeholder"],ah={class:"wl-preview"},ch=["innerHTML"],uh={class:"wl-footer"},fh={class:"wl-actions"},hh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},dh=["title"],ph=["title"],gh=["title","aria-label"],mh=["title"],vh={class:"wl-info"},bh={class:"wl-text-number"},yh={key:0},wh=["textContent"],kh=["textContent"],xh=["disabled"],_h=["placeholder"],Ch={key:1,class:"wl-loading"},Sh={key:0,class:"wl-tab-wrapper"},$h=["title","onClick"],Rh=["src","alt"],Ah={key:0,class:"wl-tabs"},Th=["onClick"],Eh=["src","alt","title"],Lh=["title"];var mo=dn({__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=Xn(On),s=Af(),l=Rf(),o=wr(),a=X({}),c=vt("textarea"),u=vt("image-uploader"),h=vt("emoji-button"),d=vt("emoji-popup"),g=vt("gif-button"),x=vt("gif-popup"),b=vt("gif-search"),S=X({tabs:[],map:{}}),y=X(0),_=X(!1),H=X(!1),E=X(!1),O=X(""),K=X(0),z=cn({loading:!0,list:[]}),J=X(0),Me=X(!1),Z=X(""),M=X(!1),G=X(!1),B=ke(()=>i.value.locale),me=ke(()=>!!o.value.token),xe=ke(()=>i.value.imageUploader!==!1),ye=j=>{const R=c.value,V=R.selectionStart,pe=R.selectionEnd||0,f=R.scrollTop;s.value=R.value.substring(0,V)+j+R.value.substring(pe,R.value.length),R.focus(),R.selectionStart=V+j.length,R.selectionEnd=V+j.length,R.scrollTop=f},pt=j=>{if(M.value)return;const R=j.key;(j.ctrlKey||j.metaKey)&&R==="Enter"&&Ge()},wt=j=>{const R=`![${i.value.locale.uploading} ${j.name}]()`;return ye(R),M.value=!0,Promise.resolve().then(()=>i.value.imageUploader(j)).then(V=>{s.value=s.value.replace(R,`\r -![${j.name}](${V})`)}).catch(V=>{alert(V.message),s.value=s.value.replace(R,"")}).then(()=>{M.value=!1})},Ln=j=>{var R;if((R=j.dataTransfer)!=null&&R.items){const V=Pl(j.dataTransfer.items);V&&xe.value&&(wt(V),j.preventDefault())}},kr=j=>{if(j.clipboardData){const R=Pl(j.clipboardData.items);R&&xe.value&&wt(R)}},Jt=()=>{const j=u.value;j.files&&xe.value&&wt(j.files[0]).then(()=>{j.value=""})},Ge=async()=>{var j;const{serverURL:R,lang:V,login:pe,wordLimit:f,requiredMeta:p,recaptchaV3Key:m,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 mf()};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(pe==="force")return;if(p.includes("nick")&&!v.nick){a.value.nick.focus(),alert(B.value.nickError);return}if(p.includes("mail")&&!v.mail||v.mail&&!Wo(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(!Me.value){alert(B.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",K.value.toString()));return}v.comment=no(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{m&&(v.recaptchaV3=await Of(m).execute("social")),w&&(v.turnstile=await jf(w).execute("social"));const k={serverURL:R,lang:V,token:o.value.token,comment:v},T=await(n.edit?Xt({objectId:n.edit.objectId,...k}):Ti(k));if(M.value=!1,T.errmsg){alert(T.errmsg);return}r("submit",T.data),s.value="",O.value="",await Wt(),n.replyId&&r("cancelReply"),(j=n.edit)!=null&&j.objectId&&r("cancelEdit")}catch(k){M.value=!1,alert(k.message)}},xr=j=>{j.preventDefault();const{lang:R,serverURL:V}=i.value;Ii({serverURL:V,lang:R}).then(pe=>{o.value=pe,(pe.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(pe)),r("log")})},Ri=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},_r=j=>{j.preventDefault();const{lang:R,serverURL:V}=i.value,pe=800,f=800,p=(window.innerWidth-pe)/2,m=(window.innerHeight-f)/2,w=new URLSearchParams({lng:R,token:o.value.token}),v=window.open(`${V}/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`);v==null||v.postMessage({type:"TOKEN",data:o.value.token},"*")},Ot=j=>{var R,V,pe,f;!((R=h.value)!=null&&R.contains(j.target))&&!((V=d.value)!=null&&V.contains(j.target))&&(_.value=!1),!((pe=g.value)!=null&&pe.contains(j.target))&&!((f=x.value)!=null&&f.contains(j.target))&&(H.value=!1)},jt=async j=>{var R;const{scrollTop:V,clientHeight:pe,scrollHeight:f}=j.target,p=(pe+V)/f,m=i.value.search,w=((R=b.value)==null?void 0:R.value)??"";p<.9||z.loading||G.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)]:G.value=!0,z.loading=!1,setTimeout(()=>{j.target.scrollTop=V},50))},Yt=cu(j=>{z.list=[],G.value=!1,jt(j)},300);return Be([i,K],([j,R])=>{const{wordLimit:V}=j;V?RV[1]?(J.value=V[1],Me.value=!1):(J.value=V[1],Me.value=!0):(J.value=0,Me.value=!0)},{immediate:!0}),fr("click",Ot),fr("message",({data:j})=>{!j||j.type!=="profile"||(o.value={...o.value,...j.data},[localStorage,sessionStorage].filter(R=>R.getItem("WALINE_USER")).forEach(R=>{R.setItem("WALINE_USER",JSON.stringify(o))}))}),Be(H,async j=>{var R;if(!j)return;const V=i.value.search;b.value&&(b.value.value=""),z.loading=!0,z.list=await(((R=V.default)==null?void 0:R.call(V))??V.search("")),z.loading=!1}),gn(()=>{var j;(j=n.edit)!=null&&j.objectId&&(s.value=n.edit.orig),Be(()=>s.value,R=>{const{highlighter:V,texRenderer:pe}=i.value;Z.value=R,O.value=hf(R,{emojiMap:S.value.map,highlighter:V,texRenderer:pe}),K.value=gf(R),R?go(c.value):go.destroy(c.value)},{immediate:!0}),Be(()=>i.value.emoji,R=>Ru(R).then(V=>{S.value=V}),{immediate:!0})}),(j,R)=>{var V,pe;return L(),P("div",{key:q(o).token,class:"wl-comment"},[q(i).login!=="disable"&&me.value&&!((V=j.edit)!=null&&V.objectId)?(L(),P("div",Xf,[F("div",Qf,[F("button",{type:"submit",class:"wl-logout-btn",title:B.value.logout,onClick:Ri},[ae(q(io),{size:14})],8,eh),F("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:B.value.profile,onClick:_r},[F("img",{src:q(o).avatar,alt:"avatar"},null,8,nh)],8,th)]),F("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:B.value.profile,onClick:_r,textContent:ee(q(o).display_name)},null,8,rh)])):Q("v-if",!0),F("div",ih,[q(i).login!=="force"&&q(i).meta.length&&!me.value?(L(),P("div",{key:0,class:ve(["wl-header",`item${q(i).meta.length}`])},[(L(!0),P(fe,null,Ne(q(i).meta,f=>(L(),P("div",{key:f,class:"wl-header-item"},[F("label",{for:`wl-${f}`,textContent:ee(B.value[f]+(q(i).requiredMeta.includes(f)||!q(i).requiredMeta.length?"":`(${B.value.optional})`))},null,8,sh),Jn(F("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,lh),[[Xc,q(l)[f]]])]))),128))],2)):Q("v-if",!0),Jn(F("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":R[0]||(R[0]=f=>we(s)?s.value=f:null),class:"wl-editor",placeholder:j.replyUser?`@${j.replyUser}`:B.value.placeholder,onKeydown:pt,onDrop:Ln,onPaste:kr},null,40,oh),[[di,q(s)]]),Jn(F("div",ah,[R[7]||(R[7]=F("hr",null,null,-1)),F("h4",null,ee(B.value.preview)+":",1),F("div",{class:"wl-content",innerHTML:O.value},null,8,ch)],512),[[dl,E.value]]),F("div",uh,[F("div",fh,[F("a",hh,[ae(q(xf))]),Jn(F("button",{ref:"emoji-button",type:"button",class:ve(["wl-action",{active:_.value}]),title:B.value.emoji,onClick:R[1]||(R[1]=f=>_.value=!_.value)},[ae(q(bf))],10,dh),[[dl,S.value.tabs.length]]),q(i).search?(L(),P("button",{key:0,ref:"gif-button",type:"button",class:ve(["wl-action",{active:H.value}]),title:B.value.gif,onClick:R[2]||(R[2]=f=>H.value=!H.value)},[ae(q($f))],10,ph)):Q("v-if",!0),F("input",{id:"wl-image-upload",ref:"image-uploader",class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Jt},null,544),xe.value?(L(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:B.value.uploadImage,"aria-label":B.value.uploadImage},[ae(q(yf))],8,gh)):Q("v-if",!0),F("button",{type:"button",class:ve(["wl-action",{active:E.value}]),title:B.value.preview,onClick:R[3]||(R[3]=f=>E.value=!E.value)},[ae(q(kf))],10,mh)]),F("div",vh,[R[9]||(R[9]=F("div",{class:"wl-captcha-container"},null,-1)),F("div",bh,[at(ee(K.value)+" ",1),q(i).wordLimit?(L(),P("span",yh,[R[8]||(R[8]=at("  /  ")),F("span",{class:ve({illegal:!Me.value}),textContent:ee(J.value)},null,10,wh)])):Q("v-if",!0),at("  "+ee(B.value.word),1)]),q(i).login!=="disable"&&!me.value?(L(),P("button",{key:0,type:"button",class:"wl-btn",onClick:xr,textContent:ee(B.value.login)},null,8,kh)):Q("v-if",!0),q(i).login!=="force"||me.value?(L(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:M.value,onClick:Ge},[M.value?(L(),ot(q(An),{key:0,size:16})):(L(),P(fe,{key:1},[at(ee(B.value.submit),1)],64))],8,xh)):Q("v-if",!0)]),F("div",{ref:"gif-popup",class:ve(["wl-gif-popup",{display:H.value}])},[F("input",{ref:"gif-search",type:"text",placeholder:B.value.gifSearchPlaceholder,onInput:R[4]||(R[4]=(...f)=>q(Yt)&&q(Yt)(...f))},null,40,_h),z.list.length?(L(),ot(Yf,{key:0,items:z.list,"column-width":200,gap:6,onInsert:R[5]||(R[5]=f=>ye(f)),onScroll:jt},null,8,["items"])):Q("v-if",!0),z.loading?(L(),P("div",Ch,[ae(q(An),{size:30})])):Q("v-if",!0)],2),F("div",{ref:"emoji-popup",class:ve(["wl-emoji-popup",{display:_.value}])},[(L(!0),P(fe,null,Ne(S.value.tabs,(f,p)=>(L(),P(fe,{key:f.name},[p===y.value?(L(),P("div",Sh,[(L(!0),P(fe,null,Ne(f.items,m=>(L(),P("button",{key:m,type:"button",title:m,onClick:w=>ye(`:${m}:`)},[_.value?(L(),P("img",{key:0,class:"wl-emoji",src:S.value.map[m],alt:m,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Rh)):Q("v-if",!0)],8,$h))),128))])):Q("v-if",!0)],64))),128)),S.value.tabs.length>1?(L(),P("div",Ah,[(L(!0),P(fe,null,Ne(S.value.tabs,(f,p)=>(L(),P("button",{key:f.name,type:"button",class:ve(["wl-tab",{active:y.value===p}]),onClick:m=>y.value=p},[F("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Eh)],10,Th))),128))])):Q("v-if",!0)],2)])]),j.replyId||(pe=j.edit)!=null&&pe.objectId?(L(),P("button",{key:1,type:"button",class:"wl-close",title:B.value.cancelReply,onClick:R[6]||(R[6]=f=>j.replyId?r("cancelReply"):r("cancelEdit"))},[ae(q(io),{size:24})],8,Lh)):Q("v-if",!0)])}}});const Ih=["id"],Mh={class:"wl-user","aria-hidden":"true"},Ph=["src"],Oh={class:"wl-card"},jh={class:"wl-head"},zh=["href"],Fh={key:1,class:"wl-nick"},Dh=["textContent"],Hh=["textContent"],Uh=["textContent"],Nh=["textContent"],Bh=["textContent"],Vh={class:"wl-comment-actions"},Wh=["title"],qh=["title"],Kh={class:"wl-meta","aria-hidden":"true"},Gh=["data-value","textContent"],Zh={key:0,class:"wl-content"},Jh={key:0},Yh=["href"],Xh=["innerHTML"],Qh={key:1,class:"wl-admin-actions"},ed={class:"wl-comment-status"},td=["disabled","onClick","textContent"],nd={key:3,class:"wl-quote"};var rd=dn({__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=Xn(On),l=lo(),o=ku(),a=wr(),c=ke(()=>s.value.locale),u=ke(()=>{const{link:y}=n.comment;return y?Qi(y)?y:`https://${y}`:""}),h=ke(()=>l.value.includes(n.comment.objectId)),d=ke(()=>Bo(new Date(n.comment.time),o.value,c.value)),g=ke(()=>a.value.type==="administrator"),x=ke(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),b=ke(()=>{var y;return n.comment.objectId===((y=n.reply)==null?void 0:y.objectId)}),S=ke(()=>{var y;return n.comment.objectId===((y=n.edit)==null?void 0:y.objectId)});return(y,_)=>{var H;const E=Na("CommentCard",!0);return L(),P("div",{id:y.comment.objectId,class:"wl-card-item"},[F("div",Mh,[y.comment.avatar?(L(),P("img",{key:0,class:"wl-user-avatar",src:y.comment.avatar,alt:""},null,8,Ph)):Q("v-if",!0),y.comment.type?(L(),ot(q(Sf),{key:1})):Q("v-if",!0)]),F("div",Oh,[F("div",jh,[u.value?(L(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},ee(y.comment.nick),9,zh)):(L(),P("span",Fh,ee(y.comment.nick),1)),y.comment.type==="administrator"?(L(),P("span",{key:2,class:"wl-badge",textContent:ee(c.value.admin)},null,8,Dh)):Q("v-if",!0),y.comment.label?(L(),P("span",{key:3,class:"wl-badge",textContent:ee(y.comment.label)},null,8,Hh)):Q("v-if",!0),y.comment.sticky?(L(),P("span",{key:4,class:"wl-badge",textContent:ee(c.value.sticky)},null,8,Uh)):Q("v-if",!0),typeof y.comment.level=="number"?(L(),P("span",{key:5,class:ve(`wl-badge level${y.comment.level}`),textContent:ee(c.value[`level${y.comment.level}`]||`Level ${y.comment.level}`)},null,10,Nh)):Q("v-if",!0),F("span",{class:"wl-time",textContent:ee(d.value)},null,8,Bh),F("div",Vh,[g.value||x.value?(L(),P(fe,{key:0},[F("button",{type:"button",class:"wl-edit",onClick:_[0]||(_[0]=O=>r("edit",y.comment))},[ae(q(Cf))]),F("button",{type:"button",class:"wl-delete",onClick:_[1]||(_[1]=O=>r("delete",y.comment))},[ae(q(vf))])],64)):Q("v-if",!0),F("button",{type:"button",class:"wl-like",title:h.value?c.value.cancelLike:c.value.like,onClick:_[2]||(_[2]=O=>r("like",y.comment))},[ae(q(wf),{active:h.value},null,8,["active"]),at(" "+ee("like"in y.comment?y.comment.like:""),1)],8,Wh),F("button",{type:"button",class:ve(["wl-reply",{active:b.value}]),title:b.value?c.value.cancelReply:c.value.reply,onClick:_[3]||(_[3]=O=>r("reply",b.value?null:y.comment))},[ae(q(_f))],10,qh)])]),F("div",Kh,[(L(),P(fe,null,Ne(["addr","browser","os"],O=>(L(),P(fe,null,[y.comment[O]?(L(),P("span",{key:O,class:ve(`wl-${O}`),"data-value":y.comment[O],textContent:ee(y.comment[O])},null,10,Gh)):Q("v-if",!0)],64))),64))]),S.value?Q("v-if",!0):(L(),P("div",Zh,["reply_user"in y.comment&&y.comment.reply_user?(L(),P("p",Jh,[F("a",{href:"#"+y.comment.pid},"@"+ee(y.comment.reply_user.nick),9,Yh),_[17]||(_[17]=F("span",null,": ",-1))])):Q("v-if",!0),F("div",{innerHTML:y.comment.comment},null,8,Xh)])),g.value&&!S.value?(L(),P("div",Qh,[F("span",ed,[(L(),P(fe,null,Ne(i,O=>F("button",{key:O,type:"submit",class:ve(`wl-btn wl-${O}`),disabled:y.comment.status===O,onClick:K=>r("status",{status:O,comment:y.comment}),textContent:ee(c.value[O])},null,10,td)),64))]),g.value&&!("rid"in y.comment)?(L(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:_[4]||(_[4]=O=>r("sticky",y.comment))},ee(y.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:ve({"wl-reply-wrapper":b.value,"wl-edit-wrapper":S.value})},[ae(mo,{edit:y.edit,"reply-id":(H=y.reply)==null?void 0:H.objectId,"reply-user":y.comment.nick,"root-id":y.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 y.comment?(L(),P("div",nd,[(L(!0),P(fe,null,Ne(y.comment.children,O=>(L(),ot(E,{key:O.objectId,comment:O,reply:y.reply,edit:y.edit,"root-id":y.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,Ih)}}});const vo="3.4.2",id={"data-waline":""},sd={class:"wl-meta-head"},ld={class:"wl-count"},od=["textContent"],ad={class:"wl-sort"},cd=["onClick"],ud={class:"wl-cards"},fd={key:1,class:"wl-operation"},hd=["textContent"],dd={key:2,class:"wl-loading"},pd=["textContent"],gd={key:4,class:"wl-operation"},md=["textContent"],vd={key:5,class:"wl-power"};var bd=dn({__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=wr(),r=lo(),i=X("loading"),s=X(0),l=X(1),o=X(0),a=ke(()=>Ho(t)),c=X(a.value.commentSorting),u=X([]),h=X(null),d=X(null),g=ke(()=>Uo(a.value.dark)),x=ke(()=>a.value.locale);Cu(g,{id:"waline-darkmode"});let b=null;const S=M=>{const{serverURL:G,path:B,pageSize:me}=a.value,xe=new AbortController;i.value="loading",b==null||b(),Ai({serverURL:G,lang:a.value.lang,path:B,pageSize:me,sortBy:Ji[c.value],page:M,signal:xe.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=xe.abort.bind(xe)},y=()=>{S(l.value+1)},_=()=>{s.value=0,u.value=[],S(1)},H=M=>{c.value!==M&&(c.value=M,_())},E=M=>{h.value=M},O=M=>{d.value=M},K=M=>{if(d.value)d.value.comment=M.comment,d.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:me}=a.value;await Xt({serverURL:B,lang:me,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 Xt({serverURL:G,lang:B,token:n.value.token,objectId:M.objectId,comment:{sticky:M.sticky?0:1}}),M.sticky=!M.sticky},Me=async({objectId:M})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:G,lang:B}=a.value;await Ei({serverURL:G,lang:B,token:n.value.token,objectId:M}),u.value.some((me,xe)=>me.objectId===M?(u.value=u.value.filter((ye,pt)=>pt!==xe),!0):me.children.some((ye,pt)=>ye.objectId===M?(u.value[xe].children=me.children.filter((wt,Ln)=>Ln!==pt),!0):!1))},Z=async M=>{const{serverURL:G,lang:B}=a.value,{objectId:me}=M,xe=r.value.includes(me);await Xt({serverURL:G,lang:B,objectId:me,token:n.value.token,comment:{like:!xe}}),xe?r.value=r.value.filter(ye=>ye!==me):(r.value=[...r.value,me],r.value.length>50&&(r.value=r.value.slice(-50))),M.like=Math.max(0,(M.like||0)+(xe?-1:1))};return Ga(On,a),gn(()=>{Be(()=>[t.serverURL,t.path],()=>{_()},{immediate:!0})}),Qr(()=>{b==null||b()}),(M,G)=>(L(),P("div",id,[ae(qf),!h.value&&!d.value?(L(),ot(mo,{key:0,onLog:_,onSubmit:K})):Q("v-if",!0),F("div",sd,[F("div",ld,[s.value?(L(),P("span",{key:0,class:"wl-num",textContent:ee(s.value)},null,8,od)):Q("v-if",!0),at(" "+ee(x.value.comment),1)]),F("ul",ad,[(L(!0),P(fe,null,Ne(q(Fo),B=>(L(),P("li",{key:B,class:ve([B===c.value?"active":""]),onClick:me=>H(B)},ee(x.value[B]),11,cd))),128))])]),F("div",ud,[(L(!0),P(fe,null,Ne(u.value,B=>(L(),ot(rd,{key:B.objectId,"root-id":B.objectId,comment:B,reply:h.value,edit:d.value,onLog:_,onReply:E,onEdit:O,onSubmit:K,onStatus:z,onDelete:Me,onSticky:J,onLike:Z},null,8,["root-id","comment","reply","edit"]))),128))]),i.value==="error"?(L(),P("div",fd,[F("button",{type:"button",class:"wl-btn",onClick:_,textContent:ee(x.value.refresh)},null,8,hd)])):i.value==="loading"?(L(),P("div",dd,[ae(q(An),{size:30})])):u.value.length?l.value{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},yo=({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=Si(c);return u!==null&&t!==u},a=c=>Mi({serverURL:jn(e),paths:c.map(u=>Si(u)??t),lang:i,signal:s.signal}).then(u=>bo(u,c)).catch(Ml);if(r){const c=l.filter(h=>!o(h)),u=l.filter(o);Pi({serverURL:jn(e),path:t,lang:i}).then(h=>bo(h,c)),u.length&&a(u)}else a(l);return s.abort.bind(s)},yd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?gi(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=cn({...i}),o=cn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&ro({serverURL:l.serverURL,path:o.path,...zt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&yo({serverURL:l.serverURL,path:o.path,...zt(o.pageview)?{selector:o.pageview}:{}})};let u=null;s&&(u=nu(()=>re(bd,{path:o.path,...l})),u.mount(s));const h=Js(a),d=Js(c);return{el:s,update:({comment:g,pageview:x,path:b=window.location.pathname,...S}={})=>{Object.entries(S).forEach(([y,_])=>{l[y]=_}),o.path=b,g!==void 0&&(o.comment=g),x!==void 0&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),h(),d()}}},wd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const i=wr(),s=gi(e),l=new AbortController;return Oi({serverURL:t,count:n,lang:r,signal:l.signal,token:i.value.token}).then(o=>s&&o.length?(s.innerHTML=`
    `,{comments:o,destroy:()=>{l.abort(),s.innerHTML=""}}):{comments:o,destroy:()=>l.abort()})},kd=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=gi(e),o=new AbortController;return ji({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Gi(i),...typeof r=="object"?r:{}},l.innerHTML=``,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};ie.RecentComments=wd,ie.UserList=kd,ie.addComment=Ti,ie.commentCount=ro,ie.defaultLocales=Pn,ie.deleteComment=Ei,ie.fetchCommentCount=Li,ie.getArticleCounter=Cr,ie.getComment=Ai,ie.getPageview=Mi,ie.getRecentComment=Oi,ie.getUserList=ji,ie.init=yd,ie.login=Ii,ie.pageviewCount=yo,ie.updateArticleCounter=Mn,ie.updateComment=Xt,ie.updatePageview=Pi,ie.version=vo}); +`}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${Qe(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}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='",l}image({href:t,title:n,text:r}){const i=Gl(t);if(i===null)return Qe(r);t=i;let s=`${r}{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+=` +Please report this to https://github.com/markedjs/marked.`,t){const i="

    An error occurred:

    "+Qe(r.message+"",!0)+"
    ";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$/,""),`
    ${r?t:ro(t,!0)}
    +
    `}}}}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={"&":"&","<":"<",">":">",'"':""","'":"'"},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]?`${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]"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{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 +![${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?AV[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{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=`
    `,{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=``,{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}); //# sourceMappingURL=waline.umd.js.map diff --git a/dependencies.json b/dependencies.json index 22d61b3a1..3ac8929c0 100644 --- a/dependencies.json +++ b/dependencies.json @@ -17,7 +17,7 @@ }, { "name": "@waline/client", - "version": "3.4.2", + "version": "3.4.3", "files": [ { "remote": "dist/waline.css",