56 lines
157 KiB
JavaScript
56 lines
157 KiB
JavaScript
var Wh=Object.defineProperty,qh=(e,t,n)=>t in e?Wh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ne=(e,t,n)=>(qh(e,"symbol"!=typeof t?t+"":t,n),n),Kh=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},xr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},_i=(e,t,n)=>(Kh(e,t,"access private method"),n);!function(e,t){"object"==typeof exports&&typeof module<"u"?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=typeof globalThis<"u"?globalThis:e||self).Waline={})}(this,function(e){"use strict";var i,x,L,R;const I={"Content-Type":"application/json"},A=e=>e.replace(/\/?$/,"/")+"api/",$=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: `+e.errmsg);return e},M=({serverURL:e,lang:t,paths:n,type:r,signal:l})=>fetch(`${A(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=`+t,{signal:l}).then(e=>e.json()).then(e=>$(e,"Get counter").data),P=({serverURL:e,lang:t,path:n,type:r,action:l})=>fetch(A(e)+"article?lang="+t,{method:"POST",headers:I,body:JSON.stringify({path:n,type:r,action:l})}).then(e=>e.json()).then(e=>$(e,"Update counter").data),U=({serverURL:e,lang:t,path:n,page:r,pageSize:l,sortBy:i,signal:o,token:s})=>{const a={};return s&&(a.Authorization="Bearer "+s),fetch(`${A(e)}comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}&sortBy=`+i,{signal:o,headers:a}).then(e=>e.json()).then(e=>$(e,"Get comment data").data)},V=({serverURL:e,lang:t,token:n,comment:r})=>{const l={"Content-Type":"application/json"};return n&&(l.Authorization="Bearer "+n),fetch(A(e)+"comment?lang="+t,{method:"POST",headers:l,body:JSON.stringify(r)}).then(e=>e.json())},D=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(A(e)+`comment/${r}?lang=`+t,{method:"DELETE",headers:{Authorization:"Bearer "+n}}).then(e=>e.json()).then(e=>$(e,"Delete comment")),H=({serverURL:e,lang:t,token:n,objectId:r,comment:l})=>fetch(A(e)+`comment/${r}?lang=`+t,{method:"PUT",headers:{...I,Authorization:"Bearer "+n},body:JSON.stringify(l)}).then(e=>e.json()).then(e=>$(e,"Update comment")),B=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${A(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=`+t,{signal:r}).then(e=>e.json()).then(e=>$(e,"Get comment count").data),W=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,l=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 null!=l&&l.postMessage({type:"TOKEN",data:null},"*"),new Promise(t=>{const n=({data:e})=>{e&&"object"==typeof e&&"userInfo"===e.type&&e.data.token&&(null!=l&&l.close(),window.removeEventListener("message",n),t(e.data))};window.addEventListener("message",n)})},q=({serverURL:e,lang:t,paths:n,signal:r})=>M({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),G=e=>P({...e,type:"time",action:"inc"}),Z=({serverURL:e,lang:t,count:n,signal:r,token:l})=>{const i={};return l&&(i.Authorization="Bearer "+l),fetch(A(e)+`comment?type=recent&count=${n}&lang=`+t,{signal:r,headers:i}).then(e=>e.json())},K=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(A(e)+`user?pageSize=${n}&lang=`+r,{signal:t}).then(e=>e.json()).then(e=>$(e,"user list")).then(e=>e.data),Q=["nick","mail","link"],ne=e=>e.filter(e=>Q.includes(e)),re=["//unpkg.com/@waline/emojis@1.1.0/weibo"],le=["//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"],ie=r=>new Promise((t,e)=>{if(128e3<r.size)return e(new Error("File too large! File size limit 128KB"));const n=new FileReader;n.readAsDataURL(r),n.onload=()=>{var e;return t((null==(e=n.result)?void 0:e.toString())??"")},n.onerror=e}),oe=e=>!0===e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',se=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),ae=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],ce={},ue=e=>{let l=0;return e.replace(se,(e,t,n)=>{if(n)return`<span style="color: slategray">${n}</span>`;if("<"===t)return"<";let r;ce[t]?r=ce[t]:(r=ae[l],ce[t]=r);n=`<span style="color: #${r}">${t}</span>`;return l=++l%ae.length,n})},pe=["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"],de=e=>Object.fromEntries(e.map((e,t)=>[pe[t],e]));var he=de(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
|
||
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?"]),fe=de(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots !
|
||
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 ?"]),ge=de(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
||
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),me=de(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
|
||
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),ve=de(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
||
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),ye=de(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ!
|
||
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?"]),t=de(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
||
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),we=de(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間!
|
||
目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]),be=de(["Benutzername","Der Benutzername darf nicht weniger als 3 Bytes umfassen.","E-Mail","Bitte bestätigen Sie Ihre E-Mail-Adresse.","Webseite","Optional","Kommentieren Sie hier...","Noch keine Kommentare.","Senden","Gefällt mir","Gefällt mir nicht mehr","Antworten","Antwort abbrechen","Kommentare","Aktualisieren","Mehr laden...","Vorschau","Emoji","Ein Bild hochladen","Vor einigen Sekunden","Vor einigen Minuten","Vor einigen Stunden","Vor einigen Tagen","Gerade eben","Hochladen läuft","Anmelden","Abmelden","Admin","Angeheftet","Wörter","Bitte geben Sie Kommentare zwischen $0 und $1 Wörtern ein! Aktuelle Anzahl der Wörter: $2","Anonym","Zwerge","Hobbits","Ents","Magier","Elfen","Maïar","GIF","Nach einem GIF suchen","Profil","Genehmigt","Ausstehend","Spam","Lösen","Älteste","Neueste","Am beliebtesten","Was denken Sie?"]);const ke="en-US",xe={zh:t,"zh-cn":t,"zh-tw":we,en:he,"en-us":he,fr:fe,"fr-fr":fe,jp:ge,"jp-jp":ge,"pt-br":me,ru:ve,"ru-ru":ve,vi:ye,"vi-vn":ye,de:be},_e=e=>xe[e.toLowerCase()]||xe[ke.toLowerCase()],Ce=e=>Object.keys(xe).includes(e.toLowerCase())?e:ke,Se=e=>{try{e=decodeURI(e)}catch{}return e},Le=(e="")=>e.replace(/\/$/u,""),Re=e=>/^(https?:)?\/\//.test(e),Ie=e=>{e=Le(e);return Re(e)?e:"https://"+e},Ee=(e,t)=>"function"==typeof e?e:!1!==e&&t,Ae=({serverURL:e,path:t=location.pathname,lang:n="u"<typeof navigator?"en-US":navigator.language,locale:r,emoji:l=re,meta:i=["nick","mail","link"],requiredMeta:o=[],dark:s=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:p,texRenderer:d,copyright:h=!0,login:f="enable",search:g,reaction:m,recaptchaV3Key:v="",turnstileKey:y="",commentSorting:w="latest",...b})=>({serverURL:Ie(e),path:Se(t),lang:Ce(n),locale:{..._e(Ce(n)),..."object"==typeof r?r:{}},wordLimit:(e=>Array.isArray(e)?e:!!e&&[0,e])(c),meta:ne(i),requiredMeta:ne(o),imageUploader:Ee(u,ie),highlighter:Ee(p,ue),texRenderer:Ee(d,oe),dark:s,emoji:"boolean"==typeof l?l?re:[]:l,pageSize:a,login:f,copyright:h,search:!1!==g&&("object"==typeof g?g:(n=>{const r=async(e,t={})=>fetch(`https://api.giphy.com/v1/gifs/${e}?`+new URLSearchParams({lang:n,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...t}).toString()).then(e=>e.json()).then(({data:e})=>e.map(e=>({title:e.title,src:e.images.downsized_medium.url})));return{search:e=>r("search",{q:e,offset:"0"}),default:()=>r("trending",{}),more:(e,t=0)=>r("search",{q:e,offset:t.toString()})}})(n)),recaptchaV3Key:v,turnstileKey:y,reaction:Array.isArray(m)?m:!0===m?le:[],commentSorting:w,...b}),$e=e=>"string"==typeof e,Te="{--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}",je=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},ze=(e,t,n)=>{if(!e)return"";const r=$e(e)?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),i=Math.floor(l/864e5);var o;return 0===i?(e=l%864e5,0===(t=Math.floor(e/36e5))?(e=e%36e5,0===(o=Math.floor(e/6e4))?Math.round(e%6e4/1e3)+" "+n.seconds:o+" "+n.minutes):t+" "+n.hours):i<0?n.now:i<8?i+" "+n.days:(e=r,o=je(e.getDate(),2),t=je(e.getMonth()+1,2),je(e.getFullYear(),2)+`-${t}-`+o)},Oe=/^[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])?)*$/;function Me(e){const t=new Set(e.split(","));return e=>t.has(e)}const _={},Pe=[],Ue=()=>{},Fe=()=>!1,Ve=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(122<e.charCodeAt(2)||e.charCodeAt(2)<97),De=e=>e.startsWith("onUpdate:"),f=Object.assign,He=(e,t)=>{t=e.indexOf(t);-1<t&&e.splice(t,1)},Be=Object.prototype.hasOwnProperty,T=(e,t)=>Be.call(e,t),j=Array.isArray,We=e=>"[object Map]"===Xe(e),qe=e=>"[object Set]"===Xe(e),Ge=e=>"[object Date]"===Xe(e),z=e=>"function"==typeof e,O=e=>"string"==typeof e,Ze=e=>"symbol"==typeof e,X=e=>null!==e&&"object"==typeof e,Ke=e=>(X(e)||z(e))&&z(e.then)&&z(e.catch),Qe=Object.prototype.toString,Xe=e=>Qe.call(e),Je=e=>Xe(e).slice(8,-1),Ye=e=>"[object Object]"===Xe(e),et=e=>O(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,tt=Me(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),nt=t=>{const n=Object.create(null);return e=>n[e]||(n[e]=t(e))},rt=/-(\w)/g,lt=nt(e=>e.replace(rt,(e,t)=>t?t.toUpperCase():"")),it=/\B([A-Z])/g,ot=nt(e=>e.replace(it,"-$1").toLowerCase()),st=nt(e=>e.charAt(0).toUpperCase()+e.slice(1)),at=nt(e=>e?"on"+st(e):""),ct=(e,t)=>!Object.is(e,t),ut=(t,n)=>{for(let e=0;e<t.length;e++)t[e](n)},pt=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},dt=e=>{var t=parseFloat(e);return isNaN(t)?e:t};let ht;const ft=()=>ht=ht||(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gt(t){if(j(t)){const l={};for(let e=0;e<t.length;e++){var n=t[e],r=(O(n)?function(e){const n={};return e.replace(yt,"").split(mt).forEach(e=>{if(e){const t=e.split(vt);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n}:gt)(n);if(r)for(const i in r)l[i]=r[i]}return l}if(O(t)||X(t))return t}const mt=/;(?![^(]*\))/g,vt=/:([^]+)/,yt=/\/\*[^]*?\*\//g;function p(t){let n="";if(O(t))n=t;else if(j(t))for(let e=0;e<t.length;e++){var r=p(t[e]);r&&(n+=r+" ")}else if(X(t))for(const e in t)t[e]&&(n+=e+" ");return n.trim()}const wt=Me("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function bt(e){return!!e||""===e}function kt(e,t){if(e===t)return!0;let n=Ge(e),r=Ge(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=Ze(e),r=Ze(t),n||r)return e===t;if(n=j(e),r=j(t),n||r)return!(!n||!r)&&function(t,n){if(t.length!==n.length)return!1;let r=!0;for(let e=0;r&&e<t.length;e++)r=kt(t[e],n[e]);return r}(e,t);if(n=X(e),r=X(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e){var l=e.hasOwnProperty(o),i=t.hasOwnProperty(o);if(l&&!i||!l&&i||!kt(e[o],t[o]))return!1}}return String(e)===String(t)}function xt(e,t){return e.findIndex(e=>kt(e,t))}const a=e=>O(e)?e:null==e?"":j(e)||X(e)&&(e.toString===Qe||!z(e.toString))?JSON.stringify(e,_t,2):String(e),_t=(e,t)=>t&&t.__v_isRef?_t(e,t.value):We(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ct(t,r)+" =>"]=n,e),{})}:qe(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ct(e))}:Ze(t)?Ct(t):!X(t)||j(t)||Ye(t)?t:String(t),Ct=(e,t="")=>{var n;return Ze(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let C;class St{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=C,!e&&C&&(this.index=(C.scopes||(C.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){var t=C;try{return C=this,e()}finally{C=t}}}on(){C=this}off(){C=this.parent}stop(n){if(this._active){let e,t;for(e=0,t=this.effects.length;e<t;e++)this.effects[e].stop();for(e=0,t=this.cleanups.length;e<t;e++)this.cleanups[e]();if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!n){const r=this.parent.scopes.pop();r&&r!==this&&((this.parent.scopes[this.index]=r).index=this.index)}this.parent=void 0,this._active=!1}}}let Lt;class Rt{constructor(e,t,n,r){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,[e,t=C]=[this,r],t&&t.active&&t.effects.push(e)}get dirty(){return 2!==this._dirtyLevel&&3!==this._dirtyLevel||(this._dirtyLevel=1,zt(),1===this._dirtyLevel&&(this._dirtyLevel=0),Ot()),4<=this._dirtyLevel}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();var e=$t,t=Lt;try{return $t=!0,(Lt=this)._runnings++,It(this),this.fn()}finally{Et(this),this._runnings--,Lt=t,$t=e}}stop(){this.active&&(It(this),Et(this),this.onStop&&this.onStop(),this.active=!1)}}function It(e){e._trackId++,e._depsLength=0}function Et(t){if(t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)At(t.deps[e],t);t.deps.length=t._depsLength}}function At(e,t){var n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let $t=!0,Tt=0;const jt=[];function zt(){jt.push($t),$t=!1}function Ot(){var e=jt.pop();$t=void 0===e||e}function Mt(){Tt++}function Pt(){for(Tt--;!Tt&&Nt.length;)Nt.shift()()}function Ut(e,t){var n;t.get(e)!==e._trackId&&(t.set(e,e._trackId),(n=e.deps[e._depsLength])!==t?(n&&At(n,e),e.deps[e._depsLength++]=t):e._depsLength++)}const Nt=[];function Ft(t,n){Mt();for(const r of t.keys()){let e;r._dirtyLevel<n&&(e=e??t.get(r)===r._trackId)&&(r._shouldSchedule||(r._shouldSchedule=0===r._dirtyLevel),r._dirtyLevel=n),r._shouldSchedule&&(e=e??t.get(r)===r._trackId)&&(r.trigger(),r._runnings&&!r.allowRecurse||2===r._dirtyLevel||(r._shouldSchedule=!1,r.scheduler&&Nt.push(r.scheduler)))}Pt()}const Vt=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Dt=new WeakMap,Ht=Symbol(""),Bt=Symbol("");function h(n,e,r){if($t&&Lt){let e=Dt.get(n),t=(e||Dt.set(n,e=new Map),e.get(r));t||e.set(r,t=Vt(()=>e.delete(r))),Ut(Lt,t)}}function Wt(e,t,r,l){const i=Dt.get(e);if(i){let n=[];if("clear"===t)n=[...i.values()];else if("length"===r&&j(e)){const o=Number(l);i.forEach((e,t)=>{("length"===t||!Ze(t)&&t>=o)&&n.push(e)})}else switch(void 0!==r&&n.push(i.get(r)),t){case"add":j(e)?et(r)&&n.push(i.get("length")):(n.push(i.get(Ht)),We(e)&&n.push(i.get(Bt)));break;case"delete":j(e)||(n.push(i.get(Ht)),We(e)&&n.push(i.get(Bt)));break;case"set":We(e)&&n.push(i.get(Ht))}Mt();for(const s of n)s&&Ft(s,4);Pt()}}const qt=Me("__proto__,__v_isRef,__isVue"),Gt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(Ze)),Zt=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach(r=>{e[r]=function(...e){const n=J(this);for(let e=0,t=this.length;e<t;e++)h(n,0,e+"");var t=n[r](...e);return-1===t||!1===t?n[r](...e.map(J)):t}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){zt(),Mt();e=J(this)[t].apply(this,e);return Pt(),Ot(),e}}),e}();function Kt(e){Ze(e)||(e=String(e));const t=J(this);return h(t,0,e),t.hasOwnProperty(e)}class Qt{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){var r=this._isReadonly,l=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return l;if("__v_raw"===t)return n===(r?l?Sn:Cn:l?_n:xn).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;var i=j(e);if(!r){if(i&&T(Zt,t))return Reflect.get(Zt,t,n);if("hasOwnProperty"===t)return Kt}n=Reflect.get(e,t,n);return(Ze(t)?Gt.has(t):qt(t))||(r||h(e,0,t),l)?n:S(n)?i&&et(t)?n:n.value:X(n)?(r?Rn:Ln)(n):n}}class Xt extends Qt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let l=e[t];if(!this._isShallow){var i=An(l);if($n(n)||An(n)||(l=J(l),n=J(n)),!j(e)&&S(l)&&!S(n))return!i&&(l.value=n,!0)}var i=j(e)&&et(t)?Number(t)<e.length:T(e,t),o=Reflect.set(e,t,n,r);return e===J(r)&&(i?ct(n,l)&&Wt(e,"set",t,n):Wt(e,"add",t,n)),o}deleteProperty(e,t){var n=T(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&Wt(e,"delete",t,void 0),r}has(e,t){var n=Reflect.has(e,t);return Ze(t)&&Gt.has(t)||h(e,0,t),n}ownKeys(e){return h(e,0,j(e)?"length":Ht),Reflect.ownKeys(e)}}const Jt=new Xt,Yt=new class extends Qt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},en=new Xt(!0),tn=e=>e,nn=e=>Reflect.getPrototypeOf(e);function rn(e,t,n=!1,r=!1){var l=J(e=e.__v_raw),i=J(t);n||(ct(t,i)&&h(l,0,t),h(l,0,i));const o=nn(l)["has"],s=r?tn:n?zn:jn;return o.call(l,t)?s(e.get(t)):o.call(l,i)?s(e.get(i)):void(e!==l&&e.get(t))}function ln(e,t=!1){const n=this.__v_raw,r=J(n),l=J(e);return t||(ct(e,l)&&h(r,0,e),h(r,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function on(e,t=!1){return e=e.__v_raw,t||h(J(e),0,Ht),Reflect.get(e,"size",e)}function sn(e){e=J(e);const t=J(this);return nn(t).has.call(t,e)||(t.add(e),Wt(t,"add",e,e)),this}function an(e,t){t=J(t);const n=J(this),{has:r,get:l}=nn(n);let i=r.call(n,e);i||(e=J(e),i=r.call(n,e));var o=l.call(n,e);return n.set(e,t),i?ct(t,o)&&Wt(n,"set",e,t):Wt(n,"add",e,t),this}function cn(e){const t=J(this),{has:n,get:r}=nn(t);let l=n.call(t,e);l||(e=J(e),l=n.call(t,e)),r&&r.call(t,e);var i=t.delete(e);return l&&Wt(t,"delete",e,void 0),i}function un(){const e=J(this),t=0!==e.size,n=e.clear();return t&&Wt(e,"clear",void 0,void 0),n}function pn(o,s){return function(n,r){const l=this,e=l.__v_raw,t=J(e),i=s?tn:o?zn:jn;return o||h(t,0,Ht),e.forEach((e,t)=>n.call(r,i(e),i(t),l))}}function dn(a,c,u){return function(...e){const t=this.__v_raw,n=J(t),r=We(n),l="entries"===a||a===Symbol.iterator&&r,i="keys"===a&&r,o=t[a](...e),s=u?tn:c?zn:jn;return c||h(n,0,i?Bt:Ht),{next(){var{value:e,done:t}=o.next();return t?{value:e,done:t}:{value:l?[s(e[0]),s(e[1])]:s(e),done:t}},[Symbol.iterator](){return this}}}}function hn(e){return function(){return"delete"!==e&&("clear"===e?void 0:this)}}const[fn,gn,mn,vn]=function(){const t={get(e){return rn(this,e)},get size(){return on(this)},has:ln,add:sn,set:an,delete:cn,clear:un,forEach:pn(!1,!1)},n={get(e){return rn(this,e,!1,!0)},get size(){return on(this)},has:ln,add:sn,set:an,delete:cn,clear:un,forEach:pn(!1,!0)},r={get(e){return rn(this,e,!0)},get size(){return on(this,!0)},has(e){return ln.call(this,e,!0)},add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear"),forEach:pn(!0,!1)},l={get(e){return rn(this,e,!0,!0)},get size(){return on(this,!0)},has(e){return ln.call(this,e,!0)},add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear"),forEach:pn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(e=>{t[e]=dn(e,!1,!1),r[e]=dn(e,!0,!1),n[e]=dn(e,!1,!0),l[e]=dn(e,!0,!0)}),[t,r,n,l]}();function yn(r,e){const l=e?r?vn:mn:r?gn:fn;return(e,t,n)=>"__v_isReactive"===t?!r:"__v_isReadonly"===t?r:"__v_raw"===t?e:Reflect.get(T(l,t)&&t in e?l:e,t,n)}const wn={get:yn(!1,!1)},bn={get:yn(!1,!0)},kn={get:yn(!0,!1)},xn=new WeakMap,_n=new WeakMap,Cn=new WeakMap,Sn=new WeakMap;function Ln(e){return An(e)?e:In(e,!1,Jt,wn,xn)}function Rn(e){return In(e,!0,Yt,kn,Cn)}function In(e,t,n,r,l){if(!X(e)||e.__v_raw&&(!t||!e.__v_isReactive))return e;t=l.get(e);if(t)return t;t=function(e){if(e.__v_skip||!Object.isExtensible(e))return 0;switch(Je(e)){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(e);if(0===t)return e;t=new Proxy(e,2===t?r:n);return l.set(e,t),t}function En(e){return An(e)?En(e.__v_raw):!(!e||!e.__v_isReactive)}function An(e){return!(!e||!e.__v_isReadonly)}function $n(e){return!(!e||!e.__v_isShallow)}function Tn(e){return e&&e.__v_raw}function J(e){var t=e&&e.__v_raw;return t?J(t):e}const jn=e=>X(e)?Ln(e):e,zn=e=>X(e)?Rn(e):e;class On{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Rt(()=>e(this._value),()=>Pn(this,2===this.effect._dirtyLevel?2:3)),(this.effect.computed=this).effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=J(this);return e._cacheable&&!e.effect.dirty||!ct(e._value,e._value=e.effect.run())||Pn(e,4),Mn(e),2<=e.effect._dirtyLevel&&Pn(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Mn(e){var t;$t&&Lt&&(e=J(e),Ut(Lt,null!=(t=e.dep)?t:e.dep=Vt(()=>e.dep=void 0,e instanceof On?e:void 0)))}function Pn(e,t=4){e=(e=J(e)).dep;e&&Ft(e,t)}function S(e){return!(!e||!0!==e.__v_isRef)}function N(e){return Nn(e,!1)}function Un(e){return Nn(e,!0)}function Nn(e,t){return S(e)?e:new Fn(e,t)}class Fn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:J(e),this._value=t?e:jn(e)}get value(){return Mn(this),this._value}set value(e){var t=this.__v_isShallow||$n(e)||An(e);e=t?e:J(e),ct(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:jn(e),Pn(this,4))}}function Vn(e){return S(e)?e.value:e}const Dn={get:(e,t,n)=>Vn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return S(l)&&!S(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function Hn(e){return En(e)?e:new Proxy(e,Dn)}function Bn(e,t,n,r){try{return r?e(...r):e()}catch(e){qn(e,t,n)}}function Wn(t,n,r,l){if(z(t)){const e=Bn(t,n,r,l);return e&&Ke(e)&&e.catch(e=>{qn(e,n,r)}),e}if(j(t)){const i=[];for(let e=0;e<t.length;e++)i.push(Wn(t[e],n,r,l));return i}}function qn(t,n,r,e=!0){var l;n&&n.vnode;if(n){let e=n.parent;for(var i=n.proxy,o="https://vuejs.org/error-reference/#runtime-"+r;e;){const s=e.ec;if(s)for(let e=0;e<s.length;e++)if(!1===s[e](t,i,o))return;e=e.parent}r=n.appContext.config.errorHandler;if(r)return zt(),Bn(r,null,10,[t,i,o]),void Ot()}[n,l=0]=[t,e],console.error(n)}let Gn=!1,Zn=!1;const o=[];let Kn=0;const Qn=[];let Xn=null,Jn=0;const Yn=Promise.resolve();let er=null;function tr(e){const t=er||Yn;return e?t.then(this?e.bind(this):e):t}function nr(e){o.length&&o.includes(e,Gn&&e.allowRecurse?Kn+1:Kn)||(null==e.id?o.push(e):o.splice(function(e){let t=Kn+1,n=o.length;for(;t<n;){var r=t+n>>>1,l=o[r],i=or(l);i<e||i===e&&l.pre?t=1+r:n=r}return t}(e.id),0,e),rr())}function rr(){Gn||Zn||(Zn=!0,er=Yn.then(ar))}function lr(e,t,n=Gn?Kn+1:0){for(;n<o.length;n++){const r=o[n];r&&r.pre&&(e&&r.id!==e.uid||(o.splice(n,1),n--,r()))}}function ir(){if(Qn.length){var e=[...new Set(Qn)].sort((e,t)=>or(e)-or(t));if(Qn.length=0,Xn)Xn.push(...e);else{for(Xn=e,Jn=0;Jn<Xn.length;Jn++)Xn[Jn]();Xn=null,Jn=0}}}const or=e=>null==e.id?1/0:e.id,sr=(e,t)=>{var n=or(e)-or(t);if(0==n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ar(e){Zn=!1,Gn=!0,o.sort(sr);try{for(Kn=0;Kn<o.length;Kn++){var t=o[Kn];t&&!1!==t.active&&Bn(t,null,14)}}finally{Kn=0,o.length=0,ir(),Gn=!1,er=null,(o.length||Qn.length)&&ar()}}function cr(e,t){return e&&Ve(t)&&(t=t.slice(2).replace(/Once$/,""),T(e,t[0].toLowerCase()+t.slice(1))||T(e,ot(t))||T(e,t))}let c=null,ur=null;function pr(e){var t=c;return c=e,ur=e&&e.type.__scopeId||null,t}function dr(t){const{type:e,vnode:n,proxy:r,withProxy:l,propsOptions:[i],slots:o,attrs:s,emit:a,render:c,renderCache:u,props:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=t,m=pr(t);let v,y;try{if(4&n.shapeFlag){var w=l||r,b=w;v=zl(c.call(b,w,u,p,h,d,f)),y=s}else{const x=e;v=zl(1<x.length?x(p,{attrs:s,slots:o,emit:a}):x(p,null)),y=e.props?s:hr(s)}}catch(e){_l.length=0,qn(e,t,1),v=te(kl)}let k=v;if(y&&!1!==g){const _=Object.keys(y),C=k["shapeFlag"];_.length&&7&C&&(i&&_.some(De)&&(y=fr(y,i)),k=Tl(k,y,!1,!0))}return n.dirs&&((k=Tl(k,null,!1,!0)).dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),v=k,pr(m),v}const hr=e=>{let t;for(const n in e)"class"!==n&&"style"!==n&&!Ve(n)||((t=t||{})[n]=e[n]);return t},fr=(e,t)=>{const n={};for(const r in e)De(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function gr(t,n,r){var l=Object.keys(n);if(l.length!==Object.keys(t).length)return!0;for(let e=0;e<l.length;e++){var i=l[e];if(n[i]!==t[i]&&!cr(r,i))return!0}return!1}const mr="components";function vr(e,t){return function(e,t,n=!1){var r=c||E;if(r){var l=r.type,i=function(e,t){return z(e)?e.displayName||e.name:e.name||t&&e.__name}(l,!1);if(i&&(i===t||i===lt(t)||i===st(lt(t))))return l;i=wr(r[e]||l[e],t)||wr(r.appContext[e],t);return!i&&n?l:i}}(mr,e,t)||e}const yr=Symbol.for("v-ndc");function wr(e,t){return e&&(e[t]||e[lt(t)]||e[st(lt(t))])}const br=Symbol.for("v-scx"),kr=()=>Xr(br);function _r(e,t){return Lr(e,null,t)}const Cr={};function Sr(e,t,n){return Lr(e,t,n)}function Lr(e,t,{immediate:n,deep:r,flush:l,once:i}=_){if(t&&i){const b=t;t=(...e)=>{b(...e),w()}}const o=E,s=e=>!0===r?e:Rr(e,!1===r?1:void 0);let a,c=!1,u=!1;if(S(e)?(a=()=>e.value,c=$n(e)):En(e)?(a=()=>s(e),c=!0):a=j(e)?(u=!0,c=e.some(e=>En(e)||$n(e)),()=>e.map(e=>S(e)?e.value:En(e)?s(e):z(e)?Bn(e,o,2):void 0)):z(e)?t?()=>Bn(e,o,2):()=>(p&&p(),Wn(e,o,3,[d])):Ue,t&&r){const k=a;a=()=>Rr(k())}let p,d=e=>{p=v.onStop=()=>{Bn(e,o,4),p=v.onStop=void 0}},h;if(ql){if(d=Ue,t?n&&Wn(t,o,3,[a(),u?[]:void 0,d]):a(),"sync"!==l)return Ue;{const x=kr();h=x.__watcherHandles||(x.__watcherHandles=[])}}let f=u?new Array(e.length).fill(Cr):Cr;const g=()=>{if(v.active&&v.dirty)if(t){const e=v.run();(r||c||(u?e.some((e,t)=>ct(e,f[t])):ct(e,f)))&&(p&&p(),Wn(t,o,3,[e,f===Cr?void 0:u&&f[0]===Cr?[]:f,d]),f=e)}else v.run()};g.allowRecurse=!!t;let m;m="sync"===l?g:"post"===l?()=>Y(g,o&&o.suspense):(g.pre=!0,o&&(g.id=o.uid),()=>nr(g));const v=new Rt(a,Ue,m),y=C,w=()=>{v.stop(),y&&He(y.effects,v)};return t?n?g():f=v.run():"post"===l?Y(v.run.bind(v),o&&o.suspense):v.run(),h&&h.push(w),w}function Rr(t,n=1/0,r){if(n<=0||!X(t)||t.__v_skip||(r=r||new Set).has(t))return t;if(r.add(t),n--,S(t))Rr(t.value,n,r);else if(j(t))for(let e=0;e<t.length;e++)Rr(t[e],n,r);else if(qe(t)||We(t))t.forEach(e=>{Rr(e,n,r)});else if(Ye(t))for(const e in t)Rr(t[e],n,r);return t}function Ir(e,i){if(null===c)return e;const o=Xl(c)||c.proxy,s=e.dirs||(e.dirs=[]);for(let l=0;l<i.length;l++){let[e,t,n,r=_]=i[l];e&&((e=z(e)?{mounted:e,updated:e}:e).deep&&Rr(t),s.push({dir:e,instance:o,value:t,oldValue:void 0,arg:n,modifiers:r}))}return e}function Er(t,n,r,l){var i=t.dirs,o=n&&n.dirs;for(let e=0;e<i.length;e++){const a=i[e];o&&(a.oldValue=o[e].value);var s=a.dir[l];s&&(zt(),Wn(s,r,8,[t.el,a,t,n]),Ot())}}function Ar(e,t){return z(e)?f({name:e.name},t,{setup:e}):e}const $r=e=>!!e.type.__asyncLoader,Tr=e=>e.type.__isKeepAlive;const jr=n=>(t,e=E)=>(!ql||"sp"===n)&&function(r,l,i=E,e=!1){if(i){const t=i[r]||(i[r]=[]),n=l.__weh||(l.__weh=(...e)=>{if(!i.isUnmounted){zt();const t=Hl(i),n=Wn(l,i,r,e);return t(),Ot(),n}});return e?t.unshift(n):t.push(n),n}}(n,(...e)=>t(...e),e),zr=jr("m"),Or=jr("bum"),Mr=jr("um");function u(n,r,e){let l;const i=e;if(j(n)||O(n)){l=new Array(n.length);for(let e=0,t=n.length;e<t;e++)l[e]=r(n[e],e,void 0,i)}else if("number"==typeof n){l=new Array(n);for(let e=0;e<n;e++)l[e]=r(e+1,e,void 0,i)}else if(X(n))if(n[Symbol.iterator])l=Array.from(n,(e,t)=>r(e,t,void 0,i));else{var o=Object.keys(n);l=new Array(o.length);for(let e=0,t=o.length;e<t;e++){var s=o[e];l[e]=r(n[s],s,e,i)}}else l=[];return l}const Pr=e=>e?Wl(e)?Xl(e)||e.proxy:Pr(e.parent):null,Ur=f(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=>Pr(e.parent),$root:e=>Pr(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,nr(e.update)}),$nextTick:e=>e.n||(e.n=tr.bind(e.proxy)),$watch:e=>Ue}),Nr=(e,t)=>e!==_&&!e.__isScriptSetup&&T(e,t),Fr={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:r,data:l,props:i,accessCache:o,type:s,appContext:a}=e;if("$"!==t[0]){var c=o[t];if(void 0!==c)switch(c){case 1:return r[t];case 2:return l[t];case 4:return n[t];case 3:return i[t]}else{if(Nr(r,t))return o[t]=1,r[t];if(l!==_&&T(l,t))return o[t]=2,l[t];if((c=e.propsOptions[0])&&T(c,t))return o[t]=3,i[t];if(n!==_&&T(n,t))return o[t]=4,n[t];o[t]=0}}const u=Ur[t];let p,d;return u?("$attrs"===t&&h(e.attrs,0,""),u(e)):(p=s.__cssModules)&&(p=p[t])?p:n!==_&&T(n,t)?(o[t]=4,n[t]):(d=a.config.globalProperties,T(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:l,ctx:i}=e;return Nr(l,t)?(l[t]=n,!0):r!==_&&T(r,t)?(r[t]=n,!0):!(T(e.props,t)||"$"===t[0]&&t.slice(1)in e)&&(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:i}},o){return!!n[o]||e!==_&&T(e,o)||Nr(t,o)||(n=i[0])&&T(n,o)||T(r,o)||T(Ur,o)||T(l.config.globalProperties,o)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:T(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Vr(e){return j(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Dr(t,e,n,r=!1){const{mixins:l,extends:i}=e;i&&Dr(t,i,n,!0),l&&l.forEach(e=>Dr(t,e,n,!0));for(const o in e)if(!r||"expose"!==o){const s=Hr[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const Hr={data:Br,props:Gr,emits:Gr,methods:qr,computed:qr,beforeCreate:l,created:l,beforeMount:l,mounted:l,beforeUpdate:l,updated:l,beforeDestroy:l,beforeUnmount:l,destroyed:l,unmounted:l,activated:l,deactivated:l,errorCaptured:l,serverPrefetch:l,components:qr,directives:qr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=f(Object.create(null),e);for(const r in t)n[r]=l(e[r],t[r]);return n},provide:Br,inject:function(e,t){return qr(Wr(e),Wr(t))}};function Br(e,t){return t?e?function(){return f(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function Wr(t){if(j(t)){const n={};for(let e=0;e<t.length;e++)n[t[e]]=t[e];return n}return t}function l(e,t){return e?[...new Set([].concat(e,t))]:t}function qr(e,t){return e?f(Object.create(null),e,t):t}function Gr(e,t){return e?j(e)&&j(t)?[...new Set([...e,...t])]:f(Object.create(null),Vr(e),Vr(t??{})):t}function Zr(){return{app:null,config:{isNativeTag:Fe,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 Kr=0;let Qr=null;function Xr(e,t,n=!1){var r,l=E||c;if(l||Qr)return(r=l?null==l.parent?l.vnode.appContext&&l.vnode.appContext.provides:l.parent.provides:Qr._context.provides)&&e in r?r[e]:1<arguments.length?n&&z(t)?t.call(l&&l.proxy):t:void 0}const Jr={},Yr=()=>Object.create(Jr),el=e=>Object.getPrototypeOf(e)===Jr;function tl(e,t,n,r=!1){const l={},i=Yr();e.propsDefaults=Object.create(null),nl(e,t,l,i);for(const o in e.propsOptions[0])o in l||(l[o]=void 0);n?e.props=r?l:In(l,!1,en,bn,_n):e.type.props?e.props=l:e.props=i,e.attrs=i}function nl(t,n,r,l){const[i,o]=t.propsOptions;let s=!1,a;if(n)for(var c in n)if(!tt(c)){var u=n[c];let e;i&&T(i,e=lt(c))?o&&o.includes(e)?(a=a||{})[e]=u:r[e]=u:cr(t.emitsOptions,c)||c in l&&u===l[c]||(l[c]=u,s=!0)}if(o){var p=J(r),d=a||_;for(let e=0;e<o.length;e++){var h=o[e];r[h]=rl(i,p,h,d[h],t,!T(d,h))}}return s}function rl(e,t,n,r,l,i){e=e[n];if(null!=e){var o=T(e,"default");if(o&&void 0===r){const s=e.default;if(e.type!==Function&&!e.skipFactory&&z(s)){const a=l["propsDefaults"];if(n in a)r=a[n];else{const c=Hl(l);r=a[n]=s.call(null,t),c()}}else r=s}e[0]&&(i&&!o?r=!1:!e[1]||""!==r&&r!==ot(n)||(r=!0))}return r}function ll(e){return"$"!==e[0]&&!tt(e)}function il(e){return null===e?"null":"function"==typeof e?e.name||"":"object"==typeof e&&e.constructor&&e.constructor.name||""}function ol(e,t){return il(e)===il(t)}function sl(t,e){return j(e)?e.findIndex(e=>ol(e,t)):z(e)&&ol(e,t)?0:-1}const al=e=>"_"===e[0]||"$stable"===e,cl=e=>j(e)?e.map(zl):[zl(e)],ul=(e,t,n)=>{if(t._n)return t;const r=function(r,l=c){if(!l||r._n)return r;const i=(...e)=>{i._d&&Sl(-1);var t=pr(l);let n;try{n=r(...e)}finally{pr(t),i._d&&Sl(1)}return n};return i._n=!0,i._c=!0,i._d=!0,i}((...e)=>cl(t(...e)),n);return r._c=!1,r},pl=(e,t,n)=>{var r=e._ctx;for(const i in e)if(!al(i)){var l=e[i];if(z(l))t[i]=ul(i,l,r);else if(null!=l){const o=cl(l);t[i]=()=>o}}},dl=(e,t)=>{const n=cl(t);e.slots.default=()=>n},hl=(e,t)=>{var n,r=e.slots=Yr();32&e.vnode.shapeFlag?(n=t._)?(f(r,t),pt(r,"_",n,!0)):pl(t,r):t&&dl(e,t)},fl=(e,t,n)=>{const{vnode:r,slots:l}=e;let i=!0,o=_;var s;if(32&r.shapeFlag?((s=t._)?n&&1===s?i=!1:(f(l,t),n||1!==s||delete l._):(i=!t.$stable,pl(t,l)),o=t):t&&(dl(e,t),o={default:1}),i)for(const a in l)al(a)||null!=o[a]||delete l[a]};function gl(t,n,r,l,i=!1){if(j(t))t.forEach((e,t)=>gl(e,n&&(j(n)?n[t]:n),r,l,i));else if(!$r(l)||i){const o=4&l.shapeFlag?Xl(l.component)||l.component.proxy:l.el,s=i?null:o,{i:a,r:c}=t,u=n&&n.r,p=a.refs===_?a.refs={}:a.refs,d=a.setupState;if(null!=u&&u!==c&&(O(u)?(p[u]=null,T(d,u)&&(d[u]=null)):S(u)&&(u.value=null)),z(c))Bn(c,a,12,[s,p]);else{const h=O(c),f=S(c);var e;(h||f)&&(e=()=>{if(t.f){const e=h?(T(d,c)?d:p)[c]:c.value;i?j(e)&&He(e,o):j(e)?e.includes(o)||e.push(o):h?(p[c]=[o],T(d,c)&&(d[c]=p[c])):(c.value=[o],t.k&&(p[t.k]=c.value))}else h?(p[c]=s,T(d,c)&&(d[c]=s)):f&&(c.value=s,t.k&&(p[t.k]=s))},s?(e.id=-1,Y(e,r)):e())}}}const Y=function(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):(t=e,j(t)?Qn.push(...t):Xn&&Xn.includes(t,t.allowRecurse?Jn+1:Jn)||Qn.push(t),rr())};function ml(e){{"boolean"!=typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(ft().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1);const t=ft(),{insert:M,remove:g,patchProp:y,createElement:m,createText:P,createComment:l,setText:U,setElementText:S,parentNode:L,nextSibling:b,setScopeId:i=Ue,insertStaticContent:N}=(t.__VUE__=!0,e),E=(r,l,i,o=null,s=null,a=null,c=void 0,u=null,p=!!l.dynamicChildren)=>{if(r!==l){r&&!El(r,l)&&(o=K(r),Z(r,s,a,!0),r=null),-2===l.patchFlag&&(p=!1,l.dynamicChildren=null);const{type:A,ref:$,shapeFlag:T}=l;switch(A){case bl:var e=r,t=l,n=i,d=o;if(e==null)M(t.el=P(t.children),n,d);else{const j=t.el=e.el;t.children!==e.children&&U(j,t.children)}break;case kl:F(r,l,i,o);break;case xl:null==r&&(n=l,d=i,e=o,t=c,[n.el,n.anchor]=N(n.children,d,e,t,n.el,n.anchor));break;case ee:{var h=r;var f=l;var g=i;var m=o;var v=s;var y=a;var w=c;var b=u;var k=p;const z=f.el=h?h.el:P(""),O=f.anchor=h?h.anchor:P("");let{patchFlag:e,dynamicChildren:t,slotScopeIds:n}=f;n&&(b=b?b.concat(n):n),h==null?(M(z,g,m),M(O,g,m),D(f.children||[],g,O,v,y,w,b,k)):e>0&&e&64&&t&&h.dynamicChildren?(B(h.dynamicChildren,t,g,v,y,w,b),(f.key!=null||v&&f===v.subTree)&&wl(h,f,!0)):G(h,f,g,O,v,y,w,b,k)}break;default:1&T?(m=r,h=i,f=o,g=s,v=a,y=c,w=u,b=p,"svg"===(k=l).type?y="svg":"math"===k.type&&(y="mathml"),null==m?V(k,h,f,g,v,y,w,b):H(m,k,g,v,y,w,b)):6&T?(x=r,C=i,S=o,L=s,R=a,I=c,E=p,(_=l).slotScopeIds=u,null==x?512&_.shapeFlag?L.ctx.activate(_,C,S,I,E):W(_,C,S,L,R,I,E):q(x,_,E)):(64&T||128&T)&&A.process(r,l,i,o,s,a,c,u,p,Q)}var x,_,C,S,L,R,I,E;null!=$&&s&&gl($,r&&r.ref,a,l||r,!l)}},F=(e,t,n,r)=>{null==e?M(t.el=l(t.children||""),n,r):t.el=e.el},V=(e,t,n,r,l,i,o,s)=>{let a,c;const{props:u,shapeFlag:p,transition:d,dirs:h}=e;if(a=e.el=m(e.type,i,u&&u.is,u),8&p?S(a,e.children):16&p&&D(e.children,a,null,r,l,vl(e,i),o,s),h&&Er(e,null,r,"created"),v(a,e,e.scopeId,o,r),u){for(const g in u)"value"===g||tt(g)||y(a,g,null,u[g],i,e.children,r,l,$);"value"in u&&y(a,"value",null,u.value,i),(c=u.onVnodeBeforeMount)&&Pl(c,r,e)}h&&Er(e,null,r,"beforeMount");s=l,o=d;const f=(!s||!s.pendingBranch)&&o&&!o.persisted;f&&d.beforeEnter(a),M(a,t,n),((c=u&&u.onVnodeMounted)||f||h)&&Y(()=>{c&&Pl(c,r,e),f&&d.enter(a),h&&Er(e,null,r,"mounted")},l)},v=(t,e,n,r,l)=>{if(n&&i(t,n),r)for(let e=0;e<r.length;e++)i(t,r[e]);l&&e===l.subTree&&(n=l.vnode,v(t,n,n.scopeId,n.slotScopeIds,l.parent))},D=(t,n,r,l,i,o,s,a,c=0)=>{for(let e=c;e<t.length;e++){var u=t[e]=(a?Ol:zl)(t[e]);E(null,u,n,r,l,i,o,s,a)}},H=(t,e,n,r,l,i,o)=>{var s=e.el=t.el;let{patchFlag:a,dynamicChildren:c,dirs:u}=e;a|=16&t.patchFlag;var p=t.props||_,d=e.props||_;let h;if(n&&yl(n,!1),(h=d.onVnodeBeforeUpdate)&&Pl(h,n,e,t),u&&Er(e,t,n,"beforeUpdate"),n&&yl(n,!0),c?B(t.dynamicChildren,c,s,n,r,vl(e,l),i):o||G(t,e,s,null,n,r,vl(e,l),i,!1),0<a){if(16&a)w(s,e,p,d,n,r,l);else if(2&a&&p.class!==d.class&&y(s,"class",null,d.class,l),4&a&&y(s,"style",p.style,d.style,l),8&a){var f=e.dynamicProps;for(let e=0;e<f.length;e++){var g=f[e],m=p[g],v=d[g];v===m&&"value"!==g||y(s,g,m,v,l,t.children,n,r,$)}}1&a&&t.children!==e.children&&S(s,e.children)}else o||null!=c||w(s,e,p,d,n,r,l);((h=d.onVnodeUpdated)||u)&&Y(()=>{h&&Pl(h,n,e,t),u&&Er(e,t,n,"updated")},r)},B=(t,n,r,l,i,o,s)=>{for(let e=0;e<n.length;e++){var a=t[e],c=n[e],u=a.el&&(a.type===ee||!El(a,c)||70&a.shapeFlag)?L(a.el):r;E(a,c,u,null,l,i,o,s,!0)}},w=(e,t,n,r,l,i,o)=>{if(n!==r){if(n!==_)for(const c in n)tt(c)||c in r||y(e,c,n[c],null,o,t.children,l,i,$);for(const u in r){var s,a;tt(u)||(s=r[u])!==(a=n[u])&&"value"!==u&&y(e,u,a,s,o,t.children,l,i,$)}"value"in r&&y(e,"value",n.value,r.value,o)}},W=(e,t,n,r,l,i,o)=>{const s=e.component=function(e,t,n){const r=e.type,l=(t||e).appContext||Ul,i={uid:Nl++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new St(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:function(e,t){const n=t.propsCache,r=n.get(e);if(r)return r;const l=e.props,i={},o=[];if(!l)return X(e)&&n.set(e,Pe),Pe;if(j(l))for(let e=0;e<l.length;e++){var s=lt(l[e]);ll(s)&&(i[s]=_)}else if(l)for(const p in l){var a,c,u=lt(p);if(ll(u)){const d=l[p],h=i[u]=j(d)||z(d)?{type:d}:f({},d);h&&(a=sl(Boolean,h.type),c=sl(String,h.type),h[0]=-1<a,h[1]=c<0||a<c,(-1<a||T(h,"default"))&&o.push(u))}}return t=[i,o],X(e)&&n.set(e,t),t}(r,l),emitsOptions:function(e,t){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const l=e.emits;let i={};return l?(j(l)?l.forEach(e=>i[e]=null):f(i,l),X(e)&&n.set(e,i),i):(X(e)&&n.set(e,null),null)}(r,l),emit:null,emitted:null,propsDefaults:_,inheritAttrs:r.inheritAttrs,ctx:_,data:_,props:_,attrs:_,slots:_,refs:_,setupState:_,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=function(r,l,...i){if(!r.isUnmounted){var o=r.vnode.props||_;let e=i;var s=l.startsWith("update:"),a=s&&l.slice(7);a&&a in o&&({number:a,trim:c}=o[`${"modelValue"===a?"model":a}Modifiers`]||_,c&&(e=i.map(e=>O(e)?e.trim():e)),a&&(e=i.map(dt)));let t,n=o[t=at(l)]||o[t=at(lt(l))];(n=!n&&s?o[t=at(ot(l))]:n)&&Wn(n,r,6,e);var c=o[t+"Once"];if(c){if(r.emitted){if(r.emitted[t])return}else r.emitted={};r.emitted[t]=!0,Wn(c,r,6,e)}}}.bind(null,i),e.ce&&e.ce(i),i}(e,r,l);Tr(e)&&(s.ctx.renderer=Q);var[r,a=!1]=[s],{props:c,children:u}=(a&&Dl(a),r.vnode),p=Wl(r),c=(tl(r,c,p,a),hl(r,u),p?function(t,n){var e=t.type,e=(t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Fr),e)["setup"];if(e){const r=t.setupContext=1<e.length?function(t){return{attrs:new Proxy(t.attrs,Ql),slots:t.slots,emit:t.emit,expose:e=>{t.exposed=e||{}}}}(t):null,l=Hl(t),i=(zt(),Bn(e,t,0,[t.props,r]));if(Ot(),l(),Ke(i)){if(i.then(Bl,Bl),n)return i.then(e=>{Gl(t,e,n)}).catch(e=>{qn(e,t,0)});t.asyncDep=i}else Gl(t,i,n)}else Kl(t,n)}(r,a):void 0);a&&Dl(!1),s.asyncDep?(l&&l.registerDep(s,d),e.el||(u=s.subTree=te(kl),F(null,u,t,n))):d(s,e,t,n,l,i,o)},q=(e,t,n)=>{const r=t.component=e.component;!function(e,t,n){var{props:r,children:e,component:l}=e,{props:i,children:o,patchFlag:s}=t,a=l.emitsOptions;if(t.dirs||t.transition)return 1;if(!(n&&0<=s))return!(!e&&!o||o&&o.$stable)||r!==i&&(r?!i||gr(r,i,a):i);if(1024&s)return 1;if(16&s)return r?gr(r,i,a):i;if(8&s){var c=t.dynamicProps;for(let e=0;e<c.length;e++){var u=c[e];if(i[u]!==r[u]&&!cr(a,u))return 1}}}(e,t,n)?(t.el=e.el,r.vnode=t):r.asyncDep&&!r.asyncResolved?R(r,t,n):(r.next=t,e=r.update,(e=o.indexOf(e))>Kn&&o.splice(e,1),r.effect.dirty=!0,r.update())},d=(m,v,y,w,b,k,x)=>{const _=()=>{if(m.isMounted){let{next:e,bu:t,u:n,parent:r,vnode:l}=m;{const d=function e(t){const n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(m);if(d)return e&&(e.el=l.el,R(m,e,x)),void d.asyncDep.then(()=>{m.isUnmounted||_()})}let i=e,o;yl(m,!1),e?(e.el=l.el,R(m,e,x)):e=l,t&&ut(t),(o=e.props&&e.props.onVnodeBeforeUpdate)&&Pl(o,r,e,l),yl(m,!0);var s=dr(m),a=m.subTree;if(m.subTree=s,E(a,s,L(a.el),K(a),m,b,k),e.el=s.el,null===i){var[{vnode:c,parent:u},p]=[m,s.el];for(;u;){const h=u.subTree;if(h.suspense&&h.suspense.activeBranch===c&&(h.el=c.el),h!==c)break;(c=u.vnode).el=p,u=u.parent}}n&&Y(n,b),(o=e.props&&e.props.onVnodeUpdated)&&Y(()=>Pl(o,r,e,l),b)}else{let e;const{el:t,props:n}=v,{bm:r,m:l,parent:i}=m,o=$r(v);if(yl(m,!1),r&&ut(r),!o&&(e=n&&n.onVnodeBeforeMount)&&Pl(e,i,v),yl(m,!0),t&&C){const f=()=>{m.subTree=dr(m),C(t,m.subTree,m,b,null)};o?v.type.__asyncLoader().then(()=>!m.isUnmounted&&f()):f()}else{a=m.subTree=dr(m);E(null,a,y,w,m,b,k),v.el=a.el}if(l&&Y(l,b),!o&&(e=n&&n.onVnodeMounted)){const g=v;Y(()=>Pl(e,i,g),b)}(256&v.shapeFlag||i&&$r(i.vnode)&&256&i.vnode.shapeFlag)&&m.a&&Y(m.a,b),m.isMounted=!0,v=y=w=null}},e=m.effect=new Rt(_,Ue,()=>nr(t),m.scope),t=m.update=()=>{e.dirty&&e.run()};t.id=m.uid,yl(m,!0),t()},R=(e,n,r)=>{var l=(n.component=e).vnode.props;e.vnode=n,e.next=null;{var i=e,o=n.props,s=l;l=r;const{props:p,attrs:d,vnode:{patchFlag:h}}=i,f=J(p),[g]=i.propsOptions;let t=!1;if(!(l||0<h)||16&h){nl(i,o,p,d)&&(t=!0);let e;for(const m in f)o&&(T(o,m)||(e=ot(m))!==m&&T(o,e))||(g?!s||void 0===s[m]&&void 0===s[e]||(p[m]=rl(g,f,m,void 0,i,!0)):delete p[m]);if(d!==f)for(const v in d)o&&T(o,v)||(delete d[v],t=!0)}else if(8&h){var a=i.vnode.dynamicProps;for(let e=0;e<a.length;e++){var c,u=a[e];cr(i.emitsOptions,u)||(c=o[u],!g||T(d,u)?c!==d[u]&&(d[u]=c,t=!0):(u=lt(u),p[u]=rl(g,f,u,c,i,!1)))}}t&&Wt(i.attrs,"set","")}fl(e,n.children,r),zt(),lr(e),Ot()},G=(e,t,n,r,l,i,o,s,a=!1)=>{var c=e&&e.children,e=e?e.shapeFlag:0,u=t.children,{patchFlag:t,shapeFlag:p}=t;if(0<t){if(128&t)return void I(c,u,n,r,l,i,o,s,a);if(256&t){{var d=c;var h=u;var f=n;t=r;var g=l;var m=i;var v=o;var y=s;var w=a;d=d||Pe,h=h||Pe;const b=d.length,k=h.length,x=Math.min(b,k);let e;for(e=0;e<x;e++){const _=h[e]=w?Ol(h[e]):zl(h[e]);E(d[e],_,f,null,g,m,v,y,w)}b>k?$(d,g,m,!0,!1,x):D(h,f,t,g,m,v,y,w,x)}return}}8&p?(16&e&&$(c,l,i),u!==c&&S(n,u)):16&e?16&p?I(c,u,n,r,l,i,o,s,a):$(c,l,i,!0):(8&e&&S(n,""),16&p&&D(u,n,r,l,i,o,s,a))},I=(e,i,o,s,a,c,u,p,d)=>{let h=0;var f=i.length;let g=e.length-1,m=f-1;for(;h<=g&&h<=m;){var t=e[h],n=i[h]=(d?Ol:zl)(i[h]);if(!El(t,n))break;E(t,n,o,null,a,c,u,p,d),h++}for(;h<=g&&h<=m;){var r=e[g],l=i[m]=(d?Ol:zl)(i[m]);if(!El(r,l))break;E(r,l,o,null,a,c,u,p,d),g--,m--}if(h>g){if(h<=m)for(var v=m+1,y=v<f?i[v].el:s;h<=m;)E(null,i[h]=(d?Ol:zl)(i[h]),o,y,a,c,u,p,d),h++}else if(h>m)for(;h<=g;)Z(e[h],a,c,!0),h++;else{const S=h,L=h,R=new Map;for(h=L;h<=m;h++){var w=i[h]=(d?Ol:zl)(i[h]);null!=w.key&&R.set(w.key,h)}let t,n=0;var b=m-L+1;let r=!1,l=0;const I=new Array(b);for(h=0;h<b;h++)I[h]=0;for(h=S;h<=g;h++){var k=e[h];if(n>=b)Z(k,a,c,!0);else{let e;if(null!=k.key)e=R.get(k.key);else for(t=L;t<=m;t++)if(0===I[t-L]&&El(k,i[t])){e=t;break}void 0===e?Z(k,a,c,!0):(I[e-L]=h+1,e>=l?l=e:r=!0,E(k,i[e],o,null,a,c,u,p,d),n++)}}var x=r?function(e){const t=e.slice(),n=[0];let r,l,i,o,s;var a=e.length;for(r=0;r<a;r++){var c=e[r];if(0!==c)if(l=n[n.length-1],e[l]<c)t[r]=l,n.push(r);else{for(i=0,o=n.length-1;i<o;)s=i+o>>1,e[n[s]]<c?i=1+s:o=s;c<e[n[i]]&&(0<i&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];0<i--;)n[i]=o,o=t[o];return n}(I):Pe;for(t=x.length-1,h=b-1;0<=h;h--){var _=L+h,C=i[_],_=_+1<f?i[_+1].el:s;0===I[h]?E(null,C,o,_,a,c,u,p,d):r&&(t<0||h!==x[t]?A(C,o,_,2):t--)}}},A=(e,t,n,r,l=null)=>{const{el:i,type:o,transition:s,children:a,shapeFlag:c}=e;if(6&c)A(e.component.subTree,t,n,r);else if(128&c)e.suspense.move(t,n,r);else if(64&c)o.move(e,t,n,Q);else if(o===ee){M(i,t,n);for(let e=0;e<a.length;e++)A(a[e],t,n,r);M(e.anchor,t,n)}else if(o===xl){for(var u,[{el:p,anchor:d},h,f]=[e,t,n];p&&p!==d;)u=b(p),M(p,h,f),p=u;M(d,h,f)}else if(2!==r&&1&c&&s)if(0===r)s.beforeEnter(i),M(i,t,n),Y(()=>s.enter(i),l);else{const{leave:g,delayLeave:m,afterLeave:v}=s,y=()=>M(i,t,n),w=()=>{g(i,()=>{y(),v&&v()})};m?m(i,y,w):w()}else M(i,t,n)},Z=(t,n,r,l=!1,i=!1)=>{var{type:o,props:s,ref:e,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=t;if(null!=e&&gl(e,null,r,t,!0),256&u)n.ctx.deactivate(t);else{const h=1&u&&d,f=!$r(t);let e;if(f&&(e=s&&s.onVnodeBeforeUnmount)&&Pl(e,n,t),6&u)x(t.component,r,l);else{if(128&u)return void t.suspense.unmount(r,l);h&&Er(t,null,n,"beforeUnmount"),64&u?t.type.remove(t,n,r,i,Q,l):c&&(o!==ee||0<p&&64&p)?$(c,n,r,!1,!0):(o===ee&&384&p||!i&&16&u)&&$(a,n,r),l&&k(t)}(f&&(e=s&&s.onVnodeUnmounted)||h)&&Y(()=>{e&&Pl(e,n,t),h&&Er(t,null,n,"unmounted")},r)}},k=e=>{const{type:t,el:n,anchor:r,transition:l}=e;if(t===ee){for(var i,o=n,s=r;o!==s;)i=b(o),g(o),o=i;g(s)}else if(t===xl){for(var a,{el:c,anchor:u}=[e][0];c&&c!==u;)a=b(c),g(c),c=a;g(u)}else{const p=()=>{g(n),l&&!l.persisted&&l.afterLeave&&l.afterLeave()};if(1&e.shapeFlag&&l&&!l.persisted){const{leave:d,delayLeave:h}=l,f=()=>d(n,p);h?h(e.el,p,f):f()}else p()}},x=(e,t,n)=>{const{bum:r,scope:l,update:i,subTree:o,um:s}=e;r&&ut(r),l.stop(),i&&(i.active=!1,Z(o,e,t,n)),s&&Y(s,t),Y(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},$=(t,n,r,l=!1,i=!1,o=0)=>{for(let e=o;e<t.length;e++)Z(t[e],n,r,l,i)},K=e=>6&e.shapeFlag?K(e.component.subTree):128&e.shapeFlag?e.suspense.next():b(e.anchor||e.el);let r=!1;const n=(e,t,n)=>{null==e?t._vnode&&Z(t._vnode,null,null,!0):E(t._vnode||null,e,t,null,null,null,n),r||(r=!0,lr(),ir(),r=!1),t._vnode=e},Q={p:E,um:Z,m:A,r:k,mt:W,mc:D,pc:G,pbc:B,n:K,o:e};let C;return{render:n,hydrate:void 0,createApp:function(c,u){return function(l,i=null){z(l)||(l=f({},l)),null==i||X(i)||(i=null);const o=Zr(),n=new WeakSet;let s=!1;const a=o.app={_uid:Kr++,_component:l,_props:i,_container:null,_context:o,_instance:null,version:Jl,get config(){return o.config},set config(e){},use(e,...t){return n.has(e)||(e&&z(e.install)?(n.add(e),e.install(a,...t)):z(e)&&(n.add(e),e(a,...t))),a},mixin(e){return a},component(e,t){return t?(o.components[e]=t,a):o.components[e]},directive(e,t){return t?(o.directives[e]=t,a):o.directives[e]},mount(e,t,n){if(!s){const r=te(l,i);return r.appContext=o,!0===n?n="svg":!1===n&&(n=void 0),t&&u?u(r,e):c(r,e,n),s=!0,(a._container=e).__vue_app__=a,Xl(r.component)||r.component.proxy}},unmount(){s&&(c(null,a._container),delete a._container.__vue_app__)},provide(e,t){return o.provides[e]=t,a},runWithContext(e){var t=Qr;Qr=a;try{return e()}finally{Qr=t}}};return a}}(n,void 0)}}}function vl({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function yl({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function wl(e,t,n=!1){const r=e.children,l=t.children;if(j(r)&&j(l))for(let t=0;t<r.length;t++){var i=r[t];let e=l[t];1&e.shapeFlag&&!e.dynamicChildren&&((e.patchFlag<=0||32===e.patchFlag)&&((e=l[t]=Ol(l[t])).el=i.el),n||wl(i,e)),e.type===bl&&(e.el=i.el)}}const ee=Symbol.for("v-fgt"),bl=Symbol.for("v-txt"),kl=Symbol.for("v-cmt"),xl=Symbol.for("v-stc"),_l=[];let d=null;function g(e=!1){_l.push(d=e?null:[])}let Cl=1;function Sl(e){Cl+=e}function Ll(e){return e.dynamicChildren=0<Cl?d||Pe:null,_l.pop(),d=_l[_l.length-1]||null,0<Cl&&d&&d.push(e),e}function m(e,t,n,r,l,i){return Ll(v(e,t,n,r,l,i,!0))}function Rl(e,t,n,r,l){return Ll(te(e,t,n,r,l,!0))}function Il(e){return e&&!0===e.__v_isVNode}function El(e,t){return e.type===t.type&&e.key===t.key}const Al=({key:e})=>e??null,$l=({ref:e,ref_key:t,ref_for:n})=>null!=(e="number"==typeof e?""+e:e)?O(e)||S(e)||z(e)?{i:c,r:e,k:t,f:!!n}:e:null;function v(e,t=null,n=null,r=0,l=null,i=e===ee?0:1,o=!1,s=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Al(t),ref:t&&$l(t),scopeId:ur,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:c};return s?(Ml(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=O(n)?8:16),0<Cl&&!o&&d&&(0<a.patchFlag||6&i)&&32!==a.patchFlag&&d.push(a),a}const te=function(e,n=null,t=null,r=0,l=null,i=!1){if(Il(e=e&&e!==yr?e:kl)){const s=Tl(e,n,!0);return t&&Ml(s,t),0<Cl&&!i&&d&&(6&s.shapeFlag?d[d.indexOf(e)]=s:d.push(s)),s.patchFlag|=-2,s}if(function(e){return z(e)&&"__vccOpts"in e}(e)&&(e=e.__vccOpts),n){let{class:e,style:t}=n=function(e){return e?Tn(e)||el(e)?f({},e):e:null}(n);e&&!O(e)&&(n.class=p(e)),X(t)&&(Tn(t)&&!j(t)&&(t=f({},t)),n.style=gt(t))}var o=O(e)?1:e.__isSuspense?128:e.__isTeleport?64:X(e)?4:z(e)?2:0;return v(e,n,t,r,l,o,i,!0)};function Tl(e,t,n=!1,r=!1){const{props:l,ref:i,patchFlag:o,children:s,transition:a}=e,c=t?function(t){const n={};for(let e=0;e<t.length;e++){var r=t[e];for(const l in r)if("class"===l)n.class!==r.class&&(n.class=p([n.class,r.class]));else if("style"===l)n.style=gt([n.style,r.style]);else if(Ve(l)){const i=n[l],o=r[l];!o||i===o||j(i)&&i.includes(o)||(n[l]=i?[].concat(i,o):o)}else""!==l&&(n[l]=r[l])}return n}([l||{},t]):l,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Al(c),ref:t&&t.ref?n&&i?j(i)?i.concat($l(t)):[i,$l(t)]:$l(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ee?-1===o?16:16|o:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Tl(e.ssContent),ssFallback:e.ssFallback&&Tl(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&(u.transition=a.clone(u)),u}function jl(e=" ",t=0){return te(bl,null,e,t)}function y(e="",t=!1){return t?(g(),Rl(kl,null,e)):te(kl,null,e)}function zl(e){return null==e||"boolean"==typeof e?te(kl):j(e)?te(ee,null,e.slice()):"object"==typeof e?Ol(e):te(bl,null,String(e))}function Ol(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Tl(e)}function Ml(e,t){let n=0;var r=e["shapeFlag"];if(null==t)t=null;else if(j(t))n=16;else if("object"==typeof t){if(65&r){const i=t.default;return void(i&&(i._c&&(i._d=!1),Ml(e,i()),i._c&&(i._d=!0)))}n=32;var l=t._;l||el(t)?3===l&&c&&(1===c.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=c}else z(t)?(t={default:t,_ctx:c},n=32):(t=String(t),64&r?(n=16,t=[jl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Pl(e,t,n,r=null){Wn(e,t,7,[n,r])}const Ul=Zr();let Nl=0;let E=null;const Fl=()=>E||c;let Vl,Dl;{const eu=ft(),tu=(e,t)=>{let n;return(n=(n=eu[e])?n:eu[e]=[]).push(t),t=>{1<n.length?n.forEach(e=>e(t)):n[0](t)}};Vl=tu("__VUE_INSTANCE_SETTERS__",e=>E=e),Dl=tu("__VUE_SSR_SETTERS__",e=>ql=e)}const Hl=e=>{const t=E;return Vl(e),e.scope.on(),()=>{e.scope.off(),Vl(t)}},Bl=()=>{E&&E.scope.off(),Vl(null)};function Wl(e){return 4&e.vnode.shapeFlag}let ql=!1;function Gl(e,t,n){z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=Hn(t)),Kl(e,n)}let Zl;function Kl(e,t){const n=e.type;var r,l,i,o;e.render||(t||!Zl||n.render||(t=n.template||function(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let a;return s?a=s:l.length||n||r?(a={},l.length&&l.forEach(e=>Dr(a,e,o,!0)),Dr(a,t,o)):a=t,X(t)&&i.set(t,a),a}(e).template)&&({isCustomElement:o,compilerOptions:r}=e.appContext.config,{delimiters:l,compilerOptions:i}=n,o=f(f({isCustomElement:o,delimiters:l},r),i),n.render=Zl(t,o)),e.render=n.render||Ue)}const Ql={get(e,t){return h(e,0,""),e[t]}};function Xl(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(Hn((e=n.exposed,Object.isExtensible(e)&&pt(e,"__v_skip",!0),e)),{get(e,t){return t in e?e[t]:t in Ur?Ur[t](n):void 0},has(e,t){return t in e||t in Ur}}));var e}const F=(n,e)=>{{var[n,r=!1]=[n,ql];let e,t;var l=z(n);return t=l?(e=n,Ue):(e=n.get,n.set),new On(e,t,l||!t,r)}};function w(e,t,n){var r=arguments.length;return 2===r?X(t)&&!j(t)?Il(t)?te(e,null,[t]):te(e,t):te(e,null,t):(3<r?n=Array.prototype.slice.call(arguments,2):3===r&&Il(n)&&(n=[n]),te(e,t,n))}const Jl="3.4.27",Yl=typeof document<"u"?document:null,ei=Yl&&Yl.createElement("template"),ti={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 l="svg"===t?Yl.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Yl.createElementNS("http://www.w3.org/1998/Math/MathML",e):Yl.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&l.setAttribute("multiple",r.multiple),l},createText:e=>Yl.createTextNode(e),createComment:e=>Yl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,i){var o=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==i&&(l=l.nextSibling););else{ei.innerHTML="svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e;const a=ei.content;if("svg"===r||"mathml"===r){for(var s=a.firstChild;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ni=Symbol("_vtc");const ri=Symbol("_vod"),li=Symbol("_vsh"),ii={beforeMount(e,{value:t},{transition:n}){e[ri]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):oi(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),oi(e,!0),r.enter(e)):r.leave(e,()=>{oi(e,!1)}):oi(e,t))},beforeUnmount(e,{value:t}){oi(e,t)}};function oi(e,t){e.style.display=t?e[ri]:"none",e[li]=!t}const si=Symbol(""),ai=/(^|;)\s*display\s*:/;const ci=/\s*!important$/;function ui(t,n,e){var r;j(e)?e.forEach(e=>ui(t,n,e)):(null==e&&(e=""),n.startsWith("--")?t.setProperty(n,e):(r=function(t,n){var e=di[n];if(e)return e;let r=lt(n);if("filter"!==r&&r in t)return di[n]=r;r=st(r);for(let e=0;e<pi.length;e++){var l=pi[e]+r;if(l in t)return di[n]=l}return n}(t,n),ci.test(e)?t.setProperty(ot(r),e.replace(ci,""),"important"):t[r]=e))}const pi=["Webkit","Moz","ms"],di={};const hi="http://www.w3.org/1999/xlink";function fi(e,t,n,r){e.addEventListener(t,n,r)}const gi=Symbol("_vei");function mi(e,t,n,r,l=null){const i=e[gi]||(e[gi]={}),o=i[t];var s,a;r&&o?o.value=r:([s,a]=function(t){let n;if(vi.test(t)){n={};let e;for(;e=t.match(vi);)t=t.slice(0,t.length-e[0].length),n[e[0].toLowerCase()]=!0}return[":"===t[2]?t.slice(3):ot(t.slice(2)),n]}(t),r?fi(e,s,i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Wn(function(e,t){{if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(t=>e=>!e._stopped&&t&&t(e))}return t}}(e,n.value),t,5,[e])};return n.value=e,n.attached=bi(),n}(r,l),a):o&&(r=o,e.removeEventListener(s,r,a),i[t]=void 0))}const vi=/(?:Once|Passive|Capture)$/;let yi=0;const wi=Promise.resolve(),bi=()=>yi||(wi.then(()=>yi=0),yi=Date.now());const ki=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&96<e.charCodeAt(2)&&e.charCodeAt(2)<123;const xi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?e=>ut(t,e):t};function Ci(e){e.target.composing=!0}function Si(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const b=Symbol("_assign"),Li={created(t,{modifiers:{lazy:e,trim:n,number:r}},l){t[b]=xi(l);const i=r||l.props&&"number"===l.props.type;fi(t,e?"change":"input",e=>{if(!e.target.composing){let e=t.value;n&&(e=e.trim()),i&&(e=dt(e)),t[b](e)}}),n&&fi(t,"change",()=>{t.value=t.value.trim()}),e||(fi(t,"compositionstart",Ci),fi(t,"compositionend",Si),fi(t,"change",Si))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},i){e[b]=xi(i),e.composing||(i=t??"",(!l&&"number"!==e.type||/^0\d/.test(e.value)?e.value:dt(e.value))===i||document.activeElement===e&&"range"!==e.type&&(n||r&&e.value.trim()===i)||(e.value=i))}},Ri={deep:!0,created(a,e,t){a[b]=xi(t),fi(a,"change",()=>{const e=a._modelValue,t=Ti(a),n=a.checked,r=a[b];if(j(e)){var l=xt(e,t),i=-1!==l;if(n&&!i)r(e.concat(t));else if(!n&&i){const o=[...e];o.splice(l,1),r(o)}}else if(qe(e)){const s=new Set(e);n?s.add(t):s.delete(t),r(s)}else r(ji(a,n))})},mounted:Ii,beforeUpdate(e,t,n){e[b]=xi(n),Ii(e,t,n)}};function Ii(e,{value:t,oldValue:n},r){e._modelValue=t,j(t)?e.checked=-1<xt(t,r.props.value):qe(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=kt(t,ji(e,!0)))}const Ei={created(e,{value:t},n){e.checked=kt(t,n.props.value),e[b]=xi(n),fi(e,"change",()=>{e[b](Ti(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[b]=xi(r),t!==n&&(e.checked=kt(t,r.props.value))}},Ai={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const l=qe(e);fi(t,"change",()=>{var e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>n?dt(Ti(e)):Ti(e));t[b](t.multiple?l?new Set(e):e:e[0]),t._assigning=!0,tr(()=>{t._assigning=!1})}),t[b]=xi(r)},mounted(e,{value:t,modifiers:{}}){$i(e,t)},beforeUpdate(e,t,n){e[b]=xi(n)},updated(e,{value:t,modifiers:{}}){e._assigning||$i(e,t)}};function $i(n,r){var l,i=n.multiple,o=j(r);if(!i||o||qe(r)){for(let e=0,t=n.options.length;e<t;e++){const s=n.options[e],a=Ti(s);if(i)o?(l=typeof a,s.selected="string"==l||"number"==l?r.some(e=>String(e)===String(a)):-1<xt(r,a)):s.selected=r.has(a);else if(kt(Ti(s),r))return void(n.selectedIndex!==e&&(n.selectedIndex=e))}i||-1===n.selectedIndex||(n.selectedIndex=-1)}}function Ti(e){return"_value"in e?e._value:e.value}function ji(e,t){var n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const zi={created(e,t,n){Oi(e,t,n,null,"created")},mounted(e,t,n){Oi(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Oi(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Oi(e,t,n,r,"updated")}};function Oi(e,t,n,r,l){const i=function(e,t){switch(e){case"SELECT":return Ai;case"TEXTAREA":return Li;default:switch(t){case"checkbox":return Ri;case"radio":return Ei;default:return Li}}}(e.tagName,n.props&&n.props.type)[l];i&&i(e,t,n,r)}const Mi=f({patchProp:(t,e,n,r,l,i,o,s,a)=>{var c,l="svg"===l;if("class"===e)f=r,p=l,u=(c=t)[ni],null==(f=u?(f?[f,...u]:[...u]).join(" "):f)?c.removeAttribute("class"):p?c.setAttribute("class",f):c.className=f;else if("style"===e){var u=t,p=n,d=r;const m=u.style,v=O(d);let e=!1;if(d&&!v){if(p)if(O(p))for(const y of p.split(";")){var h=y.slice(0,y.indexOf(":")).trim();null==d[h]&&ui(m,h,"")}else for(const w in p)null==d[w]&&ui(m,w,"");for(const b in d)"display"===b&&(e=!0),ui(m,b,d[b])}else v?p!==d&&((c=m[si])&&(d+=";"+c),m.cssText=d,e=ai.test(d)):p&&u.removeAttribute("style");ri in u&&(u[ri]=e?m.display:"",u[li]&&(m.display="none"))}else if(Ve(e))De(e)||mi(t,e,0,r,o);else{if(!("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||t in e&&ki(t)&&z(n);if("spellcheck"===t||"draggable"===t||"translate"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName)return;if("width"===t||"height"===t){r=e.tagName;if("IMG"===r||"VIDEO"===r||"CANVAS"===r||"SOURCE"===r)return}return(!ki(t)||!O(n))&&t in e}(t,e,r,l)))return"true-value"===e?t._trueValue=r:"false-value"===e&&(t._falseValue=r),o=t,s=e,a=r,void((i=l)&&s.startsWith("xlink:")?null==a?o.removeAttributeNS(hi,s.slice(6,s.length)):o.setAttributeNS(hi,s,a):(i=wt(s),null==a||i&&!bt(a)?o.removeAttribute(s):o.setAttribute(s,i?"":a)));var f=t,g=r;if("innerHTML"===(n=e)||"textContent"===n)i&&a(i,o,s),f[n]=g??"";else{const k=f.tagName;if("value"!==n||"PROGRESS"===k||k.includes("-")){let e=!1;""!==g&&null!=g||("boolean"==(i=typeof f[n])?g=bt(g):null==g&&"string"==i?(g="",e=!0):"number"==i&&(g=0,e=!0));try{f[n]=g}catch{}e&&f.removeAttribute(n)}else a=g??"",("OPTION"===k?f.getAttribute("value")||"":f.value)===a&&"_value"in f||(f.value=a),null==g&&f.removeAttribute(n),f._value=g}}}},ti);let Pi;const Ui=(...e)=>{const r=(Pi=Pi||ml(Mi)).createApp(...e),l=r["mount"];return r.mount=e=>{e=e;const t=O(e)?document.querySelector(e):e;if(t){const n=r._component;z(n)||n.render||n.template||(n.template=t.innerHTML),t.innerHTML="";e=l(t,!1,(e=t)instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0);return t instanceof Element&&(t.removeAttribute("v-cloak"),t.setAttribute("data-v-app","")),e}},r};function Ni(e){C&&(e=e,C&&C.cleanups.push(e))}function Fi(e){return"function"==typeof e?e():Vn(e)}const Vi=typeof window<"u"&&typeof document<"u",Di=Object.prototype.toString,Hi=e=>"[object Object]"===Di.call(e),Bi=()=>{};function Wi(r,l){return function(...n){return new Promise((e,t)=>{Promise.resolve(r(()=>l.apply(this,n),{fn:l,thisArg:this,args:n})).then(e).catch(t)})}}const qi=e=>e();function Gi(e,t=200,n={}){return Wi(function(e,i={}){let o,s,a=Bi;const c=e=>{clearTimeout(e),a(),a=Bi};return n=>{const r=Fi(e),l=Fi(i.maxWait);return o&&c(o),r<=0||void 0!==l&&l<=0?(s&&(c(s),s=null),Promise.resolve(n())):new Promise((e,t)=>{a=i.rejectOnCancel?t:e,l&&!s&&(s=setTimeout(()=>{o&&c(o),s=null,e(n())},l)),o=setTimeout(()=>{s&&c(s),s=null,e(n())},r)})}}(t,n),e)}function Zi(e,t,n={}){const{eventFilter:r,...l}=n,{eventFilter:i,pause:o,resume:s,isActive:a}=function(t=qi){const n=N(!0);return{isActive:Rn(n),pause:function(){n.value=!1},resume:function(){n.value=!0},eventFilter:(...e)=>{n.value&&t(...e)}}}(r);return{stop:function(e,t,n){const{eventFilter:r=qi,...l}=n;return Sr(e,Wi(r,t),l)}(e,t,{...l,eventFilter:i}),pause:o,resume:s,isActive:a}}function Ki(e,t=!0,n){Fl()?zr(e,n):t?e():tr(e)}const Qi=Vi?window:void 0,Xi=Vi?window.document:void 0;function Ji(...e){let t,l,i,n;if("string"==typeof e[0]||Array.isArray(e[0])?([l,i,n]=e,t=Qi):[t,l,i,n]=e,!t)return Bi;Array.isArray(l)||(l=[l]),Array.isArray(i)||(i=[i]);const o=[],s=()=>{o.forEach(e=>e()),o.length=0},r=Sr(()=>[function(e){var t,e=Fi(e);return null!=(t=null==e?void 0:e.$el)?t:e}(t),Fi(n)],([n,e])=>{if(s(),n){const r=Hi(e)?{...e}:e;o.push(...l.flatMap(t=>i.map(e=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(n,t,e,r))))}},{immediate:!0,flush:"post"}),a=()=>{r(),s()};Ni(a)}const Yi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},eo="__vueuse_ssr_handlers__",to=(eo in Yi||(Yi[eo]=Yi[eo]||{}),Yi[eo]);const no={boolean:{read:e=>"true"===e,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()}},ro="vueuse-storage";function lo(r,e,l,t={}){const{flush:n="pre",deep:i=!0,listenToStorageChanges:o=!0,writeDefaults:s=!0,mergeDefaults:a=!1,shallow:c,window:u=Qi,eventFilter:p,onError:d=e=>{console.error(e)},initOnMounted:h}=t,f=(c?Un:N)("function"==typeof e?e():e);if(!l)try{l=(to.getDefaultStorage||(()=>{var e;return null==(e=Qi)?void 0:e.localStorage}))()}catch(e){d(e)}if(!l)return f;const g=Fi(e),m=null==(e=g)?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number",v=null!=(e=t.serializer)?e:no[m],{pause:y,resume:w}=Zi(f,()=>{var e=f.value;try{var t,n=l.getItem(r);null==e?(b(n,null),l.removeItem(r)):(t=v.write(e),n!==t&&(l.setItem(r,t),b(n,t)))}catch(e){d(e)}},{flush:n,deep:i,eventFilter:p});function b(e,t){u&&u.dispatchEvent(new CustomEvent(ro,{detail:{key:r,oldValue:e,newValue:t,storageArea:l}}))}function k(e){if(!e||e.storageArea===l)if(e&&null==e.key)f.value=g;else if(!e||e.key===r){y();try{(null==e?void 0:e.newValue)!==v.write(f.value)&&(f.value=null==(n=(t=e)?t.newValue:l.getItem(r))?(s&&null!=g&&l.setItem(r,v.write(g)),g):!t&&a?(t=v.read(n),"function"==typeof a?a(t,g):"object"!==m||Array.isArray(t)?t:{...g,...t}):"string"!=typeof n?n:v.read(n))}catch(e){d(e)}finally{e?tr(w):w()}}var t,n}function x(e){k(e.detail)}return u&&o&&Ki(()=>{Ji(u,"storage",k),Ji(u,ro,x),h&&k()}),h||k(),f}function io(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=N(new Date),l=()=>r.value=new Date,i="requestAnimationFrame"===n?function(n,e){const{immediate:t=!0,fpsLimit:r=void 0,window:l=Qi}=e,i=N(!1),o=r?1e3/r:null;let s=0,a=null;function c(e){var t;i.value&&l&&(t=e-(s=s||e),a=(o&&t<o||(s=e,n({delta:t,timestamp:e})),l.requestAnimationFrame(c)))}function u(){!i.value&&l&&(i.value=!0,s=0,a=l.requestAnimationFrame(c))}function p(){i.value=!1,null!=a&&l&&(l.cancelAnimationFrame(a),a=null)}return t&&u(),Ni(p),{isActive:Rn(i),pause:p,resume:u}}(l,{immediate:!0}):function(t,n=1e3,e){const{immediate:r=!0,immediateCallback:l=!1}=e;let i=null;const o=N(!1);function s(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,s()}function c(){var e=Fi(n);e<=0||(o.value=!0,l&&t(),s(),i=setInterval(t,e))}return r&&Vi&&c(),!S(n)&&"function"!=typeof n||Ni(Sr(n,()=>{o.value&&Vi&&c()})),Ni(a),{isActive:o,pause:a,resume:c}}(l,n,{immediate:!0});return t?{now:r,...i}:r}function oo(o,s=Bi,e={}){const{immediate:t=!0,manual:n=!1,type:a="text/javascript",async:c=!0,crossOrigin:u,referrerPolicy:p,noModule:d,defer:h,document:f=Xi,attrs:g={}}=e,m=N(null);let r=null;const l=(e=!0)=>r=r||(i=>new Promise((t,r)=>{const l=e=>(m.value=e,t(e),e);if(f){let e=!1,n=f.querySelector(`script[src="${Fi(o)}"]`);n?n.hasAttribute("data-loaded")&&l(n):((n=f.createElement("script")).type=a,n.async=c,n.src=Fi(o),h&&(n.defer=h),u&&(n.crossOrigin=u),d&&(n.noModule=d),p&&(n.referrerPolicy=p),Object.entries(g).forEach(([e,t])=>null==n?void 0:n.setAttribute(e,t)),e=!0),n.addEventListener("error",e=>r(e)),n.addEventListener("abort",e=>r(e)),n.addEventListener("load",()=>{n.setAttribute("data-loaded","true"),s(n),l(n)}),e&&(n=f.head.appendChild(n)),i||l(n)}else t(!1)}))(e),i=()=>{var e;f&&(r=null,m.value&&(m.value=null),(e=f.querySelector(`script[src="${Fi(o)}"]`))&&f.head.removeChild(e))};return t&&!n&&Ki(l),n||(e=i,Fl()&&Mr(e,v)),{scriptTag:m,load:l,unload:i};var v}let so=0;const ao=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),co=(e,t="",n="",r="")=>(t?t+"/":"")+n+e+(r?"."+r:""),uo=e=>Promise.all(e.map(e=>{if($e(e)){var t=Le(e);const r=lo("WALINE_EMOJI",{}),l=ao(t);if(l){var n=r.value[t];if(n)return Promise.resolve(n)}return fetch(t+"/info.json").then(e=>e.json()).then(e=>{e={folder:t,...e};return l&&(r.value[t]=e),e})}return Promise.resolve(e)})).then(e=>{const s={tabs:[],map:{}};return e.forEach(e=>{const{name:t,folder:n,icon:r,prefix:l="",type:i,items:o}=e;s.tabs.push({name:t,icon:co(r,n,l,i),items:o.map(e=>{var t=""+l+e;return s.map[t]=co(e,n,l,i),t})})}),s}),po=e=>{"AbortError"!==e.name&&console.error(e.message)},ho=e=>e instanceof HTMLElement?e:$e(e)?document.querySelector(e):null,fo=e=>e.type.includes("image"),go=e=>{const t=Array.from(e).find(fo);return t?t.getAsFile():null};function mo(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let vo=mo();function yo(e){vo=e}const wo=/[&<>"']/,bo=new RegExp(wo.source,"g"),ko=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,xo=new RegExp(ko.source,"g"),_o={"&":"&","<":"<",">":">",'"':""","'":"'"},Co=e=>_o[e];function s(e,t){if(t){if(wo.test(e))return e.replace(bo,Co)}else if(ko.test(e))return e.replace(xo,Co);return e}const So=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;const Lo=/(^|[^\[])\^/g;function n(e,t){let r="string"==typeof e?e:e.source;t=t||"";const l={replace:(e,t)=>{let n="string"==typeof t?t:t.source;return n=n.replace(Lo,"$1"),r=r.replace(e,n),l},getRegex:()=>new RegExp(r,t)};return l}function Ro(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}t={exec:()=>null};function Io(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,l=t;for(;0<=--l&&"\\"===n[l];)r=!r;return r?"|":" |"}),r=n.split(/ \|/);let l=0;if(r[0].trim()||r.shift(),0<r.length&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;l<r.length;l++)r[l]=r[l].trim().replace(/\\\|/g,"|");return r}function Eo(e,t,n){var r=e.length;if(0===r)return"";let l=0;for(;l<r;){var i=e.charAt(r-l-1);if(i!==t||n){if(i===t||!n)break;l++}else l++}return e.slice(0,r-l)}function Ao(e,t,n,r){var l=t.href,t=t.title?s(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?(r.state.inLink=!0,e={type:"link",raw:n,href:l,title:t,text:i,tokens:r.inlineTokens(i)},r.state.inLink=!1,e):{type:"image",raw:n,href:l,title:t,text:s(i)}}class $o{options;rules;lexer;constructor(e){this.options=e||vo}space(e){e=this.rules.block.newline.exec(e);if(e&&0<e[0].length)return{type:"space",raw:e[0]}}code(e){const t=this.rules.block.code.exec(e);if(t)return e=t[0].replace(/^ {1,4}/gm,""),{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Eo(e,`
|
||
`)}}fences(e){const t=this.rules.block.fences.exec(e);var n;if(t)return n=function(e,t){if(null===(e=e.match(/^(\s+)(?:```)/)))return t;const n=e[1];return t.split(`
|
||
`).map(e=>{var t=e.match(/^\s+/);if(null===t)return e;var[t]=t;return t.length>=n.length?e.slice(n.length):e}).join(`
|
||
`)}(e=t[0],t[3]||""),{type:"code",raw:e,lang:t[2]&&t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"),text:n}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const n=Eo(e,"#");!this.options.pedantic&&n&&!/ $/.test(n)||(e=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){e=this.rules.block.hr.exec(e);if(e)return{type:"hr",raw:e[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let e=n[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
|
||
$1`);e=Eo(e.replace(/^ *>[ \t]?/gm,""),`
|
||
`);var t=this.lexer.state.top,r=(this.lexer.state.top=!0,this.lexer.blockTokens(e));return this.lexer.state.top=t,{type:"blockquote",raw:n[0],tokens:r,text:e}}}list(u){let p=this.rules.block.list.exec(u);if(p){let e=p[1].trim();const t=1<e.length,h={type:"list",raw:"",ordered:t,start:t?+e.slice(0,-1):"",loose:!1,items:[]},f=(e=t?"\\d{1,9}\\"+e.slice(-1):"\\"+e,this.options.pedantic&&(e=t?e:"[*+-]"),new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`));let s="",a="",c=!1;for(;u;){let e=!1;if(!(p=f.exec(u))||this.rules.block.hr.test(u))break;s=p[0],u=u.substring(s.length);let t=p[2].split(`
|
||
`,1)[0].replace(/^\t+/,e=>" ".repeat(3*e.length)),n=u.split(`
|
||
`,1)[0],r=0,l=(this.options.pedantic?(r=2,a=t.trimStart()):(r=4<(r=p[2].search(/[^ ]/))?1:r,a=t.slice(r),r+=p[1].length),!1);if(!t&&/^ *$/.test(n)&&(s+=n+`
|
||
`,u=u.substring(n.length+1),e=!0),!e){const g=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),m=new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),v=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),y=new RegExp(`^ {0,${Math.min(3,r-1)}}#`);for(;u;){var d=u.split(`
|
||
`,1)[0];if(n=d,this.options.pedantic&&(n=n.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),v.test(n)||y.test(n)||g.test(n)||m.test(u))break;if(n.search(/[^ ]/)>=r||!n.trim())a+=`
|
||
`+n.slice(r);else{if(l||4<=t.search(/[^ ]/)||v.test(t)||y.test(t)||m.test(t))break;a+=`
|
||
`+n}l||n.trim()||(l=!0),s+=d+`
|
||
`,u=u.substring(d.length+1),t=n.slice(r)}}h.loose||(c?h.loose=!0:/\n *\n *$/.test(s)&&(c=!0));let i=null,o;this.options.gfm&&((i=/^\[[ xX]\] /.exec(a))&&(o="[ ] "!==i[0],a=a.replace(/^\[[ xX]\] +/,""))),h.items.push({type:"list_item",raw:s,task:!!i,checked:o,loose:!1,text:a,tokens:[]}),h.raw+=s}h.items[h.items.length-1].raw=s.trimEnd(),h.items[h.items.length-1].text=a.trimEnd(),h.raw=h.raw.trimEnd();for(let e=0;e<h.items.length;e++)if(this.lexer.state.top=!1,h.items[e].tokens=this.lexer.blockTokens(h.items[e].text,[]),!h.loose){const n=h.items[e].tokens.filter(e=>"space"===e.type),r=0<n.length&&n.some(e=>/\n.*\n/.test(e.raw));h.loose=r}if(h.loose)for(let e=0;e<h.items.length;e++)h.items[e].loose=!0;return h}}html(e){e=this.rules.block.html.exec(e);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(e){const t=this.rules.block.def.exec(e);var n,r;if(t)return e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]&&t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"),{type:"def",tag:e,raw:t[0],href:n,title:r}}table(e){const t=this.rules.block.table.exec(e);if(t&&/[:|]/.test(t[2])){const n=Io(t[1]),r=t[2].replace(/^\||\| *$/g,"").split("|"),l=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
|
||
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(const o of r)/^ *-+: *$/.test(o)?i.align.push("right"):/^ *:-+: *$/.test(o)?i.align.push("center"):/^ *:-+ *$/.test(o)?i.align.push("left"):i.align.push(null);for(const s of n)i.header.push({text:s,tokens:this.lexer.inline(s)});for(const a of l)i.rows.push(Io(a,i.header.length).map(e=>({text:e,tokens:this.lexer.inline(e)})));return i}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t)return e=t[1].charAt(t[1].length-1)===`
|
||
`?t[1].slice(0,-1):t[1],{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}text(e){e=this.rules.block.text.exec(e);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(e){e=this.rules.inline.escape.exec(e);if(e)return{type:"escape",raw:e[0],text:s(e[1])}}tag(e){e=this.rules.inline.tag.exec(e);if(e)return!this.lexer.state.inLink&&/^<a /i.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(n){const r=this.rules.inline.link.exec(n);if(r){const i=r[2].trim();if(!this.options.pedantic&&/^</.test(i)){if(!/>$/.test(i))return;n=Eo(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{var l,n=function(t,n){if(-1===t.indexOf(n[1]))return-1;let r=0;for(let e=0;e<t.length;e++)if("\\"===t[e])e++;else if(t[e]===n[0])r++;else if(t[e]===n[1]&&--r<0)return e;return-1}(r[2],"()");-1<n&&(l=(0===r[0].indexOf("!")?5:4)+r[1].length+n,r[2]=r[2].substring(0,n),r[0]=r[0].substring(0,l).trim(),r[3]="")}let e=r[2],t="";return this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(e))&&(e=n[1],t=n[3]):t=r[3]?r[3].slice(1,-1):"",e=e.trim(),/^</.test(e)&&(e=this.options.pedantic&&!/>$/.test(i)?e.slice(1):e.slice(1,-1)),Ao(r,{href:e&&e.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const r=(n[2]||n[1]).replace(/\s+/g," "),l=t[r.toLowerCase()];return l?Ao(n,l,n[0],this.lexer):{type:"text",raw:e=n[0].charAt(0),text:e}}}emStrong(l,i,e=""){let o=this.rules.inline.emStrongLDelim.exec(l);if(!(!o||o[3]&&e.match(/[\p{L}\p{N}]/u))&&(!o[1]&&!o[2]||!e||this.rules.inline.punctuation.exec(e))){var s=[...o[0]].length-1;let e,t,n=s,r=0;const c="*"===o[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,i=i.slice(-1*l.length+s);null!=(o=c.exec(i));)if(e=o[1]||o[2]||o[3]||o[4]||o[5]||o[6])if(t=[...e].length,o[3]||o[4])n+=t;else if((o[5]||o[6])&&s%3&&!((s+t)%3))r+=t;else if(!(0<(n-=t))){t=Math.min(t,t+n+r);const u=[...o[0]][0].length,p=l.slice(0,s+o.index+u+t);if(Math.min(s,t)%2)return a=p.slice(1,-1),{type:"em",raw:p,text:a,tokens:this.lexer.inlineTokens(a)};var a=p.slice(2,-2);return{type:"strong",raw:p,text:a,tokens:this.lexer.inlineTokens(a)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let e=n[2].replace(/\n/g," ");var t=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return e=s(e=t&&r?e.substring(1,e.length-1):e,!0),{type:"codespan",raw:n[0],text:e}}}br(e){e=this.rules.inline.br.exec(e);if(e)return{type:"br",raw:e[0]}}del(e){e=this.rules.inline.del.exec(e);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n){n=this.rules.inline.autolink.exec(n);if(n){let e,t;return t="@"===n[2]?"mailto:"+(e=s(n[1])):e=s(n[1]),{type:"link",raw:n[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var n,r;let l;if(l=this.rules.inline.url.exec(e)){let e,t;if("@"===l[2])e=s(l[0]),t="mailto:"+e;else{for(;r=l[0],l[0]=(null==(n=this.rules.inline._backpedal.exec(l[0]))?void 0:n[0])??"",r!==l[0];);e=s(l[0]),t="www."===l[1]?"http://"+l[0]:l[0]}return{type:"link",raw:l[0],text:e,href:t,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(t){t=this.rules.inline.text.exec(t);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:s(t[0]),{type:"text",raw:t[0],text:e}}}}const To=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,jo=/(?:[*+-]|\d{1,9}[.)])/,zo=n(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,jo).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Oo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Mo=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Po=n(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Mo).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Uo=n(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jo).getRegex(),No="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",Fo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Vo=n("^ {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",Fo).replace("tag",No).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Do=n(Oo).replace("hr",To).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",No).getRegex(),Ho={blockquote:n(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Do).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:Po,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:To,html:Vo,lheading:zo,list:Uo,newline:/^(?: *(?:\n|$))+/,paragraph:Do,table:t,text:/^[^\n]+/},Bo=n("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",To).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",No).getRegex(),Wo={...Ho,table:Bo,paragraph:n(Oo).replace("hr",To).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bo).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",No).getRegex()},qo={...Ho,html:n(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Fo).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:t,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:n(Oo).replace("hr",To).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",zo).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Go=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Zo=/^( {2,}|\\)\n(?!\s*$)/,Ko="\\p{P}\\p{S}",Qo=n(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Ko).getRegex(),Xo=n(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Ko).getRegex(),Jo=n("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Ko).getRegex(),Yo=n("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Ko).getRegex(),es=n(/\\([punct])/,"gu").replace(/punct/g,Ko).getRegex(),ts=n(/^<(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(),ns=n(Fo).replace("(?:--\x3e|$)","--\x3e").getRegex(),rs=n("^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",ns).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ls=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,is=n(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ls).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),os=n(/^!?\[(label)\]\[(ref)\]/).replace("label",ls).replace("ref",Mo).getRegex(),ss=n(/^!?\[(ref)\](?:\[\])?/).replace("ref",Mo).getRegex(),as=n("reflink|nolink(?!\\()","g").replace("reflink",os).replace("nolink",ss).getRegex(),cs={_backpedal:t,anyPunctuation:es,autolink:ts,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:Zo,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:t,emStrongLDelim:Xo,emStrongRDelimAst:Jo,emStrongRDelimUnd:Yo,escape:Go,link:is,nolink:ss,punctuation:Qo,reflink:os,reflinkSearch:as,tag:rs,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:t},us={...cs,link:n(/^!?\[(label)\]\((.*?)\)/).replace("label",ls).getRegex(),reflink:n(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ls).getRegex()},ps={...cs,escape:n(Go).replace("])","~|])").getRegex(),url:n(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},ds={...ps,br:n(Zo).replace("{2,}","*").getRegex(),text:n(ps.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},hs={normal:Ho,gfm:Wo,pedantic:qo},fs={normal:cs,gfm:ps,breaks:ds,pedantic:us};class gs{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||vo,this.options.tokenizer=this.options.tokenizer||new $o,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,(this.tokenizer.lexer=this).inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:hs.normal,inline:fs.normal};this.options.pedantic?(t.block=hs.pedantic,t.inline=fs.pedantic):this.options.gfm&&(t.block=hs.gfm,this.options.breaks?t.inline=fs.breaks:t.inline=fs.gfm),this.tokenizer.rules=t}static get rules(){return{block:hs,inline:fs}}static lex(e,t){return new gs(t).lex(e)}static lexInline(e,t){return new gs(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
|
||
`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){var t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(r,t=[]){r=this.options.pedantic?r.replace(/\t/g," ").replace(/^ +$/gm,""):r.replace(/^( *)(\t+)/gm,(e,t,n)=>t+" ".repeat(n.length));let n,e,l,i;for(;r;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(e=>!!(n=e.call({lexer:this},r,t))&&(r=r.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.space(r)){r=r.substring(n.raw.length),1===n.raw.length&&0<t.length?t[t.length-1].raw+=`
|
||
`:t.push(n);continue}if(n=this.tokenizer.code(r)){r=r.substring(n.raw.length),!(e=t[t.length-1])||"paragraph"!==e.type&&"text"!==e.type?t.push(n):(e.raw+=`
|
||
`+n.raw,e.text+=`
|
||
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=e.text);continue}if(n=this.tokenizer.fences(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(r)){r=r.substring(n.raw.length),!(e=t[t.length-1])||"paragraph"!==e.type&&"text"!==e.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(e.raw+=`
|
||
`+n.raw,e.text+=`
|
||
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=e.text);continue}if(n=this.tokenizer.table(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(r)){r=r.substring(n.raw.length),t.push(n);continue}if(l=r,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const s=r.slice(1);let n;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(n=e.call({lexer:this},s))&&0<=n&&(t=Math.min(t,n))}),t<1/0&&0<=t&&(l=r.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(l))){e=t[t.length-1],i&&"paragraph"===e.type?(e.raw+=`
|
||
`+n.raw,e.text+=`
|
||
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=e.text):t.push(n),i=l.length!==r.length,r=r.substring(n.raw.length);continue}if(n=this.tokenizer.text(r)){r=r.substring(n.raw.length),(e=t[t.length-1])&&"text"===e.type?(e.raw+=`
|
||
`+n.raw,e.text+=`
|
||
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=e.text):t.push(n);continue}if(r){var o="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(o);break}throw new Error(o)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(r,t=[]){let n,e,l,i=r,o,s,a;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(0<u.length)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(i));)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(i));)i=i.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.anyPunctuation.exec(i));)i=i.slice(0,o.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;r;)if(s||(a=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(e=>!!(n=e.call({lexer:this},r,t))&&(r=r.substring(n.raw.length),t.push(n),!0)))){if(n=this.tokenizer.escape(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.tag(r)){r=r.substring(n.raw.length),(e=t[t.length-1])&&"text"===n.type&&"text"===e.type?(e.raw+=n.raw,e.text+=n.text):t.push(n);continue}if(n=this.tokenizer.link(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(n.raw.length),(e=t[t.length-1])&&"text"===n.type&&"text"===e.type?(e.raw+=n.raw,e.text+=n.text):t.push(n);continue}if(n=this.tokenizer.emStrong(r,i,a)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.codespan(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.br(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.del(r)){r=r.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.autolink(r)){r=r.substring(n.raw.length),t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(r))){r=r.substring(n.raw.length),t.push(n);continue}if(l=r,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const p=r.slice(1);let n;this.options.extensions.startInline.forEach(e=>{"number"==typeof(n=e.call({lexer:this},p))&&0<=n&&(t=Math.min(t,n))}),t<1/0&&0<=t&&(l=r.substring(0,t+1))}if(n=this.tokenizer.inlineText(l)){r=r.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),s=!0,(e=t[t.length-1])&&"text"===e.type?(e.raw+=n.raw,e.text+=n.text):t.push(n);continue}if(r){var c="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}}return t}}class ms{options;constructor(e){this.options=e||vo}code(e,t,n){t=null==(t=(t||"").match(/^\S*/))?void 0:t[0];return e=e.replace(/\n$/,"")+`
|
||
`,t?'<pre><code class="language-'+s(t)+'">'+(n?e:s(e,!0))+`</code></pre>
|
||
`:"<pre><code>"+(n?e:s(e,!0))+`</code></pre>
|
||
`}blockquote(e){return`<blockquote>
|
||
${e}</blockquote>
|
||
`}html(e,t){return e}heading(e,t,n){return`<h${t}>${e}</h${t}>
|
||
`}hr(){return`<hr>
|
||
`}list(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+`>
|
||
`+e+"</"+r+`>
|
||
`}listitem(e,t,n){return`<li>${e}</li>
|
||
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph(e){return`<p>${e}</p>
|
||
`}table(e,t){return`<table>
|
||
<thead>
|
||
`+e+`</thead>
|
||
`+(t=t&&`<tbody>${t}</tbody>`)+`</table>
|
||
`}tablerow(e){return`<tr>
|
||
${e}</tr>
|
||
`}tablecell(e,t){var n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
|
||
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){var r=Ro(e);if(null===r)return n;let l='<a href="'+(e=r)+'"';return t&&(l+=' title="'+t+'"'),l+=">"+n+"</a>"}image(e,t,n){var r=Ro(e);if(null===r)return n;let l=`<img src="${e=r}" alt="${n}"`;return t&&(l+=` title="${t}"`),l+=">"}text(e){return e}}class vs{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class ys{options;renderer;textRenderer;constructor(e){this.options=e||vo,this.options.renderer=this.options.renderer||new ms,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new vs}static parse(e,t){return new ys(t).parse(e)}static parseInline(e,t){return new ys(t).parseInline(e)}parse(r,l=!0){let i="";for(let n=0;n<r.length;n++){var o=r[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[o.type]){var e=o,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){i+=t||"";continue}}switch(o.type){case"space":continue;case"hr":i+=this.renderer.hr();continue;case"heading":var s=o;i+=this.renderer.heading(this.parseInline(s.tokens),s.depth,this.parseInline(s.tokens,this.textRenderer).replace(So,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""));continue;case"code":i+=this.renderer.code(o.text,o.lang,!!o.escaped);continue;case"table":{var a=o;let e="",t="";for(let e=0;e<a.header.length;e++)t+=this.renderer.tablecell(this.parseInline(a.header[e].tokens),{header:!0,align:a.align[e]});e+=this.renderer.tablerow(t);let n="";for(let e=0;e<a.rows.length;e++){var c=a.rows[e];t="";for(let e=0;e<c.length;e++)t+=this.renderer.tablecell(this.parseInline(c[e].tokens),{header:!1,align:a.align[e]});n+=this.renderer.tablerow(t)}i+=this.renderer.table(e,n);continue}case"blockquote":s=this.parse(o.tokens);i+=this.renderer.blockquote(s);continue;case"list":{var u,p=o,d=p.ordered,h=p.start,f=p.loose;let n="";for(let t=0;t<p.items.length;t++){const g=p.items[t],m=g.checked,v=g.task;let e="";g.task&&(u=this.renderer.checkbox(!!m),f?0<g.tokens.length&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=u+" "+g.tokens[0].text,g.tokens[0].tokens&&0<g.tokens[0].tokens.length&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=u+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:u+" "}):e+=u+" "),e+=this.parse(g.tokens,f),n+=this.renderer.listitem(e,v,!!m)}i+=this.renderer.list(n,d,h);continue}case"html":i+=this.renderer.html(o.text,o.block);continue;case"paragraph":i+=this.renderer.paragraph(this.parseInline(o.tokens));continue;case"text":{let e=o,t=e.tokens?this.parseInline(e.tokens):e.text;for(;n+1<r.length&&"text"===r[n+1].type;)e=r[++n],t+=`
|
||
`+(e.tokens?this.parseInline(e.tokens):e.text);i+=l?this.renderer.paragraph(t):t;continue}default:d='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}return i}parseInline(t,n){n=n||this.renderer;let r="";for(let e=0;e<t.length;e++){var l=t[e];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[l.type]){var i=this.options.extensions.renderers[l.type].call({parser:this},l);if(!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=i||"";continue}}switch(l.type){case"escape":r+=n.text(l.text);break;case"html":r+=n.html(l.text);break;case"link":r+=n.link(l.href,l.title,this.parseInline(l.tokens,n));break;case"image":r+=n.image(l.href,l.title,l.text);break;case"strong":r+=n.strong(this.parseInline(l.tokens,n));break;case"em":r+=n.em(this.parseInline(l.tokens,n));break;case"codespan":r+=n.codespan(l.text);break;case"br":r+=n.br();break;case"del":r+=n.del(this.parseInline(l.tokens,n));break;case"text":r+=n.text(l.text);break;default:var o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}return r}}class ws{options;constructor(e){this.options=e||vo}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}Ne(ws,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class bs{constructor(...e){xr(this,i),xr(this,L),Ne(this,"defaults",mo()),Ne(this,"options",this.setOptions),Ne(this,"parse",_i(this,i,x).call(this,gs.lex,ys.parse)),Ne(this,"parseInline",_i(this,i,x).call(this,gs.lexInline,ys.parseInline)),Ne(this,"Parser",ys),Ne(this,"Renderer",ms),Ne(this,"TextRenderer",vs),Ne(this,"Lexer",gs),Ne(this,"Tokenizer",$o),Ne(this,"Hooks",ws),this.use(...e)}walkTokens(e,t){var n;let r=[];for(const i of e)switch(r=r.concat(t.call(this,i)),i.type){case"table":var l=i;for(const o of l.header)r=r.concat(this.walkTokens(o.tokens,t));for(const s of l.rows)for(const a of s)r=r.concat(this.walkTokens(a.tokens,t));break;case"list":l=i;r=r.concat(this.walkTokens(l.items,t));break;default:{const c=i;null!=(n=null==(n=this.defaults.extensions)?void 0:n.childTokens)&&n[c.type]?this.defaults.extensions.childTokens[c.type].forEach(e=>{e=c[e].flat(1/0);r=r.concat(this.walkTokens(e,t))}):c.tokens&&(r=r.concat(this.walkTokens(c.tokens,t)))}}return r}use(...e){const w=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{const t={...e};if(t.async=this.defaults.async||t.async||!1,e.extensions&&(e.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){const r=w.renderers[n.name];r?w.renderers[n.name]=function(...e){let t=n.renderer.apply(this,e);return t=!1===t?r.apply(this,e):t}:w.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||"block"!==n.level&&"inline"!==n.level)throw new Error("extension level must be 'block' or 'inline'");const e=w[n.level];e?e.unshift(n.tokenizer):w[n.level]=[n.tokenizer],n.start&&("block"===n.level?w.startBlock?w.startBlock.push(n.start):w.startBlock=[n.start]:"inline"===n.level&&(w.startInline?w.startInline.push(n.start):w.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(w.childTokens[n.name]=n.childTokens)}),t.extensions=w),e.renderer){const n=this.defaults.renderer||new ms(this.defaults);for(const r in e.renderer){if(!(r in n))throw new Error(`renderer '${r}' does not exist`);if("options"!==r){const l=r,i=e.renderer[l],o=n[l];n[l]=(...e)=>{let t=i.apply(n,e);return(t=!1===t?o.apply(n,e):t)||""}}}t.renderer=n}if(e.tokenizer){const s=this.defaults.tokenizer||new $o(this.defaults);for(const a in e.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(!["options","rules","lexer"].includes(a)){const c=a,u=e.tokenizer[c],p=s[c];s[c]=(...e)=>{let t=u.apply(s,e);return t=!1===t?p.apply(s,e):t}}}t.tokenizer=s}if(e.hooks){const d=this.defaults.hooks||new ws;for(const h in e.hooks){if(!(h in d))throw new Error(`hook '${h}' does not exist`);if("options"!==h){const f=h,g=e.hooks[f],m=d[f];ws.passThroughHooks.has(h)?d[f]=e=>{if(this.defaults.async)return Promise.resolve(g.call(d,e)).then(e=>m.call(d,e));e=g.call(d,e);return m.call(d,e)}:d[f]=(...e)=>{let t=g.apply(d,e);return t=!1===t?m.apply(d,e):t}}}t.hooks=d}if(e.walkTokens){const v=this.defaults.walkTokens,y=e.walkTokens;t.walkTokens=function(e){let t=[];return t.push(y.call(this,e)),t=v?t.concat(v.call(this,e)):t}}this.defaults={...this.defaults,...t}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return gs.lex(e,t??this.defaults)}parser(e,t){return ys.parse(e,t??this.defaults)}}i=new WeakSet,x=function(i,o){return(n,e)=>{const t={...e},r={...this.defaults,...t},l=(!0===this.defaults.async&&!1===t.async&&(r.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),r.async=!0),_i(this,L,R).call(this,!!r.silent,!!r.async));if("u"<typeof n||null===n)return l(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(r.hooks&&(r.hooks.options=r),r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(e=>i(e,r)).then(e=>r.hooks?r.hooks.processAllTokens(e):e).then(e=>r.walkTokens?Promise.all(this.walkTokens(e,r.walkTokens)).then(()=>e):e).then(e=>o(e,r)).then(e=>r.hooks?r.hooks.postprocess(e):e).catch(l);try{r.hooks&&(n=r.hooks.preprocess(n));let e=i(n,r),t=(r.hooks&&(e=r.hooks.processAllTokens(e)),r.walkTokens&&this.walkTokens(e,r.walkTokens),o(e,r));return t=r.hooks?r.hooks.postprocess(t):t}catch(e){return l(e)}}},L=new WeakSet,R=function(n,r){return e=>{var t;if(e.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,n)return t="<p>An error occurred:</p><pre>"+s(e.message+"",!0)+"</pre>",r?Promise.resolve(t):t;if(r)return Promise.reject(e);throw e}};const ks=new bs;function r(e,t){return ks.parse(e,t)}function xs(e){return(e||"").match(/\S*/)[0]}function _s(t){return e=>{"string"==typeof e&&e!==t.text&&(t.escaped=!0,t.text=e)}}r.options=r.setOptions=function(e){return ks.setOptions(e),yo(r.defaults=ks.defaults),r},r.getDefaults=mo,r.defaults=vo,r.use=function(...e){return ks.use(...e),yo(r.defaults=ks.defaults),r},r.walkTokens=function(e,t){return ks.walkTokens(e,t)},r.parseInline=ks.parseInline,r.Parser=ys,r.parser=ys.parse,r.Renderer=ms,r.TextRenderer=vs,r.Lexer=gs,r.lexer=gs.lex,r.Tokenizer=$o,r.Hooks=ws,r.parse=r;const Cs=/[&<>"']/,Ss=new RegExp(Cs.source,"g"),Ls=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Rs=new RegExp(Ls.source,"g"),Is={"&":"&","<":"<",">":">",'"':""","'":"'"},Es=e=>Is[e];function As(e,t){if(t){if(Cs.test(e))return e.replace(Ss,Es)}else if(Ls.test(e))return e.replace(Rs,Es);return e}const $s=/\$.*?\$/,Ts=/^\$(.*?)\$/,js=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,zs=(e="",n={})=>e.replace(/:(.+?):/g,(e,t)=>n[t]?`<img class="wl-emoji" src="${n[t]}" alt="${t}">`:e),Os=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const l=new bs;var i;return l.setOptions({breaks:!0}),n&&l.use(function(r){if((r="function"==typeof r?{highlight:r}:r)&&"function"==typeof r.highlight)return"string"!=typeof r.langPrefix&&(r.langPrefix="language-"),{async:!!r.async,walkTokens(e){if("code"===e.type){var t=xs(e.lang);if(r.async)return Promise.resolve(r.highlight(e.text,t,e.lang||"")).then(_s(e));t=r.highlight(e.text,t,e.lang||"");if(t 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.");_s(e)(t)}},renderer:{code(e,t,n){t=xs(t),t=t?` class="${r.langPrefix}${As(t)}"`:"";return e=e.replace(/\n$/,""),`<pre><code${t}>${n?e:As(e,!0)}
|
||
</code></pre>`}}};throw new Error("Must provide highlight function")}({highlight:n})),r&&(i=r,l.use({extensions:[{name:"blockMath",level:"block",tokenizer(e){e=js.exec(e);if(null!==e)return{type:"html",raw:e[0],text:i(!0,e[1])}}},{name:"inlineMath",level:"inline",start(e){var t=e.search($s);return-1!==t?t:e.length},tokenizer(e){e=Ts.exec(e);if(null!==e)return{type:"html",raw:e[0],text:i(!1,e[1])}}}]})),l.parse(zs(e,t))},Ms=e=>{e=e.dataset.path;return null!=e&&e.length?e:null},Ps=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const l=new AbortController,i=document.querySelectorAll(n);return i.length&&B({serverURL:Ie(e),paths:Array.from(i).map(e=>Se(Ms(e)??t)),lang:r,signal:l.signal}).then(n=>{i.forEach((e,t)=>{e.innerText=n[t].toString()})}).catch(po),l.abort.bind(l)},Us=({size:e})=>w("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[w("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"}),w("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"})]),Ns=()=>w("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},w("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"})),Fs=()=>w("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},w("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"})),Vs=()=>w("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[w("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"}),w("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"})]),Ds=({active:e=!1})=>w("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[w("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"})]),Hs=()=>w("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[w("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"}),w("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"})]),Bs=()=>w("svg",{width:"16",height:"16",ariaHidden:"true"},w("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"})),Ws=()=>w("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},w("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"})),qs=()=>w("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},w("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"})),Gs=()=>w("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},w("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"})),Zs=({size:e=100})=>w("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},w("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},w("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Ks=()=>w("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[w("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"}),w("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"})]);let Qs=null;const Xs=()=>Qs=Qs??lo("WALINE_LIKE",[]);let Js=null;var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ys={},he={},fe={},ea=we&&we.__awaiter||function(e,o,s,a){return new(s=s||Promise)(function(n,t){function r(e){try{i(a.next(e))}catch(e){t(e)}}function l(e){try{i(a.throw(e))}catch(e){t(e)}}function i(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,l)}i((a=a.apply(e,o||[])).next())})},ta=we&&we.__generator||function(r,l){var i,o,s,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(n){return function(e){var t=[n,e];if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(s=2&t[0]?o.return:t[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,t[1])).done)return s;switch(o=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return a.label++,{value:t[1],done:!1};case 5:a.label++,o=t[1],t=[0];continue;case 7:t=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){a=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3])){a.label=t[1];break}if(6===t[0]&&a.label<s[1]){a.label=s[1],s=t;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(t);break}s[2]&&a.ops.pop(),a.trys.pop();continue}t=l.call(r,a)}catch(e){t=[6,e],o=0}finally{i=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}},ge=(Object.defineProperty(fe,"__esModule",{value:!0}),fe.ReCaptchaInstance=void 0,na.prototype.execute=function(t){return ea(this,void 0,void 0,function(){return ta(this,function(e){return[2,(this.recaptcha.enterprise||this.recaptcha).execute(this.recaptchaID,{action:t})]})})},na.prototype.getSiteKey=function(){return this.siteKey},na.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},na.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},na);function na(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}fe.ReCaptchaInstance=ge,Object.defineProperty(he,"__esModule",{value:!0}),he.getInstance=he.load=void 0;var ra,la,ia,oa=fe,ve=((me=ra=ra||{})[me.NOT_LOADED=0]="NOT_LOADED",me[me.LOADING=1]="LOADING",me[me.LOADED=2]="LOADED",k.load=function(r,l){if(void 0===l&&(l={}),"u"<typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(k.getLoadingState()===ra.LOADED)return k.instance.getSiteKey()===r?Promise.resolve(k.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(k.getLoadingState()===ra.LOADING)return r!==k.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(t,n){k.successfulLoadingConsumers.push(function(e){return t(e)}),k.errorLoadingRunnable.push(function(e){return n(e)})});k.instanceSiteKey=r,k.setLoadingState(ra.LOADING);var i=new k;return new Promise(function(n,e){i.loadScript(r,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters||{},l.customUrl).then(function(){k.setLoadingState(ra.LOADED);var e=i.doExplicitRender(grecaptcha,r,l.explicitRenderParameters||{},l.useEnterprise||!1),t=new oa.ReCaptchaInstance(r,e,grecaptcha);k.successfulLoadingConsumers.forEach(function(e){return e(t)}),k.successfulLoadingConsumers=[],l.autoHideBadge&&t.hideBadge(),n(k.instance=t)}).catch(function(t){k.errorLoadingRunnable.forEach(function(e){return e(t)}),k.errorLoadingRunnable=[],e(t)})})},k.getInstance=function(){return k.instance},k.setLoadingState=function(e){k.loadingState=e},k.getLoadingState=function(){return null===k.loadingState?ra.NOT_LOADED:k.loadingState},k.prototype.loadScript=function(e,t,n,r,l){var i=this,o=(void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r={}),void 0===l&&(l=""),document.createElement("script")),s=(o.setAttribute("recaptcha-v3-script",""),"https://www.google.com/recaptcha/api.js"),t=(t&&(s=n?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),n&&(s="https://www.google.com/recaptcha/enterprise.js"),l&&(s=l),r.render&&(r.render=void 0),this.buildQueryString(r));return o.src=s+"?render=explicit"+t,new Promise(function(e,t){o.addEventListener("load",i.waitForScriptToLoad(function(){e(o)},n),!1),o.onerror=function(e){k.setLoadingState(ra.NOT_LOADED),t(e)},document.head.appendChild(o)})},k.prototype.buildQueryString=function(t){return Object.keys(t).length<1?"":"&"+Object.keys(t).filter(function(e){return!!t[e]}).map(function(e){return e+"="+t[e]}).join("&")},k.prototype.waitForScriptToLoad=function(e,t){var n=this;return function(){void 0===window.grecaptcha?setTimeout(function(){n.waitForScriptToLoad(e,t)},k.SCRIPT_LOAD_DELAY):(t?window.grecaptcha.enterprise:window.grecaptcha).ready(function(){e()})}},k.prototype.doExplicitRender=function(e,t,n,r){t={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?(r?e.enterprise:e).render(n.container,t):(r?e.enterprise:e).render(t)},k.loadingState=null,k.instance=null,k.instanceSiteKey=null,k.successfulLoadingConsumers=[],k.errorLoadingRunnable=[],k.SCRIPT_LOAD_DELAY=25,k);function k(){}he.load=ve.load,he.getInstance=ve.getInstance,ye=Ys,Object.defineProperty(ye,"__esModule",{value:!0}),ye.ReCaptchaInstance=ye.getInstance=ye.load=void 0,la=he,Object.defineProperty(ye,"load",{enumerable:!0,get:function(){return la.load}}),Object.defineProperty(ye,"getInstance",{enumerable:!0,get:function(){return la.getInstance}}),ia=fe,Object.defineProperty(ye,"ReCaptchaInstance",{enumerable:!0,get:function(){return ia.ReCaptchaInstance}});const sa={};let aa=null;const ca=()=>aa=aa??lo("WALINE_USER",{});be=Ar({__name:"ArticleReaction",setup(e,{expose:t}){t();const i=Js=Js??lo("WALINE_REACTION",{}),o=Xr("config"),s=N(-1),a=N([]),r=F(()=>o.value.locale),c=F(()=>0<o.value.reaction.length),n=F(()=>{const{reaction:e,path:n}=o.value;return e.map((e,t)=>({icon:e,desc:r.value["reaction"+t],active:i.value[n]===t}))});let u;const l=async()=>{if(c.value){const{serverURL:e,lang:t,path:n,reaction:r}=o.value,l=new AbortController,i=(u=l.abort.bind(l),await M({serverURL:e,lang:t,paths:[n],type:r.map((e,t)=>"reaction"+t),signal:l.signal}));a.value=r.map((e,t)=>i[0]["reaction"+t])}};zr(()=>{Lr(()=>[o.value.serverURL,o.value.path],()=>{l()},{immediate:!0})}),Mr(()=>null==u?void 0:u());t={reactionStorage:i,config:o,votingIndex:s,voteNumbers:a,locale:r,isReactionEnabled:c,reactionsInfo:n,get abort(){return u},set abort(e){u=e},fetchReaction:l,vote:async e=>{var t,n,r,l;-1===s.value&&({serverURL:t,lang:n,path:r}=o.value,l=i.value[r],s.value=e,void 0!==l&&(await P({serverURL:t,lang:n,path:r,type:"reaction"+l,action:"desc"}),a.value[l]=Math.max(a.value[l]-1,0)),l!==e&&(await P({serverURL:t,lang:n,path:r,type:"reaction"+e}),a.value[e]=(a.value[e]||0)+1),l===e?delete i.value[r]:i.value[r]=e,s.value=-1)},get LoadingIcon(){return Zs}};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}}),t=(e,t)=>{const n=e.__vccOpts||e;for(var[r,l]of t)n[r]=l;return n};const ua={key:0,class:"wl-reaction"},pa=["textContent"],da={class:"wl-reaction-list"},ha=["onClick"],fa={class:"wl-reaction-img"},ga=["src","alt"],ma=["textContent"],va=["textContent"];var ya=t(be,[["render",function(e,t,n,l,r,i){return l.reactionsInfo.length?(g(),m("div",ua,[v("div",{class:"wl-reaction-title",textContent:a(l.locale.reactionTitle)},null,8,pa),v("ul",da,[(g(!0),m(ee,null,u(l.reactionsInfo,({active:e,icon:t,desc:n},r)=>(g(),m("li",{key:r,class:p(["wl-reaction-item",{active:e}]),onClick:e=>l.vote(r)},[v("div",fa,[v("img",{src:t,alt:n},null,8,ga),l.votingIndex===r?(g(),Rl(l.LoadingIcon,{key:0,class:"wl-reaction-loading"})):(g(),m("div",{key:1,class:"wl-reaction-votes",textContent:a(l.voteNumbers[r]||0)},null,8,ma))]),v("div",{class:"wl-reaction-text",textContent:a(n)},null,8,va)],10,ha))),128))])])):y("v-if",!0)}],["__file","ArticleReaction.vue"]]),wa=new Map;function ba(e){e=wa.get(e);e&&e.destroy()}function ka(e){e=wa.get(e);e&&e.update()}var we=null,xa=("u"<typeof window?((we=function(e){return e}).destroy=function(e){return e},we.update=function(e){return e}):((we=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){function l(e){var t,n=e.restoreTextAlign,n=void 0===n?null:n,e=e.testForHeightReduction,e=void 0===e||e,r=s.overflowY;0===i.scrollHeight||("vertical"===s.resize?i.style.resize="none":"both"===s.resize&&(i.style.resize="horizontal"),e&&(t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach(function(e){var t=e[0],e=e[1];t.style.scrollBehavior="auto",t.scrollTop=e,t.style.scrollBehavior=null})}}(i),i.style.height=""),e="content-box"===s.boxSizing?i.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):i.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),"none"!==s.maxHeight&&e>parseFloat(s.maxHeight)?("hidden"===s.overflowY&&(i.style.overflow="scroll"),e=parseFloat(s.maxHeight)):"hidden"!==s.overflowY&&(i.style.overflow="hidden"),i.style.height=e+"px",n&&(i.style.textAlign=n),t&&t(),o!==e&&(i.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),o=e),r===s.overflow||n)||(t=s.textAlign,"hidden"===s.overflow&&(i.style.textAlign="start"===t?"end":"start"),l({restoreTextAlign:t,testForHeightReduction:!0}))}function n(){l({testForHeightReduction:!0,restoreTextAlign:null})}var i,t,o,s,r,a;(i=e)&&i.nodeName&&"TEXTAREA"===i.nodeName&&!wa.has(i)&&(o=null,s=window.getComputedStyle(i),t=i.value,r=function(){l({testForHeightReduction:""===t||!i.value.startsWith(t),restoreTextAlign:null}),t=i.value},a=function(t){i.removeEventListener("autosize:destroy",a),i.removeEventListener("autosize:update",n),i.removeEventListener("input",r),window.removeEventListener("resize",n),Object.keys(t).forEach(function(e){return i.style[e]=t[e]}),wa.delete(i)}.bind(i,{height:i.style.height,resize:i.style.resize,textAlign:i.style.textAlign,overflowY:i.style.overflowY,overflowX:i.style.overflowX,wordWrap:i.style.wordWrap}),i.addEventListener("autosize:destroy",a),i.addEventListener("autosize:update",n),i.addEventListener("input",r),window.addEventListener("resize",n),i.style.overflowX="hidden",i.style.wordWrap="break-word",wa.set(i,{destroy:a,update:n}),n())}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ba),e},we.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],ka),e}),we),ge=Ar({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const l=N(null),i=N({}),o=N([]),s=()=>{var e=Math.floor((l.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return 0<e?e:1},a=e=>new Array(e).fill(null).map(()=>[]),c=async e=>{var t;e>=n.items.length||(await tr(),t=Array.from((null==(t=l.value)?void 0:t.children)??[]).reduce((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e),o.value[Number(t.dataset.index)].push(e),await c(e+1))},u=async(e=!1)=>{o.value.length===s()&&!e||(o.value=a(s()),e=window.scrollY,await c(0),window.scrollTo({top:e}))};zr(()=>{u(!0),(r=new ResizeObserver(()=>{u()})).observe(l.value),Sr(()=>[n.items],()=>{i.value={},u(!0)}),Sr(()=>[n.columnWidth,n.gap],()=>{u()})}),Or(()=>r.unobserve(l.value));e={props:n,get resizeObserver(){return r},set resizeObserver(e){r=e},wall:l,state:i,columns:o,getColumnCount:s,createColumns:a,fillColumns:c,redraw:u,imageLoad:e=>{i.value[e.target.src]=!0},get LoadingIcon(){return Zs}};return Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!0}),e}});const _a=["data-index"],Ca=["src","title","onClick"];var Sa=t(ge,[["render",function(n,e,r,l,t,i){return g(),m("div",{ref:"wall",class:"wl-gallery",style:gt({gap:r.gap+"px"})},[(g(!0),m(ee,null,u(l.columns,(e,t)=>(g(),m("div",{key:t,class:"wl-gallery-column","data-index":t,style:gt({gap:r.gap+"px"})},[(g(!0),m(ee,null,u(e,t=>(g(),m(ee,{key:t},[l.state[r.items[t].src]?y("v-if",!0):(g(),Rl(l.LoadingIcon,{key:0,size:36,style:{margin:"20px auto"}})),v("img",{class:"wl-gallery-item",src:r.items[t].src,title:r.items[t].title,loading:"lazy",onLoad:l.imageLoad,onClick:e=>n.$emit("insert",``)},null,40,Ca)],64))),128))],12,_a))),128))],4)}],["__file","ImageWall.vue"]]),me=Ar({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:n}){t();const g=e,m=n,v=Xr("config"),y=lo("WALINE_COMMENT_BOX_EDITOR",""),w=lo("WALINE_USER_META",{nick:"",mail:"",link:""}),b=ca(),k=N({}),x=N(null),r=N(null),l=N(null),i=N(null),o=N(null),s=N(null),a=N(null),_=N({tabs:[],map:{}}),c=N(0),u=N(!1),p=N(!1),M=N(!1),C=N(""),S=N(0),d=Ln({loading:!0,list:[]}),h=N(0),L=N(!1),R=N(""),I=N(!1),f=N(!1),E=F(()=>v.value.locale),P=F(()=>{var e;return!(null==(e=b.value)||!e.token)}),A=F(()=>!1!==v.value.imageUploader),$=e=>{const t=x.value,n=t.selectionStart,r=t.selectionEnd||0,l=t.scrollTop;y.value=t.value.substring(0,n)+e+t.value.substring(r,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},T=t=>{const n=`![${v.value.locale.uploading} ${t.name}]()`;return $(n),I.value=!0,Promise.resolve().then(()=>v.value.imageUploader(t)).then(e=>{y.value=y.value.replace(n,`\r
|
||
`)}).catch(e=>{alert(e.message),y.value=y.value.replace(n,"")}).then(()=>{I.value=!1})},j=async()=>{var e,t,n,r;const{serverURL:l,lang:i,login:o,wordLimit:s,requiredMeta:a,recaptchaV3Key:c,turnstileKey:u}=v.value,p=await(async()=>{if(!navigator)return"";const e=navigator["userAgentData"];let t=navigator.userAgent;if(!e||"Windows"!==e.platform)return t;const n=(await e.getHighEntropyValues(["platformVersion"]))["platformVersion"];return t=n&&13<=parseInt(n.split(".")[0])?t.replace("Windows NT 10.0","Windows NT 11.0"):t})(),d={comment:R.value,nick:w.value.nick,mail:w.value.mail,link:w.value.link,url:v.value.path,ua:p};if(!g.edit)if(null!=(n=b.value)&&n.token)d.nick=b.value.display_name,d.mail=b.value.email,d.link=b.value.url;else{if("force"===o)return;if(-1<a.indexOf("nick")&&!d.nick)return null!=(n=k.value.nick)&&n.focus(),alert(E.value.nickError);if(-1<a.indexOf("mail")&&!d.mail||d.mail&&(n=d.mail,!Oe.test(n)))return null!=(n=k.value.mail)&&n.focus(),alert(E.value.mailError);d.nick||(d.nick=E.value.anonymous)}if(d.comment){if(!L.value)return alert(E.value.wordHint.replace("$0",s[0].toString()).replace("$1",s[1].toString()).replace("$2",S.value.toString()));d.comment=zs(d.comment,_.value.map),g.replyId&&g.rootId&&(d.pid=g.replyId,d.rid=g.rootId,d.at=g.replyUser),I.value=!0;try{c&&(d.recaptchaV3=await(e=>{const n=sa[e]??(sa[e]=Ys.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:t=>n.then(e=>e.execute(t))}})(c).execute("social")),u&&(d.turnstile=(r=u,await(async t=>{const e=oo("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1})["load"],n=(await e(),null==window?void 0:window.turnstile);return new Promise(e=>{null!=n&&n.ready(()=>{null!=n&&n.render(".wl-captcha-container",{sitekey:r,action:t,size:"compact",callback:e})})})})("social")));var h={serverURL:l,lang:i,token:null==(e=b.value)?void 0:e.token,comment:d},f=await(g.edit?H({objectId:g.edit.objectId,...h}):V(h));if(I.value=!1,f.errmsg)return alert(f.errmsg);m("submit",f.data),y.value="",C.value="",await tr(),g.replyId&&m("cancelReply"),null!=(t=g.edit)&&t.objectId&&m("cancelEdit")}catch(e){I.value=!1,alert(e.message)}}else null!=(n=x.value)&&n.focus()},z=e=>{var t;null!=(t=l.value)&&t.contains(e.target)||null!=(t=i.value)&&t.contains(e.target)||(u.value=!1),null!=(t=o.value)&&t.contains(e.target)||null!=(t=s.value)&&t.contains(e.target)||(p.value=!1)},O=async e=>{var t;const{scrollTop:n,clientHeight:r,scrollHeight:l}=e.target,i=(r+n)/l,o=v.value.search,s=(null==(t=a.value)?void 0:t.value)??"";i<.9||d.loading||f.value||(d.loading=!0,(o.more&&d.list.length?await o.more(s,d.list.length):await o.search(s)).length?d.list=[...d.list,...o.more&&d.list.length?await o.more(s,d.list.length):await o.search(s)]:f.value=!0,d.loading=!1,setTimeout(()=>{e.target.scrollTop=n},50))},U=Gi(e=>{d.list=[],f.value=!1,O(e)},300);Sr([v,S],([e,t])=>{e=e.wordLimit;e?t<e[0]&&0!==e[0]?(h.value=e[0],L.value=!1):t>e[1]?(h.value=e[1],L.value=!1):(h.value=e[1],L.value=!0):(h.value=0,L.value=!0)},{immediate:!0}),Ji("click",z),Ji("message",({data:e})=>{e&&"profile"===e.type&&(b.value={...b.value,...e.data},[localStorage,sessionStorage].filter(e=>e.getItem("WALINE_USER")).forEach(e=>e.setItem("WALINE_USER",JSON.stringify(b))))}),Sr(p,async e=>{if(e){const t=v.value.search;a.value&&(a.value.value=""),d.loading=!0,d.list=await((null==(e=t.default)?void 0:e.call(t))??t.search("")),d.loading=!1}}),zr(()=>{var e;null!=(e=g.edit)&&e.objectId&&(y.value=g.edit.orig),Lr(()=>y.value,e=>{var{highlighter:t,texRenderer:n}=v.value;R.value=e,C.value=Os(e,{emojiMap:_.value.map,highlighter:t,texRenderer:n}),S.value=((null==(n=(t=e).match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu))?void 0:n.reduce((e,t)=>e+(["",",","."].includes(t.trim())?0:t.trim().split(/\s+/u).length),0))??0)+((null==(n=t.match(/[\u4E00-\u9FD5]/gu))?void 0:n.length)??0),e?xa(x.value):xa.destroy(x.value)},{immediate:!0}),Lr(()=>v.value.emoji,e=>uo(e).then(e=>{_.value=e}),{immediate:!0})});t={props:g,emit:m,config:v,editor:y,userMeta:w,userInfo:b,inputRefs:k,editorRef:x,imageUploadRef:r,emojiButtonRef:l,emojiPopupRef:i,gifButtonRef:o,gifPopupRef:s,gifSearchInputRef:a,emoji:_,emojiTabIndex:c,showEmoji:u,showGif:p,showPreview:M,previewText:C,wordNumber:S,searchResults:d,wordLimit:h,isWordNumberLegal:L,content:R,isSubmitting:I,isImageListEnd:f,locale:E,isLogin:P,canUploadImage:A,insert:$,onKeyDown:e=>{var t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&j()},uploadImage:T,onDrop:e=>{var t;null!=(t=e.dataTransfer)&&t.items&&(t=go(e.dataTransfer.items))&&A.value&&(T(t),e.preventDefault())},onPaste:e=>{e.clipboardData&&(e=go(e.clipboardData.items))&&A.value&&T(e)},onChange:()=>{const e=r.value;e.files&&A.value&&T(e.files[0]).then(()=>{e.value=""})},submitComment:j,onLogin:e=>{e.preventDefault();var{lang:e,serverURL:t}=v.value;W({serverURL:t,lang:e}).then(e=>{((b.value=e).remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e)),m("log")})},onLogout:()=>{b.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),m("log")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=v.value,r=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2,i=new URLSearchParams({lng:t,token:b.value.token}),o=window.open(n+"/ui/profile?"+i.toString(),"_blank",`width=800,height=800,left=${r},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null!=o&&o.postMessage({type:"TOKEN",data:b.value.token},"*")},popupHandler:z,onImageWallScroll:O,onGifSearch:U,get CloseIcon(){return Us},get EmojiIcon(){return Fs},get GifIcon(){return Ks},get ImageIcon(){return Vs},get LoadingIcon(){return Zs},get MarkdownIcon(){return Bs},get PreviewIcon(){return Hs},ImageWall:Sa};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}});const La={key:0,class:"wl-login-info"},Ra={class:"wl-avatar"},Ia=["title"],Ea=["title"],Aa=["src"],$a=["title","textContent"],Ta={class:"wl-panel"},ja=["for","textContent"],za=["id","onUpdate:modelValue","name","type"],Oa=["placeholder"],Ma={class:"wl-preview"},Pa=v("hr",null,null,-1),Ua=["innerHTML"],Na={class:"wl-footer"},Fa={class:"wl-actions"},Va={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Da=["title"],Ha=["title"],Ba=["title"],Wa=["title"],qa={class:"wl-info"},Ga=v("div",{class:"wl-captcha-container"},null,-1),Za={class:"wl-text-number"},Ka={key:0},Qa=["textContent"],Xa=["textContent"],Ja=["disabled"],Ya=["placeholder"],ec={key:1,class:"wl-loading"},tc={key:0,class:"wl-tab-wrapper"},nc=["title","onClick"],rc=["src","alt"],lc={key:0,class:"wl-tabs"},ic=["onClick"],oc=["src","alt","title"],sc=["title"];var ac=t(me,[["render",function(e,t,n,r,l,i){var o;return g(),m("div",{key:r.userInfo.token,class:"wl-comment"},["disable"===r.config.login||!r.isLogin||null!=(o=n.edit)&&o.objectId?y("v-if",!0):(g(),m("div",La,[v("div",Ra,[v("button",{type:"submit",class:"wl-logout-btn",title:r.locale.logout,onClick:r.onLogout},[te(r.CloseIcon,{size:14})],8,Ia),v("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:r.locale.profile,onClick:r.onProfile},[v("img",{src:r.userInfo.avatar,alt:"avatar"},null,8,Aa)],8,Ea)]),v("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:r.locale.profile,onClick:r.onProfile,textContent:a(r.userInfo.display_name)},null,8,$a)])),v("div",Ta,["force"!==r.config.login&&r.config.meta.length&&!r.isLogin?(g(),m("div",{key:0,class:p(["wl-header","item"+r.config.meta.length])},[(g(!0),m(ee,null,u(r.config.meta,t=>(g(),m("div",{key:t,class:"wl-header-item"},[v("label",{for:"wl-"+t,textContent:a(r.locale[t]+(r.config.requiredMeta.includes(t)||!r.config.requiredMeta.length?"":`(${r.locale.optional})`))},null,8,ja),Ir(v("input",{id:"wl-"+t,ref_for:!0,ref:e=>{e&&(r.inputRefs[t]=e)},"onUpdate:modelValue":e=>r.userMeta[t]=e,class:p(["wl-input","wl-"+t]),name:t,type:"mail"===t?"email":"text"},null,10,za),[[zi,r.userMeta[t]]])]))),128))],2)):y("v-if",!0),Ir(v("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[0]||(t[0]=e=>r.editor=e),class:"wl-editor",placeholder:n.replyUser?"@"+n.replyUser:r.locale.placeholder,onKeydown:r.onKeyDown,onDrop:r.onDrop,onPaste:r.onPaste},null,40,Oa),[[Li,r.editor]]),Ir(v("div",Ma,[Pa,v("h4",null,a(r.locale.preview)+":",1),v("div",{class:"wl-content",innerHTML:r.previewText},null,8,Ua)],512),[[ii,r.showPreview]]),v("div",Na,[v("div",Fa,[v("a",Va,[te(r.MarkdownIcon)]),Ir(v("button",{ref:"emojiButtonRef",type:"button",class:p(["wl-action",{active:r.showEmoji}]),title:r.locale.emoji,onClick:t[1]||(t[1]=e=>r.showEmoji=!r.showEmoji)},[te(r.EmojiIcon)],10,Da),[[ii,r.emoji.tabs.length]]),r.config.search?(g(),m("button",{key:0,ref:"gifButtonRef",type:"button",class:p(["wl-action",{active:r.showGif}]),title:r.locale.gif,onClick:t[2]||(t[2]=e=>r.showGif=!r.showGif)},[te(r.GifIcon)],10,Ha)):y("v-if",!0),v("input",{id:"wl-image-upload",ref:"imageUploadRef",class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:r.onChange},null,544),r.canUploadImage?(g(),m("label",{key:1,for:"wl-image-upload",class:"wl-action",title:r.locale.uploadImage},[te(r.ImageIcon)],8,Ba)):y("v-if",!0),v("button",{type:"button",class:p(["wl-action",{active:r.showPreview}]),title:r.locale.preview,onClick:t[3]||(t[3]=e=>r.showPreview=!r.showPreview)},[te(r.PreviewIcon)],10,Wa)]),v("div",qa,[Ga,v("div",Za,[jl(a(r.wordNumber)+" ",1),r.config.wordLimit?(g(),m("span",Ka,[jl(" / "),v("span",{class:p({illegal:!r.isWordNumberLegal}),textContent:a(r.wordLimit)},null,10,Qa)])):y("v-if",!0),jl(" "+a(r.locale.word),1)]),"disable"===r.config.login||r.isLogin?y("v-if",!0):(g(),m("button",{key:0,type:"button",class:"wl-btn",onClick:r.onLogin,textContent:a(r.locale.login)},null,8,Xa)),"force"!==r.config.login||r.isLogin?(g(),m("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:r.isSubmitting,onClick:r.submitComment},[r.isSubmitting?(g(),Rl(r.LoadingIcon,{key:0,size:16})):(g(),m(ee,{key:1},[jl(a(r.locale.submit),1)],64))],8,Ja)):y("v-if",!0)]),v("div",{ref:"gifPopupRef",class:p(["wl-gif-popup",{display:r.showGif}])},[v("input",{ref:"gifSearchInputRef",type:"text",placeholder:r.locale.gifSearchPlaceholder,onInput:t[4]||(t[4]=(...e)=>r.onGifSearch&&r.onGifSearch(...e))},null,40,Ya),r.searchResults.list.length?(g(),Rl(r.ImageWall,{key:0,items:r.searchResults.list,"column-width":200,gap:6,onInsert:t[5]||(t[5]=e=>r.insert(e)),onScroll:r.onImageWallScroll},null,8,["items"])):y("v-if",!0),r.searchResults.loading?(g(),m("div",ec,[te(r.LoadingIcon,{size:30})])):y("v-if",!0)],2),v("div",{ref:"emojiPopupRef",class:p(["wl-emoji-popup",{display:r.showEmoji}])},[(g(!0),m(ee,null,u(r.emoji.tabs,(e,t)=>(g(),m(ee,{key:e.name},[t===r.emojiTabIndex?(g(),m("div",tc,[(g(!0),m(ee,null,u(e.items,t=>(g(),m("button",{key:t,type:"button",title:t,onClick:e=>r.insert(`:${t}:`)},[r.showEmoji?(g(),m("img",{key:0,class:"wl-emoji",src:r.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,rc)):y("v-if",!0)],8,nc))),128))])):y("v-if",!0)],64))),128)),1<r.emoji.tabs.length?(g(),m("div",lc,[(g(!0),m(ee,null,u(r.emoji.tabs,(e,t)=>(g(),m("button",{key:e.name,type:"button",class:p(["wl-tab",{active:r.emojiTabIndex===t}]),onClick:e=>r.emojiTabIndex=t},[v("img",{class:"wl-emoji",src:e.icon,alt:e.name,title:e.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,oc)],10,ic))),128))])):y("v-if",!0)],2)])]),n.replyId||null!=(o=n.edit)&&o.objectId?(g(),m("button",{key:1,type:"button",class:"wl-close",title:r.locale.cancelReply,onClick:t[6]||(t[6]=e=>n.replyId?r.emit("cancelReply"):r.emit("cancelEdit"))},[te(r.CloseIcon,{size:24})],8,sc)):y("v-if",!0)])}],["__file","CommentBox.vue"]]),ve=Ar({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{expose:t,emit:n}){t();const r=e,l=n,i=Xr("config"),o=Xs(),s=io(),a=ca(),c=F(()=>i.value.locale),u=F(()=>{var e=r.comment["link"];return e?Re(e)?e:"https://"+e:""}),p=F(()=>o.value.includes(r.comment.objectId)),d=F(()=>ze(new Date(r.comment.time),s.value,c.value)),h=F(()=>"administrator"===a.value.type),f=F(()=>r.comment.user_id&&a.value.objectId===r.comment.user_id),g=F(()=>{var e;return r.comment.objectId===(null==(e=r.reply)?void 0:e.objectId)}),m=F(()=>{var e;return r.comment.objectId===(null==(e=r.edit)?void 0:e.objectId)}),v={props:r,emit:l,commentStatus:["approved","waiting","spam"],config:i,likes:o,now:s,userInfo:a,locale:c,link:u,like:p,time:d,isAdmin:h,isOwner:f,isReplyingCurrent:g,isEditingCurrent:m,CommentBox:ac,get DeleteIcon(){return Ns},get EditIcon(){return qs},get LikeIcon(){return Ds},get ReplyIcon(){return Ws},get VerifiedIcon(){return Gs}};return Object.defineProperty(v,"__isScriptSetup",{enumerable:!1,value:!0}),v}});const cc=["id"],uc={class:"wl-user","aria-hidden":"true"},pc=["src"],dc={class:"wl-card"},hc={class:"wl-head"},fc=["href"],gc={key:1,class:"wl-nick"},mc=["textContent"],vc=["textContent"],yc=["textContent"],wc=["textContent"],bc=["textContent"],kc={class:"wl-comment-actions"},xc=["title"],_c=["title"],Cc={class:"wl-meta","aria-hidden":"true"},Sc=["data-value","textContent"],Lc={key:0,class:"wl-content"},Rc={key:0},Ic=["href"],Ec=v("span",null,": ",-1),Ac=["innerHTML"],$c={key:1,class:"wl-admin-actions"},Tc={class:"wl-comment-status"},jc=["disabled","onClick","textContent"],zc={key:3,class:"wl-quote"};var Oc=t(ve,[["render",function(e,t,n,r,l,i){var o;const s=vr("CommentCard",!0);return g(),m("div",{id:n.comment.objectId,class:"wl-card-item"},[v("div",uc,[n.comment.avatar?(g(),m("img",{key:0,class:"wl-user-avatar",src:n.comment.avatar},null,8,pc)):y("v-if",!0),n.comment.type?(g(),Rl(r.VerifiedIcon,{key:1})):y("v-if",!0)]),v("div",dc,[v("div",hc,[r.link?(g(),m("a",{key:0,class:"wl-nick",href:r.link,target:"_blank",rel:"nofollow noopener noreferrer"},a(n.comment.nick),9,fc)):(g(),m("span",gc,a(n.comment.nick),1)),"administrator"===n.comment.type?(g(),m("span",{key:2,class:"wl-badge",textContent:a(r.locale.admin)},null,8,mc)):y("v-if",!0),n.comment.label?(g(),m("span",{key:3,class:"wl-badge",textContent:a(n.comment.label)},null,8,vc)):y("v-if",!0),n.comment.sticky?(g(),m("span",{key:4,class:"wl-badge",textContent:a(r.locale.sticky)},null,8,yc)):y("v-if",!0),"number"==typeof n.comment.level?(g(),m("span",{key:5,class:p("wl-badge level"+n.comment.level),textContent:a(r.locale["level"+n.comment.level]||"Level "+n.comment.level)},null,10,wc)):y("v-if",!0),v("span",{class:"wl-time",textContent:a(r.time)},null,8,bc),v("div",kc,[r.isAdmin||r.isOwner?(g(),m(ee,{key:0},[v("button",{type:"button",class:"wl-edit",onClick:t[0]||(t[0]=e=>r.emit("edit",n.comment))},[te(r.EditIcon)]),v("button",{type:"button",class:"wl-delete",onClick:t[1]||(t[1]=e=>r.emit("delete",n.comment))},[te(r.DeleteIcon)])],64)):y("v-if",!0),v("button",{type:"button",class:"wl-like",title:r.like?r.locale.cancelLike:r.locale.like,onClick:t[2]||(t[2]=e=>r.emit("like",n.comment))},[te(r.LikeIcon,{active:r.like},null,8,["active"]),jl(" "+a("like"in n.comment?n.comment.like:""),1)],8,xc),v("button",{type:"button",class:p(["wl-reply",{active:r.isReplyingCurrent}]),title:r.isReplyingCurrent?r.locale.cancelReply:r.locale.reply,onClick:t[3]||(t[3]=e=>r.emit("reply",r.isReplyingCurrent?null:n.comment))},[te(r.ReplyIcon)],10,_c)])]),v("div",Cc,[(g(),m(ee,null,u(["addr","browser","os"],e=>(g(),m(ee,null,[n.comment[e]?(g(),m("span",{key:e,class:p("wl-"+e),"data-value":n.comment[e],textContent:a(n.comment[e])},null,10,Sc)):y("v-if",!0)],64))),64))]),r.isEditingCurrent?y("v-if",!0):(g(),m("div",Lc,[n.comment.reply_user?(g(),m("p",Rc,[v("a",{href:"#"+n.comment.pid},"@"+a(n.comment.reply_user.nick),9,Ic),Ec])):y("v-if",!0),v("div",{innerHTML:n.comment.comment},null,8,Ac)])),r.isAdmin&&!r.isEditingCurrent?(g(),m("div",$c,[v("span",Tc,[(g(),m(ee,null,u(r.commentStatus,t=>v("button",{key:t,type:"submit",class:p("wl-btn wl-"+t),disabled:n.comment.status===t,onClick:e=>r.emit("status",{status:t,comment:n.comment}),textContent:a(r.locale[t])},null,10,jc)),64))]),!r.isAdmin||"rid"in n.comment?y("v-if",!0):(g(),m("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=e=>r.emit("sticky",n.comment))},a(n.comment.sticky?r.locale.unsticky:r.locale.sticky),1))])):y("v-if",!0),r.isReplyingCurrent||r.isEditingCurrent?(g(),m("div",{key:2,class:p({"wl-reply-wrapper":r.isReplyingCurrent,"wl-edit-wrapper":r.isEditingCurrent})},[te(r.CommentBox,{edit:n.edit,"reply-id":null==(o=n.reply)?void 0:o.objectId,"reply-user":n.comment.nick,"root-id":n.rootId,onLog:t[5]||(t[5]=e=>r.emit("log")),onCancelReply:t[6]||(t[6]=e=>r.emit("reply",null)),onCancelEdit:t[7]||(t[7]=e=>r.emit("edit",null)),onSubmit:t[8]||(t[8]=e=>r.emit("submit",e))},null,8,["edit","reply-id","reply-user","root-id"])],2)):y("v-if",!0),"children"in n.comment?(g(),m("div",zc,[(g(!0),m(ee,null,u(n.comment.children,e=>(g(),Rl(s,{key:e.objectId,comment:e,reply:n.reply,edit:n.edit,"root-id":n.rootId,onLog:t[9]||(t[9]=e=>r.emit("log")),onDelete:t[10]||(t[10]=e=>r.emit("delete",e)),onEdit:t[11]||(t[11]=e=>r.emit("edit",e)),onLike:t[12]||(t[12]=e=>r.emit("like",e)),onReply:t[13]||(t[13]=e=>r.emit("reply",e)),onStatus:t[14]||(t[14]=e=>r.emit("status",e)),onSticky:t[15]||(t[15]=e=>r.emit("sticky",e)),onSubmit:t[16]||(t[16]=e=>r.emit("submit",e))},null,8,["comment","reply","edit","root-id"]))),128))])):y("v-if",!0)])],8,cc)}],["__file","CommentCard.vue"]]);he=Ar({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(t,{expose:n}){n();const e=t,o={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(o),s=ca(),a=Xs(),c=N("loading"),u=N(0),p=N(1),d=N(0),h=F(()=>Ae(e)),f=N(h.value.commentSorting),g=N([]),l=N(null),i=N(null),m=F(()=>(e=>$e(e)?"auto"===e?`@media(prefers-color-scheme:dark){body${Te}}`:""+e+Te:!0===e?":root"+Te:"")(h.value.dark)),v=F(()=>h.value.locale);{n=m;var y={id:"waline-darkmode"};const _=N(!1),{document:C=Xi,immediate:S=!0,manual:L=!1,id:R="vueuse_styletag_"+ ++so}=y,I=N(n);let e=()=>{};n=()=>{if(C){const t=C.getElementById(R)||C.createElement("style");t.isConnected||(t.id=R,y.media&&(t.media=y.media),C.head.appendChild(t)),_.value||(e=Sr(I,e=>{t.textContent=e},{immediate:!0}),_.value=!0)}},t=()=>{C&&_.value&&(e(),C.head.removeChild(C.getElementById(R)),_.value=!1)},S&&!L&&Ki(n),L||Ni(t),R,I,Rn(_)}let w;const b=t=>{var e;const{serverURL:n,path:r,pageSize:l}=h.value,i=new AbortController;c.value="loading",null!=w&&w(),U({serverURL:n,lang:h.value.lang,path:r,pageSize:l,sortBy:o[f.value],page:t,signal:i.signal,token:null==(e=s.value)?void 0:e.token}).then(e=>{c.value="success",u.value=e.count,g.value.push(...e.data),p.value=t,d.value=e.totalPages}).catch(e=>{"AbortError"!==e.name&&(console.error(e.message),c.value="error")}),w=i.abort.bind(i)},k=()=>{u.value=0,g.value=[],b(1)};n="config",t=h;if(E){let e=E.provides;var x=E.parent&&E.parent.provides;(e=x===e?E.provides=Object.create(x):e)[n]=t}zr(()=>{Lr(()=>[e.serverURL,e.path],()=>k(),{immediate:!0})}),Mr(()=>null==w?void 0:w());x={props:e,sortKeyMap:o,sortingMethods:r,userInfo:s,likeStorage:a,status:c,count:u,page:p,totalPages:d,config:h,commentSortingRef:f,data:g,reply:l,edit:i,darkmodeStyle:m,i18n:v,get abort(){return w},set abort(e){w=e},getCommentData:b,loadMore:()=>b(p.value+1),refresh:k,onSortByChange:e=>{f.value!==e&&(f.value=e,k())},onReply:e=>{l.value=e},onEdit:e=>{i.value=e},onSubmit:t=>{if(i.value)i.value.comment=t.comment,i.value.orig=t.orig;else if("rid"in t){const e=g.value.find(({objectId:e})=>e===t.rid);e&&(Array.isArray(e.children)||(e.children=[]),e.children.push(t))}else g.value.unshift(t),u.value+=1},onStatusChange:async({comment:e,status:t})=>{var n,r;e.status!==t&&({serverURL:n,lang:r}=h.value,await H({serverURL:n,lang:r,token:null==(n=s.value)?void 0:n.token,objectId:e.objectId,comment:{status:t}}),e.status=t)},onSticky:async e=>{var t,n;"rid"in e||({serverURL:t,lang:n}=h.value,await H({serverURL:t,lang:n,token:null==(t=s.value)?void 0:t.token,objectId:e.objectId,comment:{sticky:e.sticky?0:1}}),e.sticky=!e.sticky)},onDelete:async({objectId:l})=>{var e,t;confirm("Are you sure you want to delete this comment?")&&({serverURL:e,lang:t}=h.value,await D({serverURL:e,lang:t,token:null==(e=s.value)?void 0:e.token,objectId:l}),g.value.some((t,r)=>t.objectId===l?(g.value=g.value.filter((e,t)=>t!==r),!0):t.children.some((e,n)=>e.objectId===l&&(g.value[r].children=t.children.filter((e,t)=>t!==n),!0))))},onLike:async e=>{var t;const{serverURL:n,lang:r}=h.value,l=e["objectId"],i=a.value.includes(l);await H({serverURL:n,lang:r,objectId:l,token:null==(t=s.value)?void 0:t.token,comment:{like:!i}}),i?a.value=a.value.filter(e=>e!==l):(a.value=[...a.value,l],50<a.value.length&&(a.value=a.value.slice(-50))),e.like=(e.like||0)+(i?-1:1)},Reaction:ya,CommentBox:ac,CommentCard:Oc,get LoadingIcon(){return Zs},get version(){return"3.3.0"}};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}});const Mc={"data-waline":""},Pc={class:"wl-meta-head"},Uc={class:"wl-count"},Nc=["textContent"],Fc={class:"wl-sort"},Vc=["onClick"],Dc={class:"wl-cards"},Hc={key:1,class:"wl-operation"},Bc=["textContent"],Wc={key:2,class:"wl-loading"},qc=["textContent"],Gc={key:4,class:"wl-operation"},Zc=["textContent"],Kc={key:5,class:"wl-power"},Qc=v("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var Xc=t(he,[["render",function(e,t,n,r,l,i){return g(),m("div",Mc,[te(r.Reaction),r.reply||r.edit?y("v-if",!0):(g(),Rl(r.CommentBox,{key:0,onLog:r.refresh,onSubmit:r.onSubmit})),v("div",Pc,[v("div",Uc,[r.count?(g(),m("span",{key:0,class:"wl-num",textContent:a(r.count)},null,8,Nc)):y("v-if",!0),jl(" "+a(r.i18n.comment),1)]),v("ul",Fc,[(g(!0),m(ee,null,u(r.sortingMethods,t=>(g(),m("li",{key:t,class:p([t===r.commentSortingRef?"active":""]),onClick:e=>r.onSortByChange(t)},a(r.i18n[t]),11,Vc))),128))])]),v("div",Dc,[(g(!0),m(ee,null,u(r.data,e=>(g(),Rl(r.CommentCard,{key:e.objectId,"root-id":e.objectId,comment:e,reply:r.reply,edit:r.edit,onLog:r.refresh,onReply:r.onReply,onEdit:r.onEdit,onSubmit:r.onSubmit,onStatus:r.onStatusChange,onDelete:r.onDelete,onSticky:r.onSticky,onLike:r.onLike},null,8,["root-id","comment","reply","edit"]))),128))]),"error"===r.status?(g(),m("div",Hc,[v("button",{type:"button",class:"wl-btn",onClick:r.refresh,textContent:a(r.i18n.refresh)},null,8,Bc)])):"loading"===r.status?(g(),m("div",Wc,[te(r.LoadingIcon,{size:30})])):r.data.length?r.page<r.totalPages?(g(),m("div",Gc,[v("button",{type:"button",class:"wl-btn",onClick:r.loadMore,textContent:a(r.i18n.more)},null,8,Zc)])):y("v-if",!0):(g(),m("div",{key:3,class:"wl-empty",textContent:a(r.i18n.sofa)},null,8,qc)),r.config.copyright?(g(),m("div",Kc,[jl(" Powered by "),Qc,jl(" v"+a(r.version),1)])):y("v-if",!0)])}],["__file","WalineComment.vue"]]);const Jc=(r,e)=>{e.forEach((e,t)=>{const n=r[t].time;"number"==typeof n&&(e.innerText=n.toString())})},Yc=({serverURL:e,path:n=window.location.pathname,selector:t=".waline-pageview-count",update:r=!0,lang:l=navigator.language})=>{const i=new AbortController,o=Array.from(document.querySelectorAll(t)),s=e=>{e=Ms(e);return null!==e&&n!==e},a=t=>q({serverURL:Ie(e),paths:t.map(e=>Ms(e)??n),lang:l,signal:i.signal}).then(e=>Jc(e,t)).catch(po);if(r){const c=o.filter(e=>!s(e)),u=o.filter(s);G({serverURL:Ie(e),path:n,lang:l}).then(e=>Jc(e,c)),u.length&&a(u)}else a(o);return i.abort.bind(i)};e.RecentComments=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const l=ca(),i=ho(e),o=new AbortController;return Z({serverURL:t,count:n,lang:r,signal:o.signal,token:null==(e=l.value)?void 0:e.token}).then(e=>i&&e.length?(i.innerHTML=`<ul class="wl-recent-list">${e.map(e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>:${e.comment}</li>`).join("")}</ul>`,{comments:e,destroy:()=>{o.abort(),i.innerHTML=""}}):{comments:e,destroy:()=>o.abort()})},e.UserList=({el:e,serverURL:t,count:n,locale:r,lang:l=navigator.language,mode:i="list"})=>{const o=ho(e),s=new AbortController;return K({serverURL:t,pageSize:n,lang:l,signal:s.signal}).then(e=>o&&e.length?(r={..._e(l),..."object"==typeof r?r:{}},o.innerHTML=`<ul class="wl-user-${i}">${e.map((e,t)=>[`<li class="wl-user-item" aria-label="${e.nick}">`,e.link&&`<a href="${e.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${e.avatar}" alt="${e.nick}">`,`<span class="wl-user-badge">${t+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',e.nick,e.level&&`<span class="wl-badge">${r?r["level"+e.level]:"Level "+e.level}</span>`,e.label&&`<span class="wl-badge">${e.label}</span>`,"</div>",e.link&&e.link,"</div>",e.link&&"</a>","</li>"].filter(e=>e).join("")).join("")}</ul>`,{users:e,destroy:()=>{s.abort(),o.innerHTML=""}}):{users:e,destroy:()=>s.abort()})},e.addComment=V,e.commentCount=Ps,e.defaultLocales=xe,e.deleteComment=D,e.fetchCommentCount=B,e.getArticleCounter=M,e.getComment=U,e.getPageview=q,e.getRecentComment=Z,e.getUserList=K,e.init=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...l})=>{var i=e?ho(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const o=Ln({...l}),s=Ln({comment:n,pageview:r,path:t}),a=i?Ui(()=>w(Xc,{path:s.path,...o})):null,c=(a&&a.mount(i),_r(()=>{s.comment&&Ps({serverURL:o.serverURL,path:s.path,...$e(s.comment)?{selector:s.comment}:{}})})),u=_r(()=>{s.pageview&&Yc({serverURL:o.serverURL,path:s.path,...$e(s.pageview)?{selector:s.pageview}:{}})});return{el:i,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach(([e,t])=>{o[e]=t}),s.path=n,void 0!==e&&(s.comment=e),void 0!==t&&(s.pageview=t)},destroy:()=>{null!=a&&a.unmount(),c(),u()}}},e.login=W,e.pageviewCount=Yc,e.updateArticleCounter=P,e.updateComment=H,e.updatePageview=G,e.version="3.3.0"}); |