@waline/client 3.5.5 → 3.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var Np=Object.defineProperty;var Bp=(ie,Ee,Te)=>Ee in ie?Np(ie,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ie[Ee]=Te;var Co=(ie,Ee,Te)=>Bp(ie,typeof Ee!="symbol"?Ee+"":Ee,Te);(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"},Te=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},Ar=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${Te(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),jn=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${Te(e)}article?lang=${t}`,{method:"POST",headers:Ee,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>yt(s,"Update counter").data),Ti=({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(`${Te(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)},Ii=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${Te(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Li=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Te(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>yt(i,"Delete comment")),tn=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${Te(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Ee,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>yt(s,"Update comment")),Mi=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Te(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>yt(i,"Get comment count").data),Pi=({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)})},Oi=({serverURL:e,lang:t,paths:n,signal:r})=>Ar({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),ji=e=>jn({...e,type:"time",action:"inc"}),zi=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${Te(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Di=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Te(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"],Fi=e=>e.filter(t=>So.includes(t)),Hi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],$o=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Ro=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=n}),Ao=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Eo=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(i=>i.json()).then(({data:i})=>i.map(s=>({title:s.title,src:s.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},To=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Io=/</,Lo=/(?:^|\s)\/\/(.+?)$/gm,Mo=/\/\*([\S\s]*?)\*\//gm,Po=new RegExp(`(${To.source}|${Io.source})|((?:${Lo.source})|(?:${Mo.source}))`,"gmi"),Ui=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Er={},Oo=e=>{let t=0;return e.replace(Po,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"&lt;";let s;Er[r]?s=Er[r]:(s=Ui[t],Er[r]=s);const l=`<span style="color: #${s}">${r}</span>`;return t=++t%Ui.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"],Ge=e=>Object.fromEntries(e.map((t,n)=>[jo[n],t]));var zo=Ge(["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?"]),Ni=Ge(["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!
1
+ var Np=Object.defineProperty;var Bp=(re,Ee,Te)=>Ee in re?Np(re,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Te}):re[Ee]=Te;var Co=(re,Ee,Te)=>Bp(re,typeof Ee!="symbol"?Ee+"":Ee,Te);(function(re,Ee){typeof exports=="object"&&typeof module<"u"?Ee(exports):typeof define=="function"&&define.amd?define(["exports"],Ee):(re=typeof globalThis<"u"?globalThis:re||self,Ee(re.Waline={}))})(this,function(re){"use strict";const Ee={"Content-Type":"application/json"},Te=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},Ar=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${Te(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),jn=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${Te(e)}article?lang=${t}`,{method:"POST",headers:Ee,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>yt(s,"Update counter").data),Ti=({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(`${Te(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)},Ii=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${Te(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Li=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Te(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>yt(i,"Delete comment")),tn=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${Te(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Ee,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>yt(s,"Update comment")),Mi=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Te(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>yt(i,"Get comment count").data),Pi=({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)})},Oi=({serverURL:e,lang:t,paths:n,signal:r})=>Ar({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),ji=e=>jn({...e,type:"time",action:"inc"}),zi=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${Te(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Di=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Te(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"],Fi=e=>e.filter(t=>So.includes(t)),Hi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],$o=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Ro=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=n}),Ao=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',Eo=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(i=>i.json()).then(({data:i})=>i.map(s=>({title:s.title,src:s.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},To=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Io=/</,Lo=/(?:^|\s)\/\/(.+?)$/gm,Mo=/\/\*([\S\s]*?)\*\//gm,Po=new RegExp(`(${To.source}|${Io.source})|((?:${Lo.source})|(?:${Mo.source}))`,"gmi"),Ui=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Er={},Oo=e=>{let t=0;return e.replace(Po,(n,r,i)=>{if(i)return`<span style="color: slategray">${i}</span>`;if(r==="<")return"&lt;";let s;Er[r]?s=Er[r]:(s=Ui[t],Er[r]=s);const l=`<span style="color: #${s}">${r}</span>`;return t=++t%Ui.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"],Ge=e=>Object.fromEntries(e.map((t,n)=>[jo[n],t]));var zo=Ge(["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?"]),Ni=Ge(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
2
2
  Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),Bi=Ge(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras!
3
3
  El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),Vi=Ge(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots !
4
4
  Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Wi=Ge(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
@@ -7,26 +7,26 @@ var Np=Object.defineProperty;var Bp=(ie,Ee,Te)=>Ee in ie?Np(ie,Ee,{enumerable:!0
7
7
  Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Ki=Ge(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ!
8
8
  Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),Gi=Ge(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
9
9
  当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Fo=Ge(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
10
- 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Zi="en-US",zn={zh:Gi,"zh-cn":Gi,"zh-tw":Fo,en:Ni,"en-us":Ni,fr:Vi,"fr-fr":Vi,jp:Wi,"jp-jp":Wi,"pt-br":Do,ru:qi,"ru-ru":qi,vi:Ki,"vi-vn":Ki,de:zo,es:Bi,"es-mx":Bi},Yi=e=>zn[e.toLowerCase()]||zn[Zi.toLowerCase()],Ji=e=>Object.keys(zn).includes(e.toLowerCase())?e:Zi,Qi={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Ho=Object.keys(Qi),Dn=Symbol("waline-config"),Xi=e=>{try{e=decodeURI(e)}catch{}return e},es=(e="")=>e.replace(/\/$/u,""),ts=e=>/^(https?:)?\/\//.test(e),Fn=e=>{const t=es(e);return ts(t)?t:`https://${t}`},Uo=e=>Array.isArray(e)?e:e?[0,e]:!1,jt=(e,t)=>e==null||e===!0?t:e===!1?null:e,No=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:i=["nick","mail","link"],requiredMeta:s=[],dark:l=!1,pageSize:o=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:d="",commentSorting:m="latest",emoji:x=Hi,imageUploader:b,highlighter:T,texRenderer:w,search:C,reaction:N,...I})=>({serverURL:Fn(e),path:Xi(t),lang:Ji(n),locale:{...Yi(Ji(n)),...typeof r=="object"?r:{}},wordLimit:Uo(a),meta:Fi(i),requiredMeta:Fi(s),dark:l,pageSize:o,commentSorting:m,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:d,...I,reaction:jt(N,$o),imageUploader:jt(b,Ro),highlighter:jt(T,Oo),texRenderer:jt(w,Ao),emoji:jt(x,Hi),search:jt(C,Eo(n))}),zt=e=>typeof e=="string",Tr="{--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=>zt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Tr}}`:`${e}${Tr}`:e===!0?`:root${Tr}`:"",Ir=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Vo=e=>{const t=Ir(e.getDate(),2),n=Ir(e.getMonth()+1,2);return`${Ir(e.getFullYear(),2)}-${n}-${t}`},Wo=(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}`: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);/**
10
+ 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Zi="en-US",zn={zh:Gi,"zh-cn":Gi,"zh-tw":Fo,en:Ni,"en-us":Ni,fr:Vi,"fr-fr":Vi,jp:Wi,"jp-jp":Wi,"pt-br":Do,ru:qi,"ru-ru":qi,vi:Ki,"vi-vn":Ki,de:zo,es:Bi,"es-mx":Bi},Yi=e=>zn[e.toLowerCase()]||zn[Zi.toLowerCase()],Ji=e=>Object.keys(zn).includes(e.toLowerCase())?e:Zi,Qi={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Ho=Object.keys(Qi),Dn=Symbol("waline-config"),Xi=e=>{try{e=decodeURI(e)}catch{}return e},es=(e="")=>e.replace(/\/$/u,""),ts=e=>/^(https?:)?\/\//.test(e),Fn=e=>{const t=es(e);return ts(t)?t:`https://${t}`},Uo=e=>Array.isArray(e)?e:e?[0,e]:!1,zt=(e,t)=>e==null||e===!0?t:e===!1?null:e,No=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:i=["nick","mail","link"],requiredMeta:s=[],dark:l=!1,pageSize:o=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:d="",commentSorting:m="latest",emoji:x=Hi,imageUploader:b,highlighter:T,texRenderer:w,search:C,reaction:N,...I})=>({serverURL:Fn(e),path:Xi(t),lang:Ji(n),locale:{...Yi(Ji(n)),...typeof r=="object"?r:{}},wordLimit:Uo(a),meta:Fi(i),requiredMeta:Fi(s),dark:l,pageSize:o,commentSorting:m,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:d,...I,reaction:zt(N,$o),imageUploader:zt(b,Ro),highlighter:zt(T,Oo),texRenderer:zt(w,Ao),emoji:zt(x,Hi),search:zt(C,Eo(n))}),Dt=e=>typeof e=="string",Tr="{--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=>Dt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Tr}}`:`${e}${Tr}`:e===!0?`:root${Tr}`:"",Ir=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Vo=e=>{const t=Ir(e.getDate(),2),n=Ir(e.getMonth()+1,2);return`${Ir(e.getFullYear(),2)}-${n}-${t}`},Wo=(e,t,n)=>{if(!e)return"";const r=Dt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),s=Math.floor(i/(24*3600*1e3));if(s===0){const l=i%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return s<0?n.now:s<8?`${s} ${n.days}`:Vo(r)},qo=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ko=e=>qo.test(e);/**
11
11
  * @vue/shared v3.5.13
12
12
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
13
  * @license MIT
14
- **//*! #__NO_SIDE_EFFECTS__ */function Lr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const le={},Dt=[],wt=()=>{},Go=()=>!1,Hn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mr=e=>e.startsWith("onUpdate:"),je=Object.assign,ns=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zo=Object.prototype.hasOwnProperty,X=(e,t)=>Zo.call(e,t),q=Array.isArray,Ft=e=>nn(e)==="[object Map]",Ht=e=>nn(e)==="[object Set]",rs=e=>nn(e)==="[object Date]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",Ze=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",is=e=>(pe(e)||ee(e))&&ee(e.then)&&ee(e.catch),ss=Object.prototype.toString,nn=e=>ss.call(e),Yo=e=>nn(e).slice(8,-1),ls=e=>nn(e)==="[object Object]",Pr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=Lr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Jo=/-(\w)/g,ze=Un(e=>e.replace(Jo,(t,n)=>n?n.toUpperCase():"")),Qo=/\B([A-Z])/g,kt=Un(e=>e.replace(Qo,"-$1").toLowerCase()),Nn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),Or=Un(e=>e?`on${Nn(e)}`:""),ht=(e,t)=>!Object.is(e,t),Bn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},os=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let as;const sn=()=>as||(as=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ln(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ye(r)?na(r):ln(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ye(e)||pe(e))return e}const Xo=/;(?![^(]*\))/g,ea=/:([^]+)/,ta=/\/\*[^]*?\*\//g;function na(e){const t={};return e.replace(ta,"").split(Xo).forEach(n=>{if(n){const r=n.split(ea);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ra=Lr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function cs(e){return!!e||e===""}function ia(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=xt(e[r],t[r]);return n}function xt(e,t){if(e===t)return!0;let n=rs(e),r=rs(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ze(e),r=Ze(t),n||r)return e===t;if(n=q(e),r=q(t),n||r)return n&&r?ia(e,t):!1;if(n=pe(e),r=pe(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!xt(e[l],t[l]))return!1}}return String(e)===String(t)}function jr(e,t){return e.findIndex(n=>xt(n,t))}const us=e=>!!(e&&e.__v_isRef===!0),J=e=>ye(e)?e:e==null?"":q(e)||pe(e)&&(e.toString===ss||!ee(e.toString))?us(e)?J(e.value):JSON.stringify(e,fs,2):String(e),fs=(e,t)=>us(t)?fs(e,t.value):Ft(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[zr(r,s)+" =>"]=i,n),{})}:Ht(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zr(n))}:Ze(t)?zr(t):pe(t)&&!q(t)&&!ls(t)?String(t):t,zr=(e,t="")=>{var n;return Ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
14
+ **//*! #__NO_SIDE_EFFECTS__ */function Lr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const le={},Ft=[],wt=()=>{},Go=()=>!1,Hn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Mr=e=>e.startsWith("onUpdate:"),je=Object.assign,ns=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zo=Object.prototype.hasOwnProperty,X=(e,t)=>Zo.call(e,t),q=Array.isArray,Ht=e=>nn(e)==="[object Map]",Ut=e=>nn(e)==="[object Set]",rs=e=>nn(e)==="[object Date]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",Ze=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",is=e=>(pe(e)||ee(e))&&ee(e.then)&&ee(e.catch),ss=Object.prototype.toString,nn=e=>ss.call(e),Yo=e=>nn(e).slice(8,-1),ls=e=>nn(e)==="[object Object]",Pr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=Lr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Jo=/-(\w)/g,ze=Un(e=>e.replace(Jo,(t,n)=>n?n.toUpperCase():"")),Qo=/\B([A-Z])/g,kt=Un(e=>e.replace(Qo,"-$1").toLowerCase()),Nn=Un(e=>e.charAt(0).toUpperCase()+e.slice(1)),Or=Un(e=>e?`on${Nn(e)}`:""),ht=(e,t)=>!Object.is(e,t),Bn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},os=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let as;const sn=()=>as||(as=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ln(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=ye(r)?na(r):ln(r);if(i)for(const s in i)t[s]=i[s]}return t}else if(ye(e)||pe(e))return e}const Xo=/;(?![^(]*\))/g,ea=/:([^]+)/,ta=/\/\*[^]*?\*\//g;function na(e){const t={};return e.replace(ta,"").split(Xo).forEach(n=>{if(n){const r=n.split(ea);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const r=ve(e[n]);r&&(t+=r+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ra=Lr("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function cs(e){return!!e||e===""}function ia(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=xt(e[r],t[r]);return n}function xt(e,t){if(e===t)return!0;let n=rs(e),r=rs(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ze(e),r=Ze(t),n||r)return e===t;if(n=q(e),r=q(t),n||r)return n&&r?ia(e,t):!1;if(n=pe(e),r=pe(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,s=Object.keys(t).length;if(i!==s)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!xt(e[l],t[l]))return!1}}return String(e)===String(t)}function jr(e,t){return e.findIndex(n=>xt(n,t))}const us=e=>!!(e&&e.__v_isRef===!0),J=e=>ye(e)?e:e==null?"":q(e)||pe(e)&&(e.toString===ss||!ee(e.toString))?us(e)?J(e.value):JSON.stringify(e,fs,2):String(e),fs=(e,t)=>us(t)?fs(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[zr(r,s)+" =>"]=i,n),{})}:Ut(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>zr(n))}:Ze(t)?zr(t):pe(t)&&!q(t)&&!ls(t)?String(t):t,zr=(e,t="")=>{var n;return Ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
15
15
  * @vue/reactivity v3.5.13
16
16
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
17
17
  * @license MIT
18
- **/let Ce;class sa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){Ce=this}off(){Ce=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function hs(){return Ce}function la(e,t=!1){Ce&&Ce.cleanups.push(e)}let ce;const Dr=new WeakSet;class ps{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Dr.has(this)&&(Dr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||gs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ws(this),ms(this);const t=ce,n=Ve;ce=this,Ve=!0;try{return this.fn()}finally{vs(this),ce=t,Ve=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Nr(t);this.deps=this.depsTail=void 0,ws(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Dr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ur(this)&&this.run()}get dirty(){return Ur(this)}}let ds=0,on,an;function gs(e,t=!1){if(e.flags|=8,t){e.next=an,an=e;return}e.next=on,on=e}function Fr(){ds++}function Hr(){if(--ds>0)return;if(an){let t=an;for(an=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;on;){let t=on;for(on=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 ms(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vs(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Nr(r),oa(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Ur(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(bs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function bs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cn))return;e.globalVersion=cn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Ur(e)){e.flags&=-3;return}const n=ce,r=Ve;ce=e,Ve=!0;try{ms(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{ce=n,Ve=r,vs(e),e.flags&=-3}}function Nr(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)Nr(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 Ve=!0;const ys=[];function _t(){ys.push(Ve),Ve=!1}function Ct(){const e=ys.pop();Ve=e===void 0?!0:e}function ws(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ce;ce=void 0;try{t()}finally{ce=n}}}let cn=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 Wn{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(!ce||!Ve||ce===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ce)n=this.activeLink=new aa(ce,this),ce.deps?(n.prevDep=ce.depsTail,ce.depsTail.nextDep=n,ce.depsTail=n):ce.deps=ce.depsTail=n,ks(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=ce.depsTail,n.nextDep=void 0,ce.depsTail.nextDep=n,ce.depsTail=n,ce.deps===n&&(ce.deps=r)}return n}trigger(t){this.version++,cn++,this.notify(t)}notify(t){Fr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Hr()}}}function ks(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)ks(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const qn=new WeakMap,St=Symbol(""),Br=Symbol(""),un=Symbol("");function xe(e,t,n){if(Ve&&ce){let r=qn.get(e);r||qn.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Wn),i.map=r,i.key=n),i.track()}}function tt(e,t,n,r,i,s){const l=qn.get(e);if(!l){cn++;return}const o=a=>{a&&a.trigger()};if(Fr(),t==="clear")l.forEach(o);else{const a=q(e),c=a&&Pr(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===un||!Ze(d)&&d>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(un)),t){case"add":a?c&&o(l.get("length")):(o(l.get(St)),Ft(e)&&o(l.get(Br)));break;case"delete":a||(o(l.get(St)),Ft(e)&&o(l.get(Br)));break;case"set":Ft(e)&&o(l.get(St));break}}Hr()}function ca(e,t){const n=qn.get(e);return n&&n.get(t)}function Ut(e){const t=Q(e);return t===e?t:(xe(t,"iterate",un),De(e)?t:t.map(_e))}function Kn(e){return xe(e=Q(e),"iterate",un),e}const ua={__proto__:null,[Symbol.iterator](){return Vr(this,Symbol.iterator,_e)},concat(...e){return Ut(this).concat(...e.map(t=>q(t)?Ut(t):t))},entries(){return Vr(this,"entries",e=>(e[1]=_e(e[1]),e))},every(e,t){return nt(this,"every",e,t,void 0,arguments)},filter(e,t){return nt(this,"filter",e,t,n=>n.map(_e),arguments)},find(e,t){return nt(this,"find",e,t,_e,arguments)},findIndex(e,t){return nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nt(this,"findLast",e,t,_e,arguments)},findLastIndex(e,t){return nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Wr(this,"includes",e)},indexOf(...e){return Wr(this,"indexOf",e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return Wr(this,"lastIndexOf",e)},map(e,t){return nt(this,"map",e,t,void 0,arguments)},pop(){return fn(this,"pop")},push(...e){return fn(this,"push",e)},reduce(e,...t){return xs(this,"reduce",e,t)},reduceRight(e,...t){return xs(this,"reduceRight",e,t)},shift(){return fn(this,"shift")},some(e,t){return nt(this,"some",e,t,void 0,arguments)},splice(...e){return fn(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 fn(this,"unshift",e)},values(){return Vr(this,"values",_e)}};function Vr(e,t,n){const r=Kn(e),i=r[t]();return r!==e&&!De(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const fa=Array.prototype;function nt(e,t,n,r,i,s){const l=Kn(e),o=l!==e&&!De(e),a=l[t];if(a!==fa[t]){const f=a.apply(e,s);return o?_e(f):f}let c=n;l!==e&&(o?c=function(f,d){return n.call(this,_e(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=a.call(l,c,r);return o&&i?i(u):u}function xs(e,t,n,r){const i=Kn(e);let s=n;return i!==e&&(De(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 Wr(e,t,n){const r=Q(e);xe(r,"iterate",un);const i=r[t](...n);return(i===-1||i===!1)&&Zr(n[0])?(n[0]=Q(n[0]),r[t](...n)):i}function fn(e,t,n=[]){_t(),Fr();const r=Q(e)[t].apply(e,n);return Hr(),Ct(),r}const ha=Lr("__proto__,__v_isRef,__isVue"),_s=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ze));function pa(e){Ze(e)||(e=String(e));const t=Q(this);return xe(t,"has",e),t.hasOwnProperty(e)}class Cs{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?_a:As:s?Rs:$s).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=q(t);if(!i){let a;if(l&&(a=ua[n]))return a;if(n==="hasOwnProperty")return pa}const o=Reflect.get(t,n,be(t)?t:r);return(Ze(n)?_s.has(n):ha(n))||(i||xe(t,"get",n),s)?o:be(o)?l&&Pr(n)?o:o.value:pe(o)?i?Nt(o):hn(o):o}}class Ss extends Cs{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=$t(s);if(!De(r)&&!$t(r)&&(s=Q(s),r=Q(r)),!q(t)&&be(s)&&!be(r))return a?!1:(s.value=r,!0)}const l=q(t)&&Pr(n)?Number(n)<t.length:X(t,n),o=Reflect.set(t,n,r,be(t)?t:i);return t===Q(i)&&(l?ht(r,s)&&tt(t,"set",n,r):tt(t,"add",n,r)),o}deleteProperty(t,n){const r=X(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&tt(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Ze(n)||!_s.has(n))&&xe(t,"has",n),r}ownKeys(t){return xe(t,"iterate",q(t)?"length":St),Reflect.ownKeys(t)}}class da extends Cs{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ga=new Ss,ma=new da,va=new Ss(!0),qr=e=>e,Gn=e=>Reflect.getPrototypeOf(e);function ba(e,t,n){return function(...r){const i=this.__v_raw,s=Q(i),l=Ft(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=i[e](...r),u=n?qr:t?Yr:_e;return!t&&xe(s,"iterate",a?Br:St),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:o?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Zn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ya(e,t){const n={get(i){const s=this.__v_raw,l=Q(s),o=Q(i);e||(ht(i,o)&&xe(l,"get",i),xe(l,"get",o));const{has:a}=Gn(l),c=t?qr:e?Yr:_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(Q(i),"iterate",St),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=Q(s),o=Q(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=Q(o),c=t?qr:e?Yr:_e;return!e&&xe(a,"iterate",St),o.forEach((u,f)=>i.call(s,c(u),c(f),l))}};return je(n,e?{add:Zn("add"),set:Zn("set"),delete:Zn("delete"),clear:Zn("clear")}:{add(i){!t&&!De(i)&&!$t(i)&&(i=Q(i));const s=Q(this);return Gn(s).has.call(s,i)||(s.add(i),tt(s,"add",i,i)),this},set(i,s){!t&&!De(s)&&!$t(s)&&(s=Q(s));const l=Q(this),{has:o,get:a}=Gn(l);let c=o.call(l,i);c||(i=Q(i),c=o.call(l,i));const u=a.call(l,i);return l.set(i,s),c?ht(s,u)&&tt(l,"set",i,s):tt(l,"add",i,s),this},delete(i){const s=Q(this),{has:l,get:o}=Gn(s);let a=l.call(s,i);a||(i=Q(i),a=l.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return a&&tt(s,"delete",i,void 0),c},clear(){const i=Q(this),s=i.size!==0,l=i.clear();return s&&tt(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=ba(i,e,t)}),n}function Kr(e,t){const n=ya(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(X(n,i)&&i in r?n:r,i,s)}const wa={get:Kr(!1,!1)},ka={get:Kr(!1,!0)},xa={get:Kr(!0,!1)},$s=new WeakMap,Rs=new WeakMap,As=new WeakMap,_a=new WeakMap;function Ca(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sa(e){return e.__v_skip||!Object.isExtensible(e)?0:Ca(Yo(e))}function hn(e){return $t(e)?e:Gr(e,!1,ga,wa,$s)}function $a(e){return Gr(e,!1,va,ka,Rs)}function Nt(e){return Gr(e,!0,ma,xa,As)}function Gr(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=Sa(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Bt(e){return $t(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Zr(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function Ra(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&os(e,"__v_skip",!0),e}const _e=e=>pe(e)?hn(e):e,Yr=e=>pe(e)?Nt(e):e;function be(e){return e?e.__v_isRef===!0:!1}function te(e){return Es(e,!1)}function Vt(e){return Es(e,!0)}function Es(e,t){return be(e)?e:new Aa(e,t)}class Aa{constructor(t,n){this.dep=new Wn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q(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||De(t)||$t(t);t=r?t:Q(t),ht(t,n)&&(this._rawValue=t,this._value=r?t:_e(t),this.dep.trigger())}}function K(e){return be(e)?e.value:e}function Le(e){return ee(e)?e():K(e)}const Ea={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ts(e){return Bt(e)?e:new Proxy(e,Ea)}class Ta{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Wn,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ia(e){return new Ta(e)}class La{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ca(Q(this._object),this._key)}}class Ma{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Pa(e,t,n){return be(e)?e:ee(e)?new Ma(e):pe(e)&&arguments.length>1?Oa(e,t,n):te(e)}function Oa(e,t,n){const r=e[t];return be(r)?r:new La(e,t,n)}class ja{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Wn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ce!==this)return gs(this,!0),!0}get value(){const t=this.dep.track();return bs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function za(e,t,n=!1){let r,i;return ee(e)?r=e:(r=e.get,i=e.set),new ja(r,i,n)}const Yn={},Jn=new WeakMap;let Rt;function Da(e,t=!1,n=Rt){if(n){let r=Jn.get(n);r||Jn.set(n,r=[]),r.push(e)}}function Fa(e,t,n=le){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=I=>i?I:De(I)||i===!1||i===0?rt(I,1):rt(I);let u,f,d,m,x=!1,b=!1;if(be(e)?(f=()=>e.value,x=De(e)):Bt(e)?(f=()=>c(e),x=!0):q(e)?(b=!0,x=e.some(I=>Bt(I)||De(I)),f=()=>e.map(I=>{if(be(I))return I.value;if(Bt(I))return c(I);if(ee(I))return a?a(I,2):I()})):ee(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){_t();try{d()}finally{Ct()}}const I=Rt;Rt=u;try{return a?a(e,3,[m]):e(m)}finally{Rt=I}}:f=wt,t&&i){const I=f,O=i===!0?1/0:i;f=()=>rt(I(),O)}const T=hs(),w=()=>{u.stop(),T&&T.active&&ns(T.effects,u)};if(s&&t){const I=t;t=(...O)=>{I(...O),w()}}let C=b?new Array(e.length).fill(Yn):Yn;const N=I=>{if(!(!(u.flags&1)||!u.dirty&&!I))if(t){const O=u.run();if(i||x||(b?O.some((G,j)=>ht(G,C[j])):ht(O,C))){d&&d();const G=Rt;Rt=u;try{const j=[O,C===Yn?void 0:b&&C[0]===Yn?[]:C,m];a?a(t,3,j):t(...j),C=O}finally{Rt=G}}}else u.run()};return o&&o(N),u=new ps(f),u.scheduler=l?()=>l(N,!1):N,m=I=>Da(I,!1,u),d=u.onStop=()=>{const I=Jn.get(u);if(I){if(a)a(I,4);else for(const O of I)O();Jn.delete(u)}},t?r?N(!0):C=u.run():l?l(N.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function rt(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--,be(e))rt(e.value,t,n);else if(q(e))for(let r=0;r<e.length;r++)rt(e[r],t,n);else if(Ht(e)||Ft(e))e.forEach(r=>{rt(r,t,n)});else if(ls(e)){for(const r in e)rt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rt(e[r],t,n)}return e}/**
18
+ **/let Ce;class sa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){Ce=this}off(){Ce=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function hs(){return Ce}function la(e,t=!1){Ce&&Ce.cleanups.push(e)}let ce;const Dr=new WeakSet;class ps{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Dr.has(this)&&(Dr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||gs(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ws(this),ms(this);const t=ce,n=Ve;ce=this,Ve=!0;try{return this.fn()}finally{vs(this),ce=t,Ve=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Nr(t);this.deps=this.depsTail=void 0,ws(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Dr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ur(this)&&this.run()}get dirty(){return Ur(this)}}let ds=0,on,an;function gs(e,t=!1){if(e.flags|=8,t){e.next=an,an=e;return}e.next=on,on=e}function Fr(){ds++}function Hr(){if(--ds>0)return;if(an){let t=an;for(an=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;on;){let t=on;for(on=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 ms(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vs(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Nr(r),oa(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Ur(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(bs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function bs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cn))return;e.globalVersion=cn;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Ur(e)){e.flags&=-3;return}const n=ce,r=Ve;ce=e,Ve=!0;try{ms(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{ce=n,Ve=r,vs(e),e.flags&=-3}}function Nr(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)Nr(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 Ve=!0;const ys=[];function _t(){ys.push(Ve),Ve=!1}function Ct(){const e=ys.pop();Ve=e===void 0?!0:e}function ws(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ce;ce=void 0;try{t()}finally{ce=n}}}let cn=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 Wn{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(!ce||!Ve||ce===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ce)n=this.activeLink=new aa(ce,this),ce.deps?(n.prevDep=ce.depsTail,ce.depsTail.nextDep=n,ce.depsTail=n):ce.deps=ce.depsTail=n,ks(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=ce.depsTail,n.nextDep=void 0,ce.depsTail.nextDep=n,ce.depsTail=n,ce.deps===n&&(ce.deps=r)}return n}trigger(t){this.version++,cn++,this.notify(t)}notify(t){Fr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Hr()}}}function ks(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)ks(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const qn=new WeakMap,St=Symbol(""),Br=Symbol(""),un=Symbol("");function xe(e,t,n){if(Ve&&ce){let r=qn.get(e);r||qn.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Wn),i.map=r,i.key=n),i.track()}}function tt(e,t,n,r,i,s){const l=qn.get(e);if(!l){cn++;return}const o=a=>{a&&a.trigger()};if(Fr(),t==="clear")l.forEach(o);else{const a=q(e),c=a&&Pr(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===un||!Ze(d)&&d>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(un)),t){case"add":a?c&&o(l.get("length")):(o(l.get(St)),Ht(e)&&o(l.get(Br)));break;case"delete":a||(o(l.get(St)),Ht(e)&&o(l.get(Br)));break;case"set":Ht(e)&&o(l.get(St));break}}Hr()}function ca(e,t){const n=qn.get(e);return n&&n.get(t)}function Nt(e){const t=Q(e);return t===e?t:(xe(t,"iterate",un),De(e)?t:t.map(_e))}function Kn(e){return xe(e=Q(e),"iterate",un),e}const ua={__proto__:null,[Symbol.iterator](){return Vr(this,Symbol.iterator,_e)},concat(...e){return Nt(this).concat(...e.map(t=>q(t)?Nt(t):t))},entries(){return Vr(this,"entries",e=>(e[1]=_e(e[1]),e))},every(e,t){return nt(this,"every",e,t,void 0,arguments)},filter(e,t){return nt(this,"filter",e,t,n=>n.map(_e),arguments)},find(e,t){return nt(this,"find",e,t,_e,arguments)},findIndex(e,t){return nt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return nt(this,"findLast",e,t,_e,arguments)},findLastIndex(e,t){return nt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return nt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Wr(this,"includes",e)},indexOf(...e){return Wr(this,"indexOf",e)},join(e){return Nt(this).join(e)},lastIndexOf(...e){return Wr(this,"lastIndexOf",e)},map(e,t){return nt(this,"map",e,t,void 0,arguments)},pop(){return fn(this,"pop")},push(...e){return fn(this,"push",e)},reduce(e,...t){return xs(this,"reduce",e,t)},reduceRight(e,...t){return xs(this,"reduceRight",e,t)},shift(){return fn(this,"shift")},some(e,t){return nt(this,"some",e,t,void 0,arguments)},splice(...e){return fn(this,"splice",e)},toReversed(){return Nt(this).toReversed()},toSorted(e){return Nt(this).toSorted(e)},toSpliced(...e){return Nt(this).toSpliced(...e)},unshift(...e){return fn(this,"unshift",e)},values(){return Vr(this,"values",_e)}};function Vr(e,t,n){const r=Kn(e),i=r[t]();return r!==e&&!De(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const fa=Array.prototype;function nt(e,t,n,r,i,s){const l=Kn(e),o=l!==e&&!De(e),a=l[t];if(a!==fa[t]){const f=a.apply(e,s);return o?_e(f):f}let c=n;l!==e&&(o?c=function(f,d){return n.call(this,_e(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=a.call(l,c,r);return o&&i?i(u):u}function xs(e,t,n,r){const i=Kn(e);let s=n;return i!==e&&(De(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 Wr(e,t,n){const r=Q(e);xe(r,"iterate",un);const i=r[t](...n);return(i===-1||i===!1)&&Zr(n[0])?(n[0]=Q(n[0]),r[t](...n)):i}function fn(e,t,n=[]){_t(),Fr();const r=Q(e)[t].apply(e,n);return Hr(),Ct(),r}const ha=Lr("__proto__,__v_isRef,__isVue"),_s=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ze));function pa(e){Ze(e)||(e=String(e));const t=Q(this);return xe(t,"has",e),t.hasOwnProperty(e)}class Cs{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?_a:As:s?Rs:$s).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=q(t);if(!i){let a;if(l&&(a=ua[n]))return a;if(n==="hasOwnProperty")return pa}const o=Reflect.get(t,n,be(t)?t:r);return(Ze(n)?_s.has(n):ha(n))||(i||xe(t,"get",n),s)?o:be(o)?l&&Pr(n)?o:o.value:pe(o)?i?Bt(o):hn(o):o}}class Ss extends Cs{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=$t(s);if(!De(r)&&!$t(r)&&(s=Q(s),r=Q(r)),!q(t)&&be(s)&&!be(r))return a?!1:(s.value=r,!0)}const l=q(t)&&Pr(n)?Number(n)<t.length:X(t,n),o=Reflect.set(t,n,r,be(t)?t:i);return t===Q(i)&&(l?ht(r,s)&&tt(t,"set",n,r):tt(t,"add",n,r)),o}deleteProperty(t,n){const r=X(t,n),i=Reflect.deleteProperty(t,n);return i&&r&&tt(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Ze(n)||!_s.has(n))&&xe(t,"has",n),r}ownKeys(t){return xe(t,"iterate",q(t)?"length":St),Reflect.ownKeys(t)}}class da extends Cs{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const ga=new Ss,ma=new da,va=new Ss(!0),qr=e=>e,Gn=e=>Reflect.getPrototypeOf(e);function ba(e,t,n){return function(...r){const i=this.__v_raw,s=Q(i),l=Ht(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=i[e](...r),u=n?qr:t?Yr:_e;return!t&&xe(s,"iterate",a?Br:St),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:o?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Zn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ya(e,t){const n={get(i){const s=this.__v_raw,l=Q(s),o=Q(i);e||(ht(i,o)&&xe(l,"get",i),xe(l,"get",o));const{has:a}=Gn(l),c=t?qr:e?Yr:_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(Q(i),"iterate",St),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=Q(s),o=Q(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=Q(o),c=t?qr:e?Yr:_e;return!e&&xe(a,"iterate",St),o.forEach((u,f)=>i.call(s,c(u),c(f),l))}};return je(n,e?{add:Zn("add"),set:Zn("set"),delete:Zn("delete"),clear:Zn("clear")}:{add(i){!t&&!De(i)&&!$t(i)&&(i=Q(i));const s=Q(this);return Gn(s).has.call(s,i)||(s.add(i),tt(s,"add",i,i)),this},set(i,s){!t&&!De(s)&&!$t(s)&&(s=Q(s));const l=Q(this),{has:o,get:a}=Gn(l);let c=o.call(l,i);c||(i=Q(i),c=o.call(l,i));const u=a.call(l,i);return l.set(i,s),c?ht(s,u)&&tt(l,"set",i,s):tt(l,"add",i,s),this},delete(i){const s=Q(this),{has:l,get:o}=Gn(s);let a=l.call(s,i);a||(i=Q(i),a=l.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return a&&tt(s,"delete",i,void 0),c},clear(){const i=Q(this),s=i.size!==0,l=i.clear();return s&&tt(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=ba(i,e,t)}),n}function Kr(e,t){const n=ya(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(X(n,i)&&i in r?n:r,i,s)}const wa={get:Kr(!1,!1)},ka={get:Kr(!1,!0)},xa={get:Kr(!0,!1)},$s=new WeakMap,Rs=new WeakMap,As=new WeakMap,_a=new WeakMap;function Ca(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sa(e){return e.__v_skip||!Object.isExtensible(e)?0:Ca(Yo(e))}function hn(e){return $t(e)?e:Gr(e,!1,ga,wa,$s)}function $a(e){return Gr(e,!1,va,ka,Rs)}function Bt(e){return Gr(e,!0,ma,xa,As)}function Gr(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=Sa(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Vt(e){return $t(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Zr(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function Ra(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&os(e,"__v_skip",!0),e}const _e=e=>pe(e)?hn(e):e,Yr=e=>pe(e)?Bt(e):e;function be(e){return e?e.__v_isRef===!0:!1}function ie(e){return Es(e,!1)}function Rt(e){return Es(e,!0)}function Es(e,t){return be(e)?e:new Aa(e,t)}class Aa{constructor(t,n){this.dep=new Wn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q(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||De(t)||$t(t);t=r?t:Q(t),ht(t,n)&&(this._rawValue=t,this._value=r?t:_e(t),this.dep.trigger())}}function K(e){return be(e)?e.value:e}function Le(e){return ee(e)?e():K(e)}const Ea={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return be(i)&&!be(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ts(e){return Vt(e)?e:new Proxy(e,Ea)}class Ta{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Wn,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ia(e){return new Ta(e)}class La{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return ca(Q(this._object),this._key)}}class Ma{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Pa(e,t,n){return be(e)?e:ee(e)?new Ma(e):pe(e)&&arguments.length>1?Oa(e,t,n):ie(e)}function Oa(e,t,n){const r=e[t];return be(r)?r:new La(e,t,n)}class ja{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Wn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ce!==this)return gs(this,!0),!0}get value(){const t=this.dep.track();return bs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function za(e,t,n=!1){let r,i;return ee(e)?r=e:(r=e.get,i=e.set),new ja(r,i,n)}const Yn={},Jn=new WeakMap;let At;function Da(e,t=!1,n=At){if(n){let r=Jn.get(n);r||Jn.set(n,r=[]),r.push(e)}}function Fa(e,t,n=le){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=I=>i?I:De(I)||i===!1||i===0?rt(I,1):rt(I);let u,f,d,m,x=!1,b=!1;if(be(e)?(f=()=>e.value,x=De(e)):Vt(e)?(f=()=>c(e),x=!0):q(e)?(b=!0,x=e.some(I=>Vt(I)||De(I)),f=()=>e.map(I=>{if(be(I))return I.value;if(Vt(I))return c(I);if(ee(I))return a?a(I,2):I()})):ee(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){_t();try{d()}finally{Ct()}}const I=At;At=u;try{return a?a(e,3,[m]):e(m)}finally{At=I}}:f=wt,t&&i){const I=f,O=i===!0?1/0:i;f=()=>rt(I(),O)}const T=hs(),w=()=>{u.stop(),T&&T.active&&ns(T.effects,u)};if(s&&t){const I=t;t=(...O)=>{I(...O),w()}}let C=b?new Array(e.length).fill(Yn):Yn;const N=I=>{if(!(!(u.flags&1)||!u.dirty&&!I))if(t){const O=u.run();if(i||x||(b?O.some((G,j)=>ht(G,C[j])):ht(O,C))){d&&d();const G=At;At=u;try{const j=[O,C===Yn?void 0:b&&C[0]===Yn?[]:C,m];a?a(t,3,j):t(...j),C=O}finally{At=G}}}else u.run()};return o&&o(N),u=new ps(f),u.scheduler=l?()=>l(N,!1):N,m=I=>Da(I,!1,u),d=u.onStop=()=>{const I=Jn.get(u);if(I){if(a)a(I,4);else for(const O of I)O();Jn.delete(u)}},t?r?N(!0):C=u.run():l?l(N.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function rt(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--,be(e))rt(e.value,t,n);else if(q(e))for(let r=0;r<e.length;r++)rt(e[r],t,n);else if(Ut(e)||Ht(e))e.forEach(r=>{rt(r,t,n)});else if(ls(e)){for(const r in e)rt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rt(e[r],t,n)}return e}/**
19
19
  * @vue/runtime-core v3.5.13
20
20
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
21
21
  * @license MIT
22
- **/function pn(e,t,n,r){try{return r?e(...r):e()}catch(i){Qn(i,t,n)}}function it(e,t,n,r){if(ee(e)){const i=pn(e,t,n,r);return i&&is(i)&&i.catch(s=>{Qn(s,t,n)}),i}if(q(e)){const i=[];for(let s=0;s<e.length;s++)i.push(it(e[s],t,n,r));return i}}function Qn(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||le;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}o=o.parent}if(s){_t(),pn(s,null,10,[e,a,c]),Ct();return}}Ha(e,n,i,r,l)}function Ha(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Se=[];let Ye=-1;const Wt=[];let pt=null,qt=0;const Is=Promise.resolve();let Xn=null;function Kt(e){const t=Xn||Is;return e?t.then(this?e.bind(this):e):t}function Ua(e){let t=Ye+1,n=Se.length;for(;t<n;){const r=t+n>>>1,i=Se[r],s=dn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Jr(e){if(!(e.flags&1)){const t=dn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=dn(n)?Se.push(e):Se.splice(Ua(t),0,e),e.flags|=1,Ls()}}function Ls(){Xn||(Xn=Is.then(Os))}function Na(e){q(e)?Wt.push(...e):pt&&e.id===-1?pt.splice(qt+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Ls()}function Ms(e,t,n=Ye+1){for(;n<Se.length;n++){const r=Se[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Se.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ps(e){if(Wt.length){const t=[...new Set(Wt)].sort((n,r)=>dn(n)-dn(r));if(Wt.length=0,pt){pt.push(...t);return}for(pt=t,qt=0;qt<pt.length;qt++){const n=pt[qt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pt=null,qt=0}}const dn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Os(e){try{for(Ye=0;Ye<Se.length;Ye++){const t=Se[Ye];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ye<Se.length;Ye++){const t=Se[Ye];t&&(t.flags&=-2)}Ye=-1,Se.length=0,Ps(),Xn=null,(Se.length||Wt.length)&&Os()}}let Ie=null,js=null;function er(e){const t=Ie;return Ie=e,js=e&&e.type.__scopeId||null,t}function Ba(e,t=Ie,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&nl(-1);const s=er(t);let l;try{l=e(...i)}finally{er(s),r._d&&nl(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function tr(e,t){if(Ie===null)return e;const n=cr(Ie),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=le]=t[i];s&&(ee(s)&&(s={mounted:s,updated:s}),s.deep&&rt(l),r.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function At(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let l=0;l<i.length;l++){const o=i[l];s&&(o.oldValue=s[l].value);let a=o.dir[r];a&&(_t(),it(a,n,8,[e.el,o,e,t]),Ct())}}const Va=Symbol("_vte"),Wa=e=>e.__isTeleport;function Qr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function gn(e,t){return ee(e)?je({name:e.name},t,{setup:e}):e}function qa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function dt(e){const t=sl(),n=Vt(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 nr(e,t,n,r,i=!1){if(q(e)){e.forEach((x,b)=>nr(x,t&&(q(t)?t[b]:t),n,r,i));return}if(mn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&nr(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?cr(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,f=o.setupState,d=Q(f),m=f===le?()=>!1:x=>X(d,x);if(c!=null&&c!==a&&(ye(c)?(u[c]=null,m(c)&&(f[c]=null)):be(c)&&(c.value=null)),ee(a))pn(a,o,12,[l,u]);else{const x=ye(a),b=be(a);if(x||b){const T=()=>{if(e.f){const w=x?m(a)?f[a]:u[a]:a.value;i?q(w)&&ns(w,s):q(w)?w.includes(s)||w.push(s):x?(u[a]=[s],m(a)&&(f[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,m(a)&&(f[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(T.id=-1,Me(T,n)):T()}}}sn().requestIdleCallback,sn().cancelIdleCallback;const mn=e=>!!e.type.__asyncLoader,Ka=e=>e.type.__isKeepAlive;function Ga(e,t,n=$e,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{_t();const o=ci(n),a=it(t,n,e,l);return o(),Ct(),a});return r?i.unshift(s):i.push(s),s}}const Xr=e=>(t,n=$e)=>{(!xn||e==="sp")&&Ga(e,(...r)=>t(...r),n)},vn=Xr("m"),Za=Xr("bum"),ei=Xr("um"),Ya="components";function Ja(e,t){return Xa(Ya,e,!0,t)||e}const Qa=Symbol.for("v-ndc");function Xa(e,t,n=!0,r=!1){const i=Ie||$e;if(i){const s=i.type;{const o=jc(s,!1);if(o&&(o===t||o===ze(t)||o===Nn(ze(t))))return s}const l=zs(i[e]||s[e],t)||zs(i.appContext[e],t);return!l&&r?s:l}}function zs(e,t){return e&&(e[t]||e[ze(t)]||e[Nn(ze(t))])}function Fe(e,t,n,r){let i;const s=n,l=q(e);if(l||ye(e)){const o=l&&Bt(e);let a=!1;o&&(a=!De(e),e=Kn(e)),i=new Array(e.length);for(let c=0,u=e.length;c<u;c++)i[c]=t(a?_e(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,s)}else if(pe(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];i[a]=t(e[u],u,a,s)}}else i=[];return i}const ti=e=>e?ol(e)?cr(e):ti(e.parent):null,bn=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ti(e.parent),$root:e=>ti(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=Kt.bind(e.proxy)),$watch:e=>wt}),ni=(e,t)=>e!==le&&!e.__isScriptSetup&&X(e,t),ec={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 m=l[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ni(r,t))return l[t]=1,r[t];if(i!==le&&X(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&X(c,t))return l[t]=3,s[t];if(n!==le&&X(n,t))return l[t]=4,n[t];l[t]=0}}const u=bn[t];let f,d;if(u)return t==="$attrs"&&xe(e.attrs,"get",""),u(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==le&&X(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,X(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return ni(i,t)?(i[t]=n,!0):r!==le&&X(r,t)?(r[t]=n,!0):X(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&&X(e,l)||ni(t,l)||(o=s[0])&&X(o,l)||X(r,l)||X(bn,l)||X(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ds(){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 tc=0;function nc(e,t){return function(r,i=null){ee(r)||(r=je({},r)),i!=null&&!pe(i)&&(i=null);const s=Ds(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:tc++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Dc,get config(){return s.config},set config(u){},use(u,...f){return l.has(u)||(u&&ee(u.install)?(l.add(u),u.install(c,...f)):ee(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(s.components[u]=f,c):s.components[u]},directive(u,f){return f?(s.directives[u]=f,c):s.directives[u]},mount(u,f,d){if(!a){const m=c._ceVNode||oe(r,i);return m.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),e(m,u,d),a=!0,c._container=u,u.__vue_app__=c,cr(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(it(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return s.provides[u]=f,c},runWithContext(u){const f=Gt;Gt=c;try{return u()}finally{Gt=f}}};return c}}let Gt=null;function rc(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 rr(e,t,n=!1){const r=$e||Ie;if(r||Gt){const i=Gt?Gt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ee(t)?t.call(r&&r.proxy):t}}const Fs={},Hs=()=>Object.create(Fs),Us=e=>Object.getPrototypeOf(e)===Fs;function ic(e,t,n,r=!1){const i={},s=Hs();e.propsDefaults=Object.create(null),Ns(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 sc(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=Q(i),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(ir(e.emitsOptions,d))continue;const m=t[d];if(a)if(X(s,d))m!==s[d]&&(s[d]=m,c=!0);else{const x=ze(d);i[x]=ri(a,o,x,m,e,!1)}else m!==s[d]&&(s[d]=m,c=!0)}}}else{Ns(e,t,i,s)&&(c=!0);let u;for(const f in o)(!t||!X(t,f)&&((u=kt(f))===f||!X(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=ri(a,o,f,void 0,e,!0)):delete i[f]);if(s!==o)for(const f in s)(!t||!X(t,f))&&(delete s[f],c=!0)}c&&tt(e.attrs,"set","")}function Ns(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(rn(a))continue;const c=t[a];let u;i&&X(i,u=ze(a))?!s||!s.includes(u)?n[u]=c:(o||(o={}))[u]=c:ir(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(s){const a=Q(n),c=o||le;for(let u=0;u<s.length;u++){const f=s[u];n[f]=ri(i,a,f,c[f],e,!X(c,f))}}return l}function ri(e,t,n,r,i,s){const l=e[n];if(l!=null){const o=X(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ee(a)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=ci(i);r=c[n]=a.call(null,t),u()}}else r=a;i.ce&&i.ce._setProp(n,r)}l[0]&&(s&&!o?r=!1:l[1]&&(r===""||r===kt(n))&&(r=!0))}return r}function lc(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s)return pe(e)&&r.set(e,Dt),Dt;if(q(s))for(let c=0;c<s.length;c++){const u=ze(s[c]);Bs(u)&&(l[u]=le)}else if(s)for(const c in s){const u=ze(c);if(Bs(u)){const f=s[c],d=l[u]=q(f)||ee(f)?{type:f}:je({},f),m=d.type;let x=!1,b=!0;if(q(m))for(let T=0;T<m.length;++T){const w=m[T],C=ee(w)&&w.name;if(C==="Boolean"){x=!0;break}else C==="String"&&(b=!1)}else x=ee(m)&&m.name==="Boolean";d[0]=x,d[1]=b,(x||X(d,"default"))&&o.push(u)}}const a=[l,o];return pe(e)&&r.set(e,a),a}function Bs(e){return e[0]!=="$"&&!rn(e)}const Vs=e=>e[0]==="_"||e==="$stable",ii=e=>q(e)?e.map(Je):[Je(e)],oc=(e,t,n)=>{if(t._n)return t;const r=Ba((...i)=>ii(t(...i)),n);return r._c=!1,r},Ws=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Vs(i))continue;const s=e[i];if(ee(s))t[i]=oc(i,s,r);else if(s!=null){const l=ii(s);t[i]=()=>l}}},qs=(e,t)=>{const n=ii(t);e.slots.default=()=>n},Ks=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},ac=(e,t,n)=>{const r=e.slots=Hs();if(e.vnode.shapeFlag&32){const i=t._;i?(Ks(r,t,n),n&&os(r,"_",i,!0)):Ws(t,r)}else t&&qs(e,t)},cc=(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:Ks(i,t,n):(s=!t.$stable,Ws(t,i)),l=t}else t&&(qs(e,t),l={default:1});if(s)for(const o in i)!Vs(o)&&l[o]==null&&delete i[o]};function uc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(sn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Me=Cc;function fc(e){return hc(e)}function hc(e,t){uc();const n=sn();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:m=wt,insertStaticContent:x}=e,b=(h,p,g,y=null,k=null,v=null,A=void 0,S=null,$=!!p.dynamicChildren)=>{if(h===p)return;h&&!kn(h,p)&&(y=Ot(h),Ke(h,k,v,!0),h=null),p.patchFlag===-2&&($=!1,p.dynamicChildren=null);const{type:_,ref:U,shapeFlag:M}=p;switch(_){case sr:T(h,p,g,y);break;case Tt:w(h,p,g,y);break;case li:h==null&&C(p,g,y,A);break;case ue:B(h,p,g,y,k,v,A,S,$);break;default:M&1?O(h,p,g,y,k,v,A,S,$):M&6?F(h,p,g,y,k,v,A,S,$):(M&64||M&128)&&_.process(h,p,g,y,k,v,A,S,$,R)}U!=null&&k&&nr(U,h&&h.ref,v,p||h,!p)},T=(h,p,g,y)=>{if(h==null)r(p.el=o(p.children),g,y);else{const k=p.el=h.el;p.children!==h.children&&c(k,p.children)}},w=(h,p,g,y)=>{h==null?r(p.el=a(p.children||""),g,y):p.el=h.el},C=(h,p,g,y)=>{[h.el,h.anchor]=x(h.children,p,g,y,h.el,h.anchor)},N=({el:h,anchor:p},g,y)=>{let k;for(;h&&h!==p;)k=d(h),r(h,g,y),h=k;r(p,g,y)},I=({el:h,anchor:p})=>{let g;for(;h&&h!==p;)g=d(h),i(h),h=g;i(p)},O=(h,p,g,y,k,v,A,S,$)=>{p.type==="svg"?A="svg":p.type==="math"&&(A="mathml"),h==null?G(p,g,y,k,v,A,S,$):fe(h,p,k,v,A,S,$)},G=(h,p,g,y,k,v,A,S)=>{let $,_;const{props:U,shapeFlag:M,transition:H,dirs:V}=h;if($=h.el=l(h.type,v,U&&U.is,U),M&8?u($,h.children):M&16&&ae(h.children,$,null,y,k,si(h,v),A,S),V&&At(h,null,y,"created"),j($,h,h.scopeId,A,y),U){for(const se in U)se!=="value"&&!rn(se)&&s($,se,null,U[se],v,y);"value"in U&&s($,"value",null,U.value,v),(_=U.onVnodeBeforeMount)&&Qe(_,y,h)}V&&At(h,null,y,"beforeMount");const Z=pc(k,H);Z&&H.beforeEnter($),r($,p,g),((_=U&&U.onVnodeMounted)||Z||V)&&Me(()=>{_&&Qe(_,y,h),Z&&H.enter($),V&&At(h,null,y,"mounted")},k)},j=(h,p,g,y,k)=>{if(g&&m(h,g),y)for(let v=0;v<y.length;v++)m(h,y[v]);if(k){let v=k.subTree;if(p===v||tl(v.type)&&(v.ssContent===p||v.ssFallback===p)){const A=k.vnode;j(h,A,A.scopeId,A.slotScopeIds,k.parent)}}},ae=(h,p,g,y,k,v,A,S,$=0)=>{for(let _=$;_<h.length;_++){const U=h[_]=S?mt(h[_]):Je(h[_]);b(null,U,p,g,y,k,v,A,S)}},fe=(h,p,g,y,k,v,A)=>{const S=p.el=h.el;let{patchFlag:$,dynamicChildren:_,dirs:U}=p;$|=h.patchFlag&16;const M=h.props||le,H=p.props||le;let V;if(g&&Et(g,!1),(V=H.onVnodeBeforeUpdate)&&Qe(V,g,p,h),U&&At(p,h,g,"beforeUpdate"),g&&Et(g,!0),(M.innerHTML&&H.innerHTML==null||M.textContent&&H.textContent==null)&&u(S,""),_?Ue(h.dynamicChildren,_,S,g,y,si(p,k),v):A||bt(h,p,S,null,g,y,si(p,k),v,!1),$>0){if($&16)E(S,M,H,g,k);else if($&2&&M.class!==H.class&&s(S,"class",null,H.class,k),$&4&&s(S,"style",M.style,H.style,k),$&8){const Z=p.dynamicProps;for(let se=0;se<Z.length;se++){const he=Z[se],Ne=M[he],Ae=H[he];(Ae!==Ne||he==="value")&&s(S,he,Ne,Ae,k,g)}}$&1&&h.children!==p.children&&u(S,p.children)}else!A&&_==null&&E(S,M,H,g,k);((V=H.onVnodeUpdated)||U)&&Me(()=>{V&&Qe(V,g,p,h),U&&At(p,h,g,"updated")},y)},Ue=(h,p,g,y,k,v,A)=>{for(let S=0;S<p.length;S++){const $=h[S],_=p[S],U=$.el&&($.type===ue||!kn($,_)||$.shapeFlag&70)?f($.el):g;b($,_,U,null,y,k,v,A,!0)}},E=(h,p,g,y,k)=>{if(p!==g){if(p!==le)for(const v in p)!rn(v)&&!(v in g)&&s(h,v,p[v],null,k,y);for(const v in g){if(rn(v))continue;const A=g[v],S=p[v];A!==S&&v!=="value"&&s(h,v,S,A,k,y)}"value"in g&&s(h,"value",p.value,g.value,k)}},B=(h,p,g,y,k,v,A,S,$)=>{const _=p.el=h?h.el:o(""),U=p.anchor=h?h.anchor:o("");let{patchFlag:M,dynamicChildren:H,slotScopeIds:V}=p;V&&(S=S?S.concat(V):V),h==null?(r(_,g,y),r(U,g,y),ae(p.children||[],g,U,k,v,A,S,$)):M>0&&M&64&&H&&h.dynamicChildren?(Ue(h.dynamicChildren,H,g,k,v,A,S),(p.key!=null||k&&p===k.subTree)&&Gs(h,p,!0)):bt(h,p,g,U,k,v,A,S,$)},F=(h,p,g,y,k,v,A,S,$)=>{p.slotScopeIds=S,h==null?p.shapeFlag&512?k.ctx.activate(p,g,y,A,$):ge(p,g,y,k,v,A,$):ke(h,p,$)},ge=(h,p,g,y,k,v,A)=>{const S=h.component=Ic(h,y,k);if(Ka(h)&&(S.ctx.renderer=R),Lc(S,!1,A),S.asyncDep){if(k&&k.registerDep(S,we,A),!h.el){const $=S.subTree=oe(Tt);w(null,$,p,g)}}else we(S,h,p,g,k,v,A)},ke=(h,p,g)=>{const y=p.component=h.component;if(xc(h,p,g))if(y.asyncDep&&!y.asyncResolved){ft(y,p,g);return}else y.next=p,y.update();else p.el=h.el,y.vnode=p},we=(h,p,g,y,k,v,A)=>{const S=()=>{if(h.isMounted){let{next:M,bu:H,u:V,parent:Z,vnode:se}=h;{const Pn=Zs(h);if(Pn){M&&(M.el=se.el,ft(h,M,A)),Pn.asyncDep.then(()=>{h.isUnmounted||S()});return}}let he=M,Ne;Et(h,!1),M?(M.el=se.el,ft(h,M,A)):M=se,H&&Bn(H),(Ne=M.props&&M.props.onVnodeBeforeUpdate)&&Qe(Ne,Z,M,se),Et(h,!0);const Ae=Xs(h),Be=h.subTree;h.subTree=Ae,b(Be,Ae,f(Be.el),Ot(Be),h,k,v),M.el=Ae.el,he===null&&_c(h,Ae.el),V&&Me(V,k),(Ne=M.props&&M.props.onVnodeUpdated)&&Me(()=>Qe(Ne,Z,M,se),k)}else{let M;const{props:H}=p,{bm:V,m:Z,parent:se,root:he,type:Ne}=h,Ae=mn(p);Et(h,!1),V&&Bn(V),!Ae&&(M=H&&H.onVnodeBeforeMount)&&Qe(M,se,p),Et(h,!0);{he.ce&&he.ce._injectChildStyle(Ne);const Be=h.subTree=Xs(h);b(null,Be,g,y,h,k,v),p.el=Be.el}if(Z&&Me(Z,k),!Ae&&(M=H&&H.onVnodeMounted)){const Be=p;Me(()=>Qe(M,se,Be),k)}(p.shapeFlag&256||se&&mn(se.vnode)&&se.vnode.shapeFlag&256)&&h.a&&Me(h.a,k),h.isMounted=!0,p=g=y=null}};h.scope.on();const $=h.effect=new ps(S);h.scope.off();const _=h.update=$.run.bind($),U=h.job=$.runIfDirty.bind($);U.i=h,U.id=h.uid,$.scheduler=()=>Jr(U),Et(h,!0),_()},ft=(h,p,g)=>{p.component=h;const y=h.vnode.props;h.vnode=p,h.next=null,sc(h,p.props,y,g),cc(h,p.children,g),_t(),Ms(h),Ct()},bt=(h,p,g,y,k,v,A,S,$=!1)=>{const _=h&&h.children,U=h?h.shapeFlag:0,M=p.children,{patchFlag:H,shapeFlag:V}=p;if(H>0){if(H&128){Sr(_,M,g,y,k,v,A,S,$);return}else if(H&256){Mn(_,M,g,y,k,v,A,S,$);return}}V&8?(U&16&&Pt(_,k,v),M!==_&&u(g,M)):U&16?V&16?Sr(_,M,g,y,k,v,A,S,$):Pt(_,k,v,!0):(U&8&&u(g,""),V&16&&ae(M,g,y,k,v,A,S,$))},Mn=(h,p,g,y,k,v,A,S,$)=>{h=h||Dt,p=p||Dt;const _=h.length,U=p.length,M=Math.min(_,U);let H;for(H=0;H<M;H++){const V=p[H]=$?mt(p[H]):Je(p[H]);b(h[H],V,g,null,k,v,A,S,$)}_>U?Pt(h,k,v,!0,!1,M):ae(p,g,y,k,v,A,S,$,M)},Sr=(h,p,g,y,k,v,A,S,$)=>{let _=0;const U=p.length;let M=h.length-1,H=U-1;for(;_<=M&&_<=H;){const V=h[_],Z=p[_]=$?mt(p[_]):Je(p[_]);if(kn(V,Z))b(V,Z,g,null,k,v,A,S,$);else break;_++}for(;_<=M&&_<=H;){const V=h[M],Z=p[H]=$?mt(p[H]):Je(p[H]);if(kn(V,Z))b(V,Z,g,null,k,v,A,S,$);else break;M--,H--}if(_>M){if(_<=H){const V=H+1,Z=V<U?p[V].el:y;for(;_<=H;)b(null,p[_]=$?mt(p[_]):Je(p[_]),g,Z,k,v,A,S,$),_++}}else if(_>H)for(;_<=M;)Ke(h[_],k,v,!0),_++;else{const V=_,Z=_,se=new Map;for(_=Z;_<=H;_++){const Oe=p[_]=$?mt(p[_]):Je(p[_]);Oe.key!=null&&se.set(Oe.key,_)}let he,Ne=0;const Ae=H-Z+1;let Be=!1,Pn=0;const On=new Array(Ae);for(_=0;_<Ae;_++)On[_]=0;for(_=V;_<=M;_++){const Oe=h[_];if(Ne>=Ae){Ke(Oe,k,v,!0);continue}let et;if(Oe.key!=null)et=se.get(Oe.key);else for(he=Z;he<=H;he++)if(On[he-Z]===0&&kn(Oe,p[he])){et=he;break}et===void 0?Ke(Oe,k,v,!0):(On[et-Z]=_+1,et>=Pn?Pn=et:Be=!0,b(Oe,p[et],g,null,k,v,A,S,$),Ne++)}const xo=Be?dc(On):Dt;for(he=xo.length-1,_=Ae-1;_>=0;_--){const Oe=Z+_,et=p[Oe],_o=Oe+1<U?p[Oe+1].el:y;On[_]===0?b(null,et,g,_o,k,v,A,S,$):Be&&(he<0||_!==xo[he]?Xt(et,g,_o,2):he--)}}},Xt=(h,p,g,y,k=null)=>{const{el:v,type:A,transition:S,children:$,shapeFlag:_}=h;if(_&6){Xt(h.component.subTree,p,g,y);return}if(_&128){h.suspense.move(p,g,y);return}if(_&64){A.move(h,p,g,R);return}if(A===ue){r(v,p,g);for(let M=0;M<$.length;M++)Xt($[M],p,g,y);r(h.anchor,p,g);return}if(A===li){N(h,p,g);return}if(y!==2&&_&1&&S)if(y===0)S.beforeEnter(v),r(v,p,g),Me(()=>S.enter(v),k);else{const{leave:M,delayLeave:H,afterLeave:V}=S,Z=()=>r(v,p,g),se=()=>{M(v,()=>{Z(),V&&V()})};H?H(v,Z,se):se()}else r(v,p,g)},Ke=(h,p,g,y=!1,k=!1)=>{const{type:v,props:A,ref:S,children:$,dynamicChildren:_,shapeFlag:U,patchFlag:M,dirs:H,cacheIndex:V}=h;if(M===-2&&(k=!1),S!=null&&nr(S,null,g,h,!0),V!=null&&(p.renderCache[V]=void 0),U&256){p.ctx.deactivate(h);return}const Z=U&1&&H,se=!mn(h);let he;if(se&&(he=A&&A.onVnodeBeforeUnmount)&&Qe(he,p,h),U&6)Rr(h.component,g,y);else{if(U&128){h.suspense.unmount(g,y);return}Z&&At(h,null,p,"beforeUnmount"),U&64?h.type.remove(h,p,g,R,y):_&&!_.hasOnce&&(v!==ue||M>0&&M&64)?Pt(_,p,g,!1,!0):(v===ue&&M&384||!k&&U&16)&&Pt($,p,g),y&&$r(h)}(se&&(he=A&&A.onVnodeUnmounted)||Z)&&Me(()=>{he&&Qe(he,p,h),Z&&At(h,null,p,"unmounted")},g)},$r=h=>{const{type:p,el:g,anchor:y,transition:k}=h;if(p===ue){Ei(g,y);return}if(p===li){I(h);return}const v=()=>{i(g),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(h.shapeFlag&1&&k&&!k.persisted){const{leave:A,delayLeave:S}=k,$=()=>A(g,v);S?S(h.el,v,$):$()}else v()},Ei=(h,p)=>{let g;for(;h!==p;)g=d(h),i(h),h=g;i(p)},Rr=(h,p,g)=>{const{bum:y,scope:k,job:v,subTree:A,um:S,m:$,a:_}=h;Ys($),Ys(_),y&&Bn(y),k.stop(),v&&(v.flags|=8,Ke(A,h,p,g)),S&&Me(S,p),Me(()=>{h.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Pt=(h,p,g,y=!1,k=!1,v=0)=>{for(let A=v;A<h.length;A++)Ke(h[A],p,g,y,k)},Ot=h=>{if(h.shapeFlag&6)return Ot(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const p=d(h.anchor||h.el),g=p&&p[Va];return g?d(g):p};let en=!1;const z=(h,p,g)=>{h==null?p._vnode&&Ke(p._vnode,null,null,!0):b(p._vnode||null,h,p,null,null,null,g),p._vnode=h,en||(en=!0,Ms(),Ps(),en=!1)},R={p:b,um:Ke,m:Xt,r:$r,mt:ge,mc:ae,pc:bt,pbc:Ue,n:Ot,o:e};return{render:z,hydrate:void 0,createApp:nc(z)}}function si({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 pc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Gs(e,t,n=!1){const r=e.children,i=t.children;if(q(r)&&q(i))for(let s=0;s<r.length;s++){const l=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=mt(i[s]),o.el=l.el),!n&&o.patchFlag!==-2&&Gs(l,o)),o.type===sr&&(o.el=l.el)}}function dc(e){const t=e.slice(),n=[0];let r,i,s,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<c?s=o+1:l=o;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function Zs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zs(t)}function Ys(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const gc=Symbol.for("v-scx"),mc=()=>rr(gc);function Js(e,t){return Qs(e,null,t)}function gt(e,t,n){return Qs(e,t,n)}function Qs(e,t,n=le){const{immediate:r,flush:i}=n,s=je({},n),l=t&&r||!t&&i!=="post";let o;if(xn){if(i==="sync"){const f=mc();o=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=wt,f.resume=wt,f.pause=wt,f}}const a=$e;s.call=(f,d,m)=>it(f,a,d,m);let c=!1;i==="post"?s.scheduler=f=>{Me(f,a&&a.suspense)}:i!=="sync"&&(c=!0,s.scheduler=(f,d)=>{d?f():Jr(f)}),s.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,a&&(f.id=a.uid,f.i=a))};const u=Fa(e,t,s);return xn&&(o?o.push(u):l&&u()),u}const vc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${kt(t)}Modifiers`];function bc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||le;let i=n;const s=t.startsWith("update:"),l=s&&vc(r,t.slice(7));l&&(l.trim&&(i=n.map(u=>ye(u)?u.trim():u)),l.number&&(i=n.map(Vn)));let o,a=r[o=Or(t)]||r[o=Or(ze(t))];!a&&s&&(a=r[o=Or(kt(t))]),a&&it(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,it(c,e,6,i)}}function yc(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?(q(s)?s.forEach(o=>l[o]=null):je(l,s),pe(e)&&r.set(e,l),l):(pe(e)&&r.set(e,null),null)}function ir(e,t){return!e||!Hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,kt(t))||X(e,t))}function Xs(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:f,data:d,setupState:m,ctx:x,inheritAttrs:b}=e,T=er(e);let w,C;try{if(n.shapeFlag&4){const I=i||r,O=I;w=Je(c.call(O,I,u,f,m,d,x)),C=o}else{const I=t;w=Je(I.length>1?I(f,{attrs:o,slots:l,emit:a}):I(f,null)),C=t.props?o:wc(o)}}catch(I){yn.length=0,Qn(I,e,1),w=oe(Tt)}let N=w;if(C&&b!==!1){const I=Object.keys(C),{shapeFlag:O}=N;I.length&&O&7&&(s&&I.some(Mr)&&(C=kc(C,s)),N=Zt(N,C,!1,!0))}return n.dirs&&(N=Zt(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&Qr(N,n.transition),w=N,er(T),w}const wc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hn(n))&&((t||(t={}))[n]=e[n]);return t},kc=(e,t)=>{const n={};for(const r in e)(!Mr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function xc(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?el(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(l[d]!==r[d]&&!ir(c,d))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?el(r,l,c):!0:!!l;return!1}function el(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!ir(n,s))return!0}return!1}function _c({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const tl=e=>e.__isSuspense;function Cc(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):Na(e)}const ue=Symbol.for("v-fgt"),sr=Symbol.for("v-txt"),Tt=Symbol.for("v-cmt"),li=Symbol.for("v-stc"),yn=[];let Pe=null;function L(e=!1){yn.push(Pe=e?null:[])}function Sc(){yn.pop(),Pe=yn[yn.length-1]||null}let wn=1;function nl(e,t=!1){wn+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function rl(e){return e.dynamicChildren=wn>0?Pe||Dt:null,Sc(),wn>0&&Pe&&Pe.push(e),e}function P(e,t,n,r,i,s){return rl(D(e,t,n,r,i,s,!0))}function st(e,t,n,r,i){return rl(oe(e,t,n,r,i,!0))}function lr(e){return e?e.__v_isVNode===!0:!1}function kn(e,t){return e.type===t.type&&e.key===t.key}const il=({key:e})=>e??null,or=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||be(e)||ee(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,i=null,s=e===ue?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&il(t),ref:t&&or(t),scopeId:js,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|=ye(n)?8:16),wn>0&&!l&&Pe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Pe.push(a),a}const oe=$c;function $c(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Qa)&&(e=Tt),lr(e)){const o=Zt(e,t,!0);return n&&oi(o,n),wn>0&&!s&&Pe&&(o.shapeFlag&6?Pe[Pe.indexOf(e)]=o:Pe.push(o)),o.patchFlag=-2,o}if(zc(e)&&(e=e.__vccOpts),t){t=Rc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=ve(o)),pe(a)&&(Zr(a)&&!q(a)&&(a=je({},a)),t.style=ln(a))}const l=ye(e)?1:tl(e)?128:Wa(e)?64:pe(e)?4:ee(e)?2:0;return D(e,t,n,r,i,l,s,!0)}function Rc(e){return e?Zr(e)||Us(e)?je({},e):e:null}function Zt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?Ac(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&il(c),ref:t&&t.ref?n&&s?q(s)?s.concat(or(t)):[s,or(t)]:or(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!==ue?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Qr(u,a.clone(u)),u}function lt(e=" ",t=0){return oe(sr,null,e,t)}function Y(e="",t=!1){return t?(L(),st(Tt,null,e)):oe(Tt,null,e)}function Je(e){return e==null||typeof e=="boolean"?oe(Tt):q(e)?oe(ue,null,e.slice()):lr(e)?mt(e):oe(sr,null,String(e))}function mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function oi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(q(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&&!Us(t)?t._ctx=Ie:i===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),r&64?(n=16,t=[lt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ac(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(i==="style")t.style=ln([t.style,r.style]);else if(Hn(i)){const s=t[i],l=r[i];l&&s!==l&&!(q(s)&&s.includes(l))&&(t[i]=s?[].concat(s,l):l)}else i!==""&&(t[i]=r[i])}return t}function Qe(e,t,n,r=null){it(e,t,7,[n,r])}const Ec=Ds();let Tc=0;function Ic(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Ec,s={uid:Tc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new sa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:lc(r,i),emitsOptions:yc(r,i),emit:null,emitted:null,propsDefaults:le,inheritAttrs:r.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=bc.bind(null,s),e.ce&&e.ce(s),s}let $e=null;const sl=()=>$e||Ie;let ar,ai;{const e=sn(),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)}};ar=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),ai=t("__VUE_SSR_SETTERS__",n=>xn=n)}const ci=e=>{const t=$e;return ar(e),e.scope.on(),()=>{e.scope.off(),ar(t)}},ll=()=>{$e&&$e.scope.off(),ar(null)};function ol(e){return e.vnode.shapeFlag&4}let xn=!1;function Lc(e,t=!1,n=!1){t&&ai(t);const{props:r,children:i}=e.vnode,s=ol(e);ic(e,r,s,t),ac(e,i,n);const l=s?Mc(e,t):void 0;return t&&ai(!1),l}function Mc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ec);const{setup:r}=n;if(r){_t();const i=e.setupContext=r.length>1?Oc(e):null,s=ci(e),l=pn(r,e,0,[e.props,i]),o=is(l);if(Ct(),s(),(o||e.sp)&&!mn(e)&&qa(e),o){if(l.then(ll,ll),t)return l.then(a=>{al(e,a,t)}).catch(a=>{Qn(a,e,0)});e.asyncDep=l}else al(e,l,t)}else ul(e,t)}function al(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Ts(t)),ul(e,n)}let cl;function ul(e,t,n){const r=e.type;if(!e.render){if(!t&&cl&&!r.render){const i=r.template||!1;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=je(je({isCustomElement:s,delimiters:o},l),a);r.render=cl(i,c)}}e.render=r.render||wt}}const Pc={get(e,t){return xe(e,"get",""),e[t]}};function Oc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Pc),slots:e.slots,emit:e.emit,expose:t}}function cr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ts(Ra(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bn)return bn[n](e)},has(t,n){return n in t||n in bn}})):e.proxy}function jc(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function zc(e){return ee(e)&&"__vccOpts"in e}const me=(e,t)=>za(e,t,xn);function ne(e,t,n){const r=arguments.length;return r===2?pe(t)&&!q(t)?lr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&lr(n)&&(n=[n]),oe(e,t,n))}const Dc="3.5.13";/**
22
+ **/function pn(e,t,n,r){try{return r?e(...r):e()}catch(i){Qn(i,t,n)}}function it(e,t,n,r){if(ee(e)){const i=pn(e,t,n,r);return i&&is(i)&&i.catch(s=>{Qn(s,t,n)}),i}if(q(e)){const i=[];for(let s=0;s<e.length;s++)i.push(it(e[s],t,n,r));return i}}function Qn(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||le;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}o=o.parent}if(s){_t(),pn(s,null,10,[e,a,c]),Ct();return}}Ha(e,n,i,r,l)}function Ha(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Se=[];let Ye=-1;const Wt=[];let pt=null,qt=0;const Is=Promise.resolve();let Xn=null;function Kt(e){const t=Xn||Is;return e?t.then(this?e.bind(this):e):t}function Ua(e){let t=Ye+1,n=Se.length;for(;t<n;){const r=t+n>>>1,i=Se[r],s=dn(i);s<e||s===e&&i.flags&2?t=r+1:n=r}return t}function Jr(e){if(!(e.flags&1)){const t=dn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=dn(n)?Se.push(e):Se.splice(Ua(t),0,e),e.flags|=1,Ls()}}function Ls(){Xn||(Xn=Is.then(Os))}function Na(e){q(e)?Wt.push(...e):pt&&e.id===-1?pt.splice(qt+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Ls()}function Ms(e,t,n=Ye+1){for(;n<Se.length;n++){const r=Se[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Se.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ps(e){if(Wt.length){const t=[...new Set(Wt)].sort((n,r)=>dn(n)-dn(r));if(Wt.length=0,pt){pt.push(...t);return}for(pt=t,qt=0;qt<pt.length;qt++){const n=pt[qt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pt=null,qt=0}}const dn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Os(e){try{for(Ye=0;Ye<Se.length;Ye++){const t=Se[Ye];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),pn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ye<Se.length;Ye++){const t=Se[Ye];t&&(t.flags&=-2)}Ye=-1,Se.length=0,Ps(),Xn=null,(Se.length||Wt.length)&&Os()}}let Ie=null,js=null;function er(e){const t=Ie;return Ie=e,js=e&&e.type.__scopeId||null,t}function Ba(e,t=Ie,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&nl(-1);const s=er(t);let l;try{l=e(...i)}finally{er(s),r._d&&nl(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function tr(e,t){if(Ie===null)return e;const n=cr(Ie),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[s,l,o,a=le]=t[i];s&&(ee(s)&&(s={mounted:s,updated:s}),s.deep&&rt(l),r.push({dir:s,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Et(e,t,n,r){const i=e.dirs,s=t&&t.dirs;for(let l=0;l<i.length;l++){const o=i[l];s&&(o.oldValue=s[l].value);let a=o.dir[r];a&&(_t(),it(a,n,8,[e.el,o,e,t]),Ct())}}const Va=Symbol("_vte"),Wa=e=>e.__isTeleport;function Qr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function gn(e,t){return ee(e)?je({name:e.name},t,{setup:e}):e}function qa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function dt(e){const t=sl(),n=Rt(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 nr(e,t,n,r,i=!1){if(q(e)){e.forEach((x,b)=>nr(x,t&&(q(t)?t[b]:t),n,r,i));return}if(mn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&nr(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?cr(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,f=o.setupState,d=Q(f),m=f===le?()=>!1:x=>X(d,x);if(c!=null&&c!==a&&(ye(c)?(u[c]=null,m(c)&&(f[c]=null)):be(c)&&(c.value=null)),ee(a))pn(a,o,12,[l,u]);else{const x=ye(a),b=be(a);if(x||b){const T=()=>{if(e.f){const w=x?m(a)?f[a]:u[a]:a.value;i?q(w)&&ns(w,s):q(w)?w.includes(s)||w.push(s):x?(u[a]=[s],m(a)&&(f[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,m(a)&&(f[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(T.id=-1,Me(T,n)):T()}}}sn().requestIdleCallback,sn().cancelIdleCallback;const mn=e=>!!e.type.__asyncLoader,Ka=e=>e.type.__isKeepAlive;function Ga(e,t,n=$e,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{_t();const o=ci(n),a=it(t,n,e,l);return o(),Ct(),a});return r?i.unshift(s):i.push(s),s}}const Xr=e=>(t,n=$e)=>{(!xn||e==="sp")&&Ga(e,(...r)=>t(...r),n)},vn=Xr("m"),Za=Xr("bum"),ei=Xr("um"),Ya="components";function Ja(e,t){return Xa(Ya,e,!0,t)||e}const Qa=Symbol.for("v-ndc");function Xa(e,t,n=!0,r=!1){const i=Ie||$e;if(i){const s=i.type;{const o=jc(s,!1);if(o&&(o===t||o===ze(t)||o===Nn(ze(t))))return s}const l=zs(i[e]||s[e],t)||zs(i.appContext[e],t);return!l&&r?s:l}}function zs(e,t){return e&&(e[t]||e[ze(t)]||e[Nn(ze(t))])}function Fe(e,t,n,r){let i;const s=n,l=q(e);if(l||ye(e)){const o=l&&Vt(e);let a=!1;o&&(a=!De(e),e=Kn(e)),i=new Array(e.length);for(let c=0,u=e.length;c<u;c++)i[c]=t(a?_e(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,s)}else if(pe(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];i[a]=t(e[u],u,a,s)}}else i=[];return i}const ti=e=>e?ol(e)?cr(e):ti(e.parent):null,bn=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ti(e.parent),$root:e=>ti(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=Kt.bind(e.proxy)),$watch:e=>wt}),ni=(e,t)=>e!==le&&!e.__isScriptSetup&&X(e,t),ec={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 m=l[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(ni(r,t))return l[t]=1,r[t];if(i!==le&&X(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&X(c,t))return l[t]=3,s[t];if(n!==le&&X(n,t))return l[t]=4,n[t];l[t]=0}}const u=bn[t];let f,d;if(u)return t==="$attrs"&&xe(e.attrs,"get",""),u(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==le&&X(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,X(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return ni(i,t)?(i[t]=n,!0):r!==le&&X(r,t)?(r[t]=n,!0):X(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&&X(e,l)||ni(t,l)||(o=s[0])&&X(o,l)||X(r,l)||X(bn,l)||X(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Ds(){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 tc=0;function nc(e,t){return function(r,i=null){ee(r)||(r=je({},r)),i!=null&&!pe(i)&&(i=null);const s=Ds(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:tc++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:Dc,get config(){return s.config},set config(u){},use(u,...f){return l.has(u)||(u&&ee(u.install)?(l.add(u),u.install(c,...f)):ee(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(s.components[u]=f,c):s.components[u]},directive(u,f){return f?(s.directives[u]=f,c):s.directives[u]},mount(u,f,d){if(!a){const m=c._ceVNode||oe(r,i);return m.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),e(m,u,d),a=!0,c._container=u,u.__vue_app__=c,cr(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(it(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return s.provides[u]=f,c},runWithContext(u){const f=Gt;Gt=c;try{return u()}finally{Gt=f}}};return c}}let Gt=null;function rc(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 rr(e,t,n=!1){const r=$e||Ie;if(r||Gt){const i=Gt?Gt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&ee(t)?t.call(r&&r.proxy):t}}const Fs={},Hs=()=>Object.create(Fs),Us=e=>Object.getPrototypeOf(e)===Fs;function ic(e,t,n,r=!1){const i={},s=Hs();e.propsDefaults=Object.create(null),Ns(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 sc(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=Q(i),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(ir(e.emitsOptions,d))continue;const m=t[d];if(a)if(X(s,d))m!==s[d]&&(s[d]=m,c=!0);else{const x=ze(d);i[x]=ri(a,o,x,m,e,!1)}else m!==s[d]&&(s[d]=m,c=!0)}}}else{Ns(e,t,i,s)&&(c=!0);let u;for(const f in o)(!t||!X(t,f)&&((u=kt(f))===f||!X(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=ri(a,o,f,void 0,e,!0)):delete i[f]);if(s!==o)for(const f in s)(!t||!X(t,f))&&(delete s[f],c=!0)}c&&tt(e.attrs,"set","")}function Ns(e,t,n,r){const[i,s]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(rn(a))continue;const c=t[a];let u;i&&X(i,u=ze(a))?!s||!s.includes(u)?n[u]=c:(o||(o={}))[u]=c:ir(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(s){const a=Q(n),c=o||le;for(let u=0;u<s.length;u++){const f=s[u];n[f]=ri(i,a,f,c[f],e,!X(c,f))}}return l}function ri(e,t,n,r,i,s){const l=e[n];if(l!=null){const o=X(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ee(a)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=ci(i);r=c[n]=a.call(null,t),u()}}else r=a;i.ce&&i.ce._setProp(n,r)}l[0]&&(s&&!o?r=!1:l[1]&&(r===""||r===kt(n))&&(r=!0))}return r}function lc(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const s=e.props,l={},o=[];if(!s)return pe(e)&&r.set(e,Ft),Ft;if(q(s))for(let c=0;c<s.length;c++){const u=ze(s[c]);Bs(u)&&(l[u]=le)}else if(s)for(const c in s){const u=ze(c);if(Bs(u)){const f=s[c],d=l[u]=q(f)||ee(f)?{type:f}:je({},f),m=d.type;let x=!1,b=!0;if(q(m))for(let T=0;T<m.length;++T){const w=m[T],C=ee(w)&&w.name;if(C==="Boolean"){x=!0;break}else C==="String"&&(b=!1)}else x=ee(m)&&m.name==="Boolean";d[0]=x,d[1]=b,(x||X(d,"default"))&&o.push(u)}}const a=[l,o];return pe(e)&&r.set(e,a),a}function Bs(e){return e[0]!=="$"&&!rn(e)}const Vs=e=>e[0]==="_"||e==="$stable",ii=e=>q(e)?e.map(Je):[Je(e)],oc=(e,t,n)=>{if(t._n)return t;const r=Ba((...i)=>ii(t(...i)),n);return r._c=!1,r},Ws=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Vs(i))continue;const s=e[i];if(ee(s))t[i]=oc(i,s,r);else if(s!=null){const l=ii(s);t[i]=()=>l}}},qs=(e,t)=>{const n=ii(t);e.slots.default=()=>n},Ks=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},ac=(e,t,n)=>{const r=e.slots=Hs();if(e.vnode.shapeFlag&32){const i=t._;i?(Ks(r,t,n),n&&os(r,"_",i,!0)):Ws(t,r)}else t&&qs(e,t)},cc=(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:Ks(i,t,n):(s=!t.$stable,Ws(t,i)),l=t}else t&&(qs(e,t),l={default:1});if(s)for(const o in i)!Vs(o)&&l[o]==null&&delete i[o]};function uc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(sn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Me=Cc;function fc(e){return hc(e)}function hc(e,t){uc();const n=sn();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:m=wt,insertStaticContent:x}=e,b=(h,p,g,y=null,k=null,v=null,A=void 0,S=null,$=!!p.dynamicChildren)=>{if(h===p)return;h&&!kn(h,p)&&(y=jt(h),Ke(h,k,v,!0),h=null),p.patchFlag===-2&&($=!1,p.dynamicChildren=null);const{type:_,ref:U,shapeFlag:M}=p;switch(_){case sr:T(h,p,g,y);break;case It:w(h,p,g,y);break;case li:h==null&&C(p,g,y,A);break;case ue:B(h,p,g,y,k,v,A,S,$);break;default:M&1?O(h,p,g,y,k,v,A,S,$):M&6?F(h,p,g,y,k,v,A,S,$):(M&64||M&128)&&_.process(h,p,g,y,k,v,A,S,$,R)}U!=null&&k&&nr(U,h&&h.ref,v,p||h,!p)},T=(h,p,g,y)=>{if(h==null)r(p.el=o(p.children),g,y);else{const k=p.el=h.el;p.children!==h.children&&c(k,p.children)}},w=(h,p,g,y)=>{h==null?r(p.el=a(p.children||""),g,y):p.el=h.el},C=(h,p,g,y)=>{[h.el,h.anchor]=x(h.children,p,g,y,h.el,h.anchor)},N=({el:h,anchor:p},g,y)=>{let k;for(;h&&h!==p;)k=d(h),r(h,g,y),h=k;r(p,g,y)},I=({el:h,anchor:p})=>{let g;for(;h&&h!==p;)g=d(h),i(h),h=g;i(p)},O=(h,p,g,y,k,v,A,S,$)=>{p.type==="svg"?A="svg":p.type==="math"&&(A="mathml"),h==null?G(p,g,y,k,v,A,S,$):fe(h,p,k,v,A,S,$)},G=(h,p,g,y,k,v,A,S)=>{let $,_;const{props:U,shapeFlag:M,transition:H,dirs:V}=h;if($=h.el=l(h.type,v,U&&U.is,U),M&8?u($,h.children):M&16&&ae(h.children,$,null,y,k,si(h,v),A,S),V&&Et(h,null,y,"created"),j($,h,h.scopeId,A,y),U){for(const se in U)se!=="value"&&!rn(se)&&s($,se,null,U[se],v,y);"value"in U&&s($,"value",null,U.value,v),(_=U.onVnodeBeforeMount)&&Qe(_,y,h)}V&&Et(h,null,y,"beforeMount");const Z=pc(k,H);Z&&H.beforeEnter($),r($,p,g),((_=U&&U.onVnodeMounted)||Z||V)&&Me(()=>{_&&Qe(_,y,h),Z&&H.enter($),V&&Et(h,null,y,"mounted")},k)},j=(h,p,g,y,k)=>{if(g&&m(h,g),y)for(let v=0;v<y.length;v++)m(h,y[v]);if(k){let v=k.subTree;if(p===v||tl(v.type)&&(v.ssContent===p||v.ssFallback===p)){const A=k.vnode;j(h,A,A.scopeId,A.slotScopeIds,k.parent)}}},ae=(h,p,g,y,k,v,A,S,$=0)=>{for(let _=$;_<h.length;_++){const U=h[_]=S?mt(h[_]):Je(h[_]);b(null,U,p,g,y,k,v,A,S)}},fe=(h,p,g,y,k,v,A)=>{const S=p.el=h.el;let{patchFlag:$,dynamicChildren:_,dirs:U}=p;$|=h.patchFlag&16;const M=h.props||le,H=p.props||le;let V;if(g&&Tt(g,!1),(V=H.onVnodeBeforeUpdate)&&Qe(V,g,p,h),U&&Et(p,h,g,"beforeUpdate"),g&&Tt(g,!0),(M.innerHTML&&H.innerHTML==null||M.textContent&&H.textContent==null)&&u(S,""),_?Ue(h.dynamicChildren,_,S,g,y,si(p,k),v):A||bt(h,p,S,null,g,y,si(p,k),v,!1),$>0){if($&16)E(S,M,H,g,k);else if($&2&&M.class!==H.class&&s(S,"class",null,H.class,k),$&4&&s(S,"style",M.style,H.style,k),$&8){const Z=p.dynamicProps;for(let se=0;se<Z.length;se++){const he=Z[se],Ne=M[he],Ae=H[he];(Ae!==Ne||he==="value")&&s(S,he,Ne,Ae,k,g)}}$&1&&h.children!==p.children&&u(S,p.children)}else!A&&_==null&&E(S,M,H,g,k);((V=H.onVnodeUpdated)||U)&&Me(()=>{V&&Qe(V,g,p,h),U&&Et(p,h,g,"updated")},y)},Ue=(h,p,g,y,k,v,A)=>{for(let S=0;S<p.length;S++){const $=h[S],_=p[S],U=$.el&&($.type===ue||!kn($,_)||$.shapeFlag&70)?f($.el):g;b($,_,U,null,y,k,v,A,!0)}},E=(h,p,g,y,k)=>{if(p!==g){if(p!==le)for(const v in p)!rn(v)&&!(v in g)&&s(h,v,p[v],null,k,y);for(const v in g){if(rn(v))continue;const A=g[v],S=p[v];A!==S&&v!=="value"&&s(h,v,S,A,k,y)}"value"in g&&s(h,"value",p.value,g.value,k)}},B=(h,p,g,y,k,v,A,S,$)=>{const _=p.el=h?h.el:o(""),U=p.anchor=h?h.anchor:o("");let{patchFlag:M,dynamicChildren:H,slotScopeIds:V}=p;V&&(S=S?S.concat(V):V),h==null?(r(_,g,y),r(U,g,y),ae(p.children||[],g,U,k,v,A,S,$)):M>0&&M&64&&H&&h.dynamicChildren?(Ue(h.dynamicChildren,H,g,k,v,A,S),(p.key!=null||k&&p===k.subTree)&&Gs(h,p,!0)):bt(h,p,g,U,k,v,A,S,$)},F=(h,p,g,y,k,v,A,S,$)=>{p.slotScopeIds=S,h==null?p.shapeFlag&512?k.ctx.activate(p,g,y,A,$):ge(p,g,y,k,v,A,$):ke(h,p,$)},ge=(h,p,g,y,k,v,A)=>{const S=h.component=Ic(h,y,k);if(Ka(h)&&(S.ctx.renderer=R),Lc(S,!1,A),S.asyncDep){if(k&&k.registerDep(S,we,A),!h.el){const $=S.subTree=oe(It);w(null,$,p,g)}}else we(S,h,p,g,k,v,A)},ke=(h,p,g)=>{const y=p.component=h.component;if(xc(h,p,g))if(y.asyncDep&&!y.asyncResolved){ft(y,p,g);return}else y.next=p,y.update();else p.el=h.el,y.vnode=p},we=(h,p,g,y,k,v,A)=>{const S=()=>{if(h.isMounted){let{next:M,bu:H,u:V,parent:Z,vnode:se}=h;{const Pn=Zs(h);if(Pn){M&&(M.el=se.el,ft(h,M,A)),Pn.asyncDep.then(()=>{h.isUnmounted||S()});return}}let he=M,Ne;Tt(h,!1),M?(M.el=se.el,ft(h,M,A)):M=se,H&&Bn(H),(Ne=M.props&&M.props.onVnodeBeforeUpdate)&&Qe(Ne,Z,M,se),Tt(h,!0);const Ae=Xs(h),Be=h.subTree;h.subTree=Ae,b(Be,Ae,f(Be.el),jt(Be),h,k,v),M.el=Ae.el,he===null&&_c(h,Ae.el),V&&Me(V,k),(Ne=M.props&&M.props.onVnodeUpdated)&&Me(()=>Qe(Ne,Z,M,se),k)}else{let M;const{props:H}=p,{bm:V,m:Z,parent:se,root:he,type:Ne}=h,Ae=mn(p);Tt(h,!1),V&&Bn(V),!Ae&&(M=H&&H.onVnodeBeforeMount)&&Qe(M,se,p),Tt(h,!0);{he.ce&&he.ce._injectChildStyle(Ne);const Be=h.subTree=Xs(h);b(null,Be,g,y,h,k,v),p.el=Be.el}if(Z&&Me(Z,k),!Ae&&(M=H&&H.onVnodeMounted)){const Be=p;Me(()=>Qe(M,se,Be),k)}(p.shapeFlag&256||se&&mn(se.vnode)&&se.vnode.shapeFlag&256)&&h.a&&Me(h.a,k),h.isMounted=!0,p=g=y=null}};h.scope.on();const $=h.effect=new ps(S);h.scope.off();const _=h.update=$.run.bind($),U=h.job=$.runIfDirty.bind($);U.i=h,U.id=h.uid,$.scheduler=()=>Jr(U),Tt(h,!0),_()},ft=(h,p,g)=>{p.component=h;const y=h.vnode.props;h.vnode=p,h.next=null,sc(h,p.props,y,g),cc(h,p.children,g),_t(),Ms(h),Ct()},bt=(h,p,g,y,k,v,A,S,$=!1)=>{const _=h&&h.children,U=h?h.shapeFlag:0,M=p.children,{patchFlag:H,shapeFlag:V}=p;if(H>0){if(H&128){Sr(_,M,g,y,k,v,A,S,$);return}else if(H&256){Mn(_,M,g,y,k,v,A,S,$);return}}V&8?(U&16&&Ot(_,k,v),M!==_&&u(g,M)):U&16?V&16?Sr(_,M,g,y,k,v,A,S,$):Ot(_,k,v,!0):(U&8&&u(g,""),V&16&&ae(M,g,y,k,v,A,S,$))},Mn=(h,p,g,y,k,v,A,S,$)=>{h=h||Ft,p=p||Ft;const _=h.length,U=p.length,M=Math.min(_,U);let H;for(H=0;H<M;H++){const V=p[H]=$?mt(p[H]):Je(p[H]);b(h[H],V,g,null,k,v,A,S,$)}_>U?Ot(h,k,v,!0,!1,M):ae(p,g,y,k,v,A,S,$,M)},Sr=(h,p,g,y,k,v,A,S,$)=>{let _=0;const U=p.length;let M=h.length-1,H=U-1;for(;_<=M&&_<=H;){const V=h[_],Z=p[_]=$?mt(p[_]):Je(p[_]);if(kn(V,Z))b(V,Z,g,null,k,v,A,S,$);else break;_++}for(;_<=M&&_<=H;){const V=h[M],Z=p[H]=$?mt(p[H]):Je(p[H]);if(kn(V,Z))b(V,Z,g,null,k,v,A,S,$);else break;M--,H--}if(_>M){if(_<=H){const V=H+1,Z=V<U?p[V].el:y;for(;_<=H;)b(null,p[_]=$?mt(p[_]):Je(p[_]),g,Z,k,v,A,S,$),_++}}else if(_>H)for(;_<=M;)Ke(h[_],k,v,!0),_++;else{const V=_,Z=_,se=new Map;for(_=Z;_<=H;_++){const Oe=p[_]=$?mt(p[_]):Je(p[_]);Oe.key!=null&&se.set(Oe.key,_)}let he,Ne=0;const Ae=H-Z+1;let Be=!1,Pn=0;const On=new Array(Ae);for(_=0;_<Ae;_++)On[_]=0;for(_=V;_<=M;_++){const Oe=h[_];if(Ne>=Ae){Ke(Oe,k,v,!0);continue}let et;if(Oe.key!=null)et=se.get(Oe.key);else for(he=Z;he<=H;he++)if(On[he-Z]===0&&kn(Oe,p[he])){et=he;break}et===void 0?Ke(Oe,k,v,!0):(On[et-Z]=_+1,et>=Pn?Pn=et:Be=!0,b(Oe,p[et],g,null,k,v,A,S,$),Ne++)}const xo=Be?dc(On):Ft;for(he=xo.length-1,_=Ae-1;_>=0;_--){const Oe=Z+_,et=p[Oe],_o=Oe+1<U?p[Oe+1].el:y;On[_]===0?b(null,et,g,_o,k,v,A,S,$):Be&&(he<0||_!==xo[he]?Xt(et,g,_o,2):he--)}}},Xt=(h,p,g,y,k=null)=>{const{el:v,type:A,transition:S,children:$,shapeFlag:_}=h;if(_&6){Xt(h.component.subTree,p,g,y);return}if(_&128){h.suspense.move(p,g,y);return}if(_&64){A.move(h,p,g,R);return}if(A===ue){r(v,p,g);for(let M=0;M<$.length;M++)Xt($[M],p,g,y);r(h.anchor,p,g);return}if(A===li){N(h,p,g);return}if(y!==2&&_&1&&S)if(y===0)S.beforeEnter(v),r(v,p,g),Me(()=>S.enter(v),k);else{const{leave:M,delayLeave:H,afterLeave:V}=S,Z=()=>r(v,p,g),se=()=>{M(v,()=>{Z(),V&&V()})};H?H(v,Z,se):se()}else r(v,p,g)},Ke=(h,p,g,y=!1,k=!1)=>{const{type:v,props:A,ref:S,children:$,dynamicChildren:_,shapeFlag:U,patchFlag:M,dirs:H,cacheIndex:V}=h;if(M===-2&&(k=!1),S!=null&&nr(S,null,g,h,!0),V!=null&&(p.renderCache[V]=void 0),U&256){p.ctx.deactivate(h);return}const Z=U&1&&H,se=!mn(h);let he;if(se&&(he=A&&A.onVnodeBeforeUnmount)&&Qe(he,p,h),U&6)Rr(h.component,g,y);else{if(U&128){h.suspense.unmount(g,y);return}Z&&Et(h,null,p,"beforeUnmount"),U&64?h.type.remove(h,p,g,R,y):_&&!_.hasOnce&&(v!==ue||M>0&&M&64)?Ot(_,p,g,!1,!0):(v===ue&&M&384||!k&&U&16)&&Ot($,p,g),y&&$r(h)}(se&&(he=A&&A.onVnodeUnmounted)||Z)&&Me(()=>{he&&Qe(he,p,h),Z&&Et(h,null,p,"unmounted")},g)},$r=h=>{const{type:p,el:g,anchor:y,transition:k}=h;if(p===ue){Ei(g,y);return}if(p===li){I(h);return}const v=()=>{i(g),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(h.shapeFlag&1&&k&&!k.persisted){const{leave:A,delayLeave:S}=k,$=()=>A(g,v);S?S(h.el,v,$):$()}else v()},Ei=(h,p)=>{let g;for(;h!==p;)g=d(h),i(h),h=g;i(p)},Rr=(h,p,g)=>{const{bum:y,scope:k,job:v,subTree:A,um:S,m:$,a:_}=h;Ys($),Ys(_),y&&Bn(y),k.stop(),v&&(v.flags|=8,Ke(A,h,p,g)),S&&Me(S,p),Me(()=>{h.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&h.asyncDep&&!h.asyncResolved&&h.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},Ot=(h,p,g,y=!1,k=!1,v=0)=>{for(let A=v;A<h.length;A++)Ke(h[A],p,g,y,k)},jt=h=>{if(h.shapeFlag&6)return jt(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const p=d(h.anchor||h.el),g=p&&p[Va];return g?d(g):p};let en=!1;const z=(h,p,g)=>{h==null?p._vnode&&Ke(p._vnode,null,null,!0):b(p._vnode||null,h,p,null,null,null,g),p._vnode=h,en||(en=!0,Ms(),Ps(),en=!1)},R={p:b,um:Ke,m:Xt,r:$r,mt:ge,mc:ae,pc:bt,pbc:Ue,n:jt,o:e};return{render:z,hydrate:void 0,createApp:nc(z)}}function si({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 Tt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function pc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Gs(e,t,n=!1){const r=e.children,i=t.children;if(q(r)&&q(i))for(let s=0;s<r.length;s++){const l=r[s];let o=i[s];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[s]=mt(i[s]),o.el=l.el),!n&&o.patchFlag!==-2&&Gs(l,o)),o.type===sr&&(o.el=l.el)}}function dc(e){const t=e.slice(),n=[0];let r,i,s,l,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(s=0,l=n.length-1;s<l;)o=s+l>>1,e[n[o]]<c?s=o+1:l=o;c<e[n[s]]&&(s>0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function Zs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zs(t)}function Ys(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const gc=Symbol.for("v-scx"),mc=()=>rr(gc);function Js(e,t){return Qs(e,null,t)}function gt(e,t,n){return Qs(e,t,n)}function Qs(e,t,n=le){const{immediate:r,flush:i}=n,s=je({},n),l=t&&r||!t&&i!=="post";let o;if(xn){if(i==="sync"){const f=mc();o=f.__watcherHandles||(f.__watcherHandles=[])}else if(!l){const f=()=>{};return f.stop=wt,f.resume=wt,f.pause=wt,f}}const a=$e;s.call=(f,d,m)=>it(f,a,d,m);let c=!1;i==="post"?s.scheduler=f=>{Me(f,a&&a.suspense)}:i!=="sync"&&(c=!0,s.scheduler=(f,d)=>{d?f():Jr(f)}),s.augmentJob=f=>{t&&(f.flags|=4),c&&(f.flags|=2,a&&(f.id=a.uid,f.i=a))};const u=Fa(e,t,s);return xn&&(o?o.push(u):l&&u()),u}const vc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ze(t)}Modifiers`]||e[`${kt(t)}Modifiers`];function bc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||le;let i=n;const s=t.startsWith("update:"),l=s&&vc(r,t.slice(7));l&&(l.trim&&(i=n.map(u=>ye(u)?u.trim():u)),l.number&&(i=n.map(Vn)));let o,a=r[o=Or(t)]||r[o=Or(ze(t))];!a&&s&&(a=r[o=Or(kt(t))]),a&&it(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,it(c,e,6,i)}}function yc(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?(q(s)?s.forEach(o=>l[o]=null):je(l,s),pe(e)&&r.set(e,l),l):(pe(e)&&r.set(e,null),null)}function ir(e,t){return!e||!Hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,kt(t))||X(e,t))}function Xs(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:f,data:d,setupState:m,ctx:x,inheritAttrs:b}=e,T=er(e);let w,C;try{if(n.shapeFlag&4){const I=i||r,O=I;w=Je(c.call(O,I,u,f,m,d,x)),C=o}else{const I=t;w=Je(I.length>1?I(f,{attrs:o,slots:l,emit:a}):I(f,null)),C=t.props?o:wc(o)}}catch(I){yn.length=0,Qn(I,e,1),w=oe(It)}let N=w;if(C&&b!==!1){const I=Object.keys(C),{shapeFlag:O}=N;I.length&&O&7&&(s&&I.some(Mr)&&(C=kc(C,s)),N=Zt(N,C,!1,!0))}return n.dirs&&(N=Zt(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&Qr(N,n.transition),w=N,er(T),w}const wc=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hn(n))&&((t||(t={}))[n]=e[n]);return t},kc=(e,t)=>{const n={};for(const r in e)(!Mr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function xc(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?el(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(l[d]!==r[d]&&!ir(c,d))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?el(r,l,c):!0:!!l;return!1}function el(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(t[s]!==e[s]&&!ir(n,s))return!0}return!1}function _c({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const tl=e=>e.__isSuspense;function Cc(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):Na(e)}const ue=Symbol.for("v-fgt"),sr=Symbol.for("v-txt"),It=Symbol.for("v-cmt"),li=Symbol.for("v-stc"),yn=[];let Pe=null;function L(e=!1){yn.push(Pe=e?null:[])}function Sc(){yn.pop(),Pe=yn[yn.length-1]||null}let wn=1;function nl(e,t=!1){wn+=e,e<0&&Pe&&t&&(Pe.hasOnce=!0)}function rl(e){return e.dynamicChildren=wn>0?Pe||Ft:null,Sc(),wn>0&&Pe&&Pe.push(e),e}function P(e,t,n,r,i,s){return rl(D(e,t,n,r,i,s,!0))}function st(e,t,n,r,i){return rl(oe(e,t,n,r,i,!0))}function lr(e){return e?e.__v_isVNode===!0:!1}function kn(e,t){return e.type===t.type&&e.key===t.key}const il=({key:e})=>e??null,or=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||be(e)||ee(e)?{i:Ie,r:e,k:t,f:!!n}:e:null);function D(e,t=null,n=null,r=0,i=null,s=e===ue?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&il(t),ref:t&&or(t),scopeId:js,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|=ye(n)?8:16),wn>0&&!l&&Pe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Pe.push(a),a}const oe=$c;function $c(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Qa)&&(e=It),lr(e)){const o=Zt(e,t,!0);return n&&oi(o,n),wn>0&&!s&&Pe&&(o.shapeFlag&6?Pe[Pe.indexOf(e)]=o:Pe.push(o)),o.patchFlag=-2,o}if(zc(e)&&(e=e.__vccOpts),t){t=Rc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=ve(o)),pe(a)&&(Zr(a)&&!q(a)&&(a=je({},a)),t.style=ln(a))}const l=ye(e)?1:tl(e)?128:Wa(e)?64:pe(e)?4:ee(e)?2:0;return D(e,t,n,r,i,l,s,!0)}function Rc(e){return e?Zr(e)||Us(e)?je({},e):e:null}function Zt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?Ac(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&il(c),ref:t&&t.ref?n&&s?q(s)?s.concat(or(t)):[s,or(t)]:or(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!==ue?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Qr(u,a.clone(u)),u}function lt(e=" ",t=0){return oe(sr,null,e,t)}function Y(e="",t=!1){return t?(L(),st(It,null,e)):oe(It,null,e)}function Je(e){return e==null||typeof e=="boolean"?oe(It):q(e)?oe(ue,null,e.slice()):lr(e)?mt(e):oe(sr,null,String(e))}function mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function oi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(q(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&&!Us(t)?t._ctx=Ie:i===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ee(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),r&64?(n=16,t=[lt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ac(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=ve([t.class,r.class]));else if(i==="style")t.style=ln([t.style,r.style]);else if(Hn(i)){const s=t[i],l=r[i];l&&s!==l&&!(q(s)&&s.includes(l))&&(t[i]=s?[].concat(s,l):l)}else i!==""&&(t[i]=r[i])}return t}function Qe(e,t,n,r=null){it(e,t,7,[n,r])}const Ec=Ds();let Tc=0;function Ic(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||Ec,s={uid:Tc++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new sa(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:lc(r,i),emitsOptions:yc(r,i),emit:null,emitted:null,propsDefaults:le,inheritAttrs:r.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=bc.bind(null,s),e.ce&&e.ce(s),s}let $e=null;const sl=()=>$e||Ie;let ar,ai;{const e=sn(),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)}};ar=t("__VUE_INSTANCE_SETTERS__",n=>$e=n),ai=t("__VUE_SSR_SETTERS__",n=>xn=n)}const ci=e=>{const t=$e;return ar(e),e.scope.on(),()=>{e.scope.off(),ar(t)}},ll=()=>{$e&&$e.scope.off(),ar(null)};function ol(e){return e.vnode.shapeFlag&4}let xn=!1;function Lc(e,t=!1,n=!1){t&&ai(t);const{props:r,children:i}=e.vnode,s=ol(e);ic(e,r,s,t),ac(e,i,n);const l=s?Mc(e,t):void 0;return t&&ai(!1),l}function Mc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ec);const{setup:r}=n;if(r){_t();const i=e.setupContext=r.length>1?Oc(e):null,s=ci(e),l=pn(r,e,0,[e.props,i]),o=is(l);if(Ct(),s(),(o||e.sp)&&!mn(e)&&qa(e),o){if(l.then(ll,ll),t)return l.then(a=>{al(e,a,t)}).catch(a=>{Qn(a,e,0)});e.asyncDep=l}else al(e,l,t)}else ul(e,t)}function al(e,t,n){ee(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pe(t)&&(e.setupState=Ts(t)),ul(e,n)}let cl;function ul(e,t,n){const r=e.type;if(!e.render){if(!t&&cl&&!r.render){const i=r.template||!1;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=je(je({isCustomElement:s,delimiters:o},l),a);r.render=cl(i,c)}}e.render=r.render||wt}}const Pc={get(e,t){return xe(e,"get",""),e[t]}};function Oc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Pc),slots:e.slots,emit:e.emit,expose:t}}function cr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ts(Ra(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bn)return bn[n](e)},has(t,n){return n in t||n in bn}})):e.proxy}function jc(e,t=!0){return ee(e)?e.displayName||e.name:e.name||t&&e.__name}function zc(e){return ee(e)&&"__vccOpts"in e}const me=(e,t)=>za(e,t,xn);function te(e,t,n){const r=arguments.length;return r===2?pe(t)&&!q(t)?lr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&lr(n)&&(n=[n]),oe(e,t,n))}const Dc="3.5.13";/**
23
23
  * @vue/runtime-dom v3.5.13
24
24
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
25
25
  * @license MIT
26
- **/let ui;const fl=typeof window<"u"&&window.trustedTypes;if(fl)try{ui=fl.createPolicy("vue",{createHTML:e=>e})}catch{}const hl=ui?e=>ui.createHTML(e):e=>e,Fc="http://www.w3.org/2000/svg",Hc="http://www.w3.org/1998/Math/MathML",ot=typeof document<"u"?document:null,pl=ot&&ot.createElement("template"),Uc={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"?ot.createElementNS(Fc,e):t==="mathml"?ot.createElementNS(Hc,e):n?ot.createElement(e,{is:n}):ot.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ot.createTextNode(e),createComment:e=>ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,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{pl.innerHTML=hl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=pl.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]}},Nc=Symbol("_vtc");function Bc(e,t,n){const r=e[Nc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ur=Symbol("_vod"),dl=Symbol("_vsh"),gl={beforeMount(e,{value:t},{transition:n}){e[ur]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),_n(e,!0),r.enter(e)):r.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e[ur]:"none",e[dl]=!t}const Vc=Symbol(""),Wc=/(^|;)\s*display\s*:/;function qc(e,t,n){const r=e.style,i=ye(n);let s=!1;if(n&&!i){if(t)if(ye(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&fr(r,o,"")}else for(const l in t)n[l]==null&&fr(r,l,"");for(const l in n)l==="display"&&(s=!0),fr(r,l,n[l])}else if(i){if(t!==n){const l=r[Vc];l&&(n+=";"+l),r.cssText=n,s=Wc.test(n)}}else t&&e.removeAttribute("style");ur in e&&(e[ur]=s?r.display:"",e[dl]&&(r.display="none"))}const ml=/\s*!important$/;function fr(e,t,n){if(q(n))n.forEach(r=>fr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Kc(e,t);ml.test(n)?e.setProperty(kt(r),n.replace(ml,""),"important"):e[r]=n}}const vl=["Webkit","Moz","ms"],fi={};function Kc(e,t){const n=fi[t];if(n)return n;let r=ze(t);if(r!=="filter"&&r in e)return fi[t]=r;r=Nn(r);for(let i=0;i<vl.length;i++){const s=vl[i]+r;if(s in e)return fi[t]=s}return t}const bl="http://www.w3.org/1999/xlink";function yl(e,t,n,r,i,s=ra(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(bl,t.slice(6,t.length)):e.setAttributeNS(bl,t,n):n==null||s&&!cs(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Ze(n)?String(n):n)}function wl(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?hl(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const o=s==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=cs(n):n==null&&o==="string"?(n="",l=!0):o==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(i||t)}function at(e,t,n,r){e.addEventListener(t,n,r)}function Gc(e,t,n,r){e.removeEventListener(t,n,r)}const kl=Symbol("_vei");function Zc(e,t,n,r,i=null){const s=e[kl]||(e[kl]={}),l=s[t];if(r&&l)l.value=r;else{const[o,a]=Yc(t);if(r){const c=s[t]=Xc(r,i);at(e,o,c,a)}else l&&(Gc(e,o,l,a),s[t]=void 0)}}const xl=/(?:Once|Passive|Capture)$/;function Yc(e){let t;if(xl.test(e)){t={};let r;for(;r=e.match(xl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):kt(e.slice(2)),t]}let hi=0;const Jc=Promise.resolve(),Qc=()=>hi||(Jc.then(()=>hi=0),hi=Date.now());function Xc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;it(eu(r,n.value),t,5,[r])};return n.value=e,n.attached=Qc(),n}function eu(e,t){if(q(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 _l=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,tu=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Bc(e,r,l):t==="style"?qc(e,n,r):Hn(t)?Mr(t)||Zc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nu(e,t,r,l))?(wl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yl(e,t,r,l,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ye(r))?wl(e,ze(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yl(e,t,r,l))};function nu(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&_l(t)&&ee(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return _l(t)&&ye(n)?!1:t in e}const vt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?n=>Bn(t,n):t};function ru(e){e.target.composing=!0}function Cl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const He=Symbol("_assign"),pi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[He]=vt(i);const s=r||i.props&&i.props.type==="number";at(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Vn(o)),e[He](o)}),n&&at(e,"change",()=>{e.value=e.value.trim()}),t||(at(e,"compositionstart",ru),at(e,"compositionend",Cl),at(e,"change",Cl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[He]=vt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Vn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},iu={deep:!0,created(e,t,n){e[He]=vt(n),at(e,"change",()=>{const r=e._modelValue,i=Yt(e),s=e.checked,l=e[He];if(q(r)){const o=jr(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(Rl(e,s))})},mounted:Sl,beforeUpdate(e,t,n){e[He]=vt(n),Sl(e,t,n)}};function Sl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(q(t))i=jr(t,r.props.value)>-1;else if(Ht(t))i=t.has(r.props.value);else{if(t===n)return;i=xt(t,Rl(e,!0))}e.checked!==i&&(e.checked=i)}const su={created(e,{value:t},n){e.checked=xt(t,n.props.value),e[He]=vt(n),at(e,"change",()=>{e[He](Yt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[He]=vt(r),t!==n&&(e.checked=xt(t,r.props.value))}},lu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Ht(t);at(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Vn(Yt(l)):Yt(l));e[He](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Kt(()=>{e._assigning=!1})}),e[He]=vt(r)},mounted(e,{value:t}){$l(e,t)},beforeUpdate(e,t,n){e[He]=vt(n)},updated(e,{value:t}){e._assigning||$l(e,t)}};function $l(e,t){const n=e.multiple,r=q(t);if(!(n&&!r&&!Ht(t))){for(let i=0,s=e.options.length;i<s;i++){const l=e.options[i],o=Yt(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=jr(t,o)>-1}else l.selected=t.has(o);else if(xt(Yt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Yt(e){return"_value"in e?e._value:e.value}function Rl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ou={created(e,t,n){hr(e,t,n,null,"created")},mounted(e,t,n){hr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){hr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){hr(e,t,n,r,"updated")}};function au(e,t){switch(e){case"SELECT":return lu;case"TEXTAREA":return pi;default:switch(t){case"checkbox":return iu;case"radio":return su;default:return pi}}}function hr(e,t,n,r,i){const l=au(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const cu=je({patchProp:tu},Uc);let Al;function uu(){return Al||(Al=fc(cu))}const fu=(...e)=>{const t=uu().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=pu(r);if(!i)return;const s=t._component;!ee(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,hu(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function hu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pu(e){return ye(e)?document.querySelector(e):e}function Cn(e){return hs()?(la(e),!0):!1}const pr=typeof window<"u"&&typeof document<"u",du=e=>typeof e<"u",gu=Object.prototype.toString,mu=e=>gu.call(e)==="[object Object]",dr=()=>{};function El(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 Tl=e=>e();function vu(e,t={}){let n,r,i=dr;const s=a=>{clearTimeout(a),i(),i=dr};let l;return a=>{const c=Le(e),u=Le(t.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((f,d)=>{i=t.rejectOnCancel?d:f,l=a,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,f(l())},u)),n=setTimeout(()=>{r&&s(r),r=null,f(a())},c)})}}function bu(e=Tl,t={}){const{initialState:n="active"}=t,r=yu(n==="active");function i(){r.value=!1}function s(){r.value=!0}const l=(...o)=>{r.value&&e(...o)};return{isActive:Nt(r),pause:i,resume:s,eventFilter:l}}function Il(e){return sl()}function di(e){return Array.isArray(e)?e:[e]}function yu(...e){if(e.length!==1)return Pa(...e);const t=e[0];return typeof t=="function"?Nt(Ia(()=>({get:t,set:dr}))):te(t)}function wu(e,t=200,n={}){return El(vu(t,n),e)}function ku(e,t,n={}){const{eventFilter:r=Tl,...i}=n;return gt(e,El(r,t),i)}function xu(e,t,n={}){const{eventFilter:r,initialState:i="active",...s}=n,{eventFilter:l,pause:o,resume:a,isActive:c}=bu(r,{initialState:i});return{stop:ku(e,t,{...s,eventFilter:l}),pause:o,resume:a,isActive:c}}function gi(e,t=!0,n){Il()?vn(e,n):t?e():Kt(e)}function _u(e,t){Il()&&ei(e,t)}function Cu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=Vt(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function c(){const u=Le(t);u<=0||(l.value=!0,i&&e(),o(),l.value&&(s=setInterval(e,u)))}if(r&&pr&&c(),be(t)||typeof t=="function"){const u=gt(t,()=>{l.value&&pr&&c()});Cn(u)}return Cn(a),{isActive:l,pause:a,resume:c}}function Jt(e,t,n){return gt(e,t,{...n,immediate:!0})}const gr=pr?window:void 0,Ll=pr?window.document:void 0;function Su(e){var t;const n=Le(e);return(t=n==null?void 0:n.$el)!=null?t:n}function It(...e){const t=[],n=()=>{t.forEach(o=>o()),t.length=0},r=(o,a,c,u)=>(o.addEventListener(a,c,u),()=>o.removeEventListener(a,c,u)),i=me(()=>{const o=di(Le(e[0])).filter(a=>a!=null);return o.every(a=>typeof a!="string")?o:void 0}),s=Jt(()=>{var o,a;return[(a=(o=i.value)==null?void 0:o.map(c=>Su(c)))!=null?a:[gr].filter(c=>c!=null),di(Le(i.value?e[1]:e[0])),di(K(i.value?e[2]:e[1])),Le(i.value?e[3]:e[2])]},([o,a,c,u])=>{if(n(),!(o!=null&&o.length)||!(a!=null&&a.length)||!(c!=null&&c.length))return;const f=mu(u)?{...u}:u;t.push(...o.flatMap(d=>a.flatMap(m=>c.map(x=>r(d,m,x,f)))))},{flush:"post"}),l=()=>{s(),n()};return Cn(n),l}function $u(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=gr,once:s=!1}=t,l=Vt(!1),o=me(()=>r?1e3/Le(r):null);let a=0,c=null;function u(m){if(!l.value||!i)return;a||(a=m);const x=m-a;if(o.value&&x<o.value){c=i.requestAnimationFrame(u);return}if(a=m,e({delta:x,timestamp:m}),s){l.value=!1,c=null;return}c=i.requestAnimationFrame(u)}function f(){!l.value&&i&&(l.value=!0,a=0,c=i.requestAnimationFrame(u))}function d(){l.value=!1,c!=null&&i&&(i.cancelAnimationFrame(c),c=null)}return n&&f(),Cn(d),{isActive:Nt(l),pause:d,resume:f}}const mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vr="__vueuse_ssr_handlers__",Ru=Au();function Au(){return vr in mr||(mr[vr]=mr[vr]||{}),mr[vr]}function Eu(e,t){return Ru[e]||t}function Tu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Iu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ml="vueuse-storage";function Qt(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:f=gr,eventFilter:d,onError:m=E=>{console.error(E)},initOnMounted:x}=r,b=(u?Vt:te)(typeof t=="function"?t():t),T=me(()=>Le(e));if(!n)try{n=Eu("getDefaultStorage",()=>{var E;return(E=gr)==null?void 0:E.localStorage})()}catch(E){m(E)}if(!n)return b;const w=Le(t),C=Tu(w),N=(i=r.serializer)!=null?i:Iu[C],{pause:I,resume:O}=xu(b,()=>j(b.value),{flush:s,deep:l,eventFilter:d});gt(T,()=>fe(),{flush:s}),f&&o&&gi(()=>{n instanceof Storage?It(f,"storage",fe,{passive:!0}):It(f,Ml,Ue),x&&fe()}),x||fe();function G(E,B){if(f){const F={key:T.value,oldValue:E,newValue:B,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",F):new CustomEvent(Ml,{detail:F}))}}function j(E){try{const B=n.getItem(T.value);if(E==null)G(B,null),n.removeItem(T.value);else{const F=N.write(E);B!==F&&(n.setItem(T.value,F),G(B,F))}}catch(B){m(B)}}function ae(E){const B=E?E.newValue:n.getItem(T.value);if(B==null)return a&&w!=null&&n.setItem(T.value,N.write(w)),w;if(!E&&c){const F=N.read(B);return typeof c=="function"?c(F,w):C==="object"&&!Array.isArray(F)?{...w,...F}:F}else return typeof B!="string"?B:N.read(B)}function fe(E){if(!(E&&E.storageArea!==n)){if(E&&E.key==null){b.value=w;return}if(!(E&&E.key!==T.value)){I();try{(E==null?void 0:E.newValue)!==N.write(b.value)&&(b.value=ae(E))}catch(B){m(B)}finally{E?Kt(O):O()}}}}function Ue(E){fe(E.detail)}return b}function Lu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=te(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?$u(i,{immediate:!0}):Cu(i,n,{immediate:!0});return t?{now:r,...s}:r}function Mu(e,t=dr,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:f=Ll,attrs:d={}}=n,m=te(null);let x=null;const b=C=>new Promise((N,I)=>{const O=fe=>(m.value=fe,N(fe),fe);if(!f){N(!1);return}let G=!1,j=f.querySelector(`script[src="${Le(e)}"]`);j?j.hasAttribute("data-loaded")&&O(j):(j=f.createElement("script"),j.type=s,j.async=l,j.src=Le(e),u&&(j.defer=u),o&&(j.crossOrigin=o),c&&(j.noModule=c),a&&(j.referrerPolicy=a),Object.entries(d).forEach(([fe,Ue])=>j==null?void 0:j.setAttribute(fe,Ue)),G=!0);const ae={passive:!0};It(j,"error",fe=>I(fe),ae),It(j,"abort",fe=>I(fe),ae),It(j,"load",()=>{j.setAttribute("data-loaded","true"),t(j),O(j)},ae),G&&(j=f.head.appendChild(j)),C||O(j)}),T=(C=!0)=>(x||(x=b(C)),x),w=()=>{if(!f)return;x=null,m.value&&(m.value=null);const C=f.querySelector(`script[src="${Le(e)}"]`);C&&f.head.removeChild(C)};return r&&!i&&gi(T),i||_u(w),{scriptTag:m,load:T,unload:w}}let Pu=0;function Ou(e,t={}){const n=Vt(!1),{document:r=Ll,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++Pu}`}=t,o=Vt(e);let a=()=>{};const c=()=>{if(!r)return;const f=r.getElementById(l)||r.createElement("style");f.isConnected||(f.id=l,t.media&&(f.media=t.media),r.head.appendChild(f)),!n.value&&(a=gt(o,d=>{f.textContent=d},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return i&&!s&&gi(c),s||Cn(u),{id:l,css:o,unload:u,load:c,isLoaded:Nt(n)}}const ju="WALINE_EMOJI",Pl=Qt(ju,{}),zu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Du=e=>{const t=zu(e);if(t){const n=Pl.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then(n=>n.json()).then(n=>{const r={folder:e,...n};return t&&(Pl.value[e]=r),r})},Ol=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Fu=e=>Promise.all(e?e.map(t=>zt(t)?Du(es(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:Ol(l,s,o,a),items:c.map(u=>{const f=`${o}${u}`;return n.map[f]=Ol(u,s,o,a),f})})}),n}),jl=e=>{e.name!=="AbortError"&&console.error(e.message)},mi=e=>e instanceof HTMLElement?e:zt(e)?document.querySelector(e):null,Hu=e=>e.type.includes("image"),zl=e=>{const t=Array.from(e).find(Hu);return t?t.getAsFile():null};function vi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Lt=vi();function Dl(e){Lt=e}const Sn={exec:()=>null};function re(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Re.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}const Re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Uu=/^(?:[ \t]*(?:\n|$))+/,Nu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Bu=/^ {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+|$)/,Vu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bi=/(?:[*+-]|\d{1,9}[.)])/,Fl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Hl=re(Fl).replace(/bull/g,bi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Wu=re(Fl).replace(/bull/g,bi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),yi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,qu=/^[^\n]+/,wi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ku=re(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Gu=re(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bi).getRegex(),br="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",ki=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Zu=re("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ki).replace("tag",br).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ul=re(yi).replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",br).getRegex(),xi={blockquote:re(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ul).getRegex(),code:Nu,def:Ku,fences:Bu,heading:Vu,hr:$n,html:Zu,lheading:Hl,list:Gu,newline:Uu,paragraph:Ul,table:Sn,text:qu},Nl=re("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",br).getRegex(),Yu={...xi,lheading:Wu,table:Nl,paragraph:re(yi).replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",br).getRegex()},Ju={...xi,html:re(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ki).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Sn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:re(yi).replace("hr",$n).replace("heading",` *#{1,6} *[^
27
- ]`).replace("lheading",Hl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Qu=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Xu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bl=/^( {2,}|\\)\n(?!\s*$)/,ef=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yr=/[\p{P}\p{S}]/u,_i=/[\s\p{P}\p{S}]/u,Vl=/[^\s\p{P}\p{S}]/u,tf=re(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_i).getRegex(),Wl=/(?!~)[\p{P}\p{S}]/u,nf=/(?!~)[\s\p{P}\p{S}]/u,rf=/(?:[^\s\p{P}\p{S}]|~)/u,sf=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,ql=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,lf=re(ql,"u").replace(/punct/g,yr).getRegex(),of=re(ql,"u").replace(/punct/g,Wl).getRegex(),Kl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",af=re(Kl,"gu").replace(/notPunctSpace/g,Vl).replace(/punctSpace/g,_i).replace(/punct/g,yr).getRegex(),cf=re(Kl,"gu").replace(/notPunctSpace/g,rf).replace(/punctSpace/g,nf).replace(/punct/g,Wl).getRegex(),uf=re("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Vl).replace(/punctSpace/g,_i).replace(/punct/g,yr).getRegex(),ff=re(/\\(punct)/,"gu").replace(/punct/g,yr).getRegex(),hf=re(/^<(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(),pf=re(ki).replace("(?:-->|$)","-->").getRegex(),df=re("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",pf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,gf=re(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",wr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gl=re(/^!?\[(label)\]\[(ref)\]/).replace("label",wr).replace("ref",wi).getRegex(),Zl=re(/^!?\[(ref)\](?:\[\])?/).replace("ref",wi).getRegex(),mf=re("reflink|nolink(?!\\()","g").replace("reflink",Gl).replace("nolink",Zl).getRegex(),Ci={_backpedal:Sn,anyPunctuation:ff,autolink:hf,blockSkip:sf,br:Bl,code:Xu,del:Sn,emStrongLDelim:lf,emStrongRDelimAst:af,emStrongRDelimUnd:uf,escape:Qu,link:gf,nolink:Zl,punctuation:tf,reflink:Gl,reflinkSearch:mf,tag:df,text:ef,url:Sn},vf={...Ci,link:re(/^!?\[(label)\]\((.*?)\)/).replace("label",wr).getRegex(),reflink:re(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wr).getRegex()},Si={...Ci,emStrongRDelimAst:cf,emStrongLDelim:of,url:re(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},bf={...Si,br:re(Bl).replace("{2,}","*").getRegex(),text:re(Si.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},kr={normal:xi,gfm:Yu,pedantic:Ju},Rn={normal:Ci,gfm:Si,breaks:bf,pedantic:vf},yf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Yl=e=>yf[e];function Xe(e,t){if(t){if(Re.escapeTest.test(e))return e.replace(Re.escapeReplace,Yl)}else if(Re.escapeTestNoEncode.test(e))return e.replace(Re.escapeReplaceNoEncode,Yl);return e}function Jl(e){try{e=encodeURI(e).replace(Re.percentDecode,"%")}catch{return null}return e}function Ql(e,t){var s;const n=e.replace(Re.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Re.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((s=r.at(-1))!=null&&s.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Re.slashPipe,"|");return r}function An(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function wf(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Xl(e,t,n,r,i){const s=t.href,l=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:s,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:l,text:o}}function kf(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const i=r[1];return t.split(`
26
+ **/let ui;const fl=typeof window<"u"&&window.trustedTypes;if(fl)try{ui=fl.createPolicy("vue",{createHTML:e=>e})}catch{}const hl=ui?e=>ui.createHTML(e):e=>e,Fc="http://www.w3.org/2000/svg",Hc="http://www.w3.org/1998/Math/MathML",ot=typeof document<"u"?document:null,pl=ot&&ot.createElement("template"),Uc={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"?ot.createElementNS(Fc,e):t==="mathml"?ot.createElementNS(Hc,e):n?ot.createElement(e,{is:n}):ot.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ot.createTextNode(e),createComment:e=>ot.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ot.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,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{pl.innerHTML=hl(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=pl.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]}},Nc=Symbol("_vtc");function Bc(e,t,n){const r=e[Nc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ur=Symbol("_vod"),dl=Symbol("_vsh"),gl={beforeMount(e,{value:t},{transition:n}){e[ur]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_n(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),_n(e,!0),r.enter(e)):r.leave(e,()=>{_n(e,!1)}):_n(e,t))},beforeUnmount(e,{value:t}){_n(e,t)}};function _n(e,t){e.style.display=t?e[ur]:"none",e[dl]=!t}const Vc=Symbol(""),Wc=/(^|;)\s*display\s*:/;function qc(e,t,n){const r=e.style,i=ye(n);let s=!1;if(n&&!i){if(t)if(ye(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&fr(r,o,"")}else for(const l in t)n[l]==null&&fr(r,l,"");for(const l in n)l==="display"&&(s=!0),fr(r,l,n[l])}else if(i){if(t!==n){const l=r[Vc];l&&(n+=";"+l),r.cssText=n,s=Wc.test(n)}}else t&&e.removeAttribute("style");ur in e&&(e[ur]=s?r.display:"",e[dl]&&(r.display="none"))}const ml=/\s*!important$/;function fr(e,t,n){if(q(n))n.forEach(r=>fr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Kc(e,t);ml.test(n)?e.setProperty(kt(r),n.replace(ml,""),"important"):e[r]=n}}const vl=["Webkit","Moz","ms"],fi={};function Kc(e,t){const n=fi[t];if(n)return n;let r=ze(t);if(r!=="filter"&&r in e)return fi[t]=r;r=Nn(r);for(let i=0;i<vl.length;i++){const s=vl[i]+r;if(s in e)return fi[t]=s}return t}const bl="http://www.w3.org/1999/xlink";function yl(e,t,n,r,i,s=ra(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(bl,t.slice(6,t.length)):e.setAttributeNS(bl,t,n):n==null||s&&!cs(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Ze(n)?String(n):n)}function wl(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?hl(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const o=s==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=cs(n):n==null&&o==="string"?(n="",l=!0):o==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(i||t)}function at(e,t,n,r){e.addEventListener(t,n,r)}function Gc(e,t,n,r){e.removeEventListener(t,n,r)}const kl=Symbol("_vei");function Zc(e,t,n,r,i=null){const s=e[kl]||(e[kl]={}),l=s[t];if(r&&l)l.value=r;else{const[o,a]=Yc(t);if(r){const c=s[t]=Xc(r,i);at(e,o,c,a)}else l&&(Gc(e,o,l,a),s[t]=void 0)}}const xl=/(?:Once|Passive|Capture)$/;function Yc(e){let t;if(xl.test(e)){t={};let r;for(;r=e.match(xl);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):kt(e.slice(2)),t]}let hi=0;const Jc=Promise.resolve(),Qc=()=>hi||(Jc.then(()=>hi=0),hi=Date.now());function Xc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;it(eu(r,n.value),t,5,[r])};return n.value=e,n.attached=Qc(),n}function eu(e,t){if(q(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 _l=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,tu=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Bc(e,r,l):t==="style"?qc(e,n,r):Hn(t)?Mr(t)||Zc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nu(e,t,r,l))?(wl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&yl(e,t,r,l,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ye(r))?wl(e,ze(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yl(e,t,r,l))};function nu(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&_l(t)&&ee(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return _l(t)&&ye(n)?!1:t in e}const vt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return q(t)?n=>Bn(t,n):t};function ru(e){e.target.composing=!0}function Cl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const He=Symbol("_assign"),pi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[He]=vt(i);const s=r||i.props&&i.props.type==="number";at(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Vn(o)),e[He](o)}),n&&at(e,"change",()=>{e.value=e.value.trim()}),t||(at(e,"compositionstart",ru),at(e,"compositionend",Cl),at(e,"change",Cl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[He]=vt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Vn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},iu={deep:!0,created(e,t,n){e[He]=vt(n),at(e,"change",()=>{const r=e._modelValue,i=Yt(e),s=e.checked,l=e[He];if(q(r)){const o=jr(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(Ut(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(Rl(e,s))})},mounted:Sl,beforeUpdate(e,t,n){e[He]=vt(n),Sl(e,t,n)}};function Sl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(q(t))i=jr(t,r.props.value)>-1;else if(Ut(t))i=t.has(r.props.value);else{if(t===n)return;i=xt(t,Rl(e,!0))}e.checked!==i&&(e.checked=i)}const su={created(e,{value:t},n){e.checked=xt(t,n.props.value),e[He]=vt(n),at(e,"change",()=>{e[He](Yt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[He]=vt(r),t!==n&&(e.checked=xt(t,r.props.value))}},lu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Ut(t);at(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Vn(Yt(l)):Yt(l));e[He](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Kt(()=>{e._assigning=!1})}),e[He]=vt(r)},mounted(e,{value:t}){$l(e,t)},beforeUpdate(e,t,n){e[He]=vt(n)},updated(e,{value:t}){e._assigning||$l(e,t)}};function $l(e,t){const n=e.multiple,r=q(t);if(!(n&&!r&&!Ut(t))){for(let i=0,s=e.options.length;i<s;i++){const l=e.options[i],o=Yt(l);if(n)if(r){const a=typeof o;a==="string"||a==="number"?l.selected=t.some(c=>String(c)===String(o)):l.selected=jr(t,o)>-1}else l.selected=t.has(o);else if(xt(Yt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Yt(e){return"_value"in e?e._value:e.value}function Rl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ou={created(e,t,n){hr(e,t,n,null,"created")},mounted(e,t,n){hr(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){hr(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){hr(e,t,n,r,"updated")}};function au(e,t){switch(e){case"SELECT":return lu;case"TEXTAREA":return pi;default:switch(t){case"checkbox":return iu;case"radio":return su;default:return pi}}}function hr(e,t,n,r,i){const l=au(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const cu=je({patchProp:tu},Uc);let Al;function uu(){return Al||(Al=fc(cu))}const fu=(...e)=>{const t=uu().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=pu(r);if(!i)return;const s=t._component;!ee(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,hu(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function hu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pu(e){return ye(e)?document.querySelector(e):e}function Cn(e){return hs()?(la(e),!0):!1}const pr=typeof window<"u"&&typeof document<"u",du=e=>typeof e<"u",gu=Object.prototype.toString,mu=e=>gu.call(e)==="[object Object]",dr=()=>{};function vu(...e){if(e.length!==1)return Pa(...e);const t=e[0];return typeof t=="function"?Bt(Ia(()=>({get:t,set:dr}))):ie(t)}function El(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 Tl=e=>e();function bu(e,t={}){let n,r,i=dr;const s=a=>{clearTimeout(a),i(),i=dr};let l;return a=>{const c=Le(e),u=Le(t.maxWait);return n&&s(n),c<=0||u!==void 0&&u<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((f,d)=>{i=t.rejectOnCancel?d:f,l=a,u&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,f(l())},u)),n=setTimeout(()=>{r&&s(r),r=null,f(a())},c)})}}function yu(e=Tl,t={}){const{initialState:n="active"}=t,r=vu(n==="active");function i(){r.value=!1}function s(){r.value=!0}const l=(...o)=>{r.value&&e(...o)};return{isActive:Bt(r),pause:i,resume:s,eventFilter:l}}function di(e){return Array.isArray(e)?e:[e]}function Il(e){return sl()}function wu(e,t=200,n={}){return El(bu(t,n),e)}function ku(e,t,n={}){const{eventFilter:r=Tl,...i}=n;return gt(e,El(r,t),i)}function xu(e,t,n={}){const{eventFilter:r,initialState:i="active",...s}=n,{eventFilter:l,pause:o,resume:a,isActive:c}=yu(r,{initialState:i});return{stop:ku(e,t,{...s,eventFilter:l}),pause:o,resume:a,isActive:c}}function gi(e,t=!0,n){Il()?vn(e,n):t?e():Kt(e)}function _u(e,t){Il()&&ei(e,t)}function Cu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=Rt(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function c(){const u=Le(t);u<=0||(l.value=!0,i&&e(),o(),l.value&&(s=setInterval(e,u)))}if(r&&pr&&c(),be(t)||typeof t=="function"){const u=gt(t,()=>{l.value&&pr&&c()});Cn(u)}return Cn(a),{isActive:l,pause:a,resume:c}}function Jt(e,t,n){return gt(e,t,{...n,immediate:!0})}const gr=pr?window:void 0,Ll=pr?window.document:void 0;function Su(e){var t;const n=Le(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Lt(...e){const t=[],n=()=>{t.forEach(o=>o()),t.length=0},r=(o,a,c,u)=>(o.addEventListener(a,c,u),()=>o.removeEventListener(a,c,u)),i=me(()=>{const o=di(Le(e[0])).filter(a=>a!=null);return o.every(a=>typeof a!="string")?o:void 0}),s=Jt(()=>{var o,a;return[(a=(o=i.value)==null?void 0:o.map(c=>Su(c)))!=null?a:[gr].filter(c=>c!=null),di(Le(i.value?e[1]:e[0])),di(K(i.value?e[2]:e[1])),Le(i.value?e[3]:e[2])]},([o,a,c,u])=>{if(n(),!(o!=null&&o.length)||!(a!=null&&a.length)||!(c!=null&&c.length))return;const f=mu(u)?{...u}:u;t.push(...o.flatMap(d=>a.flatMap(m=>c.map(x=>r(d,m,x,f)))))},{flush:"post"}),l=()=>{s(),n()};return Cn(n),l}function $u(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=gr,once:s=!1}=t,l=Rt(!1),o=me(()=>r?1e3/Le(r):null);let a=0,c=null;function u(m){if(!l.value||!i)return;a||(a=m);const x=m-a;if(o.value&&x<o.value){c=i.requestAnimationFrame(u);return}if(a=m,e({delta:x,timestamp:m}),s){l.value=!1,c=null;return}c=i.requestAnimationFrame(u)}function f(){!l.value&&i&&(l.value=!0,a=0,c=i.requestAnimationFrame(u))}function d(){l.value=!1,c!=null&&i&&(i.cancelAnimationFrame(c),c=null)}return n&&f(),Cn(d),{isActive:Bt(l),pause:d,resume:f}}const mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vr="__vueuse_ssr_handlers__",Ru=Au();function Au(){return vr in mr||(mr[vr]=mr[vr]||{}),mr[vr]}function Eu(e,t){return Ru[e]||t}function Tu(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Iu={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ml="vueuse-storage";function Qt(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:f=gr,eventFilter:d,onError:m=E=>{console.error(E)},initOnMounted:x}=r,b=(u?Rt:ie)(typeof t=="function"?t():t),T=me(()=>Le(e));if(!n)try{n=Eu("getDefaultStorage",()=>{var E;return(E=gr)==null?void 0:E.localStorage})()}catch(E){m(E)}if(!n)return b;const w=Le(t),C=Tu(w),N=(i=r.serializer)!=null?i:Iu[C],{pause:I,resume:O}=xu(b,()=>j(b.value),{flush:s,deep:l,eventFilter:d});gt(T,()=>fe(),{flush:s}),f&&o&&gi(()=>{n instanceof Storage?Lt(f,"storage",fe,{passive:!0}):Lt(f,Ml,Ue),x&&fe()}),x||fe();function G(E,B){if(f){const F={key:T.value,oldValue:E,newValue:B,storageArea:n};f.dispatchEvent(n instanceof Storage?new StorageEvent("storage",F):new CustomEvent(Ml,{detail:F}))}}function j(E){try{const B=n.getItem(T.value);if(E==null)G(B,null),n.removeItem(T.value);else{const F=N.write(E);B!==F&&(n.setItem(T.value,F),G(B,F))}}catch(B){m(B)}}function ae(E){const B=E?E.newValue:n.getItem(T.value);if(B==null)return a&&w!=null&&n.setItem(T.value,N.write(w)),w;if(!E&&c){const F=N.read(B);return typeof c=="function"?c(F,w):C==="object"&&!Array.isArray(F)?{...w,...F}:F}else return typeof B!="string"?B:N.read(B)}function fe(E){if(!(E&&E.storageArea!==n)){if(E&&E.key==null){b.value=w;return}if(!(E&&E.key!==T.value)){I();try{(E==null?void 0:E.newValue)!==N.write(b.value)&&(b.value=ae(E))}catch(B){m(B)}finally{E?Kt(O):O()}}}}function Ue(E){fe(E.detail)}return b}function Lu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=ie(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?$u(i,{immediate:!0}):Cu(i,n,{immediate:!0});return t?{now:r,...s}:r}function Mu(e,t=dr,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:f=Ll,attrs:d={}}=n,m=Rt(null);let x=null;const b=C=>new Promise((N,I)=>{const O=fe=>(m.value=fe,N(fe),fe);if(!f){N(!1);return}let G=!1,j=f.querySelector(`script[src="${Le(e)}"]`);j?j.hasAttribute("data-loaded")&&O(j):(j=f.createElement("script"),j.type=s,j.async=l,j.src=Le(e),u&&(j.defer=u),o&&(j.crossOrigin=o),c&&(j.noModule=c),a&&(j.referrerPolicy=a),Object.entries(d).forEach(([fe,Ue])=>j==null?void 0:j.setAttribute(fe,Ue)),G=!0);const ae={passive:!0};Lt(j,"error",fe=>I(fe),ae),Lt(j,"abort",fe=>I(fe),ae),Lt(j,"load",()=>{j.setAttribute("data-loaded","true"),t(j),O(j)},ae),G&&(j=f.head.appendChild(j)),C||O(j)}),T=(C=!0)=>(x||(x=b(C)),x),w=()=>{if(!f)return;x=null,m.value&&(m.value=null);const C=f.querySelector(`script[src="${Le(e)}"]`);C&&f.head.removeChild(C)};return r&&!i&&gi(T),i||_u(w),{scriptTag:m,load:T,unload:w}}let Pu=0;function Ou(e,t={}){const n=Rt(!1),{document:r=Ll,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++Pu}`}=t,o=Rt(e);let a=()=>{};const c=()=>{if(!r)return;const f=r.getElementById(l)||r.createElement("style");f.isConnected||(f.id=l,t.media&&(f.media=t.media),r.head.appendChild(f)),!n.value&&(a=gt(o,d=>{f.textContent=d},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return i&&!s&&gi(c),s||Cn(u),{id:l,css:o,unload:u,load:c,isLoaded:Bt(n)}}const ju="WALINE_EMOJI",Pl=Qt(ju,{}),zu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),Du=e=>{const t=zu(e);if(t){const n=Pl.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then(n=>n.json()).then(n=>{const r={folder:e,...n};return t&&(Pl.value[e]=r),r})},Ol=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,Fu=e=>Promise.all(e?e.map(t=>Dt(t)?Du(es(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:Ol(l,s,o,a),items:c.map(u=>{const f=`${o}${u}`;return n.map[f]=Ol(u,s,o,a),f})})}),n}),jl=e=>{e.name!=="AbortError"&&console.error(e.message)},mi=e=>e instanceof HTMLElement?e:Dt(e)?document.querySelector(e):null,Hu=e=>e.type.includes("image"),zl=e=>{const t=Array.from(e).find(Hu);return t?t.getAsFile():null};function vi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Mt=vi();function Dl(e){Mt=e}const Sn={exec:()=>null};function ne(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Re.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}const Re={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Uu=/^(?:[ \t]*(?:\n|$))+/,Nu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Bu=/^ {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+|$)/,Vu=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,bi=/(?:[*+-]|\d{1,9}[.)])/,Fl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Hl=ne(Fl).replace(/bull/g,bi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Wu=ne(Fl).replace(/bull/g,bi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),yi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,qu=/^[^\n]+/,wi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ku=ne(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Gu=ne(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,bi).getRegex(),br="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",ki=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Zu=ne("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ki).replace("tag",br).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ul=ne(yi).replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",br).getRegex(),xi={blockquote:ne(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ul).getRegex(),code:Nu,def:Ku,fences:Bu,heading:Vu,hr:$n,html:Zu,lheading:Hl,list:Gu,newline:Uu,paragraph:Ul,table:Sn,text:qu},Nl=ne("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",br).getRegex(),Yu={...xi,lheading:Wu,table:Nl,paragraph:ne(yi).replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Nl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",br).getRegex()},Ju={...xi,html:ne(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ki).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Sn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ne(yi).replace("hr",$n).replace("heading",` *#{1,6} *[^
27
+ ]`).replace("lheading",Hl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Qu=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Xu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Bl=/^( {2,}|\\)\n(?!\s*$)/,ef=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yr=/[\p{P}\p{S}]/u,_i=/[\s\p{P}\p{S}]/u,Vl=/[^\s\p{P}\p{S}]/u,tf=ne(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,_i).getRegex(),Wl=/(?!~)[\p{P}\p{S}]/u,nf=/(?!~)[\s\p{P}\p{S}]/u,rf=/(?:[^\s\p{P}\p{S}]|~)/u,sf=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,ql=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,lf=ne(ql,"u").replace(/punct/g,yr).getRegex(),of=ne(ql,"u").replace(/punct/g,Wl).getRegex(),Kl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",af=ne(Kl,"gu").replace(/notPunctSpace/g,Vl).replace(/punctSpace/g,_i).replace(/punct/g,yr).getRegex(),cf=ne(Kl,"gu").replace(/notPunctSpace/g,rf).replace(/punctSpace/g,nf).replace(/punct/g,Wl).getRegex(),uf=ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Vl).replace(/punctSpace/g,_i).replace(/punct/g,yr).getRegex(),ff=ne(/\\(punct)/,"gu").replace(/punct/g,yr).getRegex(),hf=ne(/^<(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(),pf=ne(ki).replace("(?:-->|$)","-->").getRegex(),df=ne("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",pf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),wr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,gf=ne(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",wr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gl=ne(/^!?\[(label)\]\[(ref)\]/).replace("label",wr).replace("ref",wi).getRegex(),Zl=ne(/^!?\[(ref)\](?:\[\])?/).replace("ref",wi).getRegex(),mf=ne("reflink|nolink(?!\\()","g").replace("reflink",Gl).replace("nolink",Zl).getRegex(),Ci={_backpedal:Sn,anyPunctuation:ff,autolink:hf,blockSkip:sf,br:Bl,code:Xu,del:Sn,emStrongLDelim:lf,emStrongRDelimAst:af,emStrongRDelimUnd:uf,escape:Qu,link:gf,nolink:Zl,punctuation:tf,reflink:Gl,reflinkSearch:mf,tag:df,text:ef,url:Sn},vf={...Ci,link:ne(/^!?\[(label)\]\((.*?)\)/).replace("label",wr).getRegex(),reflink:ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",wr).getRegex()},Si={...Ci,emStrongRDelimAst:cf,emStrongLDelim:of,url:ne(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},bf={...Si,br:ne(Bl).replace("{2,}","*").getRegex(),text:ne(Si.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},kr={normal:xi,gfm:Yu,pedantic:Ju},Rn={normal:Ci,gfm:Si,breaks:bf,pedantic:vf},yf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Yl=e=>yf[e];function Xe(e,t){if(t){if(Re.escapeTest.test(e))return e.replace(Re.escapeReplace,Yl)}else if(Re.escapeTestNoEncode.test(e))return e.replace(Re.escapeReplaceNoEncode,Yl);return e}function Jl(e){try{e=encodeURI(e).replace(Re.percentDecode,"%")}catch{return null}return e}function Ql(e,t){var s;const n=e.replace(Re.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Re.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((s=r.at(-1))!=null&&s.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(Re.slashPipe,"|");return r}function An(e,t,n){const r=e.length;if(r===0)return"";let i=0;for(;i<r&&e.charAt(r-i-1)===t;)i++;return e.slice(0,r-i)}function wf(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return-1}function Xl(e,t,n,r,i){const s=t.href,l=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");if(e[0].charAt(0)!=="!"){r.state.inLink=!0;const a={type:"link",raw:n,href:s,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:l,text:o}}function kf(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const i=r[1];return t.split(`
28
28
  `).map(s=>{const l=s.match(n.other.beginningSpace);if(l===null)return s;const[o]=l;return o.length>=i.length?s.slice(i.length):s}).join(`
29
- `)}class xr{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:An(r,`
29
+ `)}class xr{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:An(r,`
30
30
  `)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=kf(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const i=An(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:An(n[0],`
31
31
  `)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=An(n[0],`
32
32
  `).split(`
@@ -48,7 +48,7 @@ ${f}`:f;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.block
48
48
  `+m}!x&&!m.trim()&&(x=!0),u+=j+`
49
49
  `,t=t.substring(j.length+1),d=ae.slice(b)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let T=null,w;this.options.gfm&&(T=this.rules.other.listIsTask.exec(f),T&&(w=T[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!T,checked:w,loose:!1,text:f,tokens:[]}),s.raw+=u}const a=s.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let c=0;c<s.items.length;c++)if(this.lexer.state.top=!1,s.items[c].tokens=this.lexer.blockTokens(s.items[c].text,[]),!s.loose){const u=s.items[c].tokens.filter(d=>d.type==="space"),f=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));s.loose=f}if(s.loose)for(let c=0;c<s.items.length;c++)s.items[c].loose=!0;return s}}html(t){const n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){const n=this.rules.block.def.exec(t);if(n){const r=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(t){var o;const n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;const r=Ql(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(o=n[3])!=null&&o.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
50
50
  `):[],l={type:"table",raw:n[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const a of i)this.rules.other.tableAlignRight.test(a)?l.align.push("right"):this.rules.other.tableAlignCenter.test(a)?l.align.push("center"):this.rules.other.tableAlignLeft.test(a)?l.align.push("left"):l.align.push(null);for(let a=0;a<r.length;a++)l.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:l.align[a]});for(const a of s)l.rows.push(Ql(a,l.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===`
51
- `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=An(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=wf(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)),Xl(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 Xl(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 f=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+l);(i=f.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,m=t.slice(0,l+i.index+d+a);if(Math.min(l,a)%2){const b=m.slice(1,-1);return{type:"em",raw:m,text:b,tokens:this.lexer.inlineTokens(b)}}const x=m.slice(2,-2);return{type:"strong",raw:m,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 We{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 xr,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:kr.normal,inline:Rn.normal};this.options.pedantic?(n.block=kr.pedantic,n.inline=Rn.pedantic):this.options.gfm&&(n.block=kr.gfm,this.options.breaks?n.inline=Rn.breaks:n.inline=Rn.gfm),this.tokenizer.rules=n}static get rules(){return{block:kr,inline:Rn}}static lex(t,n){return new We(n).lex(t)}static lexInline(t,n){return new We(n).inlineTokens(t)}lex(t){t=t.replace(Re.carriageReturn,`
51
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=An(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=wf(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)),Xl(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 Xl(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 f=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+l);(i=f.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,m=t.slice(0,l+i.index+d+a);if(Math.min(l,a)%2){const b=m.slice(1,-1);return{type:"em",raw:m,text:b,tokens:this.lexer.inlineTokens(b)}}const x=m.slice(2,-2);return{type:"strong",raw:m,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 We{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 xr,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:kr.normal,inline:Rn.normal};this.options.pedantic?(n.block=kr.pedantic,n.inline=Rn.pedantic):this.options.gfm&&(n.block=kr.gfm,this.options.breaks?n.inline=Rn.breaks:n.inline=Rn.gfm),this.tokenizer.rules=n}static get rules(){return{block:kr,inline:Rn}}static lex(t,n){return new We(n).lex(t)}static lexInline(t,n){return new We(n).inlineTokens(t)}lex(t){t=t.replace(Re.carriageReturn,`
52
52
  `),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){const r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var i,s,l;for(this.options.pedantic&&(t=t.replace(Re.tabCharGlobal," ").replace(Re.spaceLine,""));t;){let o;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(c=>(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);const c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
53
53
  `:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
54
54
  `+o.raw,c.text+=`
@@ -58,7 +58,7 @@ ${f}`:f;const d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.block
58
58
  `+o.raw,c.text+=`
59
59
  `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o),r=a.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
60
60
  `+o.raw,c.text+=`
61
- `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,a,c;let r=t,i=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s=!1,l="";for(;t;){s||(l=""),s=!1;let u;if((a=(o=this.options.extensions)==null?void 0:o.inline)!=null&&a.some(d=>(u=d.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const d=n.at(-1);u.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,l)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let f=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0;const m=t.slice(1);let x;this.options.extensions.startInline.forEach(b=>{x=b.call({lexer:this},m),typeof x=="number"&&x>=0&&(d=Math.min(d,x))}),d<1/0&&d>=0&&(f=t.substring(0,d+1))}if(u=this.tokenizer.inlineText(f)){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 _r{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,"")+`
61
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,a,c;let r=t,i=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s=!1,l="";for(;t;){s||(l=""),s=!1;let u;if((a=(o=this.options.extensions)==null?void 0:o.inline)!=null&&a.some(d=>(u=d.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const d=n.at(-1);u.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,l)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let f=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0;const m=t.slice(1);let x;this.options.extensions.startInline.forEach(b=>{x=b.call({lexer:this},m),typeof x=="number"&&x>=0&&(d=Math.min(d,x))}),d<1/0&&d>=0&&(f=t.substring(0,d+1))}if(u=this.tokenizer.inlineText(f)){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 _r{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(Re.notSpaceStart))==null?void 0:l[0],s=t.replace(Re.endingNewline,"")+`
62
62
  `;return i?'<pre><code class="language-'+Xe(i)+'">'+(r?s:Xe(s,!0))+`</code></pre>
63
63
  `:"<pre><code>"+(r?s:Xe(s,!0))+`</code></pre>
64
64
  `}blockquote({tokens:t}){return`<blockquote>
@@ -76,9 +76,9 @@ ${this.parser.parse(t)}</blockquote>
76
76
  `}tablerow({text:t}){return`<tr>
77
77
  ${t}</tr>
78
78
  `}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+`</${r}>
79
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Xe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=Jl(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return n&&(l+=' title="'+Xe(n)+'"'),l+=">"+i+"</a>",l}image({href:t,title:n,text:r}){const i=Jl(t);if(i===null)return Xe(r);t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${Xe(n)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Xe(t.text)}}class $i{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class qe{options;renderer;textRenderer;constructor(t){this.options=t||Lt,this.options.renderer=this.options.renderer||new _r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $i}static parse(t,n){return new qe(n).parse(t)}static parseInline(t,n){return new qe(n).parseInline(t)}parse(t,n=!0){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=o,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){r+=u||"";continue}}const a=o;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let c=a,u=this.renderer.text(c);for(;l+1<t.length&&t[l+1].type==="text";)c=t[++l],u+=`
80
- `+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):r+=u;continue}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=c||"";continue}}const a=o;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}}class En{options;block;constructor(t){this.options=t||Lt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?We.lex:We.lexInline}provideParser(){return this.block?qe.parse:qe.parseInline}}Co(En,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class eo{defaults=vi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=qe;Renderer=_r;TextRenderer=$i;Lexer=We;Tokenizer=xr;Hooks=En;constructor(...t){this.use(...t)}walkTokens(t,n){var i,s;let r=[];for(const l of t)switch(r=r.concat(n.call(this,l)),l.type){case"table":{const o=l;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,n));break}case"list":{const o=l;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const c=o[a].flat(1/0);r=r.concat(this.walkTokens(c,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const l=n.renderers[s.name];l?n.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[s.level];l?l.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new _r(this.defaults);for(const l in r.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],c=s[o];s[o]=(...u)=>{let f=a.apply(s,u);return f===!1&&(f=c.apply(s,u)),f||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new xr(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 f=a.apply(s,u);return f===!1&&(f=c.apply(s,u)),f}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new En;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];En.passThroughHooks.has(l)?s[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(s,u)).then(d=>c.call(s,d));const f=a.call(s,u);return c.call(s,f)}:s[o]=(...u)=>{let f=a.apply(s,u);return f===!1&&(f=c.apply(s,u)),f}}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 We.lex(t,n??this.defaults)}parser(t,n){return qe.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?We.lex:We.lexInline,c=l.hooks?l.hooks.provideParser():t?qe.parse:qe.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 f=c(u,l);return l.hooks&&(f=l.hooks.postprocess(f)),f}catch(u){return o(u)}}}onError(t,n){return r=>{if(r.message+=`
81
- Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Xe(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const Mt=new eo;function de(e,t){return Mt.parse(e,t)}de.options=de.setOptions=function(e){return Mt.setOptions(e),de.defaults=Mt.defaults,Dl(de.defaults),de},de.getDefaults=vi,de.defaults=Lt,de.use=function(...e){return Mt.use(...e),de.defaults=Mt.defaults,Dl(de.defaults),de},de.walkTokens=function(e,t){return Mt.walkTokens(e,t)},de.parseInline=Mt.parseInline,de.Parser=qe,de.parser=qe.parse,de.Renderer=_r,de.TextRenderer=$i,de.Lexer=We,de.lexer=We.lex,de.Tokenizer=xr,de.Hooks=En,de.parse=de;function xf(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=to(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(no(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.");no(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=to(n),s=i?e.langPrefix+lo(i):e.emptyLangClass,l=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:lo(t,!0)}
82
- </code></pre>`}}}}function to(e){return(e||"").match(/\S*/)[0]}function no(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const ro=/[&<>"']/,_f=new RegExp(ro.source,"g"),io=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Cf=new RegExp(io.source,"g"),Sf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},so=e=>Sf[e];function lo(e,t){if(t){if(ro.test(e))return e.replace(_f,so)}else if(io.test(e))return e.replace(Cf,so);return e}const $f=/\$.*?\$/,Rf=/^\$(.*?)\$/,Af=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Ef=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Af.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($f);return n!==-1?n:t.length},tokenizer(t){const n=Rf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],oo=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),Tf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new eo;if(i.setOptions({breaks:!0}),n&&i.use(xf({highlight:n})),r){const s=Ef(r);i.use({extensions:s})}return i.parse(oo(e,t))},Ri=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},If=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Lf=e=>e.match(/[\u4E00-\u9FD5]/gu),Mf=e=>{var t,n;return(((t=If(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=Lf(e))==null?void 0:n.length)??0)},Pf=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},ao=({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&&Mi({serverURL:Fn(e),paths:Array.from(s).map(l=>Xi(Ri(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(jl),i.abort.bind(i)},co=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),ne("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),Of=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),jf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),zf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),ne("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),Df=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),Ff=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),ne("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),Hf=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),Uf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),Nf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),Bf=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),Tn=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Vf=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ne("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Wf=()=>Qt("WALINE_USER_META",{nick:"",mail:"",link:""}),qf=()=>Qt("WALINE_COMMENT_BOX_EDITOR",""),Kf="WALINE_LIKE",Gf=Qt(Kf,[]),uo=()=>Gf,Zf="WALINE_REACTION",Yf=Qt(Zf,{}),Jf=()=>Yf;var Ai={},ct={},ut={},fo;function ho(){if(fo)return ut;fo=1;var e=ut&&ut.__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(m){try{d(l.next(m))}catch(x){c(x)}}function f(m){try{d(l.throw(m))}catch(x){c(x)}}function d(m){m.done?a(m.value):o(m.value).then(u,f)}d((l=l.apply(r,i||[])).next())})},t=ut&&ut.__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(m){return f([d,m])}}function f(d){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(s=0)),s;)try{if(l=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,o=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=i.call(r,s)}catch(m){d=[6,m],o=0}finally{l=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}};Object.defineProperty(ut,"__esModule",{value:!0}),ut.ReCaptchaInstance=void 0;var n=function(){function r(i,s,l){this.siteKey=i,this.recaptchaID=s,this.recaptcha=l,this.styleContainer=null}return r.prototype.execute=function(i){return e(this,void 0,void 0,function(){var s;return t(this,function(l){switch(l.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:i})]:[3,2];case 1:return s=l.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:i})];case 3:s=l.sent(),l.label=4;case 4:return[2,s]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r}();return ut.ReCaptchaInstance=n,ut}var po;function Qf(){if(po)return ct;po=1;var e=ct&&ct.__assign||function(){return e=Object.assign||function(i){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(i[a]=s[a])}return i},e.apply(this,arguments)};Object.defineProperty(ct,"__esModule",{value:!0}),ct.getInstance=ct.load=void 0;var t=ho(),n;(function(i){i[i.NOT_LOADED=0]="NOT_LOADED",i[i.LOADING=1]="LOADING",i[i.LOADED=2]="LOADED"})(n||(n={}));var r=function(){function i(){}return i.load=function(s,l){if(l===void 0&&(l={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(i.getLoadingState()===n.LOADED)return i.instance.getSiteKey()===s?Promise.resolve(i.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(i.getLoadingState()===n.LOADING)return s!==i.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){i.successfulLoadingConsumers.push(function(u){return a(u)}),i.errorLoadingRunnable.push(function(u){return c(u)})});i.instanceSiteKey=s,i.setLoadingState(n.LOADING);var o=new i;return new Promise(function(a,c){o.loadScript(s,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){i.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,s,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),f=new t.ReCaptchaInstance(s,u,grecaptcha);i.successfulLoadingConsumers.forEach(function(d){return d(f)}),i.successfulLoadingConsumers=[],l.autoHideBadge&&f.hideBadge(),i.instance=f,a(f)}).catch(function(u){i.errorLoadingRunnable.forEach(function(f){return f(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 f=document.createElement("script");f.setAttribute("recaptcha-v3-script",""),f.setAttribute("async",""),f.setAttribute("defer","");var d="https://www.google.com/recaptcha/api.js";l?o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":o&&(d="https://www.google.com/recaptcha/enterprise.js"),c&&(d=c),a.render&&(a.render=void 0);var m=this.buildQueryString(a);return f.src=d+"?render=explicit"+m,new Promise(function(x,b){f.addEventListener("load",u.waitForScriptToLoad(function(){x(f)},o),!1),f.onerror=function(T){i.setLoadingState(n.NOT_LOADED),b(T)},document.head.appendChild(f)})},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 ct.load=r.load,ct.getInstance=r.getInstance,ct}var go;function Xf(){return go||(go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Qf();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=ho();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(Ai)),Ai}var eh=Xf();const mo={},th=e=>{const t=mo[e]??(mo[e]=eh.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},nh=e=>({execute:async t=>{const{load:n}=Mu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),rh=Qt("WALINE_USER",{}),Cr=()=>rh,ih={key:0,class:"wl-reaction"},sh=["textContent"],lh={class:"wl-reaction-list"},oh=["onClick"],ah={class:"wl-reaction-img"},ch=["src","alt"],uh=["textContent"],fh=["textContent"];var hh=gn({__name:"ArticleReaction",setup(e){const t=Jf(),n=rr(Dn),r=te(-1),i=te([]),s=me(()=>n.value.locale),l=me(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),o=me(()=>{var f;const{path:d}=n.value;return((f=l.value)==null?void 0:f.map((m,x)=>({icon:m,desc:s.value[`reaction${x}`],active:t.value[d]===x})))??null});let a;const c=async()=>{const{serverURL:f,lang:d,path:m}=n.value;if(!l.value)return;const x=new AbortController;a=x.abort.bind(x);const[b]=await Ar({serverURL:f,lang:d,paths:[m],type:l.value.map((T,w)=>`reaction${w}`),signal:x.signal});i.value=l.value.map((T,w)=>b[`reaction${w}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:d,lang:m,path:x}=n.value,b=t.value[x];r.value=f,b!==void 0&&(await jn({serverURL:d,lang:m,path:x,type:`reaction${b}`,action:"desc"}),i.value[b]=Math.max(i.value[b]-1,0)),b!==f&&(await jn({serverURL:d,lang:m,path:x,type:`reaction${f}`}),i.value[f]=(i.value[f]||0)+1),b===f?delete t.value[x]:t.value[x]=f,r.value=-1};return vn(()=>{Jt(()=>[n.value.serverURL,n.value.path],()=>c())}),ei(()=>{a==null||a()}),(f,d)=>o.value?(L(),P("div",ih,[D("div",{class:"wl-reaction-title",textContent:J(s.value.reactionTitle)},null,8,sh),D("ul",lh,[(L(!0),P(ue,null,Fe(o.value,({active:m,icon:x,desc:b},T)=>(L(),P("li",{key:T,class:ve(["wl-reaction-item",{active:m}]),onClick:w=>u(T)},[D("div",ah,[D("img",{src:x,alt:b},null,8,ch),r.value===T?(L(),st(K(Tn),{key:0,class:"wl-reaction-loading"})):(L(),P("div",{key:1,class:"wl-reaction-votes",textContent:J(i.value[T]||0)},null,8,uh))]),D("div",{class:"wl-reaction-text",textContent:J(b)},null,8,fh)],10,oh))),128))])])):Y("v-if",!0)}}),In=new Map;function ph(e){var t=In.get(e);t&&t.destroy()}function dh(e){var t=In.get(e);t&&t.update()}var Ln=null;typeof window>"u"?((Ln=function(e){return e}).destroy=function(e){return e},Ln.update=function(e){return e}):((Ln=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"&&!In.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(f){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(f).forEach(function(d){return r.style[d]=f[d]}),In.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",In.set(r,{destroy:a,update:u}),u()}function c(f){var d,m,x=f.restoreTextAlign,b=x===void 0?null:x,T=f.testForHeightReduction,w=T===void 0||T,C=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),w&&(d=function(I){for(var O=[];I&&I.parentNode&&I.parentNode instanceof Element;)I.parentNode.scrollTop&&O.push([I.parentNode,I.parentNode.scrollTop]),I=I.parentNode;return function(){return O.forEach(function(G){var j=G[0],ae=G[1];j.style.scrollBehavior="auto",j.scrollTop=ae,j.style.scrollBehavior=null})}}(r),r.style.height=""),m=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=m+"px",b&&(r.style.textAlign=b),d&&d(),s!==m&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=m),C!==l.overflow&&!b)){var N=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=N==="start"?"end":"start"),c({restoreTextAlign:N,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ph),e},Ln.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],dh),e});var vo=Ln;const gh=["data-index"],mh=["src","title","onClick"];var vh=gn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){const t=e;let n=null;const r=dt("wall"),i=te({}),s=te([]),l=()=>{const f=Math.floor((r.value.getBoundingClientRect().width+t.gap)/(t.columnWidth+t.gap));return f>0?f:1},o=f=>new Array(f).fill(null).map(()=>[]),a=async f=>{var d;if(f>=t.items.length)return;await Kt();const m=Array.from(((d=r.value)==null?void 0:d.children)??[]).reduce((x,b)=>b.getBoundingClientRect().height<x.getBoundingClientRect().height?b:x);s.value[Number(m.dataset.index)].push(f),await a(f+1)},c=async(f=!1)=>{if(s.value.length===l()&&!f)return;s.value=o(l());const d=window.scrollY;await a(0),window.scrollTo({top:d})},u=f=>{i.value[f.target.src]=!0};return vn(()=>{c(!0),n=new ResizeObserver(()=>{c()}),n.observe(r.value),gt(()=>[t.items],()=>{i.value={},c(!0)}),gt(()=>[t.columnWidth,t.gap],()=>{c()})}),Za(()=>{n.unobserve(r.value)}),(f,d)=>(L(),P("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:ln({gap:`${f.gap}px`})},[(L(!0),P(ue,null,Fe(s.value,(m,x)=>(L(),P("div",{key:x,class:"wl-gallery-column","data-index":x,style:ln({gap:`${f.gap}px`})},[(L(!0),P(ue,null,Fe(m,b=>(L(),P(ue,{key:b},[i.value[f.items[b].src]?Y("v-if",!0):(L(),st(K(Tn),{key:0,size:36,style:{margin:"20px auto"}})),D("img",{class:"wl-gallery-item",src:f.items[b].src,title:f.items[b].title,loading:"lazy",onLoad:u,onClick:T=>f.$emit("insert",`![](${f.items[b].src})`)},null,40,mh)],64))),128))],12,gh))),128))],4))}});const bh={key:0,class:"wl-login-info"},yh={class:"wl-avatar"},wh=["title"],kh=["title"],xh=["src"],_h=["title","textContent"],Ch={class:"wl-panel"},Sh=["for","textContent"],$h=["id","onUpdate:modelValue","name","type"],Rh=["placeholder"],Ah={class:"wl-preview"},Eh=["innerHTML"],Th={class:"wl-footer"},Ih={class:"wl-actions"},Lh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Mh=["title"],Ph=["title"],Oh=["title","aria-label"],jh=["title"],zh={class:"wl-info"},Dh={class:"wl-text-number"},Fh={key:0},Hh=["textContent"],Uh=["textContent"],Nh=["disabled"],Bh=["placeholder"],Vh={key:1,class:"wl-loading"},Wh={key:0,class:"wl-tab-wrapper"},qh=["title","onClick"],Kh=["src","alt"],Gh={key:0,class:"wl-tabs"},Zh=["onClick"],Yh=["src","alt","title"],Jh=["title"];var bo=gn({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,i=rr(Dn),s=qf(),l=Wf(),o=Cr(),a=te({}),c=dt("textarea"),u=dt("image-uploader"),f=dt("emoji-button"),d=dt("emoji-popup"),m=dt("gif-button"),x=dt("gif-popup"),b=dt("gif-search"),T=te({tabs:[],map:{}}),w=te(0),C=te(!1),N=te(!1),I=te(!1),O=te(""),G=te(0),j=hn({loading:!0,list:[]}),ae=te(0),fe=te(!1),Ue=te(""),E=te(!1),B=te(!1),F=me(()=>i.value.locale),ge=me(()=>!!o.value.token),ke=me(()=>du(i.value.imageUploader)),we=z=>{const R=c.value,W=R.selectionStart,h=R.selectionEnd||0,p=R.scrollTop;s.value=R.value.substring(0,W)+z+R.value.substring(h,R.value.length),R.focus(),R.selectionStart=W+z.length,R.selectionEnd=W+z.length,R.scrollTop=p},ft=({key:z,ctrlKey:R,metaKey:W})=>{E.value||(R||W)&&z==="Enter"&&Ke()},bt=async z=>{const R=`![${i.value.locale.uploading} ${z.name}]()`;we(R),E.value=!0;try{const W=await i.value.imageUploader(z);s.value=s.value.replace(R,`\r
83
- ![${z.name}](${W})`)}catch(W){alert(W.message),s.value=s.value.replace(R,"")}finally{E.value=!1}},Mn=z=>{var R;if((R=z.dataTransfer)!=null&&R.items){const W=zl(z.dataTransfer.items);W&&ke.value&&(bt(W),z.preventDefault())}},Sr=z=>{if(z.clipboardData){const R=zl(z.clipboardData.items);R&&ke.value&&bt(R)}},Xt=()=>{const z=u.value;z.files&&ke.value&&bt(z.files[0]).then(()=>{z.value=""})},Ke=async()=>{var z;const{serverURL:R,lang:W,login:h,wordLimit:p,requiredMeta:g,recaptchaV3Key:y,turnstileKey:k}=i.value,v={comment:Ue.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:await Pf()};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(h==="force")return;if(g.includes("nick")&&!v.nick){a.value.nick.focus(),alert(F.value.nickError);return}if(g.includes("mail")&&!v.mail||v.mail&&!Ko(v.mail)){a.value.mail.focus(),alert(F.value.mailError);return}v.nick||(v.nick=F.value.anonymous)}if(!v.comment){c.value.focus();return}if(!fe.value){alert(F.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",G.value.toString()));return}v.comment=oo(v.comment,T.value.map),n.replyId&&n.rootId&&(v.pid=n.replyId,v.rid=n.rootId,v.at=n.replyUser),E.value=!0;try{y&&(v.recaptchaV3=await th(y).execute("social")),k&&(v.turnstile=await nh(k).execute("social"));const A={serverURL:R,lang:W,token:o.value.token,comment:v},S=await(n.edit?tn({objectId:n.edit.objectId,...A}):Ii(A));if(E.value=!1,S.errmsg){alert(S.errmsg);return}r("submit",S.data),s.value="",O.value="",await Kt(),n.replyId&&r("cancelReply"),(z=n.edit)!=null&&z.objectId&&r("cancelEdit")}catch(A){E.value=!1,alert(A.message)}},$r=z=>{z.preventDefault();const{lang:R,serverURL:W}=i.value;Pi({serverURL:W,lang:R}).then(h=>{o.value=h,(h.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(h)),r("log")})},Ei=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Rr=z=>{z.preventDefault();const{lang:R,serverURL:W}=i.value,h=800,p=800,g=(window.innerWidth-h)/2,y=(window.innerHeight-p)/2,k=new URLSearchParams({lng:R,token:o.value.token}),v=window.open(`${W}/ui/profile?${k.toString()}`,"_blank",`width=${h},height=${p},left=${g},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=z=>{var R,W,h,p;!((R=f.value)!=null&&R.contains(z.target))&&!((W=d.value)!=null&&W.contains(z.target))&&(C.value=!1),!((h=m.value)!=null&&h.contains(z.target))&&!((p=x.value)!=null&&p.contains(z.target))&&(N.value=!1)},Ot=async z=>{var R;const{scrollTop:W,clientHeight:h,scrollHeight:p}=z.target,g=(h+W)/p,y=i.value.search,k=((R=b.value)==null?void 0:R.value)??"";g<.9||j.loading||B.value||(j.loading=!0,(y.more&&j.list.length?await y.more(k,j.list.length):await y.search(k)).length?j.list=[...j.list,...y.more&&j.list.length?await y.more(k,j.list.length):await y.search(k)]:B.value=!0,j.loading=!1,setTimeout(()=>{z.target.scrollTop=W},50))},en=wu(z=>{j.list=[],B.value=!1,Ot(z)},300);return It("click",Pt),It("message",({data:z})=>{!z||z.type!=="profile"||(o.value={...o.value,...z.data},[localStorage,sessionStorage].filter(R=>R.getItem("WALINE_USER")).forEach(R=>{R.setItem("WALINE_USER",JSON.stringify(o))}))}),Jt([i,G],([z,R])=>{const{wordLimit:W}=z;W?R<W[0]&&W[0]!==0?(ae.value=W[0],fe.value=!1):R>W[1]?(ae.value=W[1],fe.value=!1):(ae.value=W[1],fe.value=!0):(ae.value=0,fe.value=!0)}),gt(N,async z=>{var R;if(!z)return;const W=i.value.search;b.value&&(b.value.value=""),j.loading=!0,j.list=await(((R=W.default)==null?void 0:R.call(W))??W.search("")),j.loading=!1}),vn(()=>{var z;(z=n.edit)!=null&&z.objectId&&(s.value=n.edit.orig),Jt(()=>s.value,R=>{const{highlighter:W,texRenderer:h}=i.value;Ue.value=R,O.value=Tf(R,{emojiMap:T.value.map,highlighter:W,texRenderer:h}),G.value=Mf(R),R?vo(c.value):vo.destroy(c.value)}),Jt(()=>i.value.emoji,async R=>{T.value=await Fu(R)})}),(z,R)=>{var W,h;return L(),P("div",{key:K(o).token,class:"wl-comment"},[K(i).login!=="disable"&&ge.value&&!((W=z.edit)!=null&&W.objectId)?(L(),P("div",bh,[D("div",yh,[D("button",{type:"submit",class:"wl-logout-btn",title:F.value.logout,onClick:Ei},[oe(K(co),{size:14})],8,wh),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:Rr},[D("img",{src:K(o).avatar,alt:"avatar"},null,8,xh)],8,kh)]),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:Rr,textContent:J(K(o).display_name)},null,8,_h)])):Y("v-if",!0),D("div",Ch,[K(i).login!=="force"&&K(i).meta.length&&!ge.value?(L(),P("div",{key:0,class:ve(["wl-header",`item${K(i).meta.length}`])},[(L(!0),P(ue,null,Fe(K(i).meta,p=>(L(),P("div",{key:p,class:"wl-header-item"},[D("label",{for:`wl-${p}`,textContent:J(F.value[p]+(K(i).requiredMeta.includes(p)||!K(i).requiredMeta.length?"":`(${F.value.optional})`))},null,8,Sh),tr(D("input",{id:`wl-${p}`,ref_for:!0,ref:g=>{g&&(a.value[p]=g)},"onUpdate:modelValue":g=>K(l)[p]=g,class:ve(["wl-input",`wl-${p}`]),name:p,type:p==="mail"?"email":"text"},null,10,$h),[[ou,K(l)[p]]])]))),128))],2)):Y("v-if",!0),tr(D("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":R[0]||(R[0]=p=>be(s)?s.value=p:null),class:"wl-editor",placeholder:z.replyUser?`@${z.replyUser}`:F.value.placeholder,onKeydown:ft,onDrop:Mn,onPaste:Sr},null,40,Rh),[[pi,K(s)]]),tr(D("div",Ah,[R[7]||(R[7]=D("hr",null,null,-1)),D("h4",null,J(F.value.preview)+":",1),D("div",{class:"wl-content",innerHTML:O.value},null,8,Eh)],512),[[gl,I.value]]),D("div",Th,[D("div",Ih,[D("a",Lh,[oe(K(Hf))]),tr(D("button",{ref:"emoji-button",type:"button",class:ve(["wl-action",{active:C.value}]),title:F.value.emoji,onClick:R[1]||(R[1]=p=>C.value=!C.value)},[oe(K(jf))],10,Mh),[[gl,T.value.tabs.length]]),K(i).search?(L(),P("button",{key:0,ref:"gif-button",type:"button",class:ve(["wl-action",{active:N.value}]),title:F.value.gif,onClick:R[2]||(R[2]=p=>N.value=!N.value)},[oe(K(Vf))],10,Ph)):Y("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:Xt},null,544),ke.value?(L(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:F.value.uploadImage,"aria-label":F.value.uploadImage},[oe(K(zf))],8,Oh)):Y("v-if",!0),D("button",{type:"button",class:ve(["wl-action",{active:I.value}]),title:F.value.preview,onClick:R[3]||(R[3]=p=>I.value=!I.value)},[oe(K(Ff))],10,jh)]),D("div",zh,[R[9]||(R[9]=D("div",{class:"wl-captcha-container"},null,-1)),D("div",Dh,[lt(J(G.value)+" ",1),K(i).wordLimit?(L(),P("span",Fh,[R[8]||(R[8]=lt("  /  ")),D("span",{class:ve({illegal:!fe.value}),textContent:J(ae.value)},null,10,Hh)])):Y("v-if",!0),lt("  "+J(F.value.word),1)]),K(i).login!=="disable"&&!ge.value?(L(),P("button",{key:0,type:"button",class:"wl-btn",onClick:$r,textContent:J(F.value.login)},null,8,Uh)):Y("v-if",!0),K(i).login!=="force"||ge.value?(L(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:E.value,onClick:Ke},[E.value?(L(),st(K(Tn),{key:0,size:16})):(L(),P(ue,{key:1},[lt(J(F.value.submit),1)],64))],8,Nh)):Y("v-if",!0)]),D("div",{ref:"gif-popup",class:ve(["wl-gif-popup",{display:N.value}])},[D("input",{ref:"gif-search",type:"text",placeholder:F.value.gifSearchPlaceholder,onInput:R[4]||(R[4]=(...p)=>K(en)&&K(en)(...p))},null,40,Bh),j.list.length?(L(),st(vh,{key:0,items:j.list,"column-width":200,gap:6,onInsert:R[5]||(R[5]=p=>we(p)),onScroll:Ot},null,8,["items"])):Y("v-if",!0),j.loading?(L(),P("div",Vh,[oe(K(Tn),{size:30})])):Y("v-if",!0)],2),D("div",{ref:"emoji-popup",class:ve(["wl-emoji-popup",{display:C.value}])},[(L(!0),P(ue,null,Fe(T.value.tabs,(p,g)=>(L(),P(ue,{key:p.name},[g===w.value?(L(),P("div",Wh,[(L(!0),P(ue,null,Fe(p.items,y=>(L(),P("button",{key:y,type:"button",title:y,onClick:k=>we(`:${y}:`)},[C.value?(L(),P("img",{key:0,class:"wl-emoji",src:T.value.map[y],alt:y,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Kh)):Y("v-if",!0)],8,qh))),128))])):Y("v-if",!0)],64))),128)),T.value.tabs.length>1?(L(),P("div",Gh,[(L(!0),P(ue,null,Fe(T.value.tabs,(p,g)=>(L(),P("button",{key:p.name,type:"button",class:ve(["wl-tab",{active:w.value===g}]),onClick:y=>w.value=g},[D("img",{class:"wl-emoji",src:p.icon,alt:p.name,title:p.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Yh)],10,Zh))),128))])):Y("v-if",!0)],2)])]),z.replyId||(h=z.edit)!=null&&h.objectId?(L(),P("button",{key:1,type:"button",class:"wl-close",title:F.value.cancelReply,onClick:R[6]||(R[6]=p=>z.replyId?r("cancelReply"):r("cancelEdit"))},[oe(K(co),{size:24})],8,Jh)):Y("v-if",!0)])}}});const Qh=["id"],Xh={class:"wl-user","aria-hidden":"true"},ep=["src"],tp={class:"wl-card"},np={class:"wl-head"},rp=["href"],ip={key:1,class:"wl-nick"},sp=["textContent"],lp=["textContent"],op=["textContent"],ap=["textContent"],cp=["textContent"],up={class:"wl-comment-actions"},fp=["title"],hp=["title"],pp={class:"wl-meta","aria-hidden":"true"},dp=["data-value","textContent"],gp={key:0,class:"wl-content"},mp={key:0},vp=["href"],bp=["innerHTML"],yp={key:1,class:"wl-admin-actions"},wp={class:"wl-comment-status"},kp=["disabled","onClick","textContent"],xp={key:3,class:"wl-quote"};var _p=gn({__name:"CommentCard",props:{comment:{},edit:{},rootId:{},reply:{}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=rr(Dn),l=uo(),o=Lu(),a=Cr(),c=me(()=>s.value.locale),u=me(()=>{const{link:w}=n.comment;return w?ts(w)?w:`https://${w}`:""}),f=me(()=>l.value.includes(n.comment.objectId)),d=me(()=>Wo(new Date(n.comment.time),o.value,c.value)),m=me(()=>a.value.type==="administrator"),x=me(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),b=me(()=>{var w;return n.comment.objectId===((w=n.reply)==null?void 0:w.objectId)}),T=me(()=>{var w;return n.comment.objectId===((w=n.edit)==null?void 0:w.objectId)});return(w,C)=>{var N;const I=Ja("CommentCard",!0);return L(),P("div",{id:w.comment.objectId.toString(),class:"wl-card-item"},[D("div",Xh,[w.comment.avatar?(L(),P("img",{key:0,class:"wl-user-avatar",src:w.comment.avatar,alt:""},null,8,ep)):Y("v-if",!0),w.comment.type?(L(),st(K(Bf),{key:1})):Y("v-if",!0)]),D("div",tp,[D("div",np,[u.value?(L(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},J(w.comment.nick),9,rp)):(L(),P("span",ip,J(w.comment.nick),1)),w.comment.type==="administrator"?(L(),P("span",{key:2,class:"wl-badge",textContent:J(c.value.admin)},null,8,sp)):Y("v-if",!0),w.comment.label?(L(),P("span",{key:3,class:"wl-badge",textContent:J(w.comment.label)},null,8,lp)):Y("v-if",!0),w.comment.sticky?(L(),P("span",{key:4,class:"wl-badge",textContent:J(c.value.sticky)},null,8,op)):Y("v-if",!0),typeof w.comment.level=="number"?(L(),P("span",{key:5,class:ve(`wl-badge level${w.comment.level}`),textContent:J(c.value[`level${w.comment.level}`]||`Level ${w.comment.level}`)},null,10,ap)):Y("v-if",!0),D("span",{class:"wl-time",textContent:J(d.value)},null,8,cp),D("div",up,[m.value||x.value?(L(),P(ue,{key:0},[D("button",{type:"button",class:"wl-edit",onClick:C[0]||(C[0]=O=>r("edit",w.comment))},[oe(K(Nf))]),D("button",{type:"button",class:"wl-delete",onClick:C[1]||(C[1]=O=>r("delete",w.comment))},[oe(K(Of))])],64)):Y("v-if",!0),D("button",{type:"button",class:"wl-like",title:f.value?c.value.cancelLike:c.value.like,onClick:C[2]||(C[2]=O=>r("like",w.comment))},[oe(K(Df),{active:f.value},null,8,["active"]),lt(" "+J("like"in w.comment?w.comment.like:""),1)],8,fp),D("button",{type:"button",class:ve(["wl-reply",{active:b.value}]),title:b.value?c.value.cancelReply:c.value.reply,onClick:C[3]||(C[3]=O=>r("reply",b.value?null:w.comment))},[oe(K(Uf))],10,hp)])]),D("div",pp,[(L(),P(ue,null,Fe(["addr","browser","os"],O=>(L(),P(ue,null,[w.comment[O]?(L(),P("span",{key:O,class:ve(`wl-${O}`),"data-value":w.comment[O],textContent:J(w.comment[O])},null,10,dp)):Y("v-if",!0)],64))),64))]),T.value?Y("v-if",!0):(L(),P("div",gp,["reply_user"in w.comment&&w.comment.reply_user?(L(),P("p",mp,[D("a",{href:"#"+w.comment.pid},"@"+J(w.comment.reply_user.nick),9,vp),C[17]||(C[17]=D("span",null,": ",-1))])):Y("v-if",!0),D("div",{innerHTML:w.comment.comment},null,8,bp)])),m.value&&!T.value?(L(),P("div",yp,[D("span",wp,[(L(),P(ue,null,Fe(i,O=>D("button",{key:O,type:"submit",class:ve(`wl-btn wl-${O}`),disabled:w.comment.status===O,onClick:G=>r("status",{status:O,comment:w.comment}),textContent:J(c.value[O])},null,10,kp)),64))]),m.value&&!("rid"in w.comment)?(L(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:C[4]||(C[4]=O=>r("sticky",w.comment))},J(w.comment.sticky?c.value.unsticky:c.value.sticky),1)):Y("v-if",!0)])):Y("v-if",!0),b.value||T.value?(L(),P("div",{key:2,class:ve({"wl-reply-wrapper":b.value,"wl-edit-wrapper":T.value})},[oe(bo,{edit:w.edit,"reply-id":(N=w.reply)==null?void 0:N.objectId,"reply-user":w.comment.nick,"root-id":w.rootId,onLog:C[5]||(C[5]=O=>r("log")),onCancelReply:C[6]||(C[6]=O=>r("reply",null)),onCancelEdit:C[7]||(C[7]=O=>r("edit",null)),onSubmit:C[8]||(C[8]=O=>r("submit",O))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Y("v-if",!0),"children"in w.comment?(L(),P("div",xp,[(L(!0),P(ue,null,Fe(w.comment.children,O=>(L(),st(I,{key:O.objectId,comment:O,reply:w.reply,edit:w.edit,"root-id":w.rootId,onLog:C[9]||(C[9]=G=>r("log")),onDelete:C[10]||(C[10]=G=>r("delete",G)),onEdit:C[11]||(C[11]=G=>r("edit",G)),onLike:C[12]||(C[12]=G=>r("like",G)),onReply:C[13]||(C[13]=G=>r("reply",G)),onStatus:C[14]||(C[14]=G=>r("status",G)),onSticky:C[15]||(C[15]=G=>r("sticky",G)),onSubmit:C[16]||(C[16]=G=>r("submit",G))},null,8,["comment","reply","edit","root-id"]))),128))])):Y("v-if",!0)])],8,Qh)}}});const yo="3.5.5",Cp={"data-waline":""},Sp={class:"wl-meta-head"},$p={class:"wl-count"},Rp=["textContent"],Ap={class:"wl-sort"},Ep=["onClick"],Tp={class:"wl-cards"},Ip={key:1,class:"wl-operation"},Lp=["textContent"],Mp={key:2,class:"wl-loading"},Pp=["textContent"],Op={key:4,class:"wl-operation"},jp=["textContent"],zp={key:5,class:"wl-power"};var Dp=gn({__name:"WalineComment",props:{serverURL:{},path:{},meta:{},requiredMeta:{},wordLimit:{},pageSize:{},lang:{},locale:{},commentSorting:{},dark:{type:[String,Boolean]},login:{},noCopyright:{type:Boolean},recaptchaV3Key:{},turnstileKey:{},reaction:{},emoji:{},search:{},highlighter:{type:Function},imageUploader:{type:Function},texRenderer:{type:Function}},setup(e){const t=e,n=Cr(),r=uo(),i=te("loading"),s=te(0),l=te(1),o=te(0),a=me(()=>No(t)),c=te(a.value.commentSorting),u=te([]),f=te(null),d=te(null),m=me(()=>Bo(a.value.dark)),x=me(()=>a.value.locale);Ou(m,{id:"waline-darkmode"});let b=null;const T=E=>{const{serverURL:B,path:F,pageSize:ge}=a.value,ke=new AbortController;i.value="loading",b==null||b(),Ti({serverURL:B,lang:a.value.lang,path:F,pageSize:ge,sortBy:Qi[c.value],page:E,signal:ke.signal,token:n.value.token}).then(we=>{i.value="success",s.value=we.count,u.value.push(...we.data),l.value=E,o.value=we.totalPages}).catch(we=>{we.name!=="AbortError"&&(console.error(we.message),i.value="error")}),b=ke.abort.bind(ke)},w=()=>{T(l.value+1)},C=()=>{s.value=0,u.value=[],T(1)},N=E=>{c.value!==E&&(c.value=E,C())},I=E=>{f.value=E},O=E=>{d.value=E},G=E=>{if(d.value)d.value.comment=E.comment,d.value.orig=E.orig;else if("rid"in E){const B=u.value.find(({objectId:F})=>F===E.rid);if(!B)return;Array.isArray(B.children)||(B.children=[]),B.children.push(E)}else u.value.unshift(E),s.value+=1},j=async({comment:E,status:B})=>{if(E.status===B)return;const{serverURL:F,lang:ge}=a.value;await tn({serverURL:F,lang:ge,token:n.value.token,objectId:E.objectId,comment:{status:B}}),E.status=B},ae=async E=>{if("rid"in E)return;const{serverURL:B,lang:F}=a.value;await tn({serverURL:B,lang:F,token:n.value.token,objectId:E.objectId,comment:{sticky:E.sticky?0:1}}),E.sticky=!E.sticky},fe=async({objectId:E})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:B,lang:F}=a.value;await Li({serverURL:B,lang:F,token:n.value.token,objectId:E}),u.value.some((ge,ke)=>ge.objectId===E?(u.value=u.value.filter((we,ft)=>ft!==ke),!0):ge.children.some((we,ft)=>we.objectId===E?(u.value[ke].children=ge.children.filter((bt,Mn)=>Mn!==ft),!0):!1))},Ue=async E=>{const{serverURL:B,lang:F}=a.value,{objectId:ge}=E,ke=r.value.includes(ge);await tn({serverURL:B,lang:F,objectId:ge,token:n.value.token,comment:{like:!ke}}),ke?r.value=r.value.filter(we=>we!==ge):(r.value=[...r.value,ge],r.value.length>50&&(r.value=r.value.slice(-50))),E.like=Math.max(0,(E.like||0)+(ke?-1:1))};return rc(Dn,a),vn(()=>{Jt(()=>[t.serverURL,t.path],()=>{C()})}),ei(()=>{b==null||b()}),(E,B)=>(L(),P("div",Cp,[oe(hh),!f.value&&!d.value?(L(),st(bo,{key:0,onLog:C,onSubmit:G})):Y("v-if",!0),D("div",Sp,[D("div",$p,[s.value?(L(),P("span",{key:0,class:"wl-num",textContent:J(s.value)},null,8,Rp)):Y("v-if",!0),lt(" "+J(x.value.comment),1)]),D("ul",Ap,[(L(!0),P(ue,null,Fe(K(Ho),F=>(L(),P("li",{key:F,class:ve([F===c.value?"active":""]),onClick:ge=>N(F)},J(x.value[F]),11,Ep))),128))])]),D("div",Tp,[(L(!0),P(ue,null,Fe(u.value,F=>(L(),st(_p,{key:F.objectId,"root-id":F.objectId,comment:F,reply:f.value,edit:d.value,onLog:C,onReply:I,onEdit:O,onSubmit:G,onStatus:j,onDelete:fe,onSticky:ae,onLike:Ue},null,8,["root-id","comment","reply","edit"]))),128))]),i.value==="error"?(L(),P("div",Ip,[D("button",{type:"button",class:"wl-btn",onClick:C,textContent:J(x.value.refresh)},null,8,Lp)])):i.value==="loading"?(L(),P("div",Mp,[oe(K(Tn),{size:30})])):u.value.length?l.value<o.value?(L(),P("div",Op,[D("button",{type:"button",class:"wl-btn",onClick:w,textContent:J(x.value.more)},null,8,jp)])):Y("v-if",!0):(L(),P("div",{key:3,class:"wl-empty",textContent:J(x.value.sofa)},null,8,Pp)),a.value.noCopyright?Y("v-if",!0):(L(),P("div",zp,[B[0]||(B[0]=lt(" Powered by ")),B[1]||(B[1]=D("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),lt(" v"+J(K(yo)),1)]))]))}});const wo=(e,t)=>{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},ko=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const u=Ri(c);return u!==null&&t!==u},a=c=>Oi({serverURL:Fn(e),paths:c.map(u=>Ri(u)??t),lang:i,signal:s.signal}).then(u=>wo(u,c)).catch(jl);if(r){const c=l.filter(f=>!o(f)),u=l.filter(o);ji({serverURL:Fn(e),path:t,lang:i}).then(f=>wo(f,c)),u.length&&a(u)}else a(l);return s.abort.bind(s)},Fp=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?mi(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=hn({...i}),o=hn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&ao({serverURL:l.serverURL,path:o.path,...zt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&ko({serverURL:l.serverURL,path:o.path,...zt(o.pageview)?{selector:o.pageview}:{}})};let u=null;s&&(u=fu(()=>ne(Dp,{path:o.path,...l})),u.mount(s));const f=Js(a),d=Js(c);return{el:s,update:({comment:m,pageview:x,path:b=window.location.pathname,...T}={})=>{Object.entries(T).forEach(([w,C])=>{l[w]=C}),o.path=b,m!==void 0&&(o.comment=m),x!==void 0&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),f(),d()}}},Hp=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const i=Cr(),s=mi(e),l=new AbortController;return zi({serverURL:t,count:n,lang:r,signal:l.signal,token:i.value.token}).then(o=>s&&o.length?(s.innerHTML=`<ul class="wl-recent-list">${o.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:o,destroy:()=>{l.abort(),s.innerHTML=""}}):{comments:o,destroy:()=>l.abort()})},Up=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=mi(e),o=new AbortController;return Di({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Yi(i),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${s}">${a.map((c,u)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${u+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${r?r[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(f=>f).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};ie.RecentComments=Hp,ie.UserList=Up,ie.addComment=Ii,ie.commentCount=ao,ie.defaultLocales=zn,ie.deleteComment=Li,ie.fetchCommentCount=Mi,ie.getArticleCounter=Ar,ie.getComment=Ti,ie.getPageview=Oi,ie.getRecentComment=zi,ie.getUserList=Di,ie.init=Fp,ie.login=Pi,ie.pageviewCount=ko,ie.updateArticleCounter=jn,ie.updateComment=tn,ie.updatePageview=ji,ie.version=yo});
79
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Xe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=Jl(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return n&&(l+=' title="'+Xe(n)+'"'),l+=">"+i+"</a>",l}image({href:t,title:n,text:r}){const i=Jl(t);if(i===null)return Xe(r);t=i;let s=`<img src="${t}" alt="${r}"`;return n&&(s+=` title="${Xe(n)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Xe(t.text)}}class $i{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class qe{options;renderer;textRenderer;constructor(t){this.options=t||Mt,this.options.renderer=this.options.renderer||new _r,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new $i}static parse(t,n){return new qe(n).parse(t)}static parseInline(t,n){return new qe(n).parseInline(t)}parse(t,n=!0){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=o,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){r+=u||"";continue}}const a=o;switch(a.type){case"space":{r+=this.renderer.space(a);continue}case"hr":{r+=this.renderer.hr(a);continue}case"heading":{r+=this.renderer.heading(a);continue}case"code":{r+=this.renderer.code(a);continue}case"table":{r+=this.renderer.table(a);continue}case"blockquote":{r+=this.renderer.blockquote(a);continue}case"list":{r+=this.renderer.list(a);continue}case"html":{r+=this.renderer.html(a);continue}case"paragraph":{r+=this.renderer.paragraph(a);continue}case"text":{let c=a,u=this.renderer.text(c);for(;l+1<t.length&&t[l+1].type==="text";)c=t[++l],u+=`
80
+ `+this.renderer.text(c);n?r+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):r+=u;continue}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}parseInline(t,n=this.renderer){var i,s;let r="";for(let l=0;l<t.length;l++){const o=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[o.type]){const c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){r+=c||"";continue}}const a=o;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{const c='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return r}}class En{options;block;constructor(t){this.options=t||Mt}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?We.lex:We.lexInline}provideParser(){return this.block?qe.parse:qe.parseInline}}Co(En,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class eo{defaults=vi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=qe;Renderer=_r;TextRenderer=$i;Lexer=We;Tokenizer=xr;Hooks=En;constructor(...t){this.use(...t)}walkTokens(t,n){var i,s;let r=[];for(const l of t)switch(r=r.concat(n.call(this,l)),l.type){case"table":{const o=l;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,n));for(const a of o.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,n));break}case"list":{const o=l;r=r.concat(this.walkTokens(o.items,n));break}default:{const o=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const c=o[a].flat(1/0);r=r.concat(this.walkTokens(c,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const l=n.renderers[s.name];l?n.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[s.level];l?l.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new _r(this.defaults);for(const l in r.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],c=s[o];s[o]=(...u)=>{let f=a.apply(s,u);return f===!1&&(f=c.apply(s,u)),f||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new xr(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 f=a.apply(s,u);return f===!1&&(f=c.apply(s,u)),f}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new En;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];En.passThroughHooks.has(l)?s[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(s,u)).then(d=>c.call(s,d));const f=a.call(s,u);return c.call(s,f)}:s[o]=(...u)=>{let f=a.apply(s,u);return f===!1&&(f=c.apply(s,u)),f}}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 We.lex(t,n??this.defaults)}parser(t,n){return qe.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?We.lex:We.lexInline,c=l.hooks?l.hooks.provideParser():t?qe.parse:qe.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 f=c(u,l);return l.hooks&&(f=l.hooks.postprocess(f)),f}catch(u){return o(u)}}}onError(t,n){return r=>{if(r.message+=`
81
+ Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Xe(r.message+"",!0)+"</pre>";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const Pt=new eo;function de(e,t){return Pt.parse(e,t)}de.options=de.setOptions=function(e){return Pt.setOptions(e),de.defaults=Pt.defaults,Dl(de.defaults),de},de.getDefaults=vi,de.defaults=Mt,de.use=function(...e){return Pt.use(...e),de.defaults=Pt.defaults,Dl(de.defaults),de},de.walkTokens=function(e,t){return Pt.walkTokens(e,t)},de.parseInline=Pt.parseInline,de.Parser=qe,de.parser=qe.parse,de.Renderer=_r,de.TextRenderer=$i,de.Lexer=We,de.lexer=We.lex,de.Tokenizer=xr,de.Hooks=En,de.parse=de;function xf(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=to(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(no(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.");no(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=to(n),s=i?e.langPrefix+lo(i):e.emptyLangClass,l=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`<pre><code${l}>${r?t:lo(t,!0)}
82
+ </code></pre>`}}}}function to(e){return(e||"").match(/\S*/)[0]}function no(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const ro=/[&<>"']/,_f=new RegExp(ro.source,"g"),io=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Cf=new RegExp(io.source,"g"),Sf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},so=e=>Sf[e];function lo(e,t){if(t){if(ro.test(e))return e.replace(_f,so)}else if(io.test(e))return e.replace(Cf,so);return e}const $f=/\$.*?\$/,Rf=/^\$(.*?)\$/,Af=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Ef=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Af.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($f);return n!==-1?n:t.length},tokenizer(t){const n=Rf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],oo=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`<img class="wl-emoji" src="${t[r]}" alt="${r}">`:n),Tf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new eo;if(i.setOptions({breaks:!0}),n&&i.use(xf({highlight:n})),r){const s=Ef(r);i.use({extensions:s})}return i.parse(oo(e,t))},Ri=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},If=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),Lf=e=>e.match(/[\u4E00-\u9FD5]/gu),Mf=e=>{var t,n;return(((t=If(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=Lf(e))==null?void 0:n.length)??0)},Pf=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},ao=({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&&Mi({serverURL:Fn(e),paths:Array.from(s).map(l=>Xi(Ri(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(jl),i.abort.bind(i)},co=({size:e})=>te("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[te("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"}),te("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"})]),Of=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),jf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("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"})),zf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("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"}),te("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"})]),Df=({active:e=!1})=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("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"})]),Ff=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[te("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"}),te("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"})]),Hf=()=>te("svg",{width:"16",height:"16",ariaHidden:"true"},te("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"})),Uf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("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"})),Nf=()=>te("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},te("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"})),Bf=()=>te("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},te("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"})),Tn=({size:e=100})=>te("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},te("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},te("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Vf=()=>te("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[te("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"}),te("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"})]),Wf=()=>Qt("WALINE_USER_META",{nick:"",mail:"",link:""}),qf=()=>Qt("WALINE_COMMENT_BOX_EDITOR",""),Kf="WALINE_LIKE",Gf=Qt(Kf,[]),uo=()=>Gf,Zf="WALINE_REACTION",Yf=Qt(Zf,{}),Jf=()=>Yf;var Ai={},ct={},ut={},fo;function ho(){if(fo)return ut;fo=1;var e=ut&&ut.__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(m){try{d(l.next(m))}catch(x){c(x)}}function f(m){try{d(l.throw(m))}catch(x){c(x)}}function d(m){m.done?a(m.value):o(m.value).then(u,f)}d((l=l.apply(r,i||[])).next())})},t=ut&&ut.__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(m){return f([d,m])}}function f(d){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(s=0)),s;)try{if(l=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,o=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=i.call(r,s)}catch(m){d=[6,m],o=0}finally{l=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}};Object.defineProperty(ut,"__esModule",{value:!0}),ut.ReCaptchaInstance=void 0;var n=function(){function r(i,s,l){this.siteKey=i,this.recaptchaID=s,this.recaptcha=l,this.styleContainer=null}return r.prototype.execute=function(i){return e(this,void 0,void 0,function(){var s;return t(this,function(l){switch(l.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:i})]:[3,2];case 1:return s=l.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:i})];case 3:s=l.sent(),l.label=4;case 4:return[2,s]}})})},r.prototype.getSiteKey=function(){return this.siteKey},r.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},r.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},r}();return ut.ReCaptchaInstance=n,ut}var po;function Qf(){if(po)return ct;po=1;var e=ct&&ct.__assign||function(){return e=Object.assign||function(i){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(i[a]=s[a])}return i},e.apply(this,arguments)};Object.defineProperty(ct,"__esModule",{value:!0}),ct.getInstance=ct.load=void 0;var t=ho(),n;(function(i){i[i.NOT_LOADED=0]="NOT_LOADED",i[i.LOADING=1]="LOADING",i[i.LOADED=2]="LOADED"})(n||(n={}));var r=function(){function i(){}return i.load=function(s,l){if(l===void 0&&(l={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(i.getLoadingState()===n.LOADED)return i.instance.getSiteKey()===s?Promise.resolve(i.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(i.getLoadingState()===n.LOADING)return s!==i.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){i.successfulLoadingConsumers.push(function(u){return a(u)}),i.errorLoadingRunnable.push(function(u){return c(u)})});i.instanceSiteKey=s,i.setLoadingState(n.LOADING);var o=new i;return new Promise(function(a,c){o.loadScript(s,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){i.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,s,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),f=new t.ReCaptchaInstance(s,u,grecaptcha);i.successfulLoadingConsumers.forEach(function(d){return d(f)}),i.successfulLoadingConsumers=[],l.autoHideBadge&&f.hideBadge(),i.instance=f,a(f)}).catch(function(u){i.errorLoadingRunnable.forEach(function(f){return f(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 f=document.createElement("script");f.setAttribute("recaptcha-v3-script",""),f.setAttribute("async",""),f.setAttribute("defer","");var d="https://www.google.com/recaptcha/api.js";l?o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":o&&(d="https://www.google.com/recaptcha/enterprise.js"),c&&(d=c),a.render&&(a.render=void 0);var m=this.buildQueryString(a);return f.src=d+"?render=explicit"+m,new Promise(function(x,b){f.addEventListener("load",u.waitForScriptToLoad(function(){x(f)},o),!1),f.onerror=function(T){i.setLoadingState(n.NOT_LOADED),b(T)},document.head.appendChild(f)})},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 ct.load=r.load,ct.getInstance=r.getInstance,ct}var go;function Xf(){return go||(go=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Qf();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=ho();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(Ai)),Ai}var eh=Xf();const mo={},th=e=>{const t=mo[e]??(mo[e]=eh.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},nh=e=>({execute:async t=>{const{load:n}=Mu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),rh=Qt("WALINE_USER",{}),Cr=()=>rh,ih={key:0,class:"wl-reaction"},sh=["textContent"],lh={class:"wl-reaction-list"},oh=["onClick"],ah={class:"wl-reaction-img"},ch=["src","alt"],uh=["textContent"],fh=["textContent"];var hh=gn({__name:"ArticleReaction",setup(e){const t=Jf(),n=rr(Dn),r=ie(-1),i=ie([]),s=me(()=>n.value.locale),l=me(()=>{const{reaction:f}=n.value;return f!=null&&f.length?f:null}),o=me(()=>{var f;const{path:d}=n.value;return((f=l.value)==null?void 0:f.map((m,x)=>({icon:m,desc:s.value[`reaction${x}`],active:t.value[d]===x})))??null});let a;const c=async()=>{const{serverURL:f,lang:d,path:m}=n.value;if(!l.value)return;const x=new AbortController;a=x.abort.bind(x);const[b]=await Ar({serverURL:f,lang:d,paths:[m],type:l.value.map((T,w)=>`reaction${w}`),signal:x.signal});i.value=l.value.map((T,w)=>b[`reaction${w}`])},u=async f=>{if(r.value!==-1)return;const{serverURL:d,lang:m,path:x}=n.value,b=t.value[x];r.value=f,b!==void 0&&(await jn({serverURL:d,lang:m,path:x,type:`reaction${b}`,action:"desc"}),i.value[b]=Math.max(i.value[b]-1,0)),b!==f&&(await jn({serverURL:d,lang:m,path:x,type:`reaction${f}`}),i.value[f]=(i.value[f]||0)+1),b===f?delete t.value[x]:t.value[x]=f,r.value=-1};return vn(()=>{Jt(()=>[n.value.serverURL,n.value.path],()=>c())}),ei(()=>{a==null||a()}),(f,d)=>o.value?(L(),P("div",ih,[D("div",{class:"wl-reaction-title",textContent:J(s.value.reactionTitle)},null,8,sh),D("ul",lh,[(L(!0),P(ue,null,Fe(o.value,({active:m,icon:x,desc:b},T)=>(L(),P("li",{key:T,class:ve(["wl-reaction-item",{active:m}]),onClick:w=>u(T)},[D("div",ah,[D("img",{src:x,alt:b},null,8,ch),r.value===T?(L(),st(K(Tn),{key:0,class:"wl-reaction-loading"})):(L(),P("div",{key:1,class:"wl-reaction-votes",textContent:J(i.value[T]||0)},null,8,uh))]),D("div",{class:"wl-reaction-text",textContent:J(b)},null,8,fh)],10,oh))),128))])])):Y("v-if",!0)}}),In=new Map;function ph(e){var t=In.get(e);t&&t.destroy()}function dh(e){var t=In.get(e);t&&t.update()}var Ln=null;typeof window>"u"?((Ln=function(e){return e}).destroy=function(e){return e},Ln.update=function(e){return e}):((Ln=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"&&!In.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(f){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(f).forEach(function(d){return r.style[d]=f[d]}),In.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",In.set(r,{destroy:a,update:u}),u()}function c(f){var d,m,x=f.restoreTextAlign,b=x===void 0?null:x,T=f.testForHeightReduction,w=T===void 0||T,C=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),w&&(d=function(I){for(var O=[];I&&I.parentNode&&I.parentNode instanceof Element;)I.parentNode.scrollTop&&O.push([I.parentNode,I.parentNode.scrollTop]),I=I.parentNode;return function(){return O.forEach(function(G){var j=G[0],ae=G[1];j.style.scrollBehavior="auto",j.scrollTop=ae,j.style.scrollBehavior=null})}}(r),r.style.height=""),m=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&m>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),m=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=m+"px",b&&(r.style.textAlign=b),d&&d(),s!==m&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=m),C!==l.overflow&&!b)){var N=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=N==="start"?"end":"start"),c({restoreTextAlign:N,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ph),e},Ln.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],dh),e});var vo=Ln;const gh=["data-index"],mh=["src","title","onClick"];var vh=gn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e){const t=e;let n=null;const r=dt("wall"),i=ie({}),s=ie([]),l=()=>{const f=Math.floor((r.value.getBoundingClientRect().width+t.gap)/(t.columnWidth+t.gap));return f>0?f:1},o=f=>new Array(f).fill(null).map(()=>[]),a=async f=>{var d;if(f>=t.items.length)return;await Kt();const m=Array.from(((d=r.value)==null?void 0:d.children)??[]).reduce((x,b)=>b.getBoundingClientRect().height<x.getBoundingClientRect().height?b:x);s.value[Number(m.dataset.index)].push(f),await a(f+1)},c=async(f=!1)=>{if(s.value.length===l()&&!f)return;s.value=o(l());const d=window.scrollY;await a(0),window.scrollTo({top:d})},u=f=>{i.value[f.target.src]=!0};return vn(()=>{c(!0),n=new ResizeObserver(()=>{c()}),n.observe(r.value),gt(()=>[t.items],()=>{i.value={},c(!0)}),gt(()=>[t.columnWidth,t.gap],()=>{c()})}),Za(()=>{n.unobserve(r.value)}),(f,d)=>(L(),P("div",{ref_key:"wall",ref:r,class:"wl-gallery",style:ln({gap:`${f.gap}px`})},[(L(!0),P(ue,null,Fe(s.value,(m,x)=>(L(),P("div",{key:x,class:"wl-gallery-column","data-index":x,style:ln({gap:`${f.gap}px`})},[(L(!0),P(ue,null,Fe(m,b=>(L(),P(ue,{key:b},[i.value[f.items[b].src]?Y("v-if",!0):(L(),st(K(Tn),{key:0,size:36,style:{margin:"20px auto"}})),D("img",{class:"wl-gallery-item",src:f.items[b].src,title:f.items[b].title,loading:"lazy",onLoad:u,onClick:T=>f.$emit("insert",`![](${f.items[b].src})`)},null,40,mh)],64))),128))],12,gh))),128))],4))}});const bh={key:0,class:"wl-login-info"},yh={class:"wl-avatar"},wh=["title"],kh=["title"],xh=["src"],_h=["title","textContent"],Ch={class:"wl-panel"},Sh=["for","textContent"],$h=["id","onUpdate:modelValue","name","type"],Rh=["placeholder"],Ah={class:"wl-preview"},Eh=["innerHTML"],Th={class:"wl-footer"},Ih={class:"wl-actions"},Lh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Mh=["title"],Ph=["title"],Oh=["title","aria-label"],jh=["title"],zh={class:"wl-info"},Dh={class:"wl-text-number"},Fh={key:0},Hh=["textContent"],Uh=["textContent"],Nh=["disabled"],Bh=["placeholder"],Vh={key:1,class:"wl-loading"},Wh={key:0,class:"wl-tab-wrapper"},qh=["title","onClick"],Kh=["src","alt"],Gh={key:0,class:"wl-tabs"},Zh=["onClick"],Yh=["src","alt","title"],Jh=["title"];var bo=gn({__name:"CommentBox",props:{edit:{},rootId:{},replyId:{},replyUser:{}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,i=rr(Dn),s=qf(),l=Wf(),o=Cr(),a=ie({}),c=dt("textarea"),u=dt("image-uploader"),f=dt("emoji-button"),d=dt("emoji-popup"),m=dt("gif-button"),x=dt("gif-popup"),b=dt("gif-search"),T=ie({tabs:[],map:{}}),w=ie(0),C=ie(!1),N=ie(!1),I=ie(!1),O=ie(""),G=ie(0),j=hn({loading:!0,list:[]}),ae=ie(0),fe=ie(!1),Ue=ie(""),E=ie(!1),B=ie(!1),F=me(()=>i.value.locale),ge=me(()=>!!o.value.token),ke=me(()=>du(i.value.imageUploader)),we=z=>{const R=c.value,W=R.selectionStart,h=R.selectionEnd||0,p=R.scrollTop;s.value=R.value.substring(0,W)+z+R.value.substring(h,R.value.length),R.focus(),R.selectionStart=W+z.length,R.selectionEnd=W+z.length,R.scrollTop=p},ft=({key:z,ctrlKey:R,metaKey:W})=>{E.value||(R||W)&&z==="Enter"&&Ke()},bt=async z=>{const R=`![${i.value.locale.uploading} ${z.name}]()`;we(R),E.value=!0;try{const W=await i.value.imageUploader(z);s.value=s.value.replace(R,`\r
83
+ ![${z.name}](${W})`)}catch(W){alert(W.message),s.value=s.value.replace(R,"")}finally{E.value=!1}},Mn=z=>{var R;if((R=z.dataTransfer)!=null&&R.items){const W=zl(z.dataTransfer.items);W&&ke.value&&(bt(W),z.preventDefault())}},Sr=z=>{if(z.clipboardData){const R=zl(z.clipboardData.items);R&&ke.value&&bt(R)}},Xt=()=>{const z=u.value;z.files&&ke.value&&bt(z.files[0]).then(()=>{z.value=""})},Ke=async()=>{var z;const{serverURL:R,lang:W,login:h,wordLimit:p,requiredMeta:g,recaptchaV3Key:y,turnstileKey:k}=i.value,v={comment:Ue.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:await Pf()};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(h==="force")return;if(g.includes("nick")&&!v.nick){a.value.nick.focus(),alert(F.value.nickError);return}if(g.includes("mail")&&!v.mail||v.mail&&!Ko(v.mail)){a.value.mail.focus(),alert(F.value.mailError);return}v.nick||(v.nick=F.value.anonymous)}if(!v.comment){c.value.focus();return}if(!fe.value){alert(F.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",G.value.toString()));return}v.comment=oo(v.comment,T.value.map),n.replyId&&n.rootId&&(v.pid=n.replyId,v.rid=n.rootId,v.at=n.replyUser),E.value=!0;try{y&&(v.recaptchaV3=await th(y).execute("social")),k&&(v.turnstile=await nh(k).execute("social"));const A={serverURL:R,lang:W,token:o.value.token,comment:v},S=await(n.edit?tn({objectId:n.edit.objectId,...A}):Ii(A));if(E.value=!1,S.errmsg){alert(S.errmsg);return}r("submit",S.data),s.value="",O.value="",await Kt(),n.replyId&&r("cancelReply"),(z=n.edit)!=null&&z.objectId&&r("cancelEdit")}catch(A){E.value=!1,alert(A.message)}},$r=z=>{z.preventDefault();const{lang:R,serverURL:W}=i.value;Pi({serverURL:W,lang:R}).then(h=>{o.value=h,(h.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(h)),r("log")})},Ei=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Rr=z=>{z.preventDefault();const{lang:R,serverURL:W}=i.value,h=800,p=800,g=(window.innerWidth-h)/2,y=(window.innerHeight-p)/2,k=new URLSearchParams({lng:R,token:o.value.token}),v=window.open(`${W}/ui/profile?${k.toString()}`,"_blank",`width=${h},height=${p},left=${g},top=${y},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);v==null||v.postMessage({type:"TOKEN",data:o.value.token},"*")},Ot=z=>{var R,W,h,p;!((R=f.value)!=null&&R.contains(z.target))&&!((W=d.value)!=null&&W.contains(z.target))&&(C.value=!1),!((h=m.value)!=null&&h.contains(z.target))&&!((p=x.value)!=null&&p.contains(z.target))&&(N.value=!1)},jt=async z=>{var R;const{scrollTop:W,clientHeight:h,scrollHeight:p}=z.target,g=(h+W)/p,y=i.value.search,k=((R=b.value)==null?void 0:R.value)??"";g<.9||j.loading||B.value||(j.loading=!0,(y.more&&j.list.length?await y.more(k,j.list.length):await y.search(k)).length?j.list=[...j.list,...y.more&&j.list.length?await y.more(k,j.list.length):await y.search(k)]:B.value=!0,j.loading=!1,setTimeout(()=>{z.target.scrollTop=W},50))},en=wu(z=>{j.list=[],B.value=!1,jt(z)},300);return Lt("click",Ot),Lt("message",({data:z})=>{!z||z.type!=="profile"||(o.value={...o.value,...z.data},[localStorage,sessionStorage].filter(R=>R.getItem("WALINE_USER")).forEach(R=>{R.setItem("WALINE_USER",JSON.stringify(o))}))}),Jt([i,G],([z,R])=>{const{wordLimit:W}=z;W?R<W[0]&&W[0]!==0?(ae.value=W[0],fe.value=!1):R>W[1]?(ae.value=W[1],fe.value=!1):(ae.value=W[1],fe.value=!0):(ae.value=0,fe.value=!0)}),gt(N,async z=>{var R;if(!z)return;const W=i.value.search;b.value&&(b.value.value=""),j.loading=!0,j.list=await(((R=W.default)==null?void 0:R.call(W))??W.search("")),j.loading=!1}),vn(()=>{var z;(z=n.edit)!=null&&z.objectId&&(s.value=n.edit.orig),Jt(()=>s.value,R=>{const{highlighter:W,texRenderer:h}=i.value;Ue.value=R,O.value=Tf(R,{emojiMap:T.value.map,highlighter:W,texRenderer:h}),G.value=Mf(R),R?vo(c.value):vo.destroy(c.value)}),Jt(()=>i.value.emoji,async R=>{T.value=await Fu(R)})}),(z,R)=>{var W,h;return L(),P("div",{key:K(o).token,class:"wl-comment"},[K(i).login!=="disable"&&ge.value&&!((W=z.edit)!=null&&W.objectId)?(L(),P("div",bh,[D("div",yh,[D("button",{type:"submit",class:"wl-logout-btn",title:F.value.logout,onClick:Ei},[oe(K(co),{size:14})],8,wh),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:Rr},[D("img",{src:K(o).avatar,alt:"avatar"},null,8,xh)],8,kh)]),D("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:Rr,textContent:J(K(o).display_name)},null,8,_h)])):Y("v-if",!0),D("div",Ch,[K(i).login!=="force"&&K(i).meta.length&&!ge.value?(L(),P("div",{key:0,class:ve(["wl-header",`item${K(i).meta.length}`])},[(L(!0),P(ue,null,Fe(K(i).meta,p=>(L(),P("div",{key:p,class:"wl-header-item"},[D("label",{for:`wl-${p}`,textContent:J(F.value[p]+(K(i).requiredMeta.includes(p)||!K(i).requiredMeta.length?"":`(${F.value.optional})`))},null,8,Sh),tr(D("input",{id:`wl-${p}`,ref_for:!0,ref:g=>{g&&(a.value[p]=g)},"onUpdate:modelValue":g=>K(l)[p]=g,class:ve(["wl-input",`wl-${p}`]),name:p,type:p==="mail"?"email":"text"},null,10,$h),[[ou,K(l)[p]]])]))),128))],2)):Y("v-if",!0),tr(D("textarea",{id:"wl-edit",ref:"textarea","onUpdate:modelValue":R[0]||(R[0]=p=>be(s)?s.value=p:null),class:"wl-editor",placeholder:z.replyUser?`@${z.replyUser}`:F.value.placeholder,onKeydown:ft,onDrop:Mn,onPaste:Sr},null,40,Rh),[[pi,K(s)]]),tr(D("div",Ah,[R[7]||(R[7]=D("hr",null,null,-1)),D("h4",null,J(F.value.preview)+":",1),D("div",{class:"wl-content",innerHTML:O.value},null,8,Eh)],512),[[gl,I.value]]),D("div",Th,[D("div",Ih,[D("a",Lh,[oe(K(Hf))]),tr(D("button",{ref:"emoji-button",type:"button",class:ve(["wl-action",{active:C.value}]),title:F.value.emoji,onClick:R[1]||(R[1]=p=>C.value=!C.value)},[oe(K(jf))],10,Mh),[[gl,T.value.tabs.length]]),K(i).search?(L(),P("button",{key:0,ref:"gif-button",type:"button",class:ve(["wl-action",{active:N.value}]),title:F.value.gif,onClick:R[2]||(R[2]=p=>N.value=!N.value)},[oe(K(Vf))],10,Ph)):Y("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:Xt},null,544),ke.value?(L(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:F.value.uploadImage,"aria-label":F.value.uploadImage},[oe(K(zf))],8,Oh)):Y("v-if",!0),D("button",{type:"button",class:ve(["wl-action",{active:I.value}]),title:F.value.preview,onClick:R[3]||(R[3]=p=>I.value=!I.value)},[oe(K(Ff))],10,jh)]),D("div",zh,[R[9]||(R[9]=D("div",{class:"wl-captcha-container"},null,-1)),D("div",Dh,[lt(J(G.value)+" ",1),K(i).wordLimit?(L(),P("span",Fh,[R[8]||(R[8]=lt("  /  ")),D("span",{class:ve({illegal:!fe.value}),textContent:J(ae.value)},null,10,Hh)])):Y("v-if",!0),lt("  "+J(F.value.word),1)]),K(i).login!=="disable"&&!ge.value?(L(),P("button",{key:0,type:"button",class:"wl-btn",onClick:$r,textContent:J(F.value.login)},null,8,Uh)):Y("v-if",!0),K(i).login!=="force"||ge.value?(L(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:E.value,onClick:Ke},[E.value?(L(),st(K(Tn),{key:0,size:16})):(L(),P(ue,{key:1},[lt(J(F.value.submit),1)],64))],8,Nh)):Y("v-if",!0)]),D("div",{ref:"gif-popup",class:ve(["wl-gif-popup",{display:N.value}])},[D("input",{ref:"gif-search",type:"text",placeholder:F.value.gifSearchPlaceholder,onInput:R[4]||(R[4]=(...p)=>K(en)&&K(en)(...p))},null,40,Bh),j.list.length?(L(),st(vh,{key:0,items:j.list,"column-width":200,gap:6,onInsert:R[5]||(R[5]=p=>we(p)),onScroll:jt},null,8,["items"])):Y("v-if",!0),j.loading?(L(),P("div",Vh,[oe(K(Tn),{size:30})])):Y("v-if",!0)],2),D("div",{ref:"emoji-popup",class:ve(["wl-emoji-popup",{display:C.value}])},[(L(!0),P(ue,null,Fe(T.value.tabs,(p,g)=>(L(),P(ue,{key:p.name},[g===w.value?(L(),P("div",Wh,[(L(!0),P(ue,null,Fe(p.items,y=>(L(),P("button",{key:y,type:"button",title:y,onClick:k=>we(`:${y}:`)},[C.value?(L(),P("img",{key:0,class:"wl-emoji",src:T.value.map[y],alt:y,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Kh)):Y("v-if",!0)],8,qh))),128))])):Y("v-if",!0)],64))),128)),T.value.tabs.length>1?(L(),P("div",Gh,[(L(!0),P(ue,null,Fe(T.value.tabs,(p,g)=>(L(),P("button",{key:p.name,type:"button",class:ve(["wl-tab",{active:w.value===g}]),onClick:y=>w.value=g},[D("img",{class:"wl-emoji",src:p.icon,alt:p.name,title:p.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Yh)],10,Zh))),128))])):Y("v-if",!0)],2)])]),z.replyId||(h=z.edit)!=null&&h.objectId?(L(),P("button",{key:1,type:"button",class:"wl-close",title:F.value.cancelReply,onClick:R[6]||(R[6]=p=>z.replyId?r("cancelReply"):r("cancelEdit"))},[oe(K(co),{size:24})],8,Jh)):Y("v-if",!0)])}}});const Qh=["id"],Xh={class:"wl-user","aria-hidden":"true"},ep=["src"],tp={class:"wl-card"},np={class:"wl-head"},rp=["href"],ip={key:1,class:"wl-nick"},sp=["textContent"],lp=["textContent"],op=["textContent"],ap=["textContent"],cp=["textContent"],up={class:"wl-comment-actions"},fp=["title"],hp=["title"],pp={class:"wl-meta","aria-hidden":"true"},dp=["data-value","textContent"],gp={key:0,class:"wl-content"},mp={key:0},vp=["href"],bp=["innerHTML"],yp={key:1,class:"wl-admin-actions"},wp={class:"wl-comment-status"},kp=["disabled","onClick","textContent"],xp={key:3,class:"wl-quote"};var _p=gn({__name:"CommentCard",props:{comment:{},edit:{},rootId:{},reply:{}},emits:["log","submit","delete","like","sticky","edit","reply","status"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=rr(Dn),l=uo(),o=Lu(),a=Cr(),c=me(()=>s.value.locale),u=me(()=>{const{link:w}=n.comment;return w?ts(w)?w:`https://${w}`:""}),f=me(()=>l.value.includes(n.comment.objectId)),d=me(()=>Wo(new Date(n.comment.time),o.value,c.value)),m=me(()=>a.value.type==="administrator"),x=me(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),b=me(()=>{var w;return n.comment.objectId===((w=n.reply)==null?void 0:w.objectId)}),T=me(()=>{var w;return n.comment.objectId===((w=n.edit)==null?void 0:w.objectId)});return(w,C)=>{var N;const I=Ja("CommentCard",!0);return L(),P("div",{id:w.comment.objectId.toString(),class:"wl-card-item"},[D("div",Xh,[w.comment.avatar?(L(),P("img",{key:0,class:"wl-user-avatar",src:w.comment.avatar,alt:""},null,8,ep)):Y("v-if",!0),w.comment.type?(L(),st(K(Bf),{key:1})):Y("v-if",!0)]),D("div",tp,[D("div",np,[u.value?(L(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},J(w.comment.nick),9,rp)):(L(),P("span",ip,J(w.comment.nick),1)),w.comment.type==="administrator"?(L(),P("span",{key:2,class:"wl-badge",textContent:J(c.value.admin)},null,8,sp)):Y("v-if",!0),w.comment.label?(L(),P("span",{key:3,class:"wl-badge",textContent:J(w.comment.label)},null,8,lp)):Y("v-if",!0),w.comment.sticky?(L(),P("span",{key:4,class:"wl-badge",textContent:J(c.value.sticky)},null,8,op)):Y("v-if",!0),typeof w.comment.level=="number"?(L(),P("span",{key:5,class:ve(`wl-badge level${w.comment.level}`),textContent:J(c.value[`level${w.comment.level}`]||`Level ${w.comment.level}`)},null,10,ap)):Y("v-if",!0),D("span",{class:"wl-time",textContent:J(d.value)},null,8,cp),D("div",up,[m.value||x.value?(L(),P(ue,{key:0},[D("button",{type:"button",class:"wl-edit",onClick:C[0]||(C[0]=O=>r("edit",w.comment))},[oe(K(Nf))]),D("button",{type:"button",class:"wl-delete",onClick:C[1]||(C[1]=O=>r("delete",w.comment))},[oe(K(Of))])],64)):Y("v-if",!0),D("button",{type:"button",class:"wl-like",title:f.value?c.value.cancelLike:c.value.like,onClick:C[2]||(C[2]=O=>r("like",w.comment))},[oe(K(Df),{active:f.value},null,8,["active"]),lt(" "+J("like"in w.comment?w.comment.like:""),1)],8,fp),D("button",{type:"button",class:ve(["wl-reply",{active:b.value}]),title:b.value?c.value.cancelReply:c.value.reply,onClick:C[3]||(C[3]=O=>r("reply",b.value?null:w.comment))},[oe(K(Uf))],10,hp)])]),D("div",pp,[(L(),P(ue,null,Fe(["addr","browser","os"],O=>(L(),P(ue,null,[w.comment[O]?(L(),P("span",{key:O,class:ve(`wl-${O}`),"data-value":w.comment[O],textContent:J(w.comment[O])},null,10,dp)):Y("v-if",!0)],64))),64))]),T.value?Y("v-if",!0):(L(),P("div",gp,["reply_user"in w.comment&&w.comment.reply_user?(L(),P("p",mp,[D("a",{href:"#"+w.comment.pid},"@"+J(w.comment.reply_user.nick),9,vp),C[17]||(C[17]=D("span",null,": ",-1))])):Y("v-if",!0),D("div",{innerHTML:w.comment.comment},null,8,bp)])),m.value&&!T.value?(L(),P("div",yp,[D("span",wp,[(L(),P(ue,null,Fe(i,O=>D("button",{key:O,type:"submit",class:ve(`wl-btn wl-${O}`),disabled:w.comment.status===O,onClick:G=>r("status",{status:O,comment:w.comment}),textContent:J(c.value[O])},null,10,kp)),64))]),m.value&&!("rid"in w.comment)?(L(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:C[4]||(C[4]=O=>r("sticky",w.comment))},J(w.comment.sticky?c.value.unsticky:c.value.sticky),1)):Y("v-if",!0)])):Y("v-if",!0),b.value||T.value?(L(),P("div",{key:2,class:ve({"wl-reply-wrapper":b.value,"wl-edit-wrapper":T.value})},[oe(bo,{edit:w.edit,"reply-id":(N=w.reply)==null?void 0:N.objectId,"reply-user":w.comment.nick,"root-id":w.rootId,onLog:C[5]||(C[5]=O=>r("log")),onCancelReply:C[6]||(C[6]=O=>r("reply",null)),onCancelEdit:C[7]||(C[7]=O=>r("edit",null)),onSubmit:C[8]||(C[8]=O=>r("submit",O))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Y("v-if",!0),"children"in w.comment?(L(),P("div",xp,[(L(!0),P(ue,null,Fe(w.comment.children,O=>(L(),st(I,{key:O.objectId,comment:O,reply:w.reply,edit:w.edit,"root-id":w.rootId,onLog:C[9]||(C[9]=G=>r("log")),onDelete:C[10]||(C[10]=G=>r("delete",G)),onEdit:C[11]||(C[11]=G=>r("edit",G)),onLike:C[12]||(C[12]=G=>r("like",G)),onReply:C[13]||(C[13]=G=>r("reply",G)),onStatus:C[14]||(C[14]=G=>r("status",G)),onSticky:C[15]||(C[15]=G=>r("sticky",G)),onSubmit:C[16]||(C[16]=G=>r("submit",G))},null,8,["comment","reply","edit","root-id"]))),128))])):Y("v-if",!0)])],8,Qh)}}});const yo="3.5.6",Cp={"data-waline":""},Sp={class:"wl-meta-head"},$p={class:"wl-count"},Rp=["textContent"],Ap={class:"wl-sort"},Ep=["onClick"],Tp={class:"wl-cards"},Ip={key:1,class:"wl-operation"},Lp=["textContent"],Mp={key:2,class:"wl-loading"},Pp=["textContent"],Op={key:4,class:"wl-operation"},jp=["textContent"],zp={key:5,class:"wl-power"};var Dp=gn({__name:"WalineComment",props:{serverURL:{},path:{},meta:{},requiredMeta:{},wordLimit:{},pageSize:{},lang:{},locale:{},commentSorting:{},dark:{type:[String,Boolean]},login:{},noCopyright:{type:Boolean},recaptchaV3Key:{},turnstileKey:{},reaction:{},emoji:{},search:{},highlighter:{type:Function},imageUploader:{type:Function},texRenderer:{type:Function}},setup(e){const t=e,n=Cr(),r=uo(),i=ie("loading"),s=ie(0),l=ie(1),o=ie(0),a=me(()=>No(t)),c=ie(a.value.commentSorting),u=ie([]),f=ie(null),d=ie(null),m=me(()=>Bo(a.value.dark)),x=me(()=>a.value.locale);Ou(m,{id:"waline-darkmode"});let b=null;const T=E=>{const{serverURL:B,path:F,pageSize:ge}=a.value,ke=new AbortController;i.value="loading",b==null||b(),Ti({serverURL:B,lang:a.value.lang,path:F,pageSize:ge,sortBy:Qi[c.value],page:E,signal:ke.signal,token:n.value.token}).then(we=>{i.value="success",s.value=we.count,u.value.push(...we.data),l.value=E,o.value=we.totalPages}).catch(we=>{we.name!=="AbortError"&&(console.error(we.message),i.value="error")}),b=ke.abort.bind(ke)},w=()=>{T(l.value+1)},C=()=>{s.value=0,u.value=[],T(1)},N=E=>{c.value!==E&&(c.value=E,C())},I=E=>{f.value=E},O=E=>{d.value=E},G=E=>{if(d.value)d.value.comment=E.comment,d.value.orig=E.orig;else if("rid"in E){const B=u.value.find(({objectId:F})=>F===E.rid);if(!B)return;Array.isArray(B.children)||(B.children=[]),B.children.push(E)}else u.value.unshift(E),s.value+=1},j=async({comment:E,status:B})=>{if(E.status===B)return;const{serverURL:F,lang:ge}=a.value;await tn({serverURL:F,lang:ge,token:n.value.token,objectId:E.objectId,comment:{status:B}}),E.status=B},ae=async E=>{if("rid"in E)return;const{serverURL:B,lang:F}=a.value;await tn({serverURL:B,lang:F,token:n.value.token,objectId:E.objectId,comment:{sticky:E.sticky?0:1}}),E.sticky=!E.sticky},fe=async({objectId:E})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:B,lang:F}=a.value;await Li({serverURL:B,lang:F,token:n.value.token,objectId:E}),u.value.some((ge,ke)=>ge.objectId===E?(u.value=u.value.filter((we,ft)=>ft!==ke),!0):ge.children.some((we,ft)=>we.objectId===E?(u.value[ke].children=ge.children.filter((bt,Mn)=>Mn!==ft),!0):!1))},Ue=async E=>{const{serverURL:B,lang:F}=a.value,{objectId:ge}=E,ke=r.value.includes(ge);await tn({serverURL:B,lang:F,objectId:ge,token:n.value.token,comment:{like:!ke}}),ke?r.value=r.value.filter(we=>we!==ge):(r.value=[...r.value,ge],r.value.length>50&&(r.value=r.value.slice(-50))),E.like=Math.max(0,(E.like||0)+(ke?-1:1))};return rc(Dn,a),vn(()=>{Jt(()=>[t.serverURL,t.path],()=>{C()})}),ei(()=>{b==null||b()}),(E,B)=>(L(),P("div",Cp,[oe(hh),!f.value&&!d.value?(L(),st(bo,{key:0,onLog:C,onSubmit:G})):Y("v-if",!0),D("div",Sp,[D("div",$p,[s.value?(L(),P("span",{key:0,class:"wl-num",textContent:J(s.value)},null,8,Rp)):Y("v-if",!0),lt(" "+J(x.value.comment),1)]),D("ul",Ap,[(L(!0),P(ue,null,Fe(K(Ho),F=>(L(),P("li",{key:F,class:ve([F===c.value?"active":""]),onClick:ge=>N(F)},J(x.value[F]),11,Ep))),128))])]),D("div",Tp,[(L(!0),P(ue,null,Fe(u.value,F=>(L(),st(_p,{key:F.objectId,"root-id":F.objectId,comment:F,reply:f.value,edit:d.value,onLog:C,onReply:I,onEdit:O,onSubmit:G,onStatus:j,onDelete:fe,onSticky:ae,onLike:Ue},null,8,["root-id","comment","reply","edit"]))),128))]),i.value==="error"?(L(),P("div",Ip,[D("button",{type:"button",class:"wl-btn",onClick:C,textContent:J(x.value.refresh)},null,8,Lp)])):i.value==="loading"?(L(),P("div",Mp,[oe(K(Tn),{size:30})])):u.value.length?l.value<o.value?(L(),P("div",Op,[D("button",{type:"button",class:"wl-btn",onClick:w,textContent:J(x.value.more)},null,8,jp)])):Y("v-if",!0):(L(),P("div",{key:3,class:"wl-empty",textContent:J(x.value.sofa)},null,8,Pp)),a.value.noCopyright?Y("v-if",!0):(L(),P("div",zp,[B[0]||(B[0]=lt(" Powered by ")),B[1]||(B[1]=D("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1)),lt(" v"+J(K(yo)),1)]))]))}});const wo=(e,t)=>{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},ko=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const u=Ri(c);return u!==null&&t!==u},a=c=>Oi({serverURL:Fn(e),paths:c.map(u=>Ri(u)??t),lang:i,signal:s.signal}).then(u=>wo(u,c)).catch(jl);if(r){const c=l.filter(f=>!o(f)),u=l.filter(o);ji({serverURL:Fn(e),path:t,lang:i}).then(f=>wo(f,c)),u.length&&a(u)}else a(l);return s.abort.bind(s)},Fp=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?mi(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=hn({...i}),o=hn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&ao({serverURL:l.serverURL,path:o.path,...Dt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&ko({serverURL:l.serverURL,path:o.path,...Dt(o.pageview)?{selector:o.pageview}:{}})};let u=null;s&&(u=fu(()=>te(Dp,{path:o.path,...l})),u.mount(s));const f=Js(a),d=Js(c);return{el:s,update:({comment:m,pageview:x,path:b=window.location.pathname,...T}={})=>{Object.entries(T).forEach(([w,C])=>{l[w]=C}),o.path=b,m!==void 0&&(o.comment=m),x!==void 0&&(o.pageview=x)},destroy:()=>{u==null||u.unmount(),f(),d()}}},Hp=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const i=Cr(),s=mi(e),l=new AbortController;return zi({serverURL:t,count:n,lang:r,signal:l.signal,token:i.value.token}).then(o=>s&&o.length?(s.innerHTML=`<ul class="wl-recent-list">${o.map(a=>`<li class="wl-recent-item"><a href="${a.url}">${a.nick}</a>:${a.comment}</li>`).join("")}</ul>`,{comments:o,destroy:()=>{l.abort(),s.innerHTML=""}}):{comments:o,destroy:()=>l.abort()})},Up=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=mi(e),o=new AbortController;return Di({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Yi(i),...typeof r=="object"?r:{}},l.innerHTML=`<ul class="wl-user-${s}">${a.map((c,u)=>[`<li class="wl-user-item" aria-label="${c.nick}">`,c.link&&`<a href="${c.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${c.avatar}" alt="${c.nick}">`,`<span class="wl-user-badge">${u+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',c.nick,c.level&&`<span class="wl-badge">${r?r[`level${c.level}`]:`Level ${c.level}`}</span>`,c.label&&`<span class="wl-badge">${c.label}</span>`,"</div>",c.link&&c.link,"</div>",c.link&&"</a>","</li>"].filter(f=>f).join("")).join("")}</ul>`,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};re.RecentComments=Hp,re.UserList=Up,re.addComment=Ii,re.commentCount=ao,re.defaultLocales=zn,re.deleteComment=Li,re.fetchCommentCount=Mi,re.getArticleCounter=Ar,re.getComment=Ti,re.getPageview=Oi,re.getRecentComment=zi,re.getUserList=Di,re.init=Fp,re.login=Pi,re.pageviewCount=ko,re.updateArticleCounter=jn,re.updateComment=tn,re.updatePageview=ji,re.version=yo});
84
84
  //# sourceMappingURL=waline.umd.js.map