UNPKG

@waline/client

Version:

client for waline comment system

22 lines 174 kB
var Co=Object.defineProperty;var So=(e,t,n)=>t in e?Co(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ts=(e,t,n)=>So(e,typeof t!="symbol"?t+"":t,n);const Is={"Content-Type":"application/json"},Xe=e=>`${e.replace(/\/?$/,"/")}api/`,yt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},Rr=({serverURL:e,lang:t,paths:n,type:r,signal:s})=>fetch(`${Xe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:s}).then(i=>i.json()).then(i=>yt(i,"Get counter").data),zn=({serverURL:e,lang:t,path:n,type:r,action:s})=>fetch(`${Xe(e)}article?lang=${t}`,{method:"POST",headers:Is,body:JSON.stringify({path:n,type:r,action:s})}).then(i=>i.json()).then(i=>yt(i,"Update counter").data),Ls=({serverURL:e,lang:t,path:n,page:r,pageSize:s,sortBy:i,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${Xe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${s}&page=${r}&lang=${t}&sortBy=${i}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>yt(c,"Get comment data").data)},Ms=({serverURL:e,lang:t,token:n,comment:r})=>{const s={"Content-Type":"application/json"};return n&&(s.Authorization=`Bearer ${n}`),fetch(`${Xe(e)}comment?lang=${t}`,{method:"POST",headers:s,body:JSON.stringify(r)}).then(i=>i.json())},Ps=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Xe(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(s=>s.json()).then(s=>yt(s,"Delete comment")),nn=({serverURL:e,lang:t,token:n,objectId:r,comment:s})=>fetch(`${Xe(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Is,Authorization:`Bearer ${n}`},body:JSON.stringify(s)}).then(i=>i.json()).then(i=>yt(i,"Update comment")),Os=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Xe(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(s=>s.json()).then(s=>yt(s,"Get comment count").data),js=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,s=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 s==null||s.postMessage({type:"TOKEN",data:null},"*"),new Promise(i=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(s==null||s.close(),window.removeEventListener("message",l),i(o.data))};window.addEventListener("message",l)})},zs=({serverURL:e,lang:t,paths:n,signal:r})=>Rr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Ds=e=>zn({...e,type:"time",action:"inc"}),Fs=({serverURL:e,lang:t,count:n,signal:r,token:s})=>{const i={};return s&&(i.Authorization=`Bearer ${s}`),fetch(`${Xe(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then(l=>l.json())},Hs=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Xe(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(s=>s.json()).then(s=>yt(s,"user list")).then(s=>s.data),$o=["nick","mail","link"],Us=e=>e.filter(t=>$o.includes(t)),Ns=["//unpkg.com/@waline/emojis@1.1.0/weibo"],Ro=["//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"],Ao=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result),r.onerror=n}),Eo=e=>e?'<p class="wl-tex">TeX is not available in preview</p>':'<span class="wl-tex">TeX is not available in preview</span>',To=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(s=>s.json()).then(({data:s})=>s.map(i=>({title:i.title,src:i.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},Io=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,Lo=/</,Mo=/(?:^|\s)\/\/(.+?)$/gm,Po=/\/\*([\S\s]*?)\*\//gm,Oo=new RegExp(`(${Io.source}|${Lo.source})|((?:${Mo.source})|(?:${Po.source}))`,"gmi"),Bs=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Ar={},jo=e=>{let t=0;return e.replace(Oo,(n,r,s)=>{if(s)return`<span style="color: slategray">${s}</span>`;if(r==="<")return"&lt;";let i;Ar[r]?i=Ar[r]:(i=Bs[t],Ar[r]=i);const l=`<span style="color: #${i}">${r}</span>`;return t=++t%Bs.length,l})},zo=["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"],qe=e=>Object.fromEntries(e.map((t,n)=>[zo[n],t]));var Do=qe(["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?"]),Vs=qe(["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?"]),Ws=qe(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras! El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),qs=qe(["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 ?"]),Ks=qe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません! 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Fo=qe(["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?"]),Gs=qe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов! Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Zs=qe(["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?"]),Js=qe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间! 当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Ho=qe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! 目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Ys="en-US",Dn={zh:Js,"zh-cn":Js,"zh-tw":Ho,en:Vs,"en-us":Vs,fr:qs,"fr-fr":qs,jp:Ks,"jp-jp":Ks,"pt-br":Fo,ru:Gs,"ru-ru":Gs,vi:Zs,"vi-vn":Zs,de:Do,es:Ws,"es-mx":Ws},Qs=e=>Dn[e.toLowerCase()]||Dn[Ys.toLowerCase()],Xs=e=>Object.keys(Dn).includes(e.toLowerCase())?e:Ys,ei={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Uo=Object.keys(ei),Fn=Symbol("waline-config"),ti=e=>{try{e=decodeURI(e)}catch{}return e},ni=(e="")=>e.replace(/\/$/u,""),ri=e=>/^(https?:)?\/\//.test(e),Hn=e=>{const t=ni(e);return ri(t)?t:`https://${t}`},No=e=>Array.isArray(e)?e:e?[0,e]:!1,zt=(e,t)=>e==null||e===!0?t:e===!1?null:e,Bo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,meta:s=["nick","mail","link"],requiredMeta:i=[],dark:l=!1,pageSize:o=10,wordLimit:a,noCopyright:c=!1,login:u="enable",recaptchaV3Key:f="",turnstileKey:d="",commentSorting:m="latest",emoji:x=Ns,imageUploader:b,highlighter:T,texRenderer:w,search:C,reaction:N,...I})=>({serverURL:Hn(e),path:ti(t),lang:Xs(n),locale:{...Qs(Xs(n)),...typeof r=="object"?r:{}},wordLimit:No(a),meta:Us(s),requiredMeta:Us(i),dark:l,pageSize:o,commentSorting:m,login:u,noCopyright:c,recaptchaV3Key:f,turnstileKey:d,...I,reaction:zt(N,Ro),imageUploader:zt(b,Ao),highlighter:zt(T,jo),texRenderer:zt(w,Eo),emoji:zt(x,Ns),search:zt(C,To(n))}),Dt=e=>typeof e=="string",Er="{--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}",Vo=e=>Dt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Er}}`:`${e}${Er}`:e===!0?`:root${Er}`:"",Tr=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},Wo=e=>{const t=Tr(e.getDate(),2),n=Tr(e.getMonth()+1,2);return`${Tr(e.getFullYear(),2)}-${n}-${t}`},qo=(e,t,n)=>{if(!e)return"";const r=Dt(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,s=t.getTime()-r.getTime(),i=Math.floor(s/(24*3600*1e3));if(i===0){const l=s%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:Wo(r)},Ko=/^[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])?)*$/,Go=e=>Ko.test(e);/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Ir(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ie={},Ft=[],wt=()=>{},Zo=()=>!1,Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Lr=e=>e.startsWith("onUpdate:"),je=Object.assign,si=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Jo=Object.prototype.hasOwnProperty,X=(e,t)=>Jo.call(e,t),q=Array.isArray,Ht=e=>rn(e)==="[object Map]",Ut=e=>rn(e)==="[object Set]",ii=e=>rn(e)==="[object Date]",ee=e=>typeof e=="function",ye=e=>typeof e=="string",Ke=e=>typeof e=="symbol",he=e=>e!==null&&typeof e=="object",li=e=>(he(e)||ee(e))&&ee(e.then)&&ee(e.catch),oi=Object.prototype.toString,rn=e=>oi.call(e),Yo=e=>rn(e).slice(8,-1),ai=e=>rn(e)==="[object Object]",Mr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=Ir(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Nn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Qo=/-(\w)/g,ze=Nn(e=>e.replace(Qo,(t,n)=>n?n.toUpperCase():"")),Xo=/\B([A-Z])/g,kt=Nn(e=>e.replace(Xo,"-$1").toLowerCase()),Bn=Nn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pr=Nn(e=>e?`on${Bn(e)}`:""),ft=(e,t)=>!Object.is(e,t),Vn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ci=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ui;const ln=()=>ui||(ui=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function on(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ye(r)?ra(r):on(r);if(s)for(const i in s)t[i]=s[i]}return t}else if(ye(e)||he(e))return e}const ea=/;(?![^(]*\))/g,ta=/:([^]+)/,na=/\/\*[^]*?\*\//g;function ra(e){const t={};return e.replace(na,"").split(ea).forEach(n=>{if(n){const r=n.split(ta);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function me(e){let t="";if(ye(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const r=me(e[n]);r&&(t+=r+" ")}else if(he(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const sa="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ia=Ir(sa);function fi(e){return!!e||e===""}function la(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=xt(e[r],t[r]);return n}function xt(e,t){if(e===t)return!0;let n=ii(e),r=ii(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ke(e),r=Ke(t),n||r)return e===t;if(n=q(e),r=q(t),n||r)return n&&r?la(e,t):!1;if(n=he(e),r=he(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const l in e){const o=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(o&&!a||!o&&a||!xt(e[l],t[l]))return!1}}return String(e)===String(t)}function Or(e,t){return e.findIndex(n=>xt(n,t))}const hi=e=>!!(e&&e.__v_isRef===!0),Y=e=>ye(e)?e:e==null?"":q(e)||he(e)&&(e.toString===oi||!ee(e.toString))?hi(e)?Y(e.value):JSON.stringify(e,pi,2):String(e),pi=(e,t)=>hi(t)?pi(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],i)=>(n[jr(r,i)+" =>"]=s,n),{})}:Ut(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>jr(n))}:Ke(t)?jr(t):he(t)&&!q(t)&&!ai(t)?String(t):t,jr=(e,t="")=>{var n;return Ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Ce;class oa{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ce,!t&&Ce&&(this.index=(Ce.scopes||(Ce.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Ce;try{return Ce=this,t()}finally{Ce=n}}}on(){Ce=this}off(){Ce=this.parent}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function di(){return Ce}function aa(e,t=!1){Ce&&Ce.cleanups.push(e)}let ue;const zr=new WeakSet;class gi{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ce&&Ce.active&&Ce.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,zr.has(this)&&(zr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||vi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,xi(this),bi(this);const t=ue,n=Ne;ue=this,Ne=!0;try{return this.fn()}finally{yi(this),ue=t,Ne=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ur(t);this.deps=this.depsTail=void 0,xi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?zr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Hr(this)&&this.run()}get dirty(){return Hr(this)}}let mi=0,an,cn;function vi(e,t=!1){if(e.flags|=8,t){e.next=cn,cn=e;return}e.next=an,an=e}function Dr(){mi++}function Fr(){if(--mi>0)return;if(cn){let t=cn;for(cn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;an;){let t=an;for(an=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function bi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function yi(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Ur(r),ca(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function Hr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(wi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function wi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===un))return;e.globalVersion=un;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Hr(e)){e.flags&=-3;return}const n=ue,r=Ne;ue=e,Ne=!0;try{bi(e);const s=e.fn(e._value);(t.version===0||ft(s,e._value))&&(e._value=s,t.version++)}catch(s){throw t.version++,s}finally{ue=n,Ne=r,yi(e),e.flags&=-3}}function Ur(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ur(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ca(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ne=!0;const ki=[];function _t(){ki.push(Ne),Ne=!1}function Ct(){const e=ki.pop();Ne=e===void 0?!0:e}function xi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ue;ue=void 0;try{t()}finally{ue=n}}}let un=0;class ua{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!ue||!Ne||ue===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ue)n=this.activeLink=new ua(ue,this),ue.deps?(n.prevDep=ue.depsTail,ue.depsTail.nextDep=n,ue.depsTail=n):ue.deps=ue.depsTail=n,_i(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ue.depsTail,n.nextDep=void 0,ue.depsTail.nextDep=n,ue.depsTail=n,ue.deps===n&&(ue.deps=r)}return n}trigger(t){this.version++,un++,this.notify(t)}notify(t){Dr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Fr()}}}function _i(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)_i(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Kn=new WeakMap,St=Symbol(""),Nr=Symbol(""),fn=Symbol("");function ke(e,t,n){if(Ne&&ue){let r=Kn.get(e);r||Kn.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new qn),s.map=r,s.key=n),s.track()}}function et(e,t,n,r,s,i){const l=Kn.get(e);if(!l){un++;return}const o=a=>{a&&a.trigger()};if(Dr(),t==="clear")l.forEach(o);else{const a=q(e),c=a&&Mr(n);if(a&&n==="length"){const u=Number(r);l.forEach((f,d)=>{(d==="length"||d===fn||!Ke(d)&&d>=u)&&o(f)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(fn)),t){case"add":a?c&&o(l.get("length")):(o(l.get(St)),Ht(e)&&o(l.get(Nr)));break;case"delete":a||(o(l.get(St)),Ht(e)&&o(l.get(Nr)));break;case"set":Ht(e)&&o(l.get(St));break}}Fr()}function fa(e,t){const n=Kn.get(e);return n&&n.get(t)}function Nt(e){const t=Q(e);return t===e?t:(ke(t,"iterate",fn),De(e)?t:t.map(xe))}function Gn(e){return ke(e=Q(e),"iterate",fn),e}const ha={__proto__:null,[Symbol.iterator](){return Br(this,Symbol.iterator,xe)},concat(...e){return Nt(this).concat(...e.map(t=>q(t)?Nt(t):t))},entries(){return Br(this,"entries",e=>(e[1]=xe(e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(xe),arguments)},find(e,t){return tt(this,"find",e,t,xe,arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,xe,arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Vr(this,"includes",e)},indexOf(...e){return Vr(this,"indexOf",e)},join(e){return Nt(this).join(e)},lastIndexOf(...e){return Vr(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return hn(this,"pop")},push(...e){return hn(this,"push",e)},reduce(e,...t){return Ci(this,"reduce",e,t)},reduceRight(e,...t){return Ci(this,"reduceRight",e,t)},shift(){return hn(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return hn(this,"splice",e)},toReversed(){return Nt(this).toReversed()},toSorted(e){return Nt(this).toSorted(e)},toSpliced(...e){return Nt(this).toSpliced(...e)},unshift(...e){return hn(this,"unshift",e)},values(){return Br(this,"values",xe)}};function Br(e,t,n){const r=Gn(e),s=r[t]();return r!==e&&!De(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.value&&(i.value=n(i.value)),i}),s}const pa=Array.prototype;function tt(e,t,n,r,s,i){const l=Gn(e),o=l!==e&&!De(e),a=l[t];if(a!==pa[t]){const f=a.apply(e,i);return o?xe(f):f}let c=n;l!==e&&(o?c=function(f,d){return n.call(this,xe(f),d,e)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,e)}));const u=a.call(l,c,r);return o&&s?s(u):u}function Ci(e,t,n,r){const s=Gn(e);let i=n;return s!==e&&(De(e)?n.length>3&&(i=function(l,o,a){return n.call(this,l,o,a,e)}):i=function(l,o,a){return n.call(this,l,xe(o),a,e)}),s[t](i,...r)}function Vr(e,t,n){const r=Q(e);ke(r,"iterate",fn);const s=r[t](...n);return(s===-1||s===!1)&&Gr(n[0])?(n[0]=Q(n[0]),r[t](...n)):s}function hn(e,t,n=[]){_t(),Dr();const r=Q(e)[t].apply(e,n);return Fr(),Ct(),r}const da=Ir("__proto__,__v_isRef,__isVue"),Si=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke));function ga(e){Ke(e)||(e=String(e));const t=Q(this);return ke(t,"has",e),t.hasOwnProperty(e)}class $i{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?Sa:Ti:i?Ei:Ai).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=q(t);if(!s){let a;if(l&&(a=ha[n]))return a;if(n==="hasOwnProperty")return ga}const o=Reflect.get(t,n,ve(t)?t:r);return(Ke(n)?Si.has(n):da(n))||(s||ke(t,"get",n),i)?o:ve(o)?l&&Mr(n)?o:o.value:he(o)?s?Bt(o):pn(o):o}}class Ri extends $i{constructor(t=!1){super(!1,t)}set(t,n,r,s){let i=t[n];if(!this._isShallow){const a=$t(i);if(!De(r)&&!$t(r)&&(i=Q(i),r=Q(r)),!q(t)&&ve(i)&&!ve(r))return a?!1:(i.value=r,!0)}const l=q(t)&&Mr(n)?Number(n)<t.length:X(t,n),o=Reflect.set(t,n,r,ve(t)?t:s);return t===Q(s)&&(l?ft(r,i)&&et(t,"set",n,r):et(t,"add",n,r)),o}deleteProperty(t,n){const r=X(t,n),s=Reflect.deleteProperty(t,n);return s&&r&&et(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!Ke(n)||!Si.has(n))&&ke(t,"has",n),r}ownKeys(t){return ke(t,"iterate",q(t)?"length":St),Reflect.ownKeys(t)}}class ma extends $i{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const va=new Ri,ba=new ma,ya=new Ri(!0),Wr=e=>e,Zn=e=>Reflect.getPrototypeOf(e);function wa(e,t,n){return function(...r){const s=this.__v_raw,i=Q(s),l=Ht(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=s[e](...r),u=n?Wr:t?Zr:xe;return!t&&ke(i,"iterate",a?Nr:St),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:o?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ka(e,t){const n={get(s){const i=this.__v_raw,l=Q(i),o=Q(s);e||(ft(s,o)&&ke(l,"get",s),ke(l,"get",o));const{has:a}=Zn(l),c=t?Wr:e?Zr:xe;if(a.call(l,s))return c(i.get(s));if(a.call(l,o))return c(i.get(o));i!==l&&i.get(s)},get size(){const s=this.__v_raw;return!e&&ke(Q(s),"iterate",St),Reflect.get(s,"size",s)},has(s){const i=this.__v_raw,l=Q(i),o=Q(s);return e||(ft(s,o)&&ke(l,"has",s),ke(l,"has",o)),s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const l=this,o=l.__v_raw,a=Q(o),c=t?Wr:e?Zr:xe;return!e&&ke(a,"iterate",St),o.forEach((u,f)=>s.call(i,c(u),c(f),l))}};return je(n,e?{add:Jn("add"),set:Jn("set"),delete:Jn("delete"),clear:Jn("clear")}:{add(s){!t&&!De(s)&&!$t(s)&&(s=Q(s));const i=Q(this);return Zn(i).has.call(i,s)||(i.add(s),et(i,"add",s,s)),this},set(s,i){!t&&!De(i)&&!$t(i)&&(i=Q(i));const l=Q(this),{has:o,get:a}=Zn(l);let c=o.call(l,s);c||(s=Q(s),c=o.call(l,s));const u=a.call(l,s);return l.set(s,i),c?ft(i,u)&&et(l,"set",s,i):et(l,"add",s,i),this},delete(s){const i=Q(this),{has:l,get:o}=Zn(i);let a=l.call(i,s);a||(s=Q(s),a=l.call(i,s)),o&&o.call(i,s);const c=i.delete(s);return a&&et(i,"delete",s,void 0),c},clear(){const s=Q(this),i=s.size!==0,l=s.clear();return i&&et(s,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=wa(s,e,t)}),n}function qr(e,t){const n=ka(e,t);return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(X(n,s)&&s in r?n:r,s,i)}const xa={get:qr(!1,!1)},_a={get:qr(!1,!0)},Ca={get:qr(!0,!1)},Ai=new WeakMap,Ei=new WeakMap,Ti=new WeakMap,Sa=new WeakMap;function $a(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ra(e){return e.__v_skip||!Object.isExtensible(e)?0:$a(Yo(e))}function pn(e){return $t(e)?e:Kr(e,!1,va,xa,Ai)}function Aa(e){return Kr(e,!1,ya,_a,Ei)}function Bt(e){return Kr(e,!0,ba,Ca,Ti)}function Kr(e,t,n,r,s){if(!he(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const l=Ra(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return s.set(e,o),o}function Vt(e){return $t(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function $t(e){return!!(e&&e.__v_isReadonly)}function De(e){return!!(e&&e.__v_isShallow)}function Gr(e){return e?!!e.__v_raw:!1}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}function Ea(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&ci(e,"__v_skip",!0),e}const xe=e=>he(e)?pn(e):e,Zr=e=>he(e)?Bt(e):e;function ve(e){return e?e.__v_isRef===!0:!1}function se(e){return Ii(e,!1)}function Rt(e){return Ii(e,!0)}function Ii(e,t){return ve(e)?e:new Ta(e,t)}class Ta{constructor(t,n){this.dep=new qn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q(t),this._value=n?t:xe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||De(t)||$t(t);t=r?t:Q(t),ft(t,n)&&(this._rawValue=t,this._value=r?t:xe(t),this.dep.trigger())}}function K(e){return ve(e)?e.value:e}function Te(e){return ee(e)?e():K(e)}const Ia={get:(e,t,n)=>t==="__v_raw"?e:K(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return ve(s)&&!ve(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Li(e){return Vt(e)?e:new Proxy(e,Ia)}class La{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new qn,{get:r,set:s}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=s}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ma(e){return new La(e)}class Pa{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return fa(Q(this._object),this._key)}}class Oa{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ja(e,t,n){return ve(e)?e:ee(e)?new Oa(e):he(e)&&arguments.length>1?za(e,t,n):se(e)}function za(e,t,n){const r=e[t];return ve(r)?r:new Pa(e,t,n)}class Da{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new qn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=un-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ue!==this)return vi(this,!0),!0}get value(){const t=this.dep.track();return wi(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Fa(e,t,n=!1){let r,s;return ee(e)?r=e:(r=e.get,s=e.set),new Da(r,s,n)}const Yn={},Qn=new WeakMap;let At;function Ha(e,t=!1,n=At){if(n){let r=Qn.get(n);r||Qn.set(n,r=[]),r.push(e)}}function Ua(e,t,n=ie){const{immediate:r,deep:s,once:i,scheduler:l,augmentJob:o,call:a}=n,c=I=>s?I:De(I)||s===!1||s===0?nt(I,1):nt(I);let u,f,d,m,x=!1,b=!1;if(ve(e)?(f=()=>e.value,x=De(e)):Vt(e)?(f=()=>c(e),x=!0):q(e)?(b=!0,x=e.some(I=>Vt(I)||De(I)),f=()=>e.map(I=>{if(ve(I))return I.value;if(Vt(I))return c(I);if(ee(I))return a?a(I,2):I()})):ee(e)?t?f=a?()=>a(e,2):e:f=()=>{if(d){_t();try{d()}finally{Ct()}}const I=At;At=u;try{return a?a(e,3,[m]):e(m)}finally{At=I}}:f=wt,t&&s){const I=f,O=s===!0?1/0:s;f=()=>nt(I(),O)}const T=di(),w=()=>{u.stop(),T&&T.active&&si(T.effects,u)};if(i&&t){const I=t;t=(...O)=>{I(...O),w()}}let C=b?new Array(e.length).fill(Yn):Yn;const N=I=>{if(!(!(u.flags&1)||!u.dirty&&!I))if(t){const O=u.run();if(s||x||(b?O.some((G,j)=>ft(G,C[j])):ft(O,C))){d&&d();const G=At;At=u;try{const j=[O,C===Yn?void 0:b&&C[0]===Yn?[]:C,m];a?a(t,3,j):t(...j),C=O}finally{At=G}}}else u.run()};return o&&o(N),u=new gi(f),u.scheduler=l?()=>l(N,!1):N,m=I=>Ha(I,!1,u),d=u.onStop=()=>{const I=Qn.get(u);if(I){if(a)a(I,4);else for(const O of I)O();Qn.delete(u)}},t?r?N(!0):C=u.run():l?l(N.bind(null,!0),!0):u.run(),w.pause=u.pause.bind(u),w.resume=u.resume.bind(u),w.stop=w,w}function nt(e,t=1/0,n){if(t<=0||!he(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ve(e))nt(e.value,t,n);else if(q(e))for(let r=0;r<e.length;r++)nt(e[r],t,n);else if(Ut(e)||Ht(e))e.forEach(r=>{nt(r,t,n)});else if(ai(e)){for(const r in e)nt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&nt(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function dn(e,t,n,r){try{return r?e(...r):e()}catch(s){Xn(s,t,n)}}function rt(e,t,n,r){if(ee(e)){const s=dn(e,t,n,r);return s&&li(s)&&s.catch(i=>{Xn(i,t,n)}),s}if(q(e)){const s=[];for(let i=0;i<e.length;i++)s.push(rt(e[i],t,n,r));return s}}function Xn(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||ie;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const u=o.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,a,c)===!1)return}o=o.parent}if(i){_t(),dn(i,null,10,[e,a,c]),Ct();return}}Na(e,n,s,r,l)}function Na(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const Se=[];let Ge=-1;const Wt=[];let ht=null,qt=0;const Mi=Promise.resolve();let er=null;function Kt(e){const t=er||Mi;return e?t.then(this?e.bind(this):e):t}function Ba(e){let t=Ge+1,n=Se.length;for(;t<n;){const r=t+n>>>1,s=Se[r],i=gn(s);i<e||i===e&&s.flags&2?t=r+1:n=r}return t}function Jr(e){if(!(e.flags&1)){const t=gn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=gn(n)?Se.push(e):Se.splice(Ba(t),0,e),e.flags|=1,Pi()}}function Pi(){er||(er=Mi.then(zi))}function Va(e){q(e)?Wt.push(...e):ht&&e.id===-1?ht.splice(qt+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Pi()}function Oi(e,t,n=Ge+1){for(;n<Se.length;n++){const r=Se[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Se.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function ji(e){if(Wt.length){const t=[...new Set(Wt)].sort((n,r)=>gn(n)-gn(r));if(Wt.length=0,ht){ht.push(...t);return}for(ht=t,qt=0;qt<ht.length;qt++){const n=ht[qt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ht=null,qt=0}}const gn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function zi(e){try{for(Ge=0;Ge<Se.length;Ge++){const t=Se[Ge];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),dn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ge<Se.length;Ge++){const t=Se[Ge];t&&(t.flags&=-2)}Ge=-1,Se.length=0,ji(),er=null,(Se.length||Wt.length)&&zi()}}let Ae=null,Di=null;function tr(e){const t=Ae;return Ae=e,Di=e&&e.type.__scopeId||null,t}function Wa(e,t=Ae,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&sl(-1);const i=tr(t);let l;try{l=e(...s)}finally{tr(i),r._d&&sl(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function nr(e,t){if(Ae===null)return e;const n=ur(Ae),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,l,o,a=ie]=t[s];i&&(ee(i)&&(i={mounted:i,updated:i}),i.deep&&nt(l),r.push({dir:i,instance:n,value:l,oldValue:void 0,arg:o,modifiers:a}))}return e}function Et(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let l=0;l<s.length;l++){const o=s[l];i&&(o.oldValue=i[l].value);let a=o.dir[r];a&&(_t(),rt(a,n,8,[e.el,o,e,t]),Ct())}}const qa=Symbol("_vte"),Ka=e=>e.__isTeleport;function Yr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Yr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function mn(e,t){return ee(e)?je({name:e.name},t,{setup:e}):e}function Ga(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function pt(e){const t=ol(),n=Rt(null);if(t){const s=t.refs===ie?t.refs={}:t.refs;Object.defineProperty(s,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function rr(e,t,n,r,s=!1){if(q(e)){e.forEach((x,b)=>rr(x,t&&(q(t)?t[b]:t),n,r,s));return}if(vn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&rr(e,t,n,r.component.subTree);return}const i=r.shapeFlag&4?ur(r.component):r.el,l=s?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ie?o.refs={}:o.refs,f=o.setupState,d=Q(f),m=f===ie?()=>!1:x=>X(d,x);if(c!=null&&c!==a&&(ye(c)?(u[c]=null,m(c)&&(f[c]=null)):ve(c)&&(c.value=null)),ee(a))dn(a,o,12,[l,u]);else{const x=ye(a),b=ve(a);if(x||b){const T=()=>{if(e.f){const w=x?m(a)?f[a]:u[a]:a.value;s?q(w)&&si(w,i):q(w)?w.includes(i)||w.push(i):x?(u[a]=[i],m(a)&&(f[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else x?(u[a]=l,m(a)&&(f[a]=l)):b&&(a.value=l,e.k&&(u[e.k]=l))};l?(T.id=-1,Ie(T,n)):T()}}}ln().requestIdleCallback,ln().cancelIdleCallback;const vn=e=>!!e.type.__asyncLoader,Za=e=>e.type.__isKeepAlive;function Ja(e,t,n=$e,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{_t();const o=as(n),a=rt(t,n,e,l);return o(),Ct(),a});return r?s.unshift(i):s.push(i),i}}const Qr=e=>(t,n=$e)=>{(!_n||e==="sp")&&Ja(e,(...r)=>t(...r),n)},bn=Qr("m"),Ya=Qr("bum"),Xr=Qr("um"),Qa="components";function Xa(e,t){return tc(Qa,e,!0,t)||e}const ec=Symbol.for("v-ndc");function tc(e,t,n=!0,r=!1){const s=Ae||$e;if(s){const i=s.type;{const o=Dc(i,!1);if(o&&(o===t||o===ze(t)||o===Bn(ze(t))))return i}const l=Fi(s[e]||i[e],t)||Fi(s.appContext[e],t);return!l&&r?i:l}}function Fi(e,t){return e&&(e[t]||e[ze(t)]||e[Bn(ze(t))])}function Fe(e,t,n,r){let s;const i=n,l=q(e);if(l||ye(e)){const o=l&&Vt(e);let a=!1;o&&(a=!De(e),e=Gn(e)),s=new Array(e.length);for(let c=0,u=e.length;c<u;c++)s[c]=t(a?xe(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let o=0;o<e;o++)s[o]=t(o+1,o,void 0,i)}else if(he(e))if(e[Symbol.iterator])s=Array.from(e,(o,a)=>t(o,a,void 0,i));else{const o=Object.keys(e);s=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const u=o[a];s[a]=t(e[u],u,a,i)}}else s=[];return s}const es=e=>e?cl(e)?ur(e):es(e.parent):null,yn=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>es(e.parent),$root:e=>es(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Jr(e.update)}),$nextTick:e=>e.n||(e.n=Kt.bind(e.proxy)),$watch:e=>wt}),ts=(e,t)=>e!==ie&&!e.__isScriptSetup&&X(e,t),nc={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const m=l[t];if(m!==void 0)switch(m){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(ts(r,t))return l[t]=1,r[t];if(s!==ie&&X(s,t))return l[t]=2,s[t];if((c=e.propsOptions[0])&&X(c,t))return l[t]=3,i[t];if(n!==ie&&X(n,t))return l[t]=4,n[t];l[t]=0}}const u=yn[t];let f,d;if(u)return t==="$attrs"&&ke(e.attrs,"get",""),u(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==ie&&X(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,X(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;return ts(s,t)?(s[t]=n,!0):r!==ie&&X(r,t)?(r[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},l){let o;return!!n[l]||e!==ie&&X(e,l)||ts(t,l)||(o=i[0])&&X(o,l)||X(r,l)||X(yn,l)||X(s.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Hi(){return{app:null,config:{isNativeTag:Zo,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 rc=0;function sc(e,t){return function(r,s=null){ee(r)||(r=je({},r)),s!=null&&!he(s)&&(s=null);const i=Hi(),l=new WeakSet,o=[];let a=!1;const c=i.app={_uid:rc++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Hc,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&ee(u.install)?(l.add(u),u.install(c,...f)):ee(u)&&(l.add(u),u(c,...f))),c},mixin(u){return c},component(u,f){return f?(i.components[u]=f,c):i.components[u]},directive(u,f){return f?(i.directives[u]=f,c):i.directives[u]},mount(u,f,d){if(!a){const m=c._ceVNode||le(r,s);return m.appContext=i,d===!0?d="svg":d===!1&&(d=void 0),e(m,u,d),a=!0,c._container=u,u.__vue_app__=c,ur(m.component)}},onUnmount(u){o.push(u)},unmount(){a&&(rt(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return i.provides[u]=f,c},runWithContext(u){const f=Gt;Gt=c;try{return u()}finally{Gt=f}}};return c}}let Gt=null;function ic(e,t){if($e){let n=$e.provides;const r=$e.parent&&$e.parent.provides;r===n&&(n=$e.provides=Object.create(r)),n[e]=t}}function sr(e,t,n=!1){const r=$e||Ae;if(r||Gt){const s=Gt?Gt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ee(t)?t.call(r&&r.proxy):t}}const Ui={},Ni=()=>Object.create(Ui),Bi=e=>Object.getPrototypeOf(e)===Ui;function lc(e,t,n,r=!1){const s={},i=Ni();e.propsDefaults=Object.create(null),Vi(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:Aa(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function oc(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,o=Q(s),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(ir(e.emitsOptions,d))continue;const m=t[d];if(a)if(X(i,d))m!==i[d]&&(i[d]=m,c=!0);else{const x=ze(d);s[x]=ns(a,o,x,m,e,!1)}else m!==i[d]&&(i[d]=m,c=!0)}}}else{Vi(e,t,s,i)&&(c=!0);let u;for(const f in o)(!t||!X(t,f)&&((u=kt(f))===f||!X(t,u)))&&(a?n&&(n[f]!==void 0||n[u]!==void 0)&&(s[f]=ns(a,o,f,void 0,e,!0)):delete s[f]);if(i!==o)for(const f in i)(!t||!X(t,f))&&(delete i[f],c=!0)}c&&et(e.attrs,"set","")}function Vi(e,t,n,r){const[s,i]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(sn(a))continue;const c=t[a];let u;s&&X(s,u=ze(a))?!i||!i.includes(u)?n[u]=c:(o||(o={}))[u]=c:ir(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,l=!0)}if(i){const a=Q(n),c=o||ie;for(let u=0;u<i.length;u++){const f=i[u];n[f]=ns(s,a,f,c[f],e,!X(c,f))}}return l}function ns(e,t,n,r,s,i){const l=e[n];if(l!=null){const o=X(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&!l.skipFactory&&ee(a)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=as(s);r=c[n]=a.call(null,t),u()}}else r=a;s.ce&&s.ce._setProp(n,r)}l[0]&&(i&&!o?r=!1:l[1]&&(r===""||r===kt(n))&&(r=!0))}return r}function ac(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,l={},o=[];if(!i)return he(e)&&r.set(e,Ft),Ft;if(q(i))for(let c=0;c<i.length;c++){const u=ze(i[c]);Wi(u)&&(l[u]=ie)}else if(i)for(const c in i){const u=ze(c);if(Wi(u)){const f=i[c],d=l[u]=q(f)||ee(f)?{type:f}:je({},f),m=d.type;let x=!1,b=!0;if(q(m))for(let T=0;T<m.length;++T){const w=m[T],C=ee(w)&&w.name;if(C==="Boolean"){x=!0;break}else C==="String"&&(b=!1)}else x=ee(m)&&m.name==="Boolean";d[0]=x,d[1]=b,(x||X(d,"default"))&&o.push(u)}}const a=[l,o];return he(e)&&r.set(e,a),a}function Wi(e){return e[0]!=="$"&&!sn(e)}const qi=e=>e[0]==="_"||e==="$stable",rs=e=>q(e)?e.map(Ze):[Ze(e)],cc=(e,t,n)=>{if(t._n)return t;const r=Wa((...s)=>rs(t(...s)),n);return r._c=!1,r},Ki=(e,t,n)=>{const r=e._ctx;for(const s in e){if(qi(s))continue;const i=e[s];if(ee(i))t[s]=cc(s,i,r);else if(i!=null){const l=rs(i);t[s]=()=>l}}},Gi=(e,t)=>{const n=rs(t);e.slots.default=()=>n},Zi=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},uc=(e,t,n)=>{const r=e.slots=Ni();if(e.vnode.shapeFlag&32){const s=t._;s?(Zi(r,t,n),n&&ci(r,"_",s,!0)):Ki(t,r)}else t&&Gi(e,t)},fc=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=ie;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:Zi(s,t,n):(i=!t.$stable,Ki(t,s)),l=t}else t&&(Gi(e,t),l={default:1});if(i)for(const o in s)!qi(o)&&l[o]==null&&delete s[o]};function hc(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(ln().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Ie=$c;function pc(e){return dc(e)}function dc(e,t){hc();const n=ln();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:m=wt,insertStaticContent:x}=e,b=(h,p,g,y=null,k=null,v=null,A=void 0,S=null,$=!!p.dynamicChildren)=>{if(h===p)return;h&&!xn(h,p)&&(y=bt(h),Ue(h,k,v,!0),h=null),p.patchFlag===-2&&($=!1,p.dynamicChildren=null);const{type:_,ref:U,shapeFlag:M}=p;switch(_){case lr:T(h,p,g,y);break;case It:w(h,p,g,y);break;case is:h==null&&C(p,g,y,A);break;case fe:B(h,p,g,y,k,v,A,S,$);break;default:M&1?O(h,p,g,y,k,v,A,S,$):M&6?F(h,p,g,y,k,v,A,S,$):(M&64||M&128)&&_.process(h,p,g,y,k,v,A,S,$,R)}U!=null&&k&&rr(U,h&&h.ref,v,p||h,!p)},T=(h,p,g,y)=>{if(h==null)r(p.el=o(p.children),g,y);else{const k=p.el=h.el;p.children!==h.children&&c(k,p.children)}},w=(h,p,g,y)=>{h==null?r(p.el=a(p.children||""),g,y):p.el=h.el},C=(h,p,g,y)=>{[h.el,h.anchor]=x(h.children,p,g,y,h.el,h.anchor)},N=({el:h,anchor:p},g,y)=>{let k;for(;h&&h!==p;)k=d(h),r(h,g,y),h=k;r(p,g,y)},I=({el:h,anchor:p})=>{let g;for(;h&&h!==p;)g=d(h),s(h),h=g;s(p)},O=(h,p,g,y,k,v,A,S,$)=>{p.type==="svg"?A="svg":p.type==="math"&&(A="mathml"),h==null?G(p,g,y,k,v,A,S,$):ae(h,p,k,v,A,S,$)},G=(h,p,g,y,k,v,A,S)=>{let $,_;const{props:U,shapeFlag:M,transition:H,dirs:V}=h;if($=h.el=l(h.type,v,U&&U.is,U),M&8?u($,h.children):M&16&&oe(h.children,$,null,y,k,ss(h,v),A,S),V&&Et(h,null,y,"created"),j($,h,h.scopeId,A,y),U){for(const re in U)re!=="value"&&!sn(re)&&i($,re,null,U[re],v,y);"value"in U&&i($,"value",null,U.value,v),(_=U.onVnodeBeforeMount)&&Je(_,y,h)}V&&Et(h,null,y,"beforeMount");const Z=gc(k,H);Z&&H.beforeEnter($),r($,p,g),((_=U&&U.onVnodeMounted)||Z||V)&&Ie(()=>{_&&Je(_,y,h),Z&&H.enter($),V&&Et(h,null,y,"mounted")},k)},j=(h,p,g,y,k)=>{if(g&&m(h,g),y)for(let v=0;v<y.length;v++)m(h,y[v]);if(k){let v=k.subTree;if(p===v||rl(v.type)&&(v.ssContent===p||v.ssFallback===p)){const A=k.vnode;j(h,A,A.scopeId,A.slotScopeIds,k.parent)}}},oe=(h,p,g,y,k,v,A,S,$=0)=>{for(let _=$;_<h.length;_++){const U=h[_]=S?gt(h[_]):Ze(h[_]);b(null,U,p,g,y,k,v,A,S)}},ae=(h,p,g,y,k,v,A)=>{const S=p.el=h.el;let{patchFlag:$,dynamicChildren:_,dirs:U}=p;$|=h.patchFlag&16;const M=h.props||ie,H=p.props||ie;let V;if(g&&Tt(g,!1),(V=H.onVnodeBeforeUpdate)&&Je(V,g,p,h),U&&Et(p,h,g,"beforeUpdate"),g&&Tt(g,!0),(M.innerHTML&&H.innerHTML==null||M.textContent&&H.textContent==null)&&u(S,""),_?Me(h.dynamicChildren,_,S,g,y,ss(p,k),v):A||ut(h,p,S,null,g,y,ss(p,k),v,!1),$>0){if($&16)E(S,M,H,g,k);else if($&2&&M.class!==H.class&&i(S,"class",null,H.class,k),$&4&&i(S,"style",M.style,H.style,k),$&8){const Z=p.dynamicProps;for(let re=0;re<Z.length;re++){const ce=Z[re],Pe=M[ce],_e=H[ce];(_e!==Pe||ce==="value")&&i(S,ce,Pe,_e,k,g)}}$&1&&h.children!==p.children&&u(S,p.children)}else!A&&_==null&&E(S,M,H,g,k);((V=H.onVnodeUpdated)||U)&&Ie(()=>{V&&Je(V,g,p,h),U&&Et(p,h,g,"updated")},y)},Me=(h,p,g,y,k,v,A)=>{for(let S=0;S<p.length;S++){const $=h[S],_=p[S],U=$.el&&($.type===fe||!xn($,_)||$.shapeFlag&70)?f($.el):g;b($,_,U,null,y,k,v,A,!0)}},E=(h,p,g,y,k)=>{if(p!==g){if(p!==ie)for(const v in p)!sn(v)&&!(v in g)&&i(h,v,p[v],null,k,y);for(const v in g){if(sn(v))continue;const A=g[v],S=p[v];A!==S&&v!=="value"&&i(h,v,S,A,k,y)}"value"in g&&i(h,"value",p.value,g.value,k)}},B=(h,p,g,y,k,v,A,S,$)=>{const _=p.el=h?h.el:o(""),U=p.anchor=h?h.anchor:o("");let{patchFlag:M,dynamicChildren:H,slotScopeIds:V}=p;V&&(S=S?S.concat(V):V),h==null?(r(_,g,y),r(U,g,y),oe(p.children||[],g,U,k,v,A,S,$)):M>0&&M&64&&H&&h.dynamicChildren?(Me(h.dynamicChildren,H,g,k,v,A,S),(p.key!=null||k&&p===k.subTree)&&Ji(h,p,!0)):ut(h,p,g,U,k,v,A,S,$)},F=(h,p,g,y,k,v,A,S,$)=>{p.slotScopeIds=S,h==null?p.shapeFlag&512?k.ctx.activate(p,g,y,A,$):de(p,g,y,k,v,A,$):we(h,p,$)},de=(h,p,g,y,k,v,A)=>{const S=h.component=Mc(h,y,k);if(Za(h)&&(S.ctx.renderer=R),Pc(S,!1,A),S.asyncDep){if(k&&k.registerDep(S,be,A),!h.el){const $=S.subTree=le(It);w(null,$,p,g)}}else be(S,h,p,g,k,v,A)},we=(h,p,g)=>{const y=p.component=h.compo